.bamdad-portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(139, 92, 246, .2), transparent 30rem),
    radial-gradient(circle at 85% 18%, rgba(34, 211, 238, .1), transparent 32rem),
    #070a12;
  color: #fff;
  padding: 0;
}
.bml-contact-form__input{
  font-family: inherit;
}

.bamdad-portal-page__inner {
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
  padding: 0 !important;
}

.page-template-template-portal .bm-header,
.page-template-template-portal .bm-footer,
.page-template-template-portal-php .bm-header,
.page-template-template-portal-php .bm-footer {
  display: none;
}

.page-template-template-portal .bm-main,
.page-template-template-portal-php .bm-main {
  min-height: 100vh;
}
:root,
.bmd-shell {
  --bmd-bg: #070a12;
  --bmd-card: rgba(16, 23, 41, .78);
  --bmd-card-strong: #101729;
  --bmd-line: rgba(255, 255, 255, 0.30);
  --bmd-soft: rgba(255, 255, 255, .055);
  --bmd-ink: #fff;
  --bmd-muted: rgba(255, 255, 255, 0.432);
  --bmd-accent: #8b5cf6;
  --bmd-accent-2: #22d3ee;
  direction: rtl;
  color: var(--bmd-ink);
  font-family: inherit;
}

.material-symbols-rounded {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.bmd-auth {
  width: min(100%, 460px);
  margin: 0 auto;
  border: 1px solid var(--bmd-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 23, 41, .92), rgba(10, 15, 28, .92));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  padding: 24px;
}

.bmd-auth h2,
.bmd-page-head h1,
.bmd-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.45;
}

.bmd-auth p,
.bmd-muted,
.bmd-metrics small,
.bmd-sidebar span,
.bmd-profile-status span,
.bmd-mini-card span,
.bmd-mini-card small {
  color: var(--bmd-muted);
}

.bmd-kicker {
  margin: 0 0 8px;
  color: var(--bmd-accent-2);
  font-weight: 900;
}

.bmd-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
  border: 1px solid var(--bmd-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  padding: 5px;
}

.bmd-auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--bmd-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.bmd-auth-tabs button.is-active {
  background: rgba(139, 92, 246, .24);
  color: #fff;
}
.bmd-auth a{
  text-decoration: underline;
}

.bmd-form {
  display: grid;
  gap: 12px;
  text-align: right;
}

.bmd-form > div,
.bmd-form fieldset {
  display: grid;
  gap: 12px;
}

.bmd-form fieldset,
.bmd-panel,
.bmd-table-wrap,
.bmd-mini-card {
  border: 1px solid var(--bmd-line);
  border-radius: 18px;
  background: var(--bmd-card);
}

.bmd-form fieldset {
  padding: 16px;
}

.bmd-form legend {
  padding: 0 8px;
  color: #fff;
  font-weight: 900;
}

.bmd-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}

.bmd-form small {
  color: var(--bmd-muted);
  font-weight: 500;
}

.bmd-form input,
.bmd-form select,
.bmd-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid var(--bmd-line) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
  padding: 10px 12px;
  font: inherit;
  min-width: 0;
}

.bmd-form select,
.bmd-form option {
  background: #101729;
  color: #fff;
}

.bmd-form input::placeholder,
.bmd-form textarea::placeholder {
  color: rgba(255, 255, 255, .36);
}

.bmd-form input:focus,
.bmd-form select:focus,
.bmd-form textarea:focus {
  border-color: rgba(228, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .16);
}

.bmd-ltr-input {
  direction: ltr;
  text-align: left;
}

/* ── OTP digit inputs ─────────────────────────────────────── */
.bmd-otp-inputs {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 4px 0 8px !important;
}

.bmd-otp-digit {
  width: 52px !important;
  min-height: 64px !important;
  max-width: 52px !important;
  flex: 0 0 52px !important;
  text-align: center !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  border-radius: 14px !important;
  border: 2px solid rgba(255, 255, 255, .25) !important;
  background: rgba(255, 255, 255, .07) !important;
  padding: 0 !important;
  caret-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.bmd-otp-digit:focus {
  border-color: rgba(139, 92, 246, 1) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .28) !important;
  background: rgba(139, 92, 246, .08) !important;
  outline: none !important;
}

.bmd-otp-digit.is-filled:not(:focus) {
  border-color: rgba(139, 92, 246, .7) !important;
  background: rgba(139, 92, 246, .13) !important;
}

.bmd-form input.is-disabled,
.bmd-form input:disabled {
  cursor: not-allowed;
  opacity: .7;
  background: rgba(255, 255, 255, .04);
}

.bmd-form input.bmd-field-invalid,
.bmd-form textarea.bmd-field-invalid,
.bmd-form select.bmd-field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, .35);
}

.bmd-form textarea {
  min-height: 112px;
}

.bmd-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.bmd-check input {
  width: auto;
  min-height: 0;
}

.bmd-release-card .bmd-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  line-height: 1.5;
}
.bmd-release-card .bmd-check:last-child {
  border-bottom: none;
}
.bmd-release-card .bmd-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px !important;
  margin: 3px 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--bmd-primary, #6d28d9);
}

.bmd-button,
.bmd-link-button,
.bmd-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 18px;
  text-decoration: none;
}

.bmd-button-secondary,
.bmd-link-button,
.bmd-google {
  border: 1px solid var(--bmd-line);
  background: rgba(255, 255, 255, .06);
}

.bmd-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.bmd-google,
.bmd-google-form {
  margin-top: 12px;
  width: 100%;
}

.bmd-google {
  margin-top: 12px;
}

/* ── Google Sign-In/Up button (Google branding guidelines — dark) ── */
.bmd-google-divider {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
}
.bmd-google-divider::before,
.bmd-google-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.bmd-google-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #8E918F;
  background: #131314;
  color: #E3E3E3;
  font-family: 'Google Sans', Roboto, Vazirmatn, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: background .15s, box-shadow .15s;
  gap: 0;
  direction: rtl;
}

.bmd-google-btn:hover {
  background: #1a1a1b;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.bmd-google-btn:active {
  background: #222324;
}

.bmd-google-btn:focus-visible {
  outline: 2px solid #8E918F;
  outline-offset: 2px;
}

/* icon container — fixed 40×40 left side (RTL: right side) */
.bmd-google-btn__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.bmd-google-btn__icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* 1px separator between icon and text */
.bmd-google-btn__sep {
  width: 1px;
  height: 20px;
  background: #8E918F;
  flex-shrink: 0;
}

