/* Dashboard shell: site header/footer + Aurum flat sidebar (overrides lin2web legacy sidebar) */

button.refresh_link {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

html.dashboard-root {
  height: auto !important;
  min-height: 100%;
}

body.page-dashboard {
  font-family: var(--font);
  height: auto !important;
  min-height: 100vh;
}

/* lin2web sets all p to #bebebe — restore readable copy in main column */
body.page-dashboard .auth-content p,
body.page-dashboard .auth-content-main p,
body.page-dashboard .card p {
  color: rgba(232, 230, 227, 0.92);
}

body.page-dashboard .dashboard-layout {
  position: relative;
  /*
   * Default keeps scrolled dashboard content under the fixed .site-header (z-index 50).
   * Mobile off-canvas sidebar is raised while open — see :has() rule below — so the drawer
   * stacks above the header instead of painting underneath it (broken overlap / layering).
   */
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

body.page-dashboard .dashboard-shell {
  display: flex;
  align-items: flex-start;
  gap: 28px 32px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  box-sizing: border-box;
}

/*
 * lin2web.css legacy cabinet:
 * - .main-content { margin-left:auto; width:calc(...); padding:40px; height:100%; min-height:100vh; overflow:auto }
 * - Second scrollbar inside .main-content changes column width → sidebar + main “jump” together.
 * - overflow:auto also reflows when Pay slider/tooltips change height.
 * Kill all of it for the v1 dashboard (sidebar + shell padding handle layout).
 */
body.page-dashboard .main-content {
  margin-left: 0 !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-x: visible !important;
  align-self: flex-start;
}

body.page-dashboard .main-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
}

body.page-dashboard .auth-content {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.page-dashboard .dashboard-shell > aside.sidebar.dashboard-sidebar {
  align-self: flex-start;
}

/* Desktop: sidebar in flow, no full-height brown rail */
@media (min-width: 961px) {
  body.page-dashboard aside.sidebar.dashboard-sidebar {
    position: static !important;
    width: 232px;
    min-width: 200px;
    flex-shrink: 0;
    height: auto !important;
    max-height: none !important;
    min-height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none !important;
    z-index: 10;
    padding: 0;
  }

  body.page-dashboard .main-content {
    flex: 1;
    min-width: 0;
    min-height: 0 !important;
    padding: 0 0 24px !important;
    overflow: visible !important;
  }
}

/* Sidebar inner: compact user block — nudge whole column down from header */
body.page-dashboard .dashboard-sidebar .sidebar-left {
  justify-content: flex-start;
  gap: 8px;
  padding-top: clamp(20px, 4vw, 36px);
}

body.page-dashboard .dashboard-sidebar .auth_block_top {
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0;
}

/* Sidebar server switcher (MASTER ACCOUNT) */
body.page-dashboard .dashboard-sidebar .server-switcher__current {
  position: relative;
  background: rgba(22, 20, 19, 0.95) !important;
  background-image: none !important;
  color: rgba(236, 232, 225, 0.92) !important;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 9px 14px;
  min-height: 52px;
  box-shadow: none;
}

body.page-dashboard .dashboard-sidebar .server-switcher__current::before {
  display: none !important;
}

body.page-dashboard .dashboard-sidebar .server-switcher__current span {
  display: block;
  line-height: 1.15;
  color: inherit;
  font-weight: 700;
}

body.page-dashboard .dashboard-sidebar .server-switcher__current .arrow-down {
  border-color: rgba(236, 232, 225, 0.92) !important;
  border-width: 0 2px 2px 0;
  padding: 4px;
  right: 14px;
  top: 20px;
}

body.page-dashboard .dashboard-sidebar .server-switcher__item {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 20, 19, 0.95);
  color: rgba(236, 232, 225, 0.92);
}

body.page-dashboard .dashboard-sidebar .server-switcher__item::before {
  display: none !important;
}

/* Dashboard header CTAs: borderless (Download / Language / Account) */
body.page-dashboard .site-header .header-actions .btn-download-header,
body.page-dashboard .site-header .header-actions .btn-lang-header,
body.page-dashboard .site-header .header-actions .btn-account-header,
body.page-dashboard .site-header .header-actions .header-account-trigger,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
}

body.page-dashboard .site-header .header-actions .btn-download-header:hover,
body.page-dashboard .site-header .header-actions .btn-lang-header:hover,
body.page-dashboard .site-header .header-actions .btn-account-header:hover,
body.page-dashboard .site-header .header-actions .header-account-trigger:hover,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:hover,
body.page-dashboard .site-header .header-actions .btn-download-header:focus-visible,
body.page-dashboard .site-header .header-actions .btn-lang-header:focus-visible,
body.page-dashboard .site-header .header-actions .btn-account-header:focus-visible,
body.page-dashboard .site-header .header-actions .header-account-trigger:focus-visible,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:focus-visible,
body.page-dashboard .site-header .header-actions .nav-item-wrap--lang.is-open .btn-lang-header,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger--authed {
  border: none !important;
  box-shadow: none !important;
  background: rgba(243, 163, 42, 0.08) !important;
  color: #fff !important;
  filter: none !important;
}

body.page-dashboard .site-header .header-actions .btn-download-header:hover,
body.page-dashboard .site-header .header-actions .btn-download-header:focus-visible,
body.page-dashboard .site-header .header-actions .btn-lang-header:hover,
body.page-dashboard .site-header .header-actions .btn-lang-header:focus-visible,
body.page-dashboard .site-header .header-actions .nav-item-wrap--lang.is-open .btn-lang-header {
  color: var(--gold-bright) !important;
}

body.page-dashboard .site-header .header-actions .btn-lang-header:hover .btn-lang-header-code,
body.page-dashboard .site-header .header-actions .btn-lang-header:focus-visible .btn-lang-header-code,
body.page-dashboard .site-header .header-actions .nav-item-wrap--lang.is-open .btn-lang-header .btn-lang-header-code {
  color: var(--gold-bright) !important;
}

body.page-dashboard .site-header .header-actions .btn-account-header:hover .btn-account-header-text,
body.page-dashboard .site-header .header-actions .btn-account-header:focus-visible .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger:hover .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger:focus-visible .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:hover .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:focus-visible .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:hover .btn-account-header-email,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:focus-visible .btn-account-header-email,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger .btn-account-header-text,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger--authed .btn-account-header-text,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger--authed .btn-account-header-email {
  color: var(--gold-bright) !important;
}

