/* ============================================================
   GAMADORBET — member chrome + missing UI polish
   Header (logged-in balance/account), auth form helpers, fab.
   ============================================================ */

/* Brand cluster next to logo */
.gm-brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Logged-in auth row */
.auth-links.auth-links-member {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.auth-links.auth-links-guest {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Balance pill */
.gm-header-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(160deg, rgba(0, 43, 18, 0.92), rgba(0, 8, 0, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 230, 0.08),
    0 8px 18px rgba(0, 8, 0, 0.28);
  line-height: 1.15;
}

.gm-header-balance-main {
  color: #ffe08a;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.gm-header-balance-bonus {
  color: rgba(245, 241, 230, 0.62);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* Deposit / withdraw header buttons */
.auth-btn.gm-header-deposit-btn,
.auth-btn.gm-header-withdraw-btn,
.auth-btn.gm-header-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-btn.gm-header-deposit-btn {
  padding: 0 14px;
  color: #18120a;
  border: 1px solid rgba(240, 200, 80, 0.55);
  background: linear-gradient(135deg, #f0c850, #d4af37 55%, #8a5a08);
  box-shadow:
    0 10px 22px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 247, 214, 0.45);
}

.auth-btn.gm-header-deposit-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-btn.gm-header-withdraw-btn {
  padding: 0 14px;
  color: #f5f1e6;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 26, 11, 0.72);
}

.auth-btn.gm-header-withdraw-btn:hover {
  border-color: rgba(240, 200, 80, 0.65);
  background: rgba(0, 43, 18, 0.9);
  color: #ffe08a;
}

/* Circular account button */
.gm-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.auth-btn.gm-header-account-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  color: #ffe08a;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(240, 200, 80, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(0, 43, 18, 0.98), rgba(0, 8, 0, 0.98));
  box-shadow: 0 8px 18px rgba(0, 8, 0, 0.35);
}

.auth-btn.gm-header-account-btn i {
  font-size: 16px;
  line-height: 1;
}

.auth-btn.gm-header-account-btn:hover,
.gm-account-menu.open .auth-btn.gm-header-account-btn,
.auth-btn.gm-header-account-btn[aria-expanded="true"] {
  border-color: rgba(240, 200, 80, 0.85);
  color: #fff7d6;
  box-shadow:
    0 0 0 3px rgba(240, 200, 80, 0.14),
    0 10px 22px rgba(0, 8, 0, 0.4);
}

/* Account dropdown */
.gm-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  min-width: 210px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background:
    linear-gradient(165deg, rgba(0, 43, 18, 0.98), rgba(0, 8, 0, 0.99));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(245, 241, 230, 0.08);
}

.gm-account-dropdown[hidden] {
  display: none !important;
}

.gm-account-dropdown-user {
  margin: 0 0 8px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  color: #ffe08a;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.gm-account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f5f1e6;
  text-decoration: none;
  font-family: "Rajdhani", "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.gm-account-dropdown-item i {
  width: 16px;
  text-align: center;
  color: #d4af37;
}

.gm-account-dropdown-item:hover {
  background: rgba(212, 175, 55, 0.12);
  color: #ffe08a;
}

.gm-account-dropdown-logout {
  margin-top: 4px;
  color: #f0b4bc;
}

.gm-account-dropdown-logout i {
  color: #e51b2f;
}

.gm-account-dropdown-logout:hover {
  background: rgba(177, 18, 38, 0.18);
  color: #ffd7dc;
}

/* Password field + toggle (auth modal) */
.auth-field-password .auth-input-wrap,
.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-field-password .auth-input-wrap > i,
.auth-input-wrap > i.fa-lock,
.auth-input-wrap > i.fa-solid {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #f0c850;
  pointer-events: none;
}

.auth-field-password input,
.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="text"] {
  width: 100%;
  padding-right: 48px !important;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 241, 230, 0.65);
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: #ffe08a;
  background: rgba(212, 175, 55, 0.1);
}

.auth-otp-field input {
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

.auth-otp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.auth-otp-input-wrap {
  position: relative;
}

.auth-otp-send-btn {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(0, 43, 18, 0.85);
  color: #ffe08a;
  font-weight: 800;
  cursor: pointer;
}

.auth-otp-help {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(245, 241, 230, 0.55);
}

/* Live support FAB */
.gm-live-support-fab {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 880;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 58, 28, 0.96), rgba(0, 8, 0, 0.96));
  color: #f5f1e6;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gm-live-support-fab:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(212, 175, 55, 0.18);
}

.gm-live-support-fab-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0c850, #d4af37);
  color: #18120a;
  font-size: 16px;
}

.gm-live-support-fab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.gm-live-support-fab-copy strong {
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #ffe08a;
}

.gm-live-support-fab-copy small {
  font-size: 11px;
  color: rgba(245, 241, 230, 0.7);
  text-transform: lowercase;
}

/* Sidebar brand / social — see also gamador-wireframe.css .gm-side-foot */
.gm-side-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  max-width: 180px;
}
.gm-side-brand-logo {
  display: block !important;
  width: 92px !important;
  height: auto !important;
  max-height: 92px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 6px 14px rgba(212, 175, 55, 0.35)) !important;
}
.gm-side-brand-text {
  font: 800 13px/1 "Rajdhani", "Inter", sans-serif;
  letter-spacing: 1.2px;
  color: #ffe08a;
  text-transform: uppercase;
}
.gm-side-social-icons:empty {
  display: none !important;
}

/* Hesabim sidebar user meta fallbacks */
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-user-name {
  color: #f5f1e6;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  word-break: break-word;
}

.sidebar-user-meta,
.sidebar-user-last {
  color: rgba(245, 241, 230, 0.55);
  font-size: 11px;
  font-weight: 600;
}

.profile-strip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gm-account-page {
  min-height: 40vh;
}

/* Header pills (generic) */
.gm-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 26, 11, 0.55);
  color: #ffe08a;
  font-size: 12px;
  font-weight: 800;
}

/* Mobile: compact member chrome */
@media (max-width: 980px) {
  .auth-links.auth-links-member {
    gap: 6px;
  }

  .auth-btn.gm-header-deposit-btn span,
  .auth-btn.gm-header-withdraw-btn span {
    display: none;
  }

  .auth-btn.gm-header-deposit-btn,
  .auth-btn.gm-header-withdraw-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
  }

  .gm-header-balance {
    padding: 5px 8px;
  }

  .gm-header-balance-main {
    font-size: 13px;
  }

  .gm-header-balance-bonus {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .gm-header-balance-bonus {
    display: none;
  }

  .auth-btn.gm-header-withdraw-btn {
    display: none;
  }

  .gm-live-support-fab-copy {
    display: none;
  }

  .gm-live-support-fab {
    right: 12px;
    bottom: 76px;
    padding: 0;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }

  .gm-live-support-fab-icon {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #f0c850;
    font-size: 20px;
  }
}

@media (min-width: 981px) {
  .gm-live-support-fab {
    bottom: 28px;
  }
}