/* label: centered in remaining space */
.bmd-google-btn__label {
  flex: 1;
  text-align: center;
  padding-left: 40px; /* optical balance against icon width */
  letter-spacing: .01em;
}

.bmd-link {
  color: #c4b5fd;
  font-weight: 900;
  text-decoration: none;
}

.bmd-auth-sub {
  font-size: .9rem;
  color: var(--bmd-muted);
  margin-top: 4px;
}

.bmd-auth-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--bmd-muted);
  font-size: .95rem;
}

.bmd-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  grid-template-areas: "main sidebar";
  gap: 0;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  direction: ltr;
  background:
    radial-gradient(circle at 18% 8%, rgba(139, 92, 246, .14), transparent 30rem),
    radial-gradient(circle at 80% 0, rgba(34, 211, 238, .08), transparent 28rem),
    #070a12;
}

.bmd-sidebar {
  position: sticky;
  top: 0;
  grid-area: sidebar;
  direction: rtl;
  min-height: 100vh;
  border: 0;
  border-inline-start: 1px solid var(--bmd-line);
  border-radius: 0;
  background: rgba(8, 13, 26, .72);
  padding: 26px 18px;
  backdrop-filter: blur(18px);
}

.bmd-brand {
  display: block;
  margin-bottom: 28px;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
  text-align: right;
}

.bmd-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.bmd-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.bmd-sidebar-profile strong,
.bmd-profile-photo-block strong {
  display: block;
  color: #fff;
  font-weight: 950;
}

.bmd-sidebar-profile span {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: .82rem;
}

.bmd-sidebar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.bmd-sidebar a,
.bmd-link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-radius: 10px;
  background: transparent;
  color: var(--bmd-muted) !important;
  padding: 10px 14px;
  text-align: right;
  font-weight: 900;
}

.bmd-sidebar a .material-symbols-rounded {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .78);
}

.bmd-sidebar a {
  text-decoration: none;
}

.bmd-sidebar a.is-active,
.bmd-sidebar a:hover,
.bmd-link-button:hover {
  background: rgba(139, 92, 246, .24);
  color: #fff !important;
}

.bmd-logout-form {
  margin-top: 8px;
}

.bmd-main {
  min-width: 0;
  grid-area: main;
  direction: rtl;
  width: 100%;
  margin: 0;
  padding: 0 0 48px;
}

.bmd-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--bmd-line);
  padding: 0 36px;
  direction: ltr;
}

.bmd-main > :not(.bmd-dashboard-topbar) {
  width: min(980px, calc(100% - 64px));
  margin-inline: auto;
}

.bmd-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  direction: ltr;
}

.bmd-topbar-actions > a,
.bmd-profile-menu > button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  text-decoration: none;
}

.bmd-profile-menu {
  position: relative;
}

.bmd-profile-menu > button {
  display: flex;
  width: auto;
  min-width: 56px;
  gap: 4px;
  padding: 0;
}

.bmd-topbar-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18);
}

.bmd-topbar-avatar img,
.bmd-topbar-avatar .bmd-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.bmd-topbar-logo {
  display: none;
  flex: 0 0 auto;
  max-height: 36px;
}

.bmd-topbar-logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: right center;
}

.bmd-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 90;
  display: none;
  min-width: 210px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  background: rgba(13, 19, 34, .98);
  box-shadow: var(--bmd-shadow);
  direction: rtl;
}

.bmd-profile-menu.is-open .bmd-profile-dropdown {
  display: grid;
  gap: 4px;
}

.bmd-profile-dropdown a,
.bmd-profile-dropdown button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.bmd-profile-dropdown a:hover,
.bmd-profile-dropdown button:hover {
  background: rgba(139, 92, 246, .16);
  color: #fff;
}

.bmd-profile-dropdown form {
  margin: 0;
}

.bmd-profile-dropdown .material-symbols-rounded {
  font-size: 21px;
  color: #a855f7;
}

.bmd-topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bmd-muted);
  font-size: .95rem;
  font-weight: 800;
  direction: rtl;
}

.bmd-topbar-breadcrumb a {
  color: var(--bmd-muted);
  text-decoration: none;
}

.bmd-topbar-breadcrumb strong {
  color: #fff;
}

.bmd-page-head {
  display: grid;
  justify-items: right;
  gap: 14px;
  margin-bottom: 28px;
  padding-top: 8px;
}

.bmd-panel {
  margin-bottom: 16px;
  padding: 18px;
}

.bmd-metrics,
.bmd-profile-status,
.bmd-check-grid,
.bmd-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bmd-metrics div,
.bmd-profile-status div,
.bmd-mini-card {
  border: 1px solid var(--bmd-line);
  border-radius: 18px;
  background: var(--bmd-card);
  padding: 16px;
}

.bmd-metric-main {
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(34, 211, 238, .12)) !important;
}

.bmd-metrics span,
.bmd-profile-status strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 950;
}

.bmd-alert,
.bmd-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(34, 211, 238, .24);
  border-radius: 18px;
  background: rgba(34, 211, 238, .08);
  color: #dffbff;
  padding: 12px 14px;
}

.bmd-dashboard > .bmd-notice {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 0 14px;
  direction: rtl;
}

.bmd-dashboard > .bmd-notice + .bmd-sidebar {
  grid-row: 2;
}

.bmd-dashboard > .bmd-notice ~ .bmd-main {
  grid-row: 2;
}

.bmd-alert-danger {
  border-color: rgba(251, 113, 133, .45);
  background: rgba(127, 29, 29, .34);
  color: #ffe4e6;
}

.bmd-notice--success {
  border-color: rgba(34, 197, 94, .35);
  background: rgba(20, 83, 45, .35);
  color: #bbf7d0;
}

.bmd-notice--error {
  border-color: rgba(251, 113, 133, .45);
  background: rgba(127, 29, 29, .34);
  color: #ffe4e6;
}

.bmd-alert-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #fb7185;
}

.bmd-alert a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.bmd-inline-form {
  margin: 0;
}

.bmd-alert-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 12px;
}

.bmd-settings-grid {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.bmd-resend-form {
  margin-top: 10px;
}

.bmd-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.bmd-inline-edit-form {
  padding: 16px;
  background: rgba(255, 255, 255, .03);
  border-radius: 12px;
}

.bmd-mini-card {
  display: grid;
  gap: 7px;
}

.bmd-mini-card strong,
.bmd-mini-card em {
  color: #fff;
  font-style: normal;
}

.bmd-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.bmd-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.bmd-table th,
.bmd-table td {
  border-bottom: 1px solid var(--bmd-line);
  color: #fff;
  padding: 12px;
  text-align: right;
}

.bmd-table th {
  color: var(--bmd-muted);
}

.bmd-badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(139, 92, 246, .18);
  color: #ddd6fe;
  font-weight: 900;
  padding: 4px 10px;
}