body.page-dashboard .site-header .header-actions .btn-account-header:hover svg:first-of-type,
body.page-dashboard .site-header .header-actions .btn-account-header:focus-visible svg:first-of-type,
body.page-dashboard .site-header .header-actions .header-account-trigger:hover svg:first-of-type,
body.page-dashboard .site-header .header-actions .header-account-trigger:focus-visible svg:first-of-type,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:hover svg:first-of-type,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:focus-visible svg:first-of-type,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger svg:first-of-type,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger--authed svg:first-of-type,
body.page-dashboard .site-header .header-actions .btn-account-header:hover .chev,
body.page-dashboard .site-header .header-actions .btn-account-header:focus-visible .chev,
body.page-dashboard .site-header .header-actions .header-account-trigger:hover .chev,
body.page-dashboard .site-header .header-actions .header-account-trigger:focus-visible .chev,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:hover .chev,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed:focus-visible .chev,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger .chev,
body.page-dashboard .site-header .header-actions .nav-item-wrap--account.is-open .header-account-trigger--authed .chev {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.page-dashboard .site-header .header-actions .header-account-trigger--authed .btn-account-header-text,
body.page-dashboard .site-header .header-actions .header-account-trigger--authed .btn-account-header-email {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.page-dashboard .site-header .header-actions .header-account-trigger--authed .btn-account-header-kicker {
  color: var(--gold) !important;
}

/* Header master-account trigger inside dashboard: match main-site dark variant */
body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed .btn-account-header-kicker {
  color: var(--gold) !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed .btn-account-header-email {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed svg:first-of-type {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed .chev {
  color: rgba(255, 255, 255, 0.85) !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed:hover,
body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed:focus-visible {
  border: none !important;
  background: rgba(243, 163, 42, 0.1) !important;
  color: #fff !important;
}

body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed:hover .btn-account-header-email,
body.page-dashboard .nav-item-wrap--account.is-on-account-shell .header-account-trigger--authed:focus-visible .btn-account-header-email,
body.page-dashboard .nav-item-wrap--account.is-on-account-shell.is-open .header-account-trigger--authed .btn-account-header-email {
  color: var(--gold-bright) !important;
}

/* Language dropdown: keep above dashboard shell / sidebar stacking */
body.page-dashboard .site-header .header-actions .nav-item-wrap--lang .dropdown-panel--lang {
  z-index: 250;
}

/* Restore dropdown arrow for My Warehouse account selects (overridden by global form-control background) */
body.page-dashboard #send-to-game .send-to-game select.form-control,
body.page-dashboard #warehouse .send-to-game select.form-control {
  background-image: linear-gradient(45deg, transparent 50%, rgba(225, 216, 198, 0.95) 50%),
    linear-gradient(135deg, rgba(225, 216, 198, 0.95) 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50% !important;
  background-size: 5px 5px, 5px 5px !important;
  background-repeat: no-repeat !important;
  padding-right: 36px !important;
}

/* Aurum nav: icon + label, gold active — no decor strips / arrows */
body.page-dashboard .dashboard-sidebar .sidebar-menu {
  height: auto;
  flex: 0 0 auto;
  gap: 2px;
  padding: 0;
  list-style: none;
  margin: 0;
}

/* Space below profile divider before first item (Profile) — not on bottom group */
body.page-dashboard .dashboard-sidebar ul.sidebar-menu:not(.bottom) {
  padding-top: 14px;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu.bottom {
  height: auto;
  padding: 16px 0 0;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-dashboard .dashboard-sidebar .sidebar-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a,
body.page-dashboard .dashboard-sidebar form.logout button {
  padding: 10px 6px 10px 4px;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(232, 230, 227, 0.88);
  border-radius: 8px;
  max-height: none;
  flex-grow: 0;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a::before,
body.page-dashboard .dashboard-sidebar .sidebar-menu a::after {
  display: none !important;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a:hover {
  color: var(--gold);
  background: rgba(243, 163, 42, 0.06);
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a.active {
  color: var(--gold);
  background: transparent;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a svg,
body.page-dashboard .dashboard-sidebar .sidebar-menu a img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

body.page-dashboard .dashboard-sidebar .sidebar-balance-amount {
  color: rgba(120, 240, 160, 0.95);
  font-weight: 700;
}

body.page-dashboard .dashboard-sidebar .sidebar-menu a.active svg {
  color: var(--gold);
  opacity: 1;
}

body.page-dashboard .dashboard-sidebar form.logout {
  margin: 0;
}

body.page-dashboard .dashboard-sidebar form.logout button {
  width: 100%;
  padding-left: 4px;
  justify-content: flex-start;
  font-weight: 600;
  text-transform: none;
  color: rgba(255, 130, 130, 0.95);
}

body.page-dashboard .dashboard-sidebar form.logout button::before {
  display: none !important;
}

body.page-dashboard .dashboard-sidebar form.logout button:hover {
  color: #ff9e9e;
  background: rgba(255, 80, 80, 0.08);
}

/* Mobile drawer: keep lin2web off-canvas behaviour */
@media (max-width: 960px) {
  /*
   * While the cabinet sidebar is open, lift the whole dashboard <main> above .site-header.
   * Otherwise position:fixed .top_menu stays inside a z-index:1 stacking context and renders
   * under the fixed header (logo stays on top of the drawer — looks “broken”).
   */
  body.page-dashboard:has(aside.sidebar.top_menu.active) .dashboard-layout {
    z-index: 60;
  }

  /* Same stacking fix when :has() is unsupported — assets-l2aurum/js/app.js toggles .dashboard-menu-open */
  body.page-dashboard.dashboard-menu-open .dashboard-layout {
    z-index: 60;
  }

  body.page-dashboard .dashboard-shell {
    flex-direction: column;
    padding-top: 12px;
    gap: 0;
  }

  /*
   * Cabinet toggle: keep it on the right edge so it does not sit on top of the drawer panel
   * (same grey square / X as lin2web — was overlapping e.g. Balance row).
   */
  body.page-dashboard .dashboard-shell > .gw-burger.navigation__burger {
    align-self: flex-end;
    margin-left: auto;
    margin-bottom: 12px;
    flex-shrink: 0;
    z-index: 10001;
  }

  body.page-dashboard aside.sidebar.dashboard-sidebar {
    background: rgba(14, 12, 10, 0.97);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* First menu row clears notch when drawer stacks above the fixed header */
  body.page-dashboard aside.sidebar.top_menu.dashboard-sidebar.active .sidebar-left {
    padding-top: max(
      clamp(20px, 4vw, 36px),
      calc(12px + env(safe-area-inset-top, 0px))
    );
  }

  body.page-dashboard .main-content {
    width: 100% !important;
    padding: 8px 0 0 !important;
  }
}

/* Account history (and same nav) — tab row: grid instead of one cramped flex row */
body.page-dashboard .auth-content-main > ul.stats-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

body.page-dashboard .auth-content-main > ul.stats-menu li {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

body.page-dashboard .auth-content-main > ul.stats-menu li a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 10px 10px;
  border-radius: 8px !important;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}

body.page-dashboard .auth-content-main > ul.stats-menu li:first-child a,
body.page-dashboard .auth-content-main > ul.stats-menu li:first-child a::before,
body.page-dashboard .auth-content-main > ul.stats-menu li:last-child a,
body.page-dashboard .auth-content-main > ul.stats-menu li:last-child a::before {
  border-radius: 8px !important;
}

body.page-dashboard .auth-content-main > ul.stats-menu a svg {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}

/* Balance / Pay — bonus chip (+N) on gold fill: dark text for contrast */
body.page-dashboard .payment_bonus_price {
  color: #1a1208;
}

body.page-dashboard .payment_bonus_price #payment-bonus {
  color: inherit;
  font-weight: 700;
}

/* Donate page: keep range/tooltip lower so they don't overlap amount input */
body.page-dashboard #pay .payment__input {
  margin-bottom: 14px;
}

body.page-dashboard #pay .payment__range {
  margin-top: 16px !important;
}

/* noUi tooltip appears above handle by default; force it below the rail */
body.page-dashboard #pay .payment__range .noUi-tooltip {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translate(-50%, 0);
}

/* Pay page redesign */
body.page-dashboard #pay.card {
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(228, 167, 76, 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(162, 105, 24, 0.22) 0%, rgba(31, 25, 21, 0.92) 46%, rgba(22, 19, 16, 0.95) 100%),
    linear-gradient(180deg, rgba(43, 35, 28, 0.9) 0%, rgba(24, 20, 17, 0.94) 100%);
}

body.page-dashboard #pay #payment-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 56px;
  max-width: 860px;
  margin: 0 auto;
}

body.page-dashboard #pay .donate-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-dashboard #pay .donate-title-block p,
body.page-dashboard #pay .price_donate {
  margin: 0;
  font-size: 15px;
  color: rgba(228, 224, 217, 0.9);
}

body.page-dashboard #pay .price_donate + .price_donate {
  margin-top: 2px;
}

body.page-dashboard #pay .pay-currency {
  gap: 24px;
}

body.page-dashboard #pay .curr-item .curr_symbol {
  color: #f0cc7b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-dashboard #pay .pay-currency .currency {
  margin-top: 2px;
  color: rgba(241, 236, 228, 0.95);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

body.page-dashboard #pay .payment__input {
  align-items: stretch;
  gap: 0;
}

body.page-dashboard #pay .payment-pay input.form-control {
  height: 46px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(27, 24, 22, 0.94);
  color: #f2f0ec;
}

body.page-dashboard #pay .payment_bonus_price {
  min-width: 64px;
  height: 46px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 0;
  border-right: 0;
  border-top: 1px solid rgba(235, 190, 94, 0.75);
  border-bottom: 1px solid rgba(235, 190, 94, 0.75);
  background: linear-gradient(180deg, rgba(244, 206, 120, 0.98) 0%, rgba(231, 176, 74, 0.98) 100%);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

/* Make the input row look like one grouped control */
body.page-dashboard #pay .payment__input > input.form-control:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

body.page-dashboard #pay .payment__input > .btn-gray-no-border.open-popup.promo:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

body.page-dashboard #pay .btn-gray-no-border.open-popup.promo {
  min-width: 170px;
  height: 46px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ddd8cf;
  text-transform: uppercase;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.page-dashboard #pay .btn-gray-no-border.open-popup.promo:hover {
  color: #f3cd77;
  border-color: rgba(243, 201, 105, 0.85);
}

body.page-dashboard #pay .payment__range.noUi-target {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.24);
}

