/* ============================================================
   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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.32);
  background:
    linear-gradient(160deg, rgba(4,34,46, 0.92), rgba(0,13,18, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(238,246,250, 0.08),
    0 8px 18px rgba(0,13,18, 0.28);
  line-height: 1.15;
}

.gm-header-balance-main {
  color: #a8e6ff;
  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(238,246,250, 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: #101c26;
  border: 1px solid rgba(76,201,240, 0.55);
  background: linear-gradient(135deg, #4cc9f0, var(--gm-gold, #00fbff) 55%, #0c6e9c);
  box-shadow:
    0 10px 22px rgb(var(--gm-gold-rgb, 0 251 255) / 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: #eef6fa;
  border: 1px solid rgb(var(--gm-gold-rgb, 0 251 255) / 0.35);
  background: rgba(3,22,31, 0.72);
}

.auth-btn.gm-header-withdraw-btn:hover {
  border-color: rgba(76,201,240, 0.65);
  background: rgba(4,34,46, 0.9);
  color: #a8e6ff;
}

/* 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: #a8e6ff;
  border: 1px solid rgb(var(--gm-gold-rgb, 0 251 255) / 0.45);
  background:
    radial-gradient(circle at 30% 25%, rgba(76,201,240, 0.22), transparent 45%),
    linear-gradient(160deg, rgba(4,34,46, 0.98), rgba(0,13,18, 0.98));
  box-shadow: 0 8px 18px rgba(0,13,18, 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(76,201,240, 0.85);
  color: var(--gm-cyan-soft, #b8f4ff);
  box-shadow:
    0 0 0 3px rgba(76,201,240, 0.14),
    0 10px 22px rgba(0,13,18, 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.28);
  background:
    linear-gradient(165deg, rgba(4,34,46, 0.98), rgba(0,13,18, 0.99));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(238,246,250, 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.18);
  color: #a8e6ff;
  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: #eef6fa;
  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: var(--gm-gold, #00fbff);
}

.gm-account-dropdown-item:hover {
  background: rgb(var(--gm-gold-rgb, 0 251 255) / 0.12);
  color: #a8e6ff;
}

.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: #4cc9f0;
  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(238,246,250, 0.65);
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: #a8e6ff;
  background: rgb(var(--gm-gold-rgb, 0 251 255) / 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.4);
  background: rgba(4,34,46, 0.85);
  color: #a8e6ff;
  font-weight: 800;
  cursor: pointer;
}

.auth-otp-help {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(238,246,250, 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.45);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(3, 41, 55, 0.96), rgba(0,13,18, 0.96));
  color: #eef6fa;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgb(var(--gm-gold-rgb, 0 251 255) / 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.18);
}

.gm-live-support-fab-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, var(--gm-gold, #00fbff));
  color: #101c26;
  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: #a8e6ff;
}

.gm-live-support-fab-copy small {
  font-size: 11px;
  color: rgba(238,246,250, 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.35)) !important;
}
.gm-side-brand-text {
  font: 800 13px/1 "Rajdhani", "Inter", sans-serif;
  letter-spacing: 1.2px;
  color: #a8e6ff;
  text-transform: uppercase;
}
.gm-side-social-icons:empty {
  display: none !important;
}

/* Hesabim sidebar user meta fallbacks */
.gm-account-page :is(#financeOpsCard, #panelDeposit, #panelWithdraw, #recentCard, #sportBetsCard, .dw-tabs) {
  scroll-margin-top: calc(var(--gm-top) + 20px);
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

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

.sidebar-user-meta,
.sidebar-user-last {
  color: rgba(238,246,250, 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 rgb(var(--gm-gold-rgb, 0 251 255) / 0.3);
  background: rgba(3,22,31, 0.55);
  color: #a8e6ff;
  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: #4cc9f0;
    font-size: 20px;
  }
}

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


/* ocean3n - mobile chrome polish (guest auth labels restored in ocean3n) */
@media (max-width: 980px) {
  .gm-brand-cluster {
    margin-left: 0; /* topbar-row already pads for fixed hamburger */
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .topbar .brand img,
  .gm-brand-cluster .brand img {
    height: 48px;
    max-height: 48px;
    max-width: min(150px, 34vw);
    width: auto;
  }
  .auth-links.auth-links-guest,
  .auth-links.auth-links-member {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .gm-side-toggle {
    border-color: rgb(var(--gm-accent-rgb, 0 229 255) / 0.35) !important;
    color: var(--gm-cyan-soft, #b8f4ff) !important;
    background: linear-gradient(160deg, rgba(6,26,38,.95), rgba(2,11,18,.92)) !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.28);
  }
}

@media (max-width: 640px) {
  .gm-brand-cluster {
    margin-left: 0;
  }
  .topbar .brand img,
  .gm-brand-cluster .brand img {
    height: 44px;
    max-height: 44px;
    max-width: min(128px, 32vw);
  }
  .gm-header-balance {
    max-width: 42vw;
  }
  .gm-header-balance-main {
    font-size: 12px;
  }
}

/* ocean3n - mobile chrome leftovers */
@media (max-width: 980px) {
  .topbar .auth-btn.btn-register,
  .auth-links .auth-btn.btn-register,
  .gm-header .auth-btn.btn-register {
    background: linear-gradient(135deg, #00fbff, #00e5ff 45%, #0096c7) !important;
    color: #04141c !important;
    border-color: transparent !important;
  }
  .topbar .auth-btn.btn-login,
  .auth-links .auth-btn.btn-login {
    border-color: rgb(0 229 255 / .4) !important;
    color: #b8f4ff !important;
    background: rgba(6,26,38,.85) !important;
  }
  .header-deposit-btn,
  .gm-header-deposit,
  .btn-deposit-header,
  a.deposit-btn,
  .topbar .deposit-btn {
    background: linear-gradient(135deg, #00fbff, #00e5ff 45%, #0096c7) !important;
    color: #04141c !important;
    border-color: transparent !important;
  }
  .gm-header-balance,
  .balance-chip,
  .header-balance {
    border-color: rgb(0 229 255 / .35) !important;
    color: #e7f8ff !important;
  }
}

@media (max-width: 640px) {
  .auth-links.auth-links-member .auth-btn span.btn-label,
  .auth-links.auth-links-member .auth-btn .label {
    display: none;
  }
  .gm-side-toggle {
    width: 40px;
    height: 40px;
  }
}


/* ============================================================
   ocean3n - mobile guest navbar UX (2026-09-12)
   Root cause of empty Giriş/Kayıt squares:
     ocean3j hid .auth-links-guest .auth-btn span + forced 40x40 boxes,
     while theme @600px also hides guest icons → empty cyan placeholders.
   Also: brand margin-left stacked on topbar left-pad → tiny centered logo.
   ============================================================ */
@media (max-width: 980px) {
  .topbar .auth-links.auth-links-guest .auth-btn span,
  .auth-links.auth-links-guest .auth-btn span {
    display: inline !important;
    font-size: inherit;
    line-height: 1.2;
    color: inherit;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
    width: auto;
    max-width: none;
  }
  .topbar .auth-links.auth-links-guest .auth-btn,
  .auth-links.auth-links-guest .auth-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none;
    height: auto !important;
    min-height: 40px;
    padding: 8px 12px !important;
    border-radius: 10px;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: visible;
  }
  /* Prefer text labels on narrow; icons optional if theme allows */
  .topbar .auth-links.auth-links-guest .auth-btn.btn-login,
  .auth-links.auth-links-guest .auth-btn.btn-login {
    border-color: rgb(0 229 255 / .45) !important;
    color: #b8f4ff !important;
    background: rgba(6, 26, 38, .9) !important;
  }
  .topbar .auth-links.auth-links-guest .auth-btn.btn-register,
  .auth-links.auth-links-guest .auth-btn.btn-register {
    background: linear-gradient(135deg, #00fbff, #00e5ff 45%, #0096c7) !important;
    color: #04141c !important;
    border-color: transparent !important;
  }
  .topbar-row {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .topbar .auth-links.auth-links-guest .auth-btn,
  .auth-links.auth-links-guest .auth-btn {
    min-height: 38px;
    padding: 7px 10px !important;
    font-size: 11px;
  }
  .topbar .brand img,
  .gm-brand-cluster .brand img {
    height: 44px !important;
    max-height: 44px !important;
    max-width: min(120px, 30vw) !important;
    width: auto !important;
  }
}

@media (max-width: 380px) {
  .topbar .auth-links.auth-links-guest .auth-btn,
  .auth-links.auth-links-guest .auth-btn {
    padding: 7px 8px !important;
    font-size: 10px;
  }
  .topbar .brand img,
  .gm-brand-cluster .brand img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: min(100px, 28vw) !important;
  }
}

/* ============================================================
   ocean3n - sports auth-segment + member icon safety (2026-09-12)
   - Mirror guest label restore for legacy .auth-segment heads
   - When member deposit/withdraw labels hide on mobile, keep icons
   ============================================================ */
@media (max-width: 980px) {
  .topbar .auth-segment span,
  .auth-split .auth-segment span,
  .auth-links .auth-segment span {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
  }
  .topbar .auth-segment,
  .auth-split .auth-segment {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 36px;
    padding: 7px 12px !important;
    white-space: nowrap;
  }
  /* Member compact chips: never hide BOTH label and icon */
  .auth-btn.gm-header-deposit-btn i,
  .auth-btn.gm-header-withdraw-btn i,
  .gm-header-deposit-btn i,
  .gm-header-account-btn i,
  .auth-links.auth-links-member .auth-btn i {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 480px) {
  .topbar .auth-segment span,
  .auth-split .auth-segment span {
    display: inline !important;
  }
}