.bmd-badge.is-verified {
  background: rgba(16, 185, 129, .16);
  color: #a7f3d0;
}

.bmd-badge.is-muted {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
}

.bmd-badge.is-warning {
  background: rgba(245, 158, 11, .18);
  color: #fcd34d;
}

.bmd-profile-phone-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
  vertical-align: middle;
}

.bmd-mini-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 92, 246, .55);
  border-radius: 999px;
  background: rgba(139, 92, 246, .18);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  padding: 4px 10px;
}

.bmd-mini-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.bmd-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .08);
}

.bmd-avatar-large {
  width: 92px;
  height: 92px;
  flex-basis: 92px;
}

.bmd-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, rgba(139, 92, 246, .72), rgba(34, 211, 238, .34));
}

.bmd-topbar-avatar .bmd-avatar-placeholder,
.bmd-profile-menu .bmd-avatar-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  object-fit: initial;
}

.bmd-profile-photo-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--bmd-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
}

.bmd-upload-button {
  display: inline-flex !important;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 8px !important;
  border: 1px solid var(--bmd-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  padding: 0 12px;
}

.bmd-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bmd-remove-photo {
  margin-top: 8px !important;
  color: var(--bmd-muted) !important;
  font-size: .88rem;
}

.bmd-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  min-width: 0;
}

.bmd-release-wizard .bmd-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.bmd-release-wizard .bmd-form label {
  min-width: 0;
}

.bmd-release-wizard textarea {
  resize: vertical;
}

.bmd-col-span-2 {
  grid-column: 1 / -1;
}

.bmd-phone-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 150px);
  gap: 8px;
  direction: rtl;
}

.bmd-phone-row .bmd-ltr-input {
  direction: ltr;
  text-align: left;
}

.bmd-form input.is-invalid,
.bmd-form select.is-invalid,
.bmd-form textarea.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .16);
}

.bmd-withdrawal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bmd-withdrawal-summary div,
.bmd-withdrawal-rules {
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  padding: 12px;
}

.bmd-withdrawal-summary strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
}

.bmd-withdrawal-summary span,
.bmd-withdrawal-rules span {
  color: var(--bmd-muted);
}

.bmd-withdrawal-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.bmd-select-search {
  display: grid;
  gap: 6px;
}

.bmd-select-search input {
  min-height: 38px;
  border-radius: 12px;
}

.bmd-cropper-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(3, 6, 18, .84);
  padding: 20px;
}

.bmd-cropper-modal {
  width: min(100%, 460px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: #101729;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
  padding: 18px;
}

.bmd-cropper-modal h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.bmd-cropper-stage {
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.bmd-cropper-stage canvas {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--bmd-line);
  border-radius: 18px;
  background: #070a12;
}

.bmd-photo-status {
  display: block;
  min-height: 20px;
  color: var(--bmd-muted);
}

.bmd-release-head {
  display: grid;
  justify-items: right;
  text-align: right;
  max-width: 100%;
  overflow: hidden;
}

.bmd-release-head h1,
.bmd-release-head p {
  max-width: 100%;
}

.bmd-breadcrumb {
  margin: 0;
  color: var(--bmd-muted);
  font-size: .9rem;
}

.bmd-release-head .bmd-breadcrumb {
  display: none;
}

.bmd-release-wizard {
  gap: 16px;
}

.bmd-release-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  padding: 12px;
  overflow: hidden;
}

.bmd-release-steps button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--bmd-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  min-width: 0;
}

.bmd-release-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  color: #fff;
}

.bmd-release-steps button.is-active {
  background: rgba(139, 92, 246, .14);
  color: #fff;
}

.bmd-release-steps button.is-active span {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
}

.bmd-release-step {
  display: none;
  gap: 16px;
}

.bmd-release-step.is-active {
  display: grid;
}

.bmd-release-card,
.bmd-release-side-card {
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 23, 41, .82), rgba(9, 14, 27, .78));
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.bmd-release-card h2,
.bmd-release-side-card h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.12rem;
}

.bmd-release-card p,
.bmd-release-side-card p {
  color: var(--bmd-muted);
}

.bmd-release-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bmd-release-type-switch label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--bmd-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.bmd-release-type-switch label:has(input:checked) {
  border-color: rgba(168, 85, 247, .9);
  background: rgba(139, 92, 246, .26);
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .25);
}

.bmd-release-type-switch input {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-inline-end: 8px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .72) !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  accent-color: #38bdf8;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: radio;
}

.bmd-dropzone,
.bmd-cover-upload {
  position: relative;
  display: grid !important;
  place-items: center;
  gap: 8px;
  min-height: 210px;
  border: 1px dashed rgba(168, 85, 247, .75);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0, rgba(139, 92, 246, .16), transparent 22rem), rgba(255, 255, 255, .025);
  text-align: center;
  cursor: pointer;
}

.bmd-dropzone input,
.bmd-cover-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.bmd-dropzone-icon,
.bmd-cover-upload span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #a855f7;
  font-size: 3.2rem;
}

.bmd-dropzone em {
  justify-self: start;
  margin: 8px;
  border: 1px solid var(--bmd-line);
  border-radius: 10px;
  color: #fff;
  font-style: normal;
  padding: 8px 12px;
}

.bmd-release-cover-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.bmd-cover-upload-wrap {
  position: relative;
  display: grid;
  gap: 8px;
  width: 150px;
}

.bmd-cover-upload {
  width: 150px;
  aspect-ratio: 1;
  min-height: 120px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.bmd-cover-upload-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.bmd-cover-upload.has-cover .bmd-cover-upload-img {
  display: block;
}

.bmd-cover-upload.has-cover > span,
.bmd-cover-upload.has-cover > strong {
  opacity: 0;
}

.bmd-cover-remove {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(7, 10, 18, .82);
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.bmd-cover-remove .material-symbols-rounded {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 0;
  color: inherit;
  font-size: 16px;
  line-height: 16px;
}

.bmd-cover-upload-wrap .bmd-cover-remove:not(.is-hidden) {
  display: grid;
}

.bmd-resend-timer {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .62);
  font-size: .84rem;
  text-align: center;
}

.bmd-upload-progress {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 160px;
  height: 24px;
  border: 1px solid var(--bmd-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}

.bmd-upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  transition: width .16s ease;
}

.bmd-upload-progress strong {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.bmd-upload-progress--cover {
  width: 100%;
  min-width: 0;
  height: 15px;
  border: 0;
  background: rgba(255, 255, 255, .08);
}

.bmd-upload-progress--cover strong {
  inset-block-start: 2px;
  color: var(--bmd-muted);
  font-size: .68rem;
  line-height: 1;
}

.bmd-field-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #fb7185 !important;
  font-size: .9rem;
}

.bmd-track-editor {
  margin-top: 16px;
  border: 1px solid var(--bmd-line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
}

.bmd-track-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bmd-line);
  color: #fff;
  font-weight: 950;
}