body.page-dashboard #pay .payment__range.noUi-horizontal {
  height: 8px;
  margin-bottom: 52px;
}

body.page-dashboard #pay .payment__range.noUi-horizontal .noUi-handle {
  width: 24px;
  height: 24px;
  top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #f4ca6a 0%, #e1a83b 100%);
}

body.page-dashboard #pay .payment_select {
  gap: 10px;
}

body.page-dashboard #pay .pay_method {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.14);
}

body.page-dashboard #pay .pay_method.active {
  border: 1px solid rgba(238, 190, 94, 0.9);
  box-shadow: inset 0 0 0 1px rgba(238, 190, 94, 0.18);
}

body.page-dashboard #pay .pay_method img {
  height: 46px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

body.page-dashboard #pay .login_button .btn-primary {
  height: 48px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
}

body.page-dashboard #pay .login_button .btn-primary:hover {
  filter: brightness(1.08);
}

body.page-dashboard #pay .total_text {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(228, 223, 214, 0.94);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

body.page-dashboard #pay #payment_bonus_list .donate-title-block p {
  font-size: 18px;
}

body.page-dashboard #pay .bonus-item {
  align-items: center;
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.page-dashboard #pay .bonus-item p {
  margin: 0;
  font-size: 18px;
  color: rgba(243, 239, 231, 0.94);
  text-transform: uppercase;
}

body.page-dashboard #pay .bonus-item p small {
  color: rgba(208, 201, 189, 0.9);
  font-size: 0.88em;
  letter-spacing: 0.03em;
}

body.page-dashboard #pay .bonus-item span {
  color: #f0cb76;
  font-weight: 700;
}

@media (max-width: 1080px) {
  body.page-dashboard #pay #payment-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Top bar: Balance + actions (+ optional Season bonus) */
body.page-dashboard .auth-main-link.auth-main-link--balance-actions {
  grid-template-columns: auto auto minmax(0, 1fr);
  column-gap: 20px;
}

body.page-dashboard .auth-main-top-item--balance {
  grid-column: 1;
  flex: 0 0 auto;
  min-width: 0;
  justify-self: start;
}

body.page-dashboard .auth-main-top-item--balance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  grid-column: 2;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions {
  margin-left: 0;
  justify-content: flex-start;
  width: auto;
}

body.page-dashboard .auth-main-top-item--season-bonus {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
}

/* Legacy class aliases */
body.page-dashboard .auth-main-link.auth-main-link--two-cols {
  grid-template-columns: repeat(2, 1fr);
}

body.page-dashboard .auth-main-link.auth-main-link--one-col {
  grid-template-columns: 1fr;
}

/* Dashboard top metrics bar */
body.page-dashboard .auth-main-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--dash-card-border);
  background: var(--dash-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.page-dashboard .auth-main-link::before,
body.page-dashboard .auth-main-link::after {
  display: none;
}

body.page-dashboard .auth-main-top-item {
  min-width: 0;
  padding: 4px 14px;
}

body.page-dashboard .auth-main-top-item.left::before {
  display: none;
}

body.page-dashboard .auth-main-top-item .auth_donate_coins {
  gap: 12px;
  min-width: 0;
}

body.page-dashboard .auth-main-top-item .refresh_link {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.12);
}

body.page-dashboard .auth-main-top-item .refresh_link svg {
  width: 24px;
  height: 24px;
}

/* Balance icon has extra whitespace in the glyph, scale it up to match Gift Box visually */
body.page-dashboard .auth-main-link > .auth-main-top-item:first-child .refresh_link svg {
  width: 28px;
  height: 28px;
}

body.page-dashboard .auth-main-top-item .tooltip_title {
  margin: 0;
  font-size: 12px;
  color: rgba(235, 232, 227, 0.88);
}

body.page-dashboard .auth-main-top-item .tooltip_title svg {
  width: 14px;
}

body.page-dashboard .auth-main-top-item .auth_donation_coins {
  min-width: 0;
}

body.page-dashboard .auth-main-top-item .auth_donate_title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f8f6f2;
}

body.page-dashboard .auth-main-top-item.right .auth_donate_title {
  font-size: 24px;
  color: #f2cb78;
}

body.page-dashboard .auth-main-top-item .auth_donate_title img {
  height: 24px;
}

body.page-dashboard .auth-main-top-item .auth_donate_links {
  gap: 8px;
}

body.page-dashboard .auth-main-top-item .auth_donate_links .btn-gray-no-border {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #f3f1ee;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.page-dashboard .auth-main-top-item .auth_donate_links .btn-gray-no-border:hover {
  border-color: rgba(239, 181, 84, 0.9);
  color: var(--gold);
  background: rgba(238, 173, 67, 0.1);
}