.bmd-track-editor-head small {
  color: var(--bmd-muted);
}

.bmd-track-table-wrap {
  overflow-x: auto;
}

.bmd-track-table {
  min-width: 860px;
}

.bmd-track-table td:first-child span,
.bmd-track-table td:first-child small {
  display: block;
}

.bmd-track-table td:first-child small {
  margin-top: 4px;
  color: var(--bmd-muted);
  font-size: .78rem;
}

.bmd-track-table input {
  min-height: 38px;
  padding: 8px 10px;
}

.bmd-track-table input.bmd-field-invalid,
.bmd-track-table select.bmd-field-invalid {
  border-color: #fb7185 !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, .18);
}

.bmd-btn-add-track {
  display: block;
  /* align-items: center; */
  gap: 6px;
  margin: 6px auto;
  padding: 8px 16px;
  background: transparent;
  border: 2px dashed var(--bmd-primary, #7c3aed);
  border-radius: 8px;
  color: var(--bmd-primary, #7c3aed);
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: Vazirmatn, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Helvetica Neue, Arial, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}
.bmd-btn-add-track:hover {
  background: var(--bmd-primary, #7c3aed);
  color: #fff;
}
.bmd-btn-add-track .material-symbols-rounded {
  font-size: 18px;
}

.bmd-icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bmd-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  cursor: pointer;
}

.bmd-icon-button .material-symbols-rounded {
  font-size: 20px;
}

.bmd-release-empty-table {
  margin-top: 12px;
  box-shadow: none;
}

.bmd-char-count {
  justify-self: end;
}

.bmd-release-grid-aside {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.bmd-release-grid-aside > .bmd-release-card {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.bmd-release-grid-aside > .bmd-release-side-card {
  grid-column: 1;
}

.bmd-release-side-card {
  align-self: start;
}

.bmd-release-side-card dl {
  grid-template-columns: minmax(0, 1fr);
}

.bmd-release-side-card dl,
.bmd-review-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.bmd-release-side-card dt,
.bmd-review-list dt {
  color: var(--bmd-muted);
}

.bmd-release-side-card dd,
.bmd-review-list dd {
  margin: 0;
  color: #fff;
}

.bmd-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.bmd-platform-pill,
.bmd-release-service,
.bmd-release-segment {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--bmd-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  padding: 12px;
  color: #fff;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  line-height: 1.45;
}

.bmd-release-notify {
  display: flex !important;
  align-items: center;
  gap: 10px;
  direction: rtl;
  justify-content: flex-start;
  padding: 10px 0;
  color: #fff;
  cursor: pointer;
}

.bmd-platform-pill {
  min-height: 54px;
}

.bmd-platform-pill img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
}

.bmd-platform-pill span,
.bmd-release-service strong,
.bmd-release-service small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bmd-platform-pill input,
.bmd-release-service input,
.bmd-release-segment input {
  width: auto;
  min-height: auto;
  accent-color: #8b5cf6;
}

.bmd-platform-pill:has(input:checked),
.bmd-release-service:has(input:checked),
.bmd-release-segment:has(input:checked) {
  border-color: rgba(168, 85, 247, .72);
  background: rgba(139, 92, 246, .13);
}

.bmd-release-service.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  background: rgba(255, 255, 255, .025);
}

.bmd-release-service.is-disabled * {
  cursor: not-allowed;
}

.bmd-release-segment-row,
.bmd-release-service-grid,
.bmd-release-two-cols,
.bmd-review-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bmd-release-segment-row,
.bmd-release-two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmd-release-service-grid,
.bmd-review-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.bmd-release-service {
  align-items: flex-start;
  flex-direction: row;
  min-height: 96px;
}

.bmd-release-service strong,
.bmd-release-service small {
  display: block;
}

.bmd-share-box {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px solid rgba(168, 85, 247, .75);
  border-radius: 14px;
  color: #e9d5ff;
  font-size: 2rem;
  font-weight: 950;
}

.bmd-cover-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(34, 211, 238, .12));
  color: var(--bmd-muted);
}

.bmd-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmd-selected-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bmd-selected-platforms span {
  border: 1px solid var(--bmd-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  padding: 6px 10px;
}

.bmd-contributor-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 18, .82);
  padding: 20px;
}

.bmd-contributor-dialog {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  border: 1px solid var(--bmd-line);
  border-radius: 18px;
  background: #101729;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .5);
  padding: 18px;
}

.bmd-contributor-dialog h2 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.bmd-contributor-dialog label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-weight: 800;
}

.bmd-release-empty-table button {
  min-height: 30px;
  margin-inline-start: 6px;
  border: 1px solid var(--bmd-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
}

.bmd-release-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.bmd-release-actions .bmd-button {
  white-space: nowrap;
}

.bmd-notification-list {
  display: flex;
  flex-direction: column;
}

/* ── Notification item ──────────────────────────── */
.bmd-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  transition: background .15s;
}

.bmd-notif-item:last-child { border-bottom: none; }

.bmd-notif-item.is-unread {
  background: rgba(139, 92, 246, .07);
}

.bmd-notif-item.is-read {
  opacity: .72;
}

/* left stripe for unread */
.bmd-notif-dot-pill {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 50%;
  min-height: 32px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #a855f7, #ec4899);
}
.bmd-notif-item.is-unread .bmd-notif-dot-pill { display: block; }

/* icon */
.bmd-notif-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168,85,247,.12);
  color: #a855f7;
  font-size: 22px;
  margin-top: 2px;
}
.bmd-notif-item.is-unread .bmd-notif-icon-wrap {
  background: rgba(168,85,247,.22);
  color: #c084fc;
}
.bmd-notif-item.is-read .bmd-notif-icon-wrap {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.35);
}

/* body */
.bmd-notif-body {
  flex: 1;
  min-width: 0;
}

.bmd-notif-title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}
.bmd-notif-item.is-read .bmd-notif-title {
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

.bmd-notif-text {
  margin: 0 0 6px;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

.bmd-notif-link {
  display: inline-block;
  font-size: .82rem;
  color: #a78bfa;
  text-decoration: none;
  margin-bottom: 6px;
}
.bmd-notif-link:hover { text-decoration: underline; color: #c4b5fd; }

.bmd-notif-time {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  display: block;
  direction: rtl;
}

/* read button */
.bmd-notif-read-btn {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(168,85,247,.35);
  border-radius: 50%;
  background: rgba(168,85,247,.1);
  color: #a855f7;
  cursor: pointer;
  font: inherit;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}

.bmd-notif-read-btn:hover {
  background: rgba(168,85,247,.25);
  color: #c084fc;
  border-color: rgba(168,85,247,.6);
  transform: scale(1.1);
}

.bmd-notif-read-btn:disabled {
  opacity: .4;
  cursor: default;
  transform: none;
}

/* "همه خوانده" button */
.bmd-button--ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
}
.bmd-button--ghost:hover {
  background: rgba(168,85,247,.12);
  border-color: rgba(168,85,247,.4);
  color: #c084fc;
}
.bmd-button--sm {
  padding: 7px 14px;
  font-size: .82rem;
  gap: 5px;
}

/* Red dot on topbar notification bell */
.bmd-topbar-notif-btn {
  position: relative;
}

.bmd-notif-dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid var(--bmd-bg, #070a12);
}

.bmd-phone-verify-panel,
.bmd-email-verify-panel {
  margin-top: 16px;
}

.bmd-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(3, 6, 18, .82);
  padding: 20px;
}

.bmd-modal {
  position: relative;
  width: min(100%, 520px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: #101729;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  padding: 22px;
}

.bmd-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.bmd-modal-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.bmd-form-errors {
  display: none;
  border: 1px solid rgba(251, 113, 133, .45);
  border-radius: 14px;
  background: rgba(127, 29, 29, .3);
  color: #ffe4e6;
  padding: 10px 12px;
}

.bmd-form-errors:not(:empty) {
  display: block;
}

@media (min-width: 760px) {
  .bmd-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.is-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .bamdad-portal-page {
    padding: 0;
  }

  .bmd-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main";
  }

  .bmd-withdrawal-summary {
    grid-template-columns: 1fr;
  }

  .bmd-sidebar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    display: block;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-inline-start: 0;
    border-top: 1px solid var(--bmd-line);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 13, 26, .96);
  }

  .bmd-main {
    grid-area: main;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .bmd-dashboard > .bmd-notice,
  .bmd-dashboard > .bmd-notice + .bmd-sidebar,
  .bmd-dashboard > .bmd-notice ~ .bmd-main {
    grid-column: 1;
    grid-row: auto;
  }

  .bmd-main > :not(.bmd-dashboard-topbar) {
    width: min(100%, calc(100% - 32px));
  }

  .bmd-dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    min-height: 64px;
    margin-bottom: 20px;
    background: rgba(7, 10, 18, .9);
    backdrop-filter: blur(18px);
    padding: 0 14px;
    border-bottom: 0;
  }

  .bmd-topbar-logo {
    display: block;
    flex: 0 0 auto;
  }

  .bmd-topbar-actions {
    gap: 8px;
  }

  .bmd-profile-dropdown {
    left: 0;
    min-width: min(210px, calc(100vw - 28px));
  }

  .bmd-topbar-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding: 0 8px;
  }

  .bmd-topbar-breadcrumb a,
  .bmd-topbar-breadcrumb span {
    display: none;
  }

  .bmd-topbar-breadcrumb strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: .96rem;
    font-weight: 900;
  }

  .bmd-release-steps,
  .bmd-platform-grid,
  .bmd-release-grid-aside,
  .bmd-release-segment-row,
  .bmd-release-service-grid,
  .bmd-release-two-cols,
  .bmd-review-grid,
  .bmd-release-actions {
    grid-template-columns: 1fr;
  }

  .bmd-release-grid-aside > .bmd-release-card,
  .bmd-release-grid-aside > .bmd-release-side-card {
    grid-column: auto;
    grid-row: auto;
  }

  .bmd-release-steps button {
    justify-content: flex-start;
    min-height: 40px;
    font-size: .86rem;
  }

  .bmd-release-cover-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bmd-cover-upload-wrap,
  .bmd-cover-upload {
    width: min(150px, 100%);
  }

  .bmd-release-cover-row > div:last-child {
    width: 100%;
  }

  .bmd-release-cover-row p {
    overflow-wrap: anywhere;
  }

  .bmd-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    padding-bottom: 0;
    margin-top: 0;
  }

  .bmd-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .bmd-sidebar a {
    flex: 0 0 72px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    white-space: nowrap;
    min-height: 56px;
    padding: 6px 4px;
    border-radius: 14px;
    font-size: .7rem;
    line-height: 1.2;
    text-align: center;
  }

  .bmd-sidebar a .material-symbols-rounded {
    font-size: 22px;
  }

  .bmd-sidebar a.is-active {
    background: rgba(139, 92, 246, .3);
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, .45) inset;
  }

  .bmd-sidebar a.is-active .material-symbols-rounded {
    color: #c084fc;
  }
  .bmd-sidebar-logo a{
      width: 50% !important;
      margin: 10px auto !important;
  }
  .bmd-brand,
  .bmd-sidebar-logo,
  .bmd-sidebar-profile,
  .bmd-sidebar-badges,
  .bmd-logout-form {
    display: none;
  }

  .bmd-release-head {
    align-items: end;
  }

  .bmd-release-head h1 {
    font-size: 1.65rem;
  }

  .bmd-release-card,
  .bmd-release-side-card,
  .bmd-form fieldset,
  .bmd-panel {
    padding: 14px;
  }

  .bmd-release-wizard .bmd-form-grid {
    grid-template-columns: 1fr;
  }

  .bmd-release-type-switch {
    grid-template-columns: 1fr;
  }

  .bmd-track-table {
    min-width: 0;
  }

  .bmd-track-table thead {
    display: none;
  }

  .bmd-track-table,
  .bmd-track-table tbody,
  .bmd-track-table tr,
  .bmd-track-table td {
    display: block;
    width: 100%;
  }

  .bmd-track-table tr {
    margin: 10px;
    border: 1px solid var(--bmd-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    padding: 10px;
  }

  .bmd-track-table td {
    border: 0;
    padding: 8px 0;
  }

  .bmd-track-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--bmd-muted);
    font-size: .76rem;
    font-weight: 900;
  }

  .bmd-table-wrap {
    overflow-x: auto;
  }

  .bmd-release-actions {
    position: sticky;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 60;
    background: rgba(7, 10, 18, .86);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bmd-line);
    border-radius: 16px;
    padding: 10px;
  }

  .bmd-release-actions .bmd-button {
    width: 100%;
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  .bmd-dashboard {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .bmd-main {
    width: 100%;
  }

  .bmd-main > :not(.bmd-dashboard-topbar) {
    width: min(920px, calc(100% - 44px));
  }

  .bmd-release-grid-aside {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .bmd-platform-grid,
  .bmd-release-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bmd-release-steps button {
    font-size: .9rem;
  }
}

@media (max-width: 860px) {
  /* Ensure the bottom of auth cards is always reachable above the mobile nav */
  .bmd-auth {
    margin-bottom: calc(80px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 700px) {
  .bmd-auth {
    padding: 18px;
  }

  .bmd-page-head,
  .bmd-alert,
  .bmd-notice,
  .bmd-auth-foot {
    display: grid;
  }

  .bmd-metrics,
  .bmd-profile-status,
  .bmd-check-grid,
  .bmd-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .bmd-metrics,
  .bmd-profile-status,
  .bmd-check-grid,
  .bmd-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Release detail view ─────────────────────────────────────────────── */
.bmd-page-head .bmd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .875rem;
  color: var(--bmd-muted);
}

.bmd-page-head .bmd-breadcrumb a {
  color: var(--bmd-violet);
  text-decoration: none;
}

.bmd-page-head .bmd-breadcrumb .material-symbols-rounded {
  font-size: 16px;
}

.bmd-release-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.bmd-status-note {
  border-color: rgba(245, 158, 11, .35);
  background: rgba(245, 158, 11, .07);
}

.bmd-status-note__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #fcd34d;
}

.bmd-status-note__header .material-symbols-rounded {
  font-size: 20px;
}

.bmd-status-note p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  line-height: 1.7;
}

.bmd-fieldset-disabled {
  opacity: .55;
  pointer-events: none;
}

.bmd-disabled-note {
  font-size: .75rem;
  font-weight: 400;
  color: var(--bmd-muted);
  margin-right: 6px;
}

.bmd-current-file {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  color: var(--bmd-muted);
  margin: 0 0 12px;
}

.bmd-current-file .material-symbols-rounded {
  font-size: 18px;
  color: var(--bmd-violet);
}

.bmd-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
}

.bmd-action-link .material-symbols-rounded {
  font-size: 16px;
}

.bmd-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ── Lyrics / rights per-track section (step 2) ─────────────────────── */
.bmd-lyrics-note {
  color: var(--bmd-muted);
  font-size: .875rem;
  margin: 0 0 12px;
  line-height: 1.6;
}

.bmd-lyric-item {
  border-top: 1px solid var(--bmd-line);
  padding-top: 20px;
  margin-top: 20px;
}

.bmd-lyric-item:first-child {
  border-top: none;
  padding-top: 16px;
  margin-top: 0;
}

.bmd-lyric-item__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--bmd-violet);
  margin: 0 0 12px;
  direction: ltr;
}