/* Dashboard balance panel (new compact card row) */
body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__info,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__kicker,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  color: rgba(235, 232, 227, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__value-row,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__value-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__coin,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__coin {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__amount,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__amount {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #f8f6f2;
  font-variant-numeric: tabular-nums;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__refresh,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__refresh {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: rgba(240, 235, 228, 0.9);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__refresh svg,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__refresh svg {
  width: 18px;
  height: 18px;
}

body.page-dashboard .auth-main-top-item--balance .dash-balance-panel__refresh:hover,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__refresh:hover {
  color: #fff;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  min-width: 0;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(241, 238, 234, 0.95);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  text-align: left;
  text-transform: none;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border span,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border span {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border,
  body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border {
    padding: 0 12px;
    font-size: 12.5px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
  }
}

@media (max-width: 900px) {
  body.page-dashboard .auth-main-top-item--balance-actions {
    justify-content: flex-start;
  }

  body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Prevent wrapping inside Season bonus action button */
body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_links .btn-gray-no-border {
  white-space: nowrap;
}

body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_links .btn-gray-no-border span {
  white-space: nowrap;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border svg,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  opacity: 0.9;
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border--accent,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border--accent {
  border-color: rgba(240, 185, 87, 0.75);
  color: var(--gold);
}

body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions .btn-gray-no-border:hover,
body.page-dashboard .auth-main-top-item.left .dash-balance-panel__actions .btn-gray-no-border:hover {
  border-color: rgba(239, 181, 84, 0.9);
  background: rgba(238, 173, 67, 0.1);
  color: var(--gold);
}

/* Season bonus panel: match the new balance card tone */
body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_coins {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 16px;
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.page-dashboard .auth-main-top-item--season-bonus .auth-main-season-bonus {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_links .btn-gray-no-border {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(241, 238, 234, 0.95);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  body.page-dashboard .auth-main-top-item--season-bonus {
    justify-content: flex-start;
  }

  body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_coins {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

body.page-dashboard .auth-main-season-bonus__amount {
  font-size: 28px;
  line-height: 1;
  color: #f4f1ea;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

body.page-dashboard .auth-main-season-bonus__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

body.page-dashboard .auth-main-top-item--season-bonus .auth_donate_links form {
  margin: 0;
}

@media (max-width: 1200px) {
  body.page-dashboard .auth-main-link,
  body.page-dashboard .auth-main-link.auth-main-link--balance-actions,
  body.page-dashboard .auth-main-link.auth-main-link--with-season,
  body.page-dashboard .auth-main-link.auth-main-link--two-cols {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.page-dashboard .auth-main-top-item {
    padding: 8px 4px;
  }

  body.page-dashboard .auth-main-top-item--balance {
    justify-self: stretch;
  }

  body.page-dashboard .auth-main-top-item--balance-actions {
    grid-column: auto;
    justify-self: stretch;
    justify-content: flex-start;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.page-dashboard .auth-main-top-item--balance-actions .dash-balance-panel__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body.page-dashboard .auth-main-top-item--season-bonus {
    grid-column: auto;
    justify-self: stretch;
  }

  body.page-dashboard .auth-main-top-item.left::before {
    display: none;
  }

  body.page-dashboard .auth-main-top-item .auth_donate_title,
  body.page-dashboard .auth-main-top-item.right .auth_donate_title,
  body.page-dashboard .auth-main-season-bonus__amount {
    font-size: 30px;
  }
}

/* Profile page - game accounts redesign */
body.page-dashboard .auth-content-main .create_game_account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  margin: 10px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(44, 36, 31, 0.9) 0%, rgba(30, 25, 22, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.page-dashboard .auth-content-main .create_game_account::before,
body.page-dashboard .auth-content-main .create_game_account::after {
  display: none;
}

body.page-dashboard .auth-content-main .create_game_account > p {
  margin: 0;
  font-family: var(--font, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #f4f3f1;
}

body.page-dashboard .auth-content-main .create_game_account > p::first-letter {
  text-transform: uppercase;
}

body.page-dashboard .auth-content-main .create_game_account > .open-popup.btn-primary {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

body.page-dashboard .auth-content-main .create_game_account > .open-popup.btn-primary:hover {
  filter: brightness(1.08);
}

body.page-dashboard .auth-content-main .create_game_account > .open-popup.btn-primary svg {
  width: 17px;
  height: 17px;
}

body.page-dashboard .auth-content-main .master-account-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-dashboard .auth-content-main .master-account-table .master-acc-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(35, 30, 26, 0.94) 0%, rgba(24, 21, 18, 0.94) 100%);
  overflow: hidden;
}

body.page-dashboard .auth-content-main .master-account-table .change-game-password-block {
  padding: 13px 16px;
  background: rgba(11, 10, 10, 0.32);
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.page-dashboard .auth-content-main .master-account-table .master-name-plus {
  align-items: center;
  gap: 10px;
}

body.page-dashboard .auth-content-main .master-account-table .game-login-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #f1efe9;
  letter-spacing: 0.01em;
}

body.page-dashboard .auth-content-main .master-account-table .plus-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 20, 19, 0.92);
  color: rgba(241, 237, 230, 0.95);
  font-weight: 700;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

body.page-dashboard .auth-content-main .master-account-table .plus-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(241, 237, 230, 0.95);
  border-bottom: 2px solid rgba(241, 237, 230, 0.95);
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}

body.page-dashboard .auth-content-main .master-account-table .plus-toggle.active::before {
  transform: rotate(45deg);
}

body.page-dashboard .auth-content-main .master-account-table .change-game-password-block .btn-gray-no-border {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(241, 238, 234, 0.95);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
}

body.page-dashboard .auth-content-main .master-account-table .change-game-password-block .btn-gray-no-border:hover {
  border-color: rgba(240, 177, 72, 0.8);
  color: var(--gold);
  background: rgba(240, 177, 72, 0.08);
}

body.page-dashboard .auth-content-main .master-account-table .lin2Table {
  padding: 0 10px;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table {
  margin: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 10, 10, 0.48);
}

body.page-dashboard .auth-content-main .master-account-table .lin2Table.active {
  padding: 8px 10px 10px;
}

body.page-dashboard .auth-content-main .account-settings-card .account-settings-history-table {
  margin: 0;
}

body.page-dashboard .auth-content-main .account-settings-history-view-all {
  margin: 0;
  padding: 4px 10px 10px;
  text-align: right;
}

body.page-dashboard .auth-content-main .account-settings-history-view-all .account-settings-action-btn {
  min-width: 120px;
  width: auto;
  display: inline-flex;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table thead {
  background: rgba(255, 255, 255, 0.03);
}

body.page-dashboard .auth-content-main .master-account-table .omg-table th,
body.page-dashboard .auth-content-main .master-account-table .omg-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(239, 236, 232, 0.92);
  text-align: left;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(244, 200, 109, 0.95);
}

body.page-dashboard .auth-content-main .master-account-table .omg-table tbody tr:last-child td {
  border-bottom: 0;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table.error td {
  text-align: center;
  color: rgba(225, 220, 212, 0.8);
}

body.page-dashboard .auth-content-main .master-account-table .omg-table.error tr {
  background: rgba(18, 16, 14, 0.92) !important;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table td .btn-gray-no-border {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table td .btn-gray-no-border:hover {
  border-color: rgba(240, 177, 72, 0.8);
  color: var(--gold);
}

@media (max-width: 960px) {
  body.page-dashboard .auth-content-main .create_game_account {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-dashboard .auth-content-main .create_game_account > p {
    font-size: 22px;
  }

  body.page-dashboard .auth-content-main .master-account-table .change-game-password-block {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.page-dashboard .auth-content-main .master-account-table .lin2Table {
    overflow-x: auto;
  }

  /*
   * Wide character grid only (inside .lin2Table). Do not apply to .omg-table.error —
   * that single-cell row must stay fluid or “No characters yet…” clips on mobile.
   */
  body.page-dashboard .auth-content-main .master-account-table .lin2Table .omg-table {
    min-width: 700px;
  }
}

/* Empty-state message tables — full width + wrap (overrides lin2web max-width:675px width:max-content) */
body.page-dashboard .auth-content-main .master-account-table .omg-table.error,
body.page-dashboard .auth-content-main .card .omg-table.error {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}

body.page-dashboard .auth-content-main .master-account-table .omg-table.error td,
body.page-dashboard .auth-content-main .card .omg-table.error td {
  text-align: center;
  white-space: normal !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Starter packs - dashboard style */
body.page-dashboard #s-pack .s-pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.page-dashboard #s-pack .s-pack-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(228, 167, 76, 0.36);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(153, 99, 24, 0.18) 0%, rgba(34, 28, 24, 0.93) 45%, rgba(20, 18, 16, 0.98) 100%),
    linear-gradient(180deg, rgba(40, 33, 28, 0.92) 0%, rgba(22, 19, 17, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.page-dashboard #s-pack .s-pack-item::before,
body.page-dashboard #s-pack .s-pack-item::after {
  display: none;
}

body.page-dashboard #s-pack .s-pack-title {
  margin-bottom: 8px;
}

body.page-dashboard #s-pack .s-pack-title img {
  height: 220px;
  object-fit: contain;
}

body.page-dashboard #s-pack .s-pack-title span {
  margin-top: 4px;
  font-family: var(--font, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #f3f1ee;
  text-transform: uppercase;
}

body.page-dashboard #s-pack .s-pack-info {
  margin-top: 4px;
}

body.page-dashboard #s-pack .s-pack-i {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.page-dashboard #s-pack .s-item-i {
  gap: 6px;
  color: rgba(233, 230, 225, 0.88);
}

body.page-dashboard #s-pack .s-item-i img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

body.page-dashboard #s-pack .s-item-title {
  font-size: 14px;
  line-height: 1.2;
}

body.page-dashboard #s-pack .s-item-count {
  font-size: 14px;
  color: #e5a2a2;
  font-weight: 600;
}

body.page-dashboard #s-pack .s-pack-prices {
  margin-top: auto;
  padding-top: 10px;
}

body.page-dashboard #s-pack .s-pack-price {
  font-size: 18px;
  line-height: 1.05;
  color: #efcd72;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #efcd72;
}

body.page-dashboard #s-pack .s-pack-discount {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.05;
  color: rgba(236, 232, 226, 0.9);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.page-dashboard #s-pack .s-pack-prices .btn-primary {
  min-width: 100%;
  min-height: 46px;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-dashboard #s-pack .s-pack-prices .btn-primary:hover {
  filter: brightness(1.08);
}

@media (max-width: 1280px) {
  body.page-dashboard #s-pack .s-pack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-dashboard #s-pack .s-pack {
    grid-template-columns: 1fr;
  }

  body.page-dashboard #s-pack .s-pack-title span {
    font-size: 15px;
  }

  body.page-dashboard #s-pack .s-pack-price,
  body.page-dashboard #s-pack .s-pack-discount,
  body.page-dashboard #s-pack .s-item-title,
  body.page-dashboard #s-pack .s-item-count {
    font-size: 14px;
  }

  body.page-dashboard #s-pack .s-pack-prices .btn-primary {
    font-size: 14px;
  }
}

/* Referral page redesign */
body.page-dashboard .auth-content-main .card.referral-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.12) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
}

body.page-dashboard .auth-content-main .card.referral-card::before,
body.page-dashboard .auth-content-main .card.referral-card::after {
  display: none;
}

body.page-dashboard .auth-content-main .card .title h1 {
  font-family: var(--font, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #f2f0ec;
  text-transform: uppercase;
  text-align: left;
  margin: 0 0 8px;
}

body.page-dashboard .auth-content-main .referral_block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

body.page-dashboard .auth-content-main .referral_form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 700px;
}

body.page-dashboard .auth-content-main .referral_form input.form-control {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 20, 19, 0.92);
  color: rgba(236, 232, 224, 0.95);
  font-size: 16px;
}

body.page-dashboard .auth-content-main .referral_copy_link {
  position: relative;
}

body.page-dashboard .auth-content-main .referral_copy_link .btn-primary,
body.page-dashboard .auth-content-main .referral_block > .btn-primary {
  min-width: 172px;
  height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

body.page-dashboard .auth-content-main .referral_copy_link .btn-primary:hover,
body.page-dashboard .auth-content-main .referral_block > .btn-primary:hover {
  filter: brightness(1.08);
}

body.page-dashboard .auth-content-main .copy-message {
  top: calc(100% + 6px);
  left: 4px;
  font-size: 12px;
  color: rgba(232, 226, 215, 0.86);
}

body.page-dashboard .auth-content-main .referrals_text {
  margin-top: 6px;
  line-height: 1.5;
}

body.page-dashboard .auth-content-main .referrals_text p {
  margin: 0;
  font-size: 12px;
  color: rgba(223, 217, 207, 0.9);
}

body.page-dashboard .auth-content-main .referrals_text h3 {
  margin: 2px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #f0ede8;
}

/* Referral table same style as other dashboard tables */
body.page-dashboard .auth-content-main .card .omg-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 10, 10, 0.48);
}

body.page-dashboard .auth-content-main .card .omg-table thead {
  background: rgba(255, 255, 255, 0.03);
}

body.page-dashboard .auth-content-main .card .omg-table th,
body.page-dashboard .auth-content-main .card .omg-table td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(239, 236, 232, 0.92);
  text-align: left;
}

body.page-dashboard .auth-content-main .card .omg-table thead td,
body.page-dashboard .auth-content-main .card .omg-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(244, 200, 109, 0.95);
}

body.page-dashboard .auth-content-main .card .omg-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  body.page-dashboard .auth-content-main .card .title h1 {
    font-size: 15px;
  }

  body.page-dashboard .auth-content-main .referral_block {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-dashboard .auth-content-main .referral_form {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
  }

  body.page-dashboard .auth-content-main .referral_copy_link .btn-primary,
  body.page-dashboard .auth-content-main .referral_block > .btn-primary {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }

  body.page-dashboard .auth-content-main .referrals_text h3 {
    font-size: 13px;
  }
}

/* Warehouse / Send to game page */
body.page-dashboard #send-to-game.card,
body.page-dashboard #warehouse.card {
  border-radius: 14px;
  border: 1px solid rgba(228, 167, 76, 0.34);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(162, 105, 24, 0.18) 0%, rgba(30, 25, 21, 0.9) 46%, rgba(22, 19, 16, 0.94) 100%),
    linear-gradient(180deg, rgba(42, 34, 27, 0.9) 0%, rgba(24, 20, 17, 0.94) 100%);
}