.bmd-track-lyrics-section {
  margin-top: 16px;
}

/* ── Track table genre select ────────────────────────────────────────── */
.bmd-track-table select {
  min-width: 130px;
  font-size: .8rem;
  padding: 6px 8px;
}

.bmd-track-table .bmd-ltr-input {
  min-width: 110px;
}

/* ── Step 4 review — platform pills & track list ────────────────────── */
.bmd-review-platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.bmd-rp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 92, 246, .14);
  border: 1px solid rgba(139, 92, 246, .3);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: .8rem;
  white-space: nowrap;
}

.bmd-rp-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}

.bmd-rp-sym {
  font-size: 16px !important;
  color: var(--bmd-accent);
}

.bmd-review-track-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bmd-review-track {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bmd-soft);
  border-radius: 8px;
  padding: 8px 12px;
}

.bmd-review-track-num {
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bmd-accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bmd-review-track-info strong {
  display: block;
  font-size: .88rem;
  direction: ltr;
  text-align: left;
}

.bmd-review-track-info small {
  color: var(--bmd-muted);
  font-size: .75rem;
  direction: ltr;
  display: block;
}

/* ── Step 2: explicit description hint ───────────────────────────────── */
.bmd-field-hint {
  display: block;
  margin-top: 5px;
  color: var(--bmd-muted);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
}

/* ── Country multi-select (step 3) ──────────────────────────────────── */
.bmd-country-multi-select {
  width: 100%;
  min-height: 180px;
  max-height: 260px;
  background: var(--bmd-card-strong);
  border: 1px solid var(--bmd-line);
  border-radius: 10px;
  color: var(--bmd-ink);
  font-size: .88rem;
  padding: 6px;
  margin-top: 10px;
  direction: rtl;
}

.bmd-country-multi-select option {
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.bmd-country-multi-select option:checked {
  background: var(--bmd-accent);
  color: #fff;
}

[data-bmd-country-select-wrap] small {
  display: block;
  margin-top: 6px;
  color: var(--bmd-muted);
  font-size: .78rem;
}

/* ── Schedule date wrap (step 3) ─────────────────────────────────────── */
[data-bmd-schedule-date-wrap] {
  margin-top: 12px;
}

[data-bmd-schedule-date-wrap] small {
  display: block;
  margin-top: 4px;
  color: var(--bmd-muted);
  font-size: .78rem;
}

/* ── Extra service icon (Instagram etc.) ─────────────────────────────── */
.bmd-extra-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Release detail audio player ─────────────────────────────────────── */
.bmd-audio-player {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--bmd-surface, #1e1e2e);
}

/* ── AI toggle card ─────────────────────────────────────────────────── */
.bmd-ai-toggle-card {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bmd-ai-toggle-card + [data-bmd-ai-section] {
  border-top: 1px solid var(--bmd-border, rgba(255,255,255,.08));
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-top: 0;
}

.bmd-field-hint-inline {
  font-size: .78rem;
  color: var(--bmd-muted);
  font-weight: 400;
  margin-right: 4px;
}

/* ── 30-day chart ───────────────────────────────────────────────────── */
.bmd-panel-chart { padding-bottom: 20px; }

.bmd-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.bmd-chart-header h2 { margin: 0; }

.bmd-metrics-sm {
  gap: 12px;
  margin-bottom: 20px;
}
.bmd-metrics-sm > div { padding: 14px 18px; }
.bmd-metrics-sm > div span { font-size: 1.5rem; }

.bmd-chartjs-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  min-height: 220px;
}

.bmd-chartjs-wrap--line {
  height: 250px;
}

.bmd-chartjs-wrap--bar {
  height: 300px;
}

.bmd-chartjs-wrap--pie {
  height: 300px;
}

.bmd-chartjs-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bmd-chart-empty-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--bmd-muted, rgba(255,255,255,.45));
  font-size: .9rem;
  margin-top: 16px;
}
.bmd-chart-empty-msg .material-symbols-rounded {
  font-size: 20px;
  opacity: .6;
}