body.page-dashboard #send-to-game .title,
body.page-dashboard #warehouse .title {
  margin: 0 0 12px;
}

body.page-dashboard #send-to-game .title,
body.page-dashboard #warehouse .title p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(224, 218, 208, 0.9);
}

body.page-dashboard #send-to-game .send-to-game,
body.page-dashboard #warehouse .send-to-game {
  gap: 14px;
}

body.page-dashboard #send-to-game .send-to-game .form-control,
body.page-dashboard #warehouse .send-to-game .form-control,
body.page-dashboard #warehouse .warehouse-item .form-control {
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 20, 19, 0.92);
  color: rgba(238, 234, 228, 0.94);
}

body.page-dashboard #send-to-game .send-to-game select.form-control,
body.page-dashboard #warehouse .send-to-game select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 42px;
  line-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 14px;
  padding-right: 36px;
  font-size: 14px;
  font-weight: 600;
  color: #f1ede6;
  background-image: linear-gradient(45deg, transparent 50%, rgba(225, 216, 198, 0.95) 50%),
    linear-gradient(135deg, rgba(225, 216, 198, 0.95) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

body.page-dashboard #send-to-game .send-to-game select.form-control option,
body.page-dashboard #warehouse .send-to-game select.form-control option {
  color: #f1ede6;
  background: #1b1715;
}