/* ── Analytics KPI bar ──────────────────────────────────────────────── */
.bmd-analytics-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bmd-analytics-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bmd-card-bg, rgba(255,255,255,.05));
  border: 1px solid var(--bmd-border, rgba(255,255,255,.08));
  border-radius: 14px;
  padding: 18px 20px;
}

.bmd-analytics-kpi .material-symbols-rounded {
  font-size: 28px;
  color: rgba(139,92,246,.8);
  flex-shrink: 0;
}

.bmd-analytics-kpi strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.bmd-analytics-kpi small {
  font-size: .78rem;
  color: var(--bmd-muted, rgba(255,255,255,.45));
}

/* ── Analytics tabs ─────────────────────────────────────────────────── */
.bmd-analytics-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 2px solid rgba(139,92,246,.15);
  padding-bottom: 0;
}

.bmd-analytics-tabs button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--bmd-muted, rgba(255,255,255,.5));
  cursor: pointer;
  transition: color .18s, border-color .18s;
}

.bmd-analytics-tabs button.is-active {
  color: rgba(139,92,246,1);
  border-bottom-color: rgba(139,92,246,1);
}

/* ── Analytics table ───────────────────────────────────────────────── */
.bmd-analytics-tabs button,
.bmd-analytics-table,
.bmd-analytics-table th,
.bmd-analytics-table td {
  font-family: inherit;
}

.bmd-analytics-table th,
.bmd-analytics-table td {
  line-height: 1.9;
  vertical-align: middle;
}

.bmd-analytics-table .bmd-num {
  text-align: left;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bmd-analytics-table .bmd-num-green {
  color: #4ade80;
}

.bmd-analytics-table tfoot td {
  border-top: 1px solid rgba(139,92,246,.2);
  background: rgba(139,92,246,.06);
}

.bmd-sortable-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: color .16s ease, background-color .16s ease;
}

.bmd-sortable-table th::after {
  content: "";
  display: inline-block;
  margin-inline-start: 7px;
  color: var(--bmd-muted, rgba(255,255,255,.42));
  font-size: .78rem;
  line-height: 1;
}

.bmd-sortable-table th:hover,
.bmd-sortable-table th:focus {
  color: #fff;
  background: rgba(139,92,246,.08);
  outline: none;
}

.bmd-sortable-table th:hover::after,
.bmd-sortable-table th:focus::after {
  content: "↕";
}

.bmd-sortable-table th[data-sort-dir="asc"]::after {
  content: "↑";
  color: var(--bmd-accent, #a78bfa);
  font-weight: 800;
}

.bmd-sortable-table th[data-sort-dir="desc"]::after {
  content: "↓";
  color: var(--bmd-accent, #a78bfa);
  font-weight: 800;
}

/* ── Inline release bar ─────────────────────────────────────────────── */
.bmd-analytics-bar-inline {
  margin-top: 5px;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
  max-width: 200px;
}

.bmd-analytics-bar-inline div {
  height: 100%;
  background: linear-gradient(90deg, rgba(139,92,246,.8), rgba(139,92,246,.4));
  border-radius: 2px;
  min-width: 2px;
}

.bmd-platform-revenue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

@media (max-width: 760px) {
  .bmd-platform-revenue-grid {
    grid-template-columns: 1fr;
  }
}

.bmd-date-range-picker {
  position: relative;
  z-index: 5;
}

.bmd-date-range-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 190px;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.07);
  color: #fff;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.bmd-date-range-picker summary::-webkit-details-marker {
  display: none;
}

.bmd-date-range-picker summary .material-symbols-rounded {
  font-size: 19px;
}

.bmd-date-range-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  width: 240px;
  max-height: min(72vh, 620px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: #151428;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.28);
  direction: rtl;
}

.bmd-date-range-menu a,
.bmd-date-range-custom {
  display: block;
  padding: 11px 24px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: .95rem;
  text-align: right;
  font-weight: 500;
}

.bmd-date-range-menu a:hover,
.bmd-date-range-menu a.is-active {
  background: rgba(139,92,246,.18);
  color: #fff;
}

.bmd-date-range-menu hr {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.bmd-date-range-custom {
  display: grid;
  gap: 9px;
}

.bmd-date-range-custom label {
  display: grid;
  gap: 4px;
  font-size: .82rem;
  color: rgba(255,255,255,.68);
}

.bmd-date-range-custom input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 7px 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  direction: ltr;
  text-align: left;
  color-scheme: dark;
}

.bmd-date-range-custom strong {
  color: #fff;
}

.bmd-date-range-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.bmd-date-range-actions a,
.bmd-date-range-actions button {
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bmd-date-range-actions a {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}

.bmd-date-range-actions button {
  background: var(--bmd-accent, #8b5cf6);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.bmd-royalty-accordion {
  padding: 0;
  overflow: hidden;
}

.bmd-royalty-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
}

.bmd-royalty-accordion summary::-webkit-details-marker {
  display: none;
}

.bmd-royalty-accordion summary h2 {
  margin: 0;
}

.bmd-royalty-accordion summary span {
  border: 1px solid var(--bmd-border, rgba(255,255,255,.12));
  border-radius: 999px;
  padding: 5px 12px;
  color: #fff;
  font-size: .78rem;
}

.bmd-royalty-accordion[open] summary span {
  background: rgba(139,92,246,.18);
  border-color: rgba(139,92,246,.35);
}

.bmd-royalty-accordion .bmd-table-wrap {
  margin: 0 20px 20px;
}

.bmd-royalty-table {
  min-width: 680px;
}

.bmd-royalty-table th,
.bmd-royalty-table td {
  vertical-align: middle;
  line-height: 1.85;
}

.bmd-royalty-table td:nth-child(n+2),
.bmd-royalty-table th:nth-child(n+2) {
  text-align: left;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bmd-analytics-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bmd-muted, rgba(255,255,255,.4));
  padding: 20px 0;
  font-size: .95rem;
}

.bmd-analytics-empty .material-symbols-rounded {
  font-size: 22px;
  opacity: .5;
}

/* ── Terms checkbox ─────────────────────────────────────────────────── */
.bmd-terms-check {
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--bmd-muted, rgba(255,255,255,.6));
  line-height: 1.55;
}

.bmd-terms-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Floating Chat Widget ────────────────────────────────────── */
#bmd-cw-wrap {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
  direction: rtl;
}

#bmd-cw-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(139,92,246,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  flex-shrink: 0;
}
#bmd-cw-fab:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(139,92,246,.7); }
#bmd-cw-fab .material-symbols-rounded { font-size: 26px; }

#bmd-cw-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0e1a;
  padding: 0 3px;
}
#bmd-cw-badge.is-online {
  min-width: 14px;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55);
  animation: bmd-chat-online-pulse 1.55s ease-in-out infinite;
}
@keyframes bmd-chat-online-pulse {
  0%, 100% { opacity: .55; box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  50% { opacity: 1; box-shadow: 0 0 0 7px rgba(34,197,94,0); }
}

#bmd-cw-modal {
  display: none;
  flex-direction: column;
  width: 340px;
  max-height: 520px;
  background: rgba(8,12,24,.97);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.8);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.bmd-cw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(109,40,217,.12));
  flex-shrink: 0;
}
.bmd-cw-title { display: flex; align-items: center; gap: 10px; }
.bmd-cw-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #6b7280; flex-shrink: 0; transition: background .3s;
}
.bmd-cw-dot.is-online { background: #22c55e; box-shadow: 0 0 8px #22c55e99; animation: bmd-chat-online-pulse 1.55s ease-in-out infinite; }
.bmd-cw-name { font-weight: 700; font-size: 14px; color: #fff; }
.bmd-cw-status { font-size: 11px; color: rgba(255,255,255,.5); }
.bmd-cw-x {
  background: none; border: none; color: rgba(255,255,255,.45);
  cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 6px;
  line-height: 1; transition: color .2s; font-family: inherit;
}
.bmd-cw-x:hover { color: #fff; }

#bmd-cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 280px;
}

.bmd-cw-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.bmd-cw-msg--artist {
  align-self: flex-end;
  background: rgba(139,92,246,.22);
  border: 1px solid rgba(139,92,246,.35);
  border-bottom-right-radius: 3px;
  color: #e9d5ff;
}
.bmd-cw-msg--admin {
  align-self: flex-start;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-bottom-left-radius: 3px;
  color: rgba(255,255,255,.88);
}
.bmd-cw-t { font-size: 10px; color: rgba(255,255,255,.3); margin-top: 3px; }
.bmd-cw-img-link { display:block; overflow:hidden; border-radius:10px; }
.bmd-cw-img-link img { display:block; width:100%; max-height:180px; object-fit:cover; }
#bmd-cw-attach-preview {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(139,92,246,.12);
  color: rgba(255,255,255,.78);
  font-size: 11px;
  line-height: 1.5;
}

.bmd-cw-state {
  padding: 22px 16px 18px;
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.bmd-cw-state p { margin: 0; line-height: 1.5; }
.bmd-cw-state-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  border-radius: 14px;
  background: rgba(139,92,246,.18);
  border: 1px solid rgba(139,92,246,.4);
  color: #c4b5fd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}
.bmd-cw-state-btn:hover { background: rgba(139,92,246,.32); color: #e9d5ff; }

#bmd-cw-input {
  display: none;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  flex-wrap: wrap;
}
#bmd-cw-textarea {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  resize: none;
  font-family: inherit;
  min-height: 38px;
  max-height: 90px;
  line-height: 1.4;
}
#bmd-cw-textarea:focus { outline: none; border-color: rgba(139,92,246,.5); }
#bmd-cw-send, #bmd-cw-end {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity .2s;
}
#bmd-cw-send { background: linear-gradient(135deg,#8b5cf6,#6d28d9); color:#fff; }
#bmd-cw-end  { background: rgba(239,68,68,.18); border: 1px solid rgba(239,68,68,.3); color:#f87171; }
#bmd-cw-send:hover, #bmd-cw-end:hover { opacity: .82; }
#bmd-cw-send .material-symbols-rounded,
#bmd-cw-end  .material-symbols-rounded { font-size: 18px; }

/* inline trigger button for contact/other pages */
.bmd-cw-inline-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border-radius: 14px;
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.4);
  color: #c4b5fd;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.bmd-cw-inline-btn:hover { background: rgba(139,92,246,.28); color: #e9d5ff; }
.bmd-cw-inline-btn .material-symbols-rounded { font-size: 20px; }

/* guest info form inputs */
.bmd-cw-input-field {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #fff;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.bmd-cw-input-field:focus { border-color: rgba(139,92,246,.55); }
.bmd-cw-input-field.is-invalid { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239,68,68,.16); }
.bmd-cw-input-field::placeholder { color: rgba(255,255,255,.35); }

/* ── Math Captcha ── */
.bmd-captcha {
  display: block;
}

.bmd-captcha-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  flex-wrap: nowrap;
}

.bmd-captcha-q {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 11px 14px;
  background: rgba(139, 92, 246, .1);
  border: 1px solid rgba(139, 92, 246, .28);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
  user-select: none;
  min-height: 46px;
  box-sizing: border-box;
}

.bmd-captcha-input {
  flex: 0 0 88px;
  width: 88px;
  padding: 11px 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  text-align: center;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
  min-height: 46px;
}

.bmd-captcha-input:focus {
  border-color: rgba(139, 92, 246, .65);
  background: rgba(139, 92, 246, .08);
}

.bmd-captcha-input::placeholder {
  color: rgba(255, 255, 255, .28);
  font-size: 18px;
}

@media (max-width: 480px) {
  #bmd-cw-modal { width: calc(100vw - 28px); max-height: 80vh; }
  #bmd-cw-wrap { inset-inline-end: 14px; bottom: 80px; }
}

.bmd-required {
  color: #fb7185;
  font-weight: 800;
}

.bmd-release-status-note {
  display: block;
  margin-top: 6px;
  color: var(--bmd-muted);
  font-size: .78rem;
  line-height: 1.6;
  max-width: 220px;
}

.bmd-release-status-feed__list {
  display: grid;
  gap: 10px;
}

.bmd-release-status-feed__item {
  border: 1px solid var(--bmd-line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.bmd-release-status-feed__item strong {
  display: block;
  margin-bottom: 6px;
}

.bmd-release-status-feed__item p {
  margin: 0 0 8px;
  color: var(--bmd-muted);
  font-size: .88rem;
  line-height: 1.8;
}

.bmd-release-status-feed__item div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .8rem;
}