body.page-dashboard #send-to-game .send-to-game .form-control:focus,
body.page-dashboard #warehouse .send-to-game .form-control:focus,
body.page-dashboard #warehouse .warehouse-item .form-control:focus {
  border-color: rgba(235, 186, 89, 0.7);
  box-shadow: 0 0 0 2px rgba(235, 186, 89, 0.15);
}

body.page-dashboard #send-to-game .send-to-game .login_button,
body.page-dashboard #warehouse .send-to-game .login_button {
  margin: 0;
}

body.page-dashboard #send-to-game .send-to-game .login_button .btn-primary,
body.page-dashboard #warehouse .send-to-game .login_button .btn-primary {
  width: 100%;
  min-width: 220px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-dashboard #send-to-game .send-to-game .login_button .btn-primary:hover,
body.page-dashboard #warehouse .send-to-game .login_button .btn-primary:hover {
  filter: brightness(1.08);
}

body.page-dashboard #warehouse .warehouse-items-all {
  margin-top: 18px;
}

body.page-dashboard #warehouse .warehouse-items-all > label {
  font-size: 12px;
  color: rgba(230, 224, 214, 0.92);
}

body.page-dashboard #warehouse .warehouse-item {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-dashboard #warehouse .warehouse-item:last-child {
  border-bottom: 0;
}

body.page-dashboard #warehouse .warehouse-item label {
  color: rgba(235, 230, 222, 0.93);
  font-size: 12px;
}

body.page-dashboard #warehouse .warehouse-item .muted {
  color: rgba(196, 188, 175, 0.84);
}

/* Transaction history pages (tabs + table) */
body.page-dashboard .auth-content-main .stats-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

body.page-dashboard .auth-content-main .stats-menu li {
  margin: 0;
  padding: 0;
  min-width: 0;
}

body.page-dashboard .auth-content-main .stats-menu li a {
  min-height: 52px;
  border-radius: 10px !important;
  border: 1px solid rgba(228, 167, 76, 0.34);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(148, 95, 23, 0.16) 0%, rgba(33, 28, 24, 0.92) 48%, rgba(22, 19, 16, 0.95) 100%),
    linear-gradient(180deg, rgba(42, 34, 27, 0.9) 0%, rgba(24, 20, 17, 0.94) 100%);
  color: rgba(236, 232, 226, 0.92);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

body.page-dashboard .auth-content-main .stats-menu li a::before {
  display: none !important;
}

body.page-dashboard .auth-content-main .stats-menu li a:hover {
  border-color: rgba(240, 185, 87, 0.7);
  color: #f2cc78;
}

body.page-dashboard .auth-content-main .stats-menu li.active a {
  border-color: rgba(240, 185, 87, 0.88);
  color: #f2cc78;
  box-shadow: inset 0 0 0 1px rgba(240, 185, 87, 0.14);
}

body.page-dashboard .auth-content-main .stats-menu li a svg {
  width: 16px;
  height: 16px;
}

body.page-dashboard .auth-content-main .stats_table .rating {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(11, 10, 10, 0.48);
}

body.page-dashboard .auth-content-main .stats_table .rating thead {
  background: rgba(255, 255, 255, 0.03);
}

body.page-dashboard .auth-content-main .stats_table .rating thead th {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 200, 109, 0.95);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.page-dashboard .auth-content-main .stats_table .rating td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 236, 232, 0.92);
  font-size: 12px;
}

body.page-dashboard .auth-content-main .stats_table .rating tbody tr:last-child td {
  border-bottom: 0;
}

/* Tickets page redesign */
body.page-dashboard .auth-content-main .ticket-section {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.1) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
}

body.page-dashboard .auth-content-main .ticket-section .title h1 {
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

body.page-dashboard .auth-content-main .ticket-block {
  gap: 14px;
}

body.page-dashboard .auth-content-main .ticket-sidebar,
body.page-dashboard .auth-content-main .ticket-messages {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 13, 12, 0.55);
}

body.page-dashboard .auth-content-main .ticket-sidebar {
  padding: 10px;
}

body.page-dashboard .auth-content-main .ticket-messages {
  padding: 12px;
  min-height: 620px;
}

body.page-dashboard .auth-content-main .ticket-sidebar .btn-primary {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

body.page-dashboard .auth-content-main .ticket-sidebar .btn-primary:hover {
  filter: brightness(1.08);
}

body.page-dashboard .auth-content-main .tickets-nav .ticket-item {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-dashboard .auth-content-main .tickets-nav .ticket-item.active {
  border-color: rgba(240, 185, 87, 0.75);
  background: rgba(240, 185, 87, 0.08);
}

body.page-dashboard .auth-content-main .ticket-link {
  padding: 9px 10px;
}

body.page-dashboard .auth-content-main .ticket-title {
  font-size: 13px;
  color: #f0ece5;
}

body.page-dashboard .auth-content-main .ticket-top-block h2 {
  font-size: 15px;
  color: #f2efea;
}

body.page-dashboard .auth-content-main .ticket-top-block p,
body.page-dashboard .auth-content-main .ticket-no-active p {
  font-size: 12px;
  color: rgba(224, 218, 208, 0.9);
}

body.page-dashboard .auth-content-main .ticket-no-active {
  min-height: 480px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(10, 9, 9, 0.3);
}

/* Ticket create form */
body.page-dashboard .auth-content-main .card.ticket-create-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.1) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
}

body.page-dashboard .auth-content-main .card.ticket-create-card::before,
body.page-dashboard .auth-content-main .card.ticket-create-card::after {
  display: none;
}

body.page-dashboard .auth-content-main .card .auth-form .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: rgba(229, 222, 210, 0.92);
}

body.page-dashboard .auth-content-main .card .auth-form .form-control {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(22, 20, 19, 0.92);
  color: rgba(238, 234, 228, 0.94);
}

body.page-dashboard .auth-content-main .card .auth-form input.form-control,
body.page-dashboard .auth-content-main .card .auth-form select.form-control {
  height: 42px;
}

body.page-dashboard .auth-content-main .card .auth-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 14px;
  padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, rgba(225, 216, 198, 0.95) 50%),
    linear-gradient(135deg, rgba(225, 216, 198, 0.95) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

body.page-dashboard .auth-content-main .card .auth-form select.form-control option {
  color: #f1ede6;
  background: #1b1715;
}

/* Unified dark tone for all dashboard tables */
body.page-dashboard .auth-content-main .omg-table,
body.page-dashboard .auth-content-main .rating,
body.page-dashboard .auth-content-main .stats_table .rating,
body.page-dashboard .auth-content-main table.rating {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 13, 12, 0.55) !important;
}

body.page-dashboard .auth-content-main .omg-table thead,
body.page-dashboard .auth-content-main .rating thead,
body.page-dashboard .auth-content-main .stats_table .rating thead,
body.page-dashboard .auth-content-main table.rating thead {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.page-dashboard .auth-content-main .omg-table th,
body.page-dashboard .auth-content-main .omg-table td,
body.page-dashboard .auth-content-main .rating th,
body.page-dashboard .auth-content-main .rating td,
body.page-dashboard .auth-content-main .stats_table .rating th,
body.page-dashboard .auth-content-main .stats_table .rating td,
body.page-dashboard .auth-content-main table.rating th,
body.page-dashboard .auth-content-main table.rating td {
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(236, 232, 225, 0.92) !important;
  font-size: 12px;
  text-align: left;
}

body.page-dashboard .auth-content-main .omg-table thead th,
body.page-dashboard .auth-content-main .omg-table thead td,
body.page-dashboard .auth-content-main .rating thead th,
body.page-dashboard .auth-content-main .rating thead td,
body.page-dashboard .auth-content-main .stats_table .rating thead th,
body.page-dashboard .auth-content-main .stats_table .rating thead td,
body.page-dashboard .auth-content-main table.rating thead th,
body.page-dashboard .auth-content-main table.rating thead td {
  color: rgba(228, 221, 208, 0.94) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

body.page-dashboard .auth-content-main .omg-table tbody tr:last-child td,
body.page-dashboard .auth-content-main .rating tbody tr:last-child td,
body.page-dashboard .auth-content-main .stats_table .rating tbody tr:last-child td,
body.page-dashboard .auth-content-main table.rating tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Final dashboard unification layer */
body.page-dashboard {
  --dash-card-border: rgba(255, 255, 255, 0.09);
  --dash-card-bg:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.1) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
  --dash-control-bg: rgba(22, 20, 19, 0.92);
  --dash-control-border: rgba(255, 255, 255, 0.16);
  --dash-text: rgba(236, 232, 225, 0.92);
}

body.page-dashboard .auth-content-main .card,
body.page-dashboard .auth-content-main .ticket-section,
body.page-dashboard .auth-content-main #send-to-game.card,
body.page-dashboard .auth-content-main #warehouse.card,
body.page-dashboard .auth-content-main #pay.card,
body.page-dashboard .auth-content-main .card.referral-card,
body.page-dashboard .auth-content-main .card.ticket-create-card {
  border: 1px solid var(--dash-card-border) !important;
  background: var(--dash-card-bg) !important;
}

body.page-dashboard .auth-content-main .card::before,
body.page-dashboard .auth-content-main .card::after,
body.page-dashboard .auth-content-main .ticket-section::before,
body.page-dashboard .auth-content-main .ticket-section::after {
  display: none !important;
}

body.page-dashboard .auth-content-main .form-control,
body.page-dashboard .auth-content-main input.form-control,
body.page-dashboard .auth-content-main select.form-control,
body.page-dashboard .auth-content-main textarea.form-control {
  border: 1px solid var(--dash-control-border) !important;
  background: var(--dash-control-bg) !important;
  color: var(--dash-text) !important;
  border-radius: 8px !important;
}

body.page-dashboard .auth-content-main .form-control:focus,
body.page-dashboard .auth-content-main input.form-control:focus,
body.page-dashboard .auth-content-main select.form-control:focus,
body.page-dashboard .auth-content-main textarea.form-control:focus {
  border-color: rgba(235, 186, 89, 0.7) !important;
  box-shadow: 0 0 0 2px rgba(235, 186, 89, 0.15) !important;
}

body.page-dashboard .auth-content-main .btn-primary {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-image: url("../images/ui/pay-button.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  color: #f4d688 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
}

body.page-dashboard .auth-content-main .btn-primary:hover {
  filter: brightness(1.08);
}

/* Dashboard popup submit buttons — match create account / pay-button style */
body.page-dashboard .popup-overlay .login_button .btn-primary {
  min-height: 42px;
  height: auto;
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  background-image: url("../images/ui/pay-button.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  color: #f4d688 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

body.page-dashboard .popup-overlay .login_button .btn-primary:hover {
  filter: brightness(1.08);
  background-color: transparent !important;
}

body.page-dashboard .popup-overlay .login_button .btn-primary svg {
  width: 17px;
  height: 17px;
  color: #f4d688;
}

/* Strict tone consistency for key dashboard blocks */
body.page-dashboard .auth-content-main #pay.card,
body.page-dashboard .auth-content-main #send-to-game.card,
body.page-dashboard .auth-content-main #warehouse.card,
body.page-dashboard .auth-content-main .ticket-section,
body.page-dashboard .auth-content-main .card.referral-card,
body.page-dashboard .auth-content-main .card.ticket-create-card,
body.page-dashboard .auth-content-main #s-pack .s-pack-item {
  border: 1px solid var(--dash-card-border) !important;
  background: var(--dash-card-bg) !important;
}

body.page-dashboard .auth-content-main #s-pack .s-pack-item::before,
body.page-dashboard .auth-content-main #s-pack .s-pack-item::after,
body.page-dashboard .auth-content-main #pay.card::before,
body.page-dashboard .auth-content-main #pay.card::after,
body.page-dashboard .auth-content-main #send-to-game.card::before,
body.page-dashboard .auth-content-main #send-to-game.card::after,
body.page-dashboard .auth-content-main #warehouse.card::before,
body.page-dashboard .auth-content-main #warehouse.card::after {
  display: none !important;
}

body.page-dashboard .auth-content-main .ticket-sidebar,
body.page-dashboard .auth-content-main .ticket-messages {
  background: rgba(14, 13, 12, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.page-dashboard .auth-content-main .card .auth-form textarea.form-control {
  min-height: 140px;
}

body.page-dashboard .auth-content-main .card .auth-form .form-control:focus {
  border-color: rgba(235, 186, 89, 0.7);
  box-shadow: 0 0 0 2px rgba(235, 186, 89, 0.15);
}

body.page-dashboard .auth-content-main .card .auth-form input[type="file"].form-control {
  padding: 8px 10px;
  line-height: 1.2;
}

/* Dashboard alerts: replace lin2web red/green gradients + icons */
body.page-dashboard .alert {
  margin: 14px 0;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 13, 12, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  gap: 12px;
}

body.page-dashboard .alert p {
  margin: 0;
  padding-left: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(236, 232, 225, 0.92);
}

body.page-dashboard .alert p::before {
  display: none !important;
}

body.page-dashboard .alert a.close {
  opacity: 0.85;
  filter: none;
}

body.page-dashboard .alert a.close:hover {
  opacity: 1;
}

body.page-dashboard .alert-danger {
  border-color: rgba(255, 120, 120, 0.32);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 78, 78, 0.12) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
}

body.page-dashboard .alert-danger p {
  color: rgba(255, 215, 215, 0.92);
}

body.page-dashboard .alert-success {
  border-color: rgba(120, 240, 160, 0.26);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(120, 240, 160, 0.12) 0%, rgba(26, 23, 20, 0.93) 44%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
}

body.page-dashboard .alert-success p {
  color: rgba(210, 255, 228, 0.92);
}

/* Account settings rows (Reset password / Activity history) */
body.page-dashboard .account-settings-card {
  padding: 0;
}

body.page-dashboard .account-settings-rows {
  gap: 12px;
}

body.page-dashboard .account-settings-rows .account-settings-row {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.08) 0%, rgba(26, 23, 20, 0.93) 46%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
  overflow: hidden;
}

body.page-dashboard .account-settings-rows .account-settings-row:hover {
  border-color: rgba(240, 185, 87, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.page-dashboard .account-settings-row__head {
  padding: 14px 16px;
  background: rgba(11, 10, 10, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.page-dashboard .account-settings-row__left {
  align-items: center;
  gap: 12px;
}

body.page-dashboard .account-settings-row__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(22, 20, 19, 0.75);
  color: rgba(241, 237, 230, 0.92);
  flex: 0 0 44px;
}

body.page-dashboard .account-settings-row__icon svg {
  width: 22px;
  height: 22px;
}

body.page-dashboard .account-settings-row__copy {
  min-width: 0;
}

body.page-dashboard .account-settings-row__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: rgba(244, 243, 241, 0.96);
}

body.page-dashboard .account-settings-row__desc {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(224, 218, 208, 0.9);
}

body.page-dashboard .account-settings-row__btn {
  flex: 0 0 auto;
}

/* Slightly different accent per row */
body.page-dashboard .account-settings-row--password .account-settings-row__icon {
  box-shadow: inset 0 0 0 1px rgba(240, 185, 87, 0.12);
}

body.page-dashboard .account-settings-row--history .account-settings-row__icon {
  box-shadow: inset 0 0 0 1px rgba(120, 240, 160, 0.10);
}

@media (max-width: 720px) {
  body.page-dashboard .account-settings-row__head {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Account settings — Notifications & Social networks panels */
body.page-dashboard .account-settings-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body.page-dashboard .account-settings-panel {
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(98, 68, 18, 0.08) 0%, rgba(26, 23, 20, 0.93) 46%, rgba(18, 16, 14, 0.96) 100%),
    linear-gradient(180deg, rgba(34, 29, 24, 0.92) 0%, rgba(20, 17, 15, 0.95) 100%);
  overflow: hidden;
}

body.page-dashboard .account-settings-panel__header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.page-dashboard .account-settings-panel__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: rgba(244, 243, 241, 0.96);
}

body.page-dashboard .account-settings-panel__desc {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(224, 218, 208, 0.72);
}

body.page-dashboard .account-settings-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.page-dashboard .account-settings-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-dashboard .account-settings-panel__row:last-child {
  border-bottom: none;
}

body.page-dashboard .account-settings-panel__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body.page-dashboard .account-settings-panel__brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex: 0 0 36px;
  color: #fff;
}

body.page-dashboard .account-settings-panel__brand-icon svg {
  width: 18px;
  height: 18px;
}

body.page-dashboard .account-settings-panel__brand-icon--telegram {
  background: #229ed9;
}

body.page-dashboard .account-settings-panel__brand-icon--discord {
  background: #5865f2;
}

body.page-dashboard .account-settings-panel__brand-icon--youtube {
  background: #ff0000;
}

body.page-dashboard .account-settings-panel__brand-icon--facebook {
  background: #1877f2;
}

body.page-dashboard .account-settings-panel__brand-icon--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

body.page-dashboard .account-settings-panel__brand-icon--email {
  background: #c9a227;
  color: #14110e;
}

body.page-dashboard .account-settings-panel__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.page-dashboard .account-settings-panel__brand-name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(244, 243, 241, 0.96);
}

body.page-dashboard .account-settings-panel__brand-hint {
  font-size: 12px;
  font-weight: 500;
  color: rgba(244, 243, 241, 0.55);
  line-height: 1.3;
}

body.page-dashboard .account-settings-panel__form {
  margin: 0;
  flex: 0 0 auto;
}

body.page-dashboard .account-settings-panel__btn {
  flex: 0 0 auto;
}

body.page-dashboard .account-settings-panel__flash {
  margin: 0;
  padding: 10px 18px 14px;
  font-size: 13px;
  color: rgba(244, 243, 241, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-dashboard .account-settings-panel__flash--ok {
  color: #b8e986;
}

/* Unified action buttons — same look as change-password SAVE */
body.page-dashboard .auth-content-main .account-settings-action-btn {
  flex: 0 0 auto;
  min-height: 38px;
  min-width: 112px;
  padding: 0 18px;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent !important;
  background-image: url("../images/ui/pay-button.png") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  color: #f4d688 !important;
  font-family: TrajanSansPro-Semibold, "Cinzel", Georgia, "Times New Roman", serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: 0.05em;
  cursor: pointer;
}

body.page-dashboard .auth-content-main .account-settings-action-btn:hover {
  filter: brightness(1.08);
  color: #f8e2a8 !important;
}

body.page-dashboard .auth-content-main .account-settings-action-btn span {
  color: inherit !important;
  font-weight: inherit !important;
  text-shadow: inherit !important;
  text-transform: inherit !important;
}

body.page-dashboard .auth-content-main .account-settings-card .form-group .account-settings-action-btn {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  body.page-dashboard .account-settings-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  body.page-dashboard .account-settings-panel__row {
    flex-wrap: wrap;
  }

  body.page-dashboard .account-settings-panel__form,
  body.page-dashboard .account-settings-panel__btn {
    width: 100%;
  }
}

body.page-dashboard .auth-content-main .card .auth-form .login_button .btn-primary,
body.page-dashboard .auth-content-main .card .auth-form .login_button .account-settings-action-btn {
  min-height: 42px;
  border-radius: 8px;
  border: none;
  box-shadow: none;
  background-color: transparent;
  background-image: url("../images/ui/pay-button.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  color: #f4d688;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

body.page-dashboard .auth-content-main .card .auth-form .login_button .btn-primary:hover,
body.page-dashboard .auth-content-main .card .auth-form .login_button .account-settings-action-btn:hover {
  filter: brightness(1.08);
}
