/* ==========================================================================
   LA2PLUS WINTER EDITION v2 — Unified "Frosted Royal Gold + Snow-Cap Rim"
   100% coverage across: Landing (/), Streams (#streams), Files (#howto/modals),
   Wiki (/wiki/), Rating (/rating/), Stats (/stats/), Auth (/login/, /register/,
   /forgotten-password/), and Cabinet V2 (/cabinet/*, coin-shop, panel).
   ========================================================================== */

:root {
  /* Arctic Midnight Base */
  --bg-1: #060D18;
  --bg-2: #0A1526;
  --bg-3: #0F1E35;
  --bg-1-rgb: 6 13 24;
  --bg-2-rgb: 10 21 38;

  /* Frost & Crystal Accents */
  --ice-1: #7DD3FC;
  --ice-2: #BAE6FD;
  --ice-3: #E0F2FE;
  --ice-rgb: 125 211 252;
  --frost-glass: linear-gradient(160deg, rgba(12, 26, 46, 0.86), rgba(6, 13, 24, 0.94));
  --frost-glass-soft: rgba(10, 22, 40, 0.80);
  --frost-border: rgba(125, 211, 252, 0.26);
  --frost-border-strong: rgba(186, 230, 253, 0.52);
  --frost-sheen: inset 0 1px 0 rgba(224, 242, 254, 0.18);
  --frost-shadow: 0 22px 54px rgba(2, 8, 18, 0.72), 0 0 28px rgba(125, 211, 252, 0.08);

  /* Preserved Royal Gold Brand Tokens */
  --gold-1: #D5AD68;
  --gold-2: #E6C382;
  --gold-3: #F3DFA8;
  --gold-1-rgb: 213 173 104;
  --gold-border: rgba(213, 173, 104, 0.42);
  --gold-border-strong: rgba(243, 223, 168, 0.72);
  --line-light: #e0f2fe;
  --line-dark: #7a5c2c;
  --gold-btn-line-light: #ffffff;
  --gold-btn-line-dark: #8f6f36;

  /* Text & CMS Surfaces */
  --text-1: #F3F7FC;
  --text-2: #B2C3D8;
  --text-3: #7A90AC;
  --cms-text: #D7E3F0;
  --cms-heading: #F3DFA8;
  --cms-surface: rgba(10, 23, 42, 0.86);
  --cms-border: rgba(125, 211, 252, 0.24);
  --line-soft: rgba(125, 211, 252, 0.16);
  --surface-card: var(--frost-glass);

  /* Plates & Buttons */
  --plate-1: #11243e;
  --plate-2: #071222;
}

/* Custom Arctic Scrollbar */
html {
  background-color: #060D18 !important;
  scrollbar-color: #7DD3FC #0A1526;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #060D18; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.65), rgba(213, 173, 104, 0.65));
  border-radius: 99px;
}

@keyframes winter-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes winter-gold-breath {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.28)) drop-shadow(0 4px 14px rgba(213, 173, 104, 0.22)); }
  50% { filter: drop-shadow(0 0 14px rgba(186, 230, 253, 0.52)) drop-shadow(0 4px 18px rgba(213, 173, 104, 0.42)); }
}

/* ==========================================================================
   0. FROSTED ROYAL GOLD + SNOW-CAP RIM (ALL GOLD BUTTONS & BANNERS)
   ========================================================================== */

/* Primary Ornate Gold Buttons on Landing/CMS ONLY (never break rectangular Cabinet V2 buttons!) */
body:not(.portal-page) .btn--gold {
  --end: url('/design/assets/ornaments/banner-end-gold-winter.svg') !important;
  color: #140f08 !important;
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.55);
  background:
    /* HD Snow-Cap Rim along top edge of button */
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(224, 242, 254, 0.88) 7%,
      rgba(186, 230, 253, 0.34) 15%,
      rgba(125, 211, 252, 0.00) 26%
    ) center / calc(100% - 2 * var(--e) + 2px) 100% no-repeat,
    /* Crisp Ice-White Top Hairline */
    linear-gradient(#ffffff, #e0f2fe) center top / calc(100% - 2 * var(--e) + 2px) 1.5px no-repeat,
    /* Royal Gold Bottom Bevel */
    linear-gradient(#8f6f36, #7a5c2c) center bottom / calc(100% - 2 * var(--e) + 2px) 1.5px no-repeat,
    /* Rich Royal Gold Metallic Body */
    linear-gradient(180deg, #f3d58e 0%, #d9b060 52%, #a8803a 100%) center / calc(100% - 2 * var(--e) + 2px) 100% no-repeat !important;
  animation: winter-gold-breath 3.4s ease-in-out infinite !important;
}
body:not(.portal-page) .btn--gold:hover {
  animation: none !important;
  filter: brightness(1.08) drop-shadow(0 0 14px rgba(125, 211, 252, 0.65)) drop-shadow(0 0 18px rgba(213, 173, 104, 0.65)) !important;
  transform: translateY(-1px);
}

/* Ornate Outline Buttons & Section/Wiki Title Banners on Landing/CMS ONLY */
body:not(.portal-page) .btn--outline,
.banner,
.wiki__title {
  --end: url('/design/assets/ornaments/banner-end-winter.svg?v=20261127-31') !important;
  color: #F3DFA8 !important;
  text-shadow: 0 2px 14px rgba(2, 10, 24, 0.85), 0 0 18px rgba(125, 211, 252, 0.25);
  background:
    /* Seamless Top Frost Sheen matching banner-end-winter.svg edge identically */
    linear-gradient(180deg,
      rgba(224, 242, 254, 0.22) 0%,
      rgba(125, 211, 252, 0.08) 9%,
      rgba(125, 211, 252, 0.00) 22%
    ) center / calc(100% - 2 * var(--e) + 4px) 100% no-repeat,
    linear-gradient(#e0f2fe, #e0f2fe) center top / calc(100% - 2 * var(--e) + 4px) 2px no-repeat,
    linear-gradient(#7dd3fc, #7dd3fc) center bottom / calc(100% - 2 * var(--e) + 4px) 2px no-repeat,
    linear-gradient(180deg, #11243e 0%, #071222 100%) center / calc(100% - 2 * var(--e) + 4px) 100% no-repeat !important;
}
body:not(.portal-page) .btn--outline:hover {
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(125, 211, 252, 0.55)) !important;
}

/* All Rectangular / Pill Gold Controls across CMS, Panel, Rating, Auth, Cabinet V2 & Shop */
.cms-switch__item.is-active,
.rating-widget--full .rating__tab.active,
.portal-auth button[type="submit"],
.portal-auth .auth-submit,
body.portal-page .btn--primary,
body.portal-page .btn-gold,
body.portal-page .cab-btn--gold,
body.portal-page .coin-pack__btn,
body.portal-page .shop-buy-btn,
body.portal-page .nav-cta,
.btn--primary,
.btn-gold {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.90) 0%,
      rgba(224, 242, 254, 0.62) 10%,
      rgba(186, 230, 253, 0.00) 28%
    ),
    linear-gradient(180deg, #f3d792 0%, #d6ad5e 52%, #a87f39 100%) !important;
  color: #101620 !important;
  border: 1px solid rgba(224, 242, 254, 0.65) !important;
  border-bottom-color: rgba(143, 111, 54, 0.85) !important;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(122, 92, 44, 0.65),
    0 8px 24px rgba(213, 173, 104, 0.28),
    0 0 18px rgba(125, 211, 252, 0.24) !important;
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.45);
}
.cms-switch__item.is-active:hover,
.rating-widget--full .rating__tab.active:hover,
.portal-auth button[type="submit"]:hover,
.portal-auth .auth-submit:hover,
body.portal-page .btn--primary:hover,
body.portal-page .btn-gold:hover,
.btn--primary:hover,
.btn-gold:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1.5px 0 #ffffff,
    0 10px 28px rgba(213, 173, 104, 0.40),
    0 0 24px rgba(125, 211, 252, 0.42) !important;
}

/* Secondary Gold Outline Controls (Пополнить баланс, активные пилюли) */
.cms-topup {
  border: 1px solid rgba(186, 230, 253, 0.42) !important;
  border-bottom-color: rgba(213, 173, 104, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.22) 0%, rgba(213, 173, 104, 0.22) 22%, rgba(16, 33, 56, 0.72) 100%) !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 20px rgba(2, 8, 18, 0.45), 0 0 14px rgba(125, 211, 252, 0.14) !important;
}
.cms-topup:hover {
  border-color: #BAE6FD !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 20px rgba(125, 211, 252, 0.30), 0 0 16px rgba(213, 173, 104, 0.25) !important;
}

/* ---------- Unified Snow Toggle Button ---------- */
.winter-snow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid rgba(125, 211, 252, 0.38);
  background: linear-gradient(180deg, rgba(16, 36, 64, 0.86), rgba(7, 17, 32, 0.94));
  color: #BAE6FD;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 14px rgba(2, 8, 18, 0.45);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.winter-snow-btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform 0.5s ease; }
.winter-snow-btn.is-snow-on svg { color: #7DD3FC; filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.75)); }
.winter-snow-btn.is-snow-off { opacity: 0.62; border-color: rgba(148, 163, 184, 0.28); color: #94A3B8; }
.winter-snow-btn:hover {
  border-color: rgba(243, 223, 168, 0.72);
  color: #F3DFA8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0 18px rgba(125, 211, 252, 0.28);
  transform: translateY(-1px);
}
.winter-snow-btn:hover svg { transform: rotate(45deg); }

/* ==========================================================================
   1. LANDING, STREAMS (#streams), FILES (#howto / MODALS)
   ========================================================================== */
body:not(.portal-auth):not(.portal-page) {
  background-color: #060D18;
  color: var(--text-1);
}

/* Frosted Glass Top Header */
.header,
header.header {
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.92), rgba(8, 18, 34, 0.80)) !important;
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
  box-shadow: 0 10px 36px rgba(2, 8, 18, 0.58), inset 0 -1px 0 rgba(213, 173, 104, 0.16);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 5%, rgba(224, 242, 254, 0.58) 32%, rgba(243, 223, 168, 0.65) 50%, rgba(224, 242, 254, 0.58) 68%, transparent 95%);
  pointer-events: none;
}

/* Hero Arctic Atmosphere */
.hero { background-color: #060D18 !important; }
.hero::after,
.hero__overlay {
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(125, 211, 252, 0.16) 0%, transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.42) 0%, rgba(6, 13, 24, 0.60) 55%, #060D18 100%) !important;
}
.hero__title, .hero h1 {
  text-shadow: 0 4px 28px rgba(4, 12, 24, 0.85), 0 0 36px rgba(125, 211, 252, 0.20);
}
.hero__eyebrow, .section__eyebrow, .cms-eyebrow {
  color: #BAE6FD !important;
  text-shadow: 0 0 16px rgba(125, 211, 252, 0.38);
}

/* Section Overlays & Frosted Cards (Streams, Rating, HowTo/Files, News) */
.section, section.section { background-color: #060D18; }
.section__overlay {
  background:
    radial-gradient(ellipse 65% 40% at 50% 0%, rgba(125, 211, 252, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.80) 0%, rgba(7, 16, 30, 0.66) 50%, rgba(6, 13, 24, 0.92) 100%) !important;
}

.card, .feature-card, .stream-card, .rating-card, .news-card,
.howto-step, .home-block, .cms-card, .wiki-card, .wiki-section {
  background: var(--frost-glass) !important;
  border: 1px solid var(--frost-border) !important;
  box-shadow: var(--frost-sheen), var(--frost-shadow) !important;
  backdrop-filter: blur(12px);
}
.card:hover, .feature-card:hover, .stream-card:hover, .news-card:hover, .howto-step:hover {
  border-color: rgba(213, 173, 104, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 18px 44px rgba(2, 8, 18, 0.78), 0 0 26px rgba(125, 211, 252, 0.18) !important;
}

/* Files / Download Modals & Overlays */
.modal__dialog, .overlay__panel, .popup__card, .download-modal__card, .modal-card {
  background: linear-gradient(160deg, rgba(11, 25, 46, 0.96), rgba(6, 13, 24, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 28px 70px rgba(0, 6, 16, 0.85), 0 0 38px rgba(125, 211, 252, 0.15) !important;
}

/* ==========================================================================
   2. ALL INNER CMS PAGES: WIKI (/wiki/), STATS (/stats/), RATING (/rating/)
   Eliminates 100% of old autumn env-hero.png / env-hero-2.jpg & brown boxes!
   ========================================================================== */
body.cms-page,
body.cms-offset {
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(125, 211, 252, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.64) 0%, rgba(8, 18, 34, 0.80) 55%, rgba(6, 13, 24, 0.94) 100%),
    url('/design/assets/images/winter/winter-hero-desktop.webp') center top / cover fixed,
    url('/design/assets/images/winter/winter-hero-desktop.jpg') center top / cover fixed,
    #060D18 !important;
  color: #F3F7FC !important;
}

/* CMS Main Content Panel (e.g. /stats/ & inner cabinet pages) */
.cms-shell .side-menu,
.cms-content,
.panel-box,
.panel-card,
.panel-role,
.cms-switch,
.rating-widget--full {
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.86), rgba(6, 13, 24, 0.93)) !important;
  border: 1px solid rgba(125, 211, 252, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16), 0 22px 54px rgba(2, 8, 18, 0.72) !important;
  backdrop-filter: blur(14px) !important;
}

/* Wiki Rows, Tables & Illustrations */
.wiki__row {
  background: rgba(9, 20, 38, 0.82) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.08);
}
.wiki__row::before {
  background: linear-gradient(135deg, #BAE6FD, #D5AD68) !important;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.45);
}
.wiki__row--note {
  border-color: rgba(213, 173, 104, 0.48) !important;
  background: linear-gradient(90deg, rgba(16, 33, 56, 0.90), rgba(10, 22, 40, 0.86)) !important;
}
.wiki__table th {
  color: #F3DFA8 !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.28) !important;
}
.wiki__table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.12) !important;
}
.wiki__image {
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  box-shadow: 0 18px 44px rgba(2, 8, 18, 0.72), 0 0 24px rgba(125, 211, 252, 0.10) !important;
}

/* Rating Widget Tabs, Select & Table */
.rating-widget--full .rating__tabs {
  border-bottom-color: rgba(125, 211, 252, 0.22) !important;
}
.rating-widget--full .rating__tab {
  background: rgba(8, 19, 36, 0.74) !important;
  border: 1px solid rgba(125, 211, 252, 0.22) !important;
  color: #C8D9EC !important;
}
.rating-widget--full .rating__tab:hover {
  border-color: rgba(243, 223, 168, 0.55) !important;
  color: #F3DFA8 !important;
}
.rating-server-label select {
  background: rgba(7, 17, 32, 0.90) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  color: #F3DFA8 !important;
}
.rating-widget--full th {
  color: #BAE6FD !important;
  border-bottom-color: rgba(125, 211, 252, 0.24) !important;
}
.rating-widget--full tbody tr:hover {
  background: rgba(125, 211, 252, 0.07) !important;
}

/* Dashboard Legacy Balance & Calendar Cards in cms.css */
.dash-balance, .dash-card--balance, [style*="dash-balance-bg"] {
  background-image:
    linear-gradient(135deg, rgba(6, 15, 29, 0.72), rgba(10, 22, 42, 0.82)),
    url('/design/assets/images/winter/winter-cabinet-cards.webp') !important;
  background-size: cover !important;
}
.dash-calendar, .dash-card--calendar, [style*="dash-calendar-bg"] {
  background-image:
    linear-gradient(135deg, rgba(6, 15, 29, 0.68), rgba(8, 18, 34, 0.84)),
    url('/design/assets/images/winter/winter-community.webp') !important;
  background-size: cover !important;
}

/* Footer */
.footer, footer.footer, .cms-page .footer {
  background: linear-gradient(180deg, rgba(7, 17, 33, 0.94) 0%, #040A14 100%) !important;
  border-top: 1px solid rgba(125, 211, 252, 0.20) !important;
}

/* ==========================================================================
   3. AUTH PAGES (/login/, /register/, /forgotten-password/)
   ========================================================================== */
body.portal-auth {
  color: #F3F7FC !important;
  background:
    radial-gradient(ellipse 75% 45% at 50% 0%, rgba(125, 211, 252, 0.16), transparent 62%),
    radial-gradient(ellipse 50% 40% at 85% 95%, rgba(213, 173, 104, 0.10), transparent 60%),
    linear-gradient(125deg, rgba(6, 13, 24, 0.72), rgba(8, 18, 34, 0.84)),
    url('/design/assets/images/winter/winter-hero-desktop.webp') center top / cover fixed,
    url('/design/assets/images/winter/winter-hero-desktop.jpg') center top / cover fixed,
    #060D18 !important;
}
.portal-auth .auth-top {
  position: relative;
  z-index: 20;
  padding: 22px 5%;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.80), rgba(6, 14, 27, 0.40));
  backdrop-filter: blur(12px);
}
.portal-auth .auth-top__nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.portal-auth .auth-top__link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: rgba(10, 22, 40, 0.68);
  color: #DCE8F6 !important;
  font: 500 13px/1 var(--font-body);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.portal-auth .auth-top__link:hover {
  border-color: rgba(213, 173, 104, 0.68);
  color: #F3DFA8 !important;
  background: rgba(15, 31, 56, 0.88);
}
.portal-auth .auth-eyebrow { color: #7DD3FC !important; text-shadow: 0 0 18px rgba(125, 211, 252, 0.45); }
.portal-auth .auth-story h1 { color: #F3F7FC !important; text-shadow: 0 6px 32px rgba(3, 10, 22, 0.85); }
.portal-auth .auth-story h1 em {
  background: linear-gradient(115deg, #E0F2FE 0%, #F3DFA8 35%, #D5AD68 65%, #BAE6FD 100%) !important;
  background-size: 200% auto !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
  animation: winter-shimmer 7s ease-in-out infinite alternate !important;
}
.portal-auth .auth-story p { color: #B8CBE0 !important; }
.portal-auth .auth-story::after {
  border-color: rgba(125, 211, 252, 0.14) !important;
  box-shadow: 0 0 0 50px rgba(125, 211, 252, 0.03), 0 0 0 100px rgba(213, 173, 104, 0.02) !important;
}
.portal-auth .auth-panel {
  border: 1px solid rgba(125, 211, 252, 0.32) !important;
  background:
    linear-gradient(#F3DFA8, #F3DFA8) left top / 16px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 1.5px 16px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 16px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 1.5px 16px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 16px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 1.5px 16px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 16px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 1.5px 16px no-repeat,
    linear-gradient(165deg, rgba(11, 24, 44, 0.88), rgba(6, 13, 25, 0.95)) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.22),
    0 28px 68px rgba(2, 8, 18, 0.78),
    0 0 42px rgba(125, 211, 252, 0.12) !important;
}
.portal-auth input[type="text"],
.portal-auth input[type="password"],
.portal-auth input[type="email"],
.portal-auth select {
  background: rgba(6, 15, 29, 0.86) !important;
  border-color: rgba(125, 211, 252, 0.26) !important;
  color: #F3F7FC !important;
}
.portal-auth input:focus,
.portal-auth select:focus {
  border-color: #7DD3FC !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.16), 0 0 16px rgba(213, 173, 104, 0.14) !important;
}

/* ==========================================================================
   4. PERSONAL CABINET V2 (/cabinet/*, coin-shop, portal-fresh)
   ========================================================================== */
body.portal-page,
body.portal-page--v2,
body.coin-shop-page {
  background:
    radial-gradient(ellipse 75% 42% at 50% 0%, rgba(125, 211, 252, 0.15), transparent 64%),
    linear-gradient(180deg, rgba(6, 13, 24, 0.66) 0%, rgba(8, 18, 34, 0.82) 55%, rgba(6, 13, 24, 0.94) 100%),
    url('/design/assets/images/winter/winter-hero-desktop.webp') center top / cover fixed,
    url('/design/assets/images/winter/winter-hero-desktop.jpg') center top / cover fixed,
    #060D18 !important;
  color: #F3F7FC !important;
}
body.portal-page .navbar,
body.portal-page #cabNavbar {
  background: linear-gradient(180deg, rgba(7, 16, 30, 0.92), rgba(7, 16, 30, 0.84)) !important;
  backdrop-filter: blur(16px) saturate(135%) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
  box-shadow: 0 10px 32px rgba(2, 8, 18, 0.62) !important;
}
body.portal-page .navbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(224, 242, 254, 0.52), rgba(243, 223, 168, 0.58), rgba(224, 242, 254, 0.52), transparent);
}
body.portal-page .sidebar,
body.portal-page .cab-sidebar,
body.portal-page .card,
body.portal-page .cab-card,
body.portal-page .panel-card,
body.portal-page .stat-card,
body.portal-page .coin-pack,
body.portal-page .coin-shop-card,
body.portal-page .nav-menu {
  background: var(--frost-glass) !important;
  border-color: rgba(125, 211, 252, 0.24) !important;
  box-shadow: var(--frost-sheen), var(--frost-shadow) !important;
  backdrop-filter: blur(14px);
}
body.portal-page .dash-balance-card,
body.portal-page .balance-card,
body.portal-page .dash-calendar-card,
body.portal-page .calendar-card {
  background-image:
    linear-gradient(135deg, rgba(6, 15, 29, 0.72), rgba(10, 22, 42, 0.82)),
    url('/design/assets/images/winter/winter-cabinet-cards.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1px solid rgba(213, 173, 104, 0.40) !important;
}
body.portal-page .calendar-hero,
body.portal-page .cal-banner {
  background-image:
    linear-gradient(135deg, rgba(6, 15, 29, 0.68), rgba(8, 18, 34, 0.84)),
    url('/design/assets/images/winter/winter-community.webp') !important;
  background-size: cover !important;
  background-position: center !important;
}
body.portal-page .nav-link:hover,
body.portal-page .nav-link.is-active,
body.portal-page .side-link:hover,
body.portal-page .side-link.is-active {
  color: #F3DFA8 !important;
  border-color: rgba(125, 211, 252, 0.34) !important;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.14), rgba(213, 173, 104, 0.08)) !important;
}

/* ==========================================================================
   5. WINTER BADGE & 4-COLUMN WINTER LOCATIONS GRID
   ========================================================================== */
.winter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(186, 230, 253, 0.42);
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.16), rgba(213, 173, 104, 0.16));
  color: #E0F2FE;
  font: 600 11px/1.2 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 18px rgba(125, 211, 252, 0.18);
}
.winter-loc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) {
  .winter-loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .winter-locations__inner { padding-left: 20px !important; padding-right: 20px !important; }
}
@media (max-width: 600px) {
  .winter-loc-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   6. WINTER v3 POLISH — ALL 6 ARROWED ELEMENTS + CALENDAR + NO TEST LABELS
   ========================================================================== */

/* Arrow 1: Top Navigation Links & Icy Crystal Diamond Separators */
.header__link {
  color: #DCE8F6 !important;
  text-shadow: 0 1px 10px rgba(4, 12, 24, 0.75);
}
.header__link:hover,
.header__link.active {
  color: #F3DFA8 !important;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.45);
}
.header__link + .header__link::before {
  background: linear-gradient(135deg, #E0F2FE, #7DD3FC) !important;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.75) !important;
}
.header__link::after {
  background: linear-gradient(90deg, #7DD3FC, #F3DFA8, #7DD3FC) !important;
}

/* Arrow 2: Telegram Icon & Language Selector (RU) in Frosted Arctic Glass */
.header__social {
  background: linear-gradient(180deg, rgba(16, 36, 64, 0.88), rgba(7, 17, 32, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.42) !important;
  color: #BAE6FD !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 14px rgba(2, 8, 18, 0.45), 0 0 12px rgba(125, 211, 252, 0.16) !important;
}
.header__social:hover {
  border-color: #F3DFA8 !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 18px rgba(125, 211, 252, 0.42) !important;
}
.lang-dd__btn {
  background: linear-gradient(180deg, rgba(16, 36, 64, 0.88), rgba(7, 17, 32, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.40) !important;
  color: #E0F2FE !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 4px 14px rgba(2, 8, 18, 0.45) !important;
}
.lang-dd__btn:hover {
  border-color: #F3DFA8 !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 16px rgba(125, 211, 252, 0.30) !important;
}
.lang-dd__menu {
  background: linear-gradient(160deg, rgba(11, 25, 46, 0.96), rgba(6, 13, 24, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.2), 0 18px 42px rgba(2, 8, 18, 0.78) !important;
}

/* Arrow 3: Right-Side Stage Cards (Interlude x20 / B-Grade / A-Grade / S-Grade) — Clean Frost Glass + Pure Diamond Icons */
.hero__side .side-item {
  background:
    linear-gradient(160deg, rgba(10, 23, 42, 0.84), rgba(6, 13, 24, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.24), 0 12px 30px rgba(2, 8, 18, 0.62), 0 0 18px rgba(125, 211, 252, 0.08) !important;
  backdrop-filter: blur(10px) !important;
}
.hero__side .side-item--lead {
  border-color: rgba(186, 230, 253, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 14px 34px rgba(2, 8, 18, 0.70), 0 0 22px rgba(125, 211, 252, 0.16) !important;
}
.hero__side .side-item:hover {
  border-color: rgba(243, 223, 168, 0.62) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 34px rgba(2, 8, 18, 0.74), 0 0 24px rgba(125, 211, 252, 0.24) !important;
}
/* Keep .side-item__icon container completely transparent (no square box behind rotated diamond!) */
.hero__side .side-item__icon {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hero__side .side-item__icon::before {
  background: linear-gradient(145deg, rgba(14, 34, 62, 0.92), rgba(6, 15, 29, 0.96)) !important;
  border-color: rgba(125, 211, 252, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.35), 0 0 12px rgba(125, 211, 252, 0.22) !important;
}
.hero__side .side-item__name { color: #F3F7FC !important; }
.hero__side .side-item__sub { color: #9FC0DF !important; }

/* Landing #rating Section (Tabs, Table Panel, Rank Badges) — Full Frost & Royal Gold */
.rating__tab {
  background: linear-gradient(180deg, rgba(12, 27, 48, 0.84), rgba(6, 14, 27, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  color: #CFE3F7 !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.20), 0 6px 18px rgba(2, 8, 18, 0.45) !important;
  backdrop-filter: blur(8px);
}
.rating__tab:hover {
  border-color: rgba(243, 223, 168, 0.62) !important;
  color: #F3DFA8 !important;
  background: linear-gradient(180deg, rgba(18, 38, 68, 0.90), rgba(8, 19, 36, 0.94)) !important;
}
.rating__tab.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.62) 14%, transparent 32%),
    linear-gradient(180deg, #f3d792 0%, #d6ad5e 54%, #a87f39 100%) !important;
  color: #101620 !important;
  border: 1px solid rgba(224, 242, 254, 0.75) !important;
  border-bottom-color: rgba(143, 111, 54, 0.85) !important;
  box-shadow: inset 0 1.5px 0 #ffffff, 0 8px 22px rgba(213, 173, 104, 0.30), 0 0 18px rgba(125, 211, 252, 0.30) !important;
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.45);
}
.rating__panel {
  background:
    linear-gradient(#F3DFA8, #F3DFA8) left top / 14px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 1.5px 14px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 14px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 1.5px 14px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 14px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 1.5px 14px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 14px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 1.5px 14px no-repeat,
    linear-gradient(160deg, rgba(10, 23, 42, 0.84), rgba(5, 12, 24, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.18), 0 22px 54px rgba(2, 8, 18, 0.72), 0 0 28px rgba(125, 211, 252, 0.10) !important;
  backdrop-filter: blur(12px) !important;
}
.rating__table th {
  color: #BAE6FD !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.24) !important;
}
.rating__table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.11) !important;
  color: #DCE8F6 !important;
}
.rating__table tbody tr:first-child {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.14), rgba(213, 173, 104, 0.10) 45%, transparent) !important;
}
.rating__table tbody tr:hover {
  background: rgba(125, 211, 252, 0.09) !important;
}
.rating__score {
  color: #F3DFA8 !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.25);
}
.rank {
  background: linear-gradient(145deg, rgba(16, 36, 64, 0.92), rgba(7, 17, 32, 0.96)) !important;
  border: 1px solid rgba(125, 211, 252, 0.45) !important;
  color: #BAE6FD !important;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.18) !important;
}
.rating__table tbody tr:first-child .rank {
  border-color: #F3DFA8 !important;
  color: #F3DFA8 !important;
  box-shadow: 0 0 14px rgba(243, 223, 168, 0.38) !important;
}

/* Frosted Royal Gold + Snow-Cap Rim on Stage Badges (СЕЗОН 1 / СТАДИЯ I-III) */
.badge--season {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(224, 242, 254, 0.52) 18%, transparent 38%),
    linear-gradient(180deg, #f3d792 0%, #d5ad68 58%, #a87f39 100%) !important;
  color: #101620 !important;
  border: 1px solid rgba(224, 242, 254, 0.72) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 14px rgba(125, 211, 252, 0.30) !important;
}
.badge--stage {
  background: linear-gradient(180deg, rgba(18, 40, 72, 0.92), rgba(8, 19, 36, 0.96)) !important;
  color: #BAE6FD !important;
  border: 1px solid rgba(125, 211, 252, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.30), 0 0 10px rgba(125, 211, 252, 0.14) !important;
}

/* Arrow 4: Left Vertical Side-Nav (.side-nav) — Crisp Winter Crystal SVG Diamonds */
.side-nav::before {
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, 0.55), rgba(213, 173, 104, 0.45), transparent) !important;
}
.side-nav__link {
  color: #B2C9E2 !important;
}
.side-nav__link i {
  border: 0 !important;
  box-shadow: none !important;
  background: url('/design/assets/ornaments/anchor-winter.svg') center / contain no-repeat !important;
}
.side-nav__link i::after {
  box-shadow: none !important;
  background: url('/design/assets/ornaments/anchor-active-winter.svg') center / contain no-repeat !important;
}
.side-nav__link:hover,
.side-nav__link.active {
  color: #F3DFA8 !important;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.55) !important;
}

/* ==========================================================================
   7. WINTER v4 — CLASHING DRAGONS BACKDROP (CABINET + COIN SHOP),
      DRAGON HERO FRAMING, BUTTON CONTRAST FIX & 21-DAY WINTER CALENDAR
   ========================================================================== */

/* Main Hero — 4K Two Clashing Dragons cleanly behind untouched LA2PLUS logo */
.hero__bg-image--desktop {
  background-position: center 42% !important;
  background-color: #060D18;
}

/* 4K ICE DRAGON Backdrop for Personal Cabinet V2 & Deposit Shop */
body.portal-page,
body.portal-page--v2,
body.coin-shop-page {
  background:
    linear-gradient(180deg, rgba(5, 12, 23, 0.38) 0%, rgba(5, 12, 23, 0.48) 55%, rgba(5, 12, 23, 0.66) 100%),
    url('/design/assets/images/winter/winter-dragon-hero-desktop.webp?v=4k') center top / cover fixed,
    url('/design/assets/images/winter/winter-dragon-hero-desktop.jpg?v=4k') center top / cover fixed,
    #060D18 !important;
  image-rendering: -webkit-optimize-contrast;
}

/* Coin of Luck Deposit Page (/cabinet/deposit/) — Full Frost & Royal Gold + Snow-Cap Rim over 4K Ice Dragon
   (uses !important because views/cabinet/deposit/index.php loads coin-shop.css inside <body> after <head><meta charset="utf-8">) */
.coin-shop {
  --cg: #E6C382 !important;
  --cg-bright: #F3DFA8 !important;
  --cg-dim: #D5AD68 !important;
  --cg-border: rgba(125, 211, 252, 0.32) !important;
  --cg-border-strong: rgba(186, 230, 253, 0.62) !important;
  --cs-line: rgba(125, 211, 252, 0.22) !important;
  --cs-surface: linear-gradient(160deg, rgba(8, 19, 36, 0.84), rgba(5, 12, 23, 0.92)) !important;
  color: #EEF6FF !important;
}
.coin-shop::before {
  background:
    linear-gradient(180deg, rgba(5, 12, 23, 0.38) 0%, rgba(5, 12, 23, 0.50) 55%, rgba(5, 12, 23, 0.68) 100%),
    url('/design/assets/images/winter/winter-dragon-hero-desktop.webp?v=4k') center top / cover fixed !important;
}
.coin-shop a {
  color: #BAE6FD !important;
}
.coin-shop a:hover {
  color: #F3DFA8 !important;
}
.coin-shop .coin-shop-heading {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(186, 230, 253, 0.08) 12%, transparent 28%),
    linear-gradient(#F3DFA8, #F3DFA8) left top / 12px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 1.5px 12px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 12px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 1.5px 12px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 12px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 1.5px 12px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 12px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 1.5px 12px no-repeat,
    radial-gradient(ellipse at 90% 15%, rgba(125, 211, 252, 0.18), transparent 56%),
    linear-gradient(160deg, rgba(9, 22, 42, 0.84), rgba(5, 12, 24, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.36) !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), 0 18px 44px rgba(2, 8, 18, 0.62), 0 0 28px rgba(125, 211, 252, 0.14) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.coin-shop .coin-shop-heading > a {
  color: #BAE6FD !important;
  background: rgba(14, 34, 62, 0.78) !important;
  border: 1px solid rgba(125, 211, 252, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
.coin-shop .coin-shop-heading > a:hover {
  color: #F3DFA8 !important;
  border-color: rgba(243, 223, 168, 0.72) !important;
  background: rgba(20, 44, 78, 0.92) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 0 16px rgba(125, 211, 252, 0.24) !important;
}
.coin-shop h1 {
  color: #F3F8FF !important;
}
.coin-shop h1 em {
  background: linear-gradient(120deg, #E0F2FE 0%, #FFF4CE 42%, #D5AD68 72%, #BAE6FD 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.coin-shop .coin-shop-heading p,
.coin-shop .coin-muted,
.coin-shop .coin-panel label {
  color: #9FC0DF !important;
}
.coin-shop .coin-notice {
  border: 1px solid rgba(186, 230, 253, 0.46) !important;
  color: #E0F2FE !important;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(125, 211, 252, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(11, 27, 50, 0.90), rgba(6, 14, 28, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 28px rgba(2, 8, 18, 0.50) !important;
}
.coin-shop .coin-notice strong {
  color: #F3DFA8 !important;
}
.coin-shop .coin-panel,
.coin-shop .cs-card,
.coin-shop .cs-hero,
.coin-shop .cs-box,
.coin-shop .cs-panel,
.coin-shop .cs-step,
.coin-shop .coin-shop-card,
.coin-shop .coin-shop-hero,
.coin-shop section {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.10) 0%, transparent 16%),
    linear-gradient(#F3DFA8, #F3DFA8) left top / 12px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 1.5px 12px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 12px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 1.5px 12px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 12px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 1.5px 12px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 12px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 1.5px 12px no-repeat,
    linear-gradient(160deg, rgba(8, 19, 36, 0.84), rgba(5, 12, 23, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.22), 0 18px 44px rgba(2, 8, 18, 0.62) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.coin-shop .coin-panel:hover {
  border-color: rgba(186, 230, 253, 0.52) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 20px 48px rgba(2, 8, 18, 0.68), 0 0 24px rgba(125, 211, 252, 0.14) !important;
}
.coin-shop .coin-panel h2 {
  color: #F3DFA8 !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
}
.coin-shop .coin-panel h2 > span {
  color: #E0F2FE !important;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.22), rgba(14, 34, 62, 0.86)) !important;
  border: 1px solid rgba(186, 230, 253, 0.46) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 0 12px rgba(125, 211, 252, 0.18) !important;
}
.coin-shop .coin-server {
  border: 1px solid rgba(243, 223, 168, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 24%),
    radial-gradient(ellipse at 100% 0%, rgba(125, 211, 252, 0.22), transparent 68%),
    linear-gradient(145deg, rgba(14, 34, 64, 0.92), rgba(7, 17, 34, 0.96)) !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 10px 26px rgba(2, 8, 18, 0.55), 0 0 20px rgba(125, 211, 252, 0.18) !important;
}
.coin-shop .coin-server:hover {
  border-color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), 0 12px 30px rgba(2, 8, 18, 0.62), 0 0 26px rgba(125, 211, 252, 0.28) !important;
}
.coin-shop .coin-server span {
  color: #BAE6FD !important;
}
.coin-shop input:not([type="range"]),
.coin-shop select {
  background: rgba(6, 15, 30, 0.92) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  color: #F3F8FF !important;
  box-shadow: inset 0 2px 6px rgba(2, 8, 18, 0.55) !important;
}
.coin-shop input:not([type="range"]):focus,
.coin-shop select:focus {
  border-color: #BAE6FD !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22), 0 0 16px rgba(125, 211, 252, 0.18) !important;
}
.coin-shop #coin-amount {
  color: #F3DFA8 !important;
}
.coin-shop select option {
  background: #081529 !important;
  color: #F3F8FF !important;
}
.coin-shop input[type="range"] {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.32), rgba(213, 173, 104, 0.36)) !important;
  accent-color: #F3DFA8 !important;
}
.coin-shop .coin-tiers button {
  background: linear-gradient(160deg, rgba(9, 22, 42, 0.86), rgba(5, 13, 26, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16) !important;
}
.coin-shop .coin-tiers span {
  color: #9FC0DF !important;
}
.coin-shop .coin-tiers button:hover {
  border-color: rgba(186, 230, 253, 0.65) !important;
  background: linear-gradient(160deg, rgba(16, 38, 70, 0.92), rgba(8, 20, 40, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 20px rgba(2, 8, 18, 0.45), 0 0 16px rgba(125, 211, 252, 0.22) !important;
}
.coin-shop .coin-tiers [aria-pressed="true"] {
  border-color: #F3DFA8 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 28%),
    linear-gradient(145deg, rgba(22, 52, 92, 0.92), rgba(14, 30, 56, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 0 22px rgba(125, 211, 252, 0.30), 0 0 14px rgba(213, 173, 104, 0.24) !important;
}
.coin-shop .coin-summary {
  background: linear-gradient(135deg, rgba(7, 18, 35, 0.90), rgba(11, 26, 48, 0.86)) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.20), 0 10px 26px rgba(2, 8, 18, 0.46) !important;
}
.coin-shop .coin-summary > span {
  color: #B8D4EE !important;
}
.coin-shop .coin-summary strong {
  color: #F3DFA8 !important;
  text-shadow: 0 0 14px rgba(213, 173, 104, 0.28);
}
.coin-shop .coin-summary small {
  color: #6EE7B7 !important;
}
.coin-shop .coin-method {
  background: linear-gradient(160deg, rgba(9, 22, 42, 0.86), rgba(5, 13, 26, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.14) !important;
}
.coin-shop .coin-method strong {
  color: #F3F8FF !important;
}
.coin-shop .coin-method span {
  color: #9FC0DF !important;
}
.coin-shop .coin-method small {
  color: #799AB9 !important;
}
.coin-shop .coin-method:not(:disabled):hover {
  border-color: rgba(186, 230, 253, 0.62) !important;
  background: linear-gradient(160deg, rgba(16, 38, 70, 0.92), rgba(8, 20, 40, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 24px rgba(2, 8, 18, 0.50), 0 0 18px rgba(125, 211, 252, 0.20) !important;
}
.coin-shop .coin-method.is-selected {
  border-color: #F3DFA8 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 26%),
    radial-gradient(ellipse at 100% 0%, rgba(125, 211, 252, 0.24), transparent 68%),
    linear-gradient(145deg, rgba(16, 38, 70, 0.94), rgba(7, 17, 34, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 10px 28px rgba(2, 8, 18, 0.56), 0 0 22px rgba(125, 211, 252, 0.24) !important;
}
.coin-shop .coin-method.is-selected strong {
  color: #F3DFA8 !important;
}
.coin-shop .coin-method.is-selected small {
  color: #6EE7B7 !important;
}
.coin-shop .coin-submit {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(224, 242, 254, 0.56) 14%, transparent 32%),
    linear-gradient(180deg, #f3d792 0%, #d6ad5e 54%, #a87f39 100%) !important;
  border: 1px solid rgba(224, 242, 254, 0.78) !important;
  border-bottom-color: rgba(143, 111, 54, 0.88) !important;
  color: #101620 !important;
  box-shadow: inset 0 1.5px 0 #ffffff, 0 8px 24px rgba(213, 173, 104, 0.32), 0 0 18px rgba(125, 211, 252, 0.26) !important;
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.45) !important;
  animation: none !important;
}
.coin-shop .coin-submit:not(:disabled):hover {
  filter: brightness(1.07) !important;
  box-shadow: inset 0 1.5px 0 #ffffff, 0 10px 30px rgba(213, 173, 104, 0.45), 0 0 24px rgba(125, 211, 252, 0.40) !important;
}
.coin-shop [data-coin-message] {
  color: #BAE6FD !important;
}

/* Comfortable High-Readability Frosted Glass in Cabinet V2 (Dragons frame edges cleanly; UI is 100% readable!) */
body.portal-page .cab-sidebar,
body.portal-page .sidebar,
body.portal-page .ov-card,
body.portal-page .portal-card,
body.portal-page .portal-box,
body.portal-page .vote-box,
body.portal-page .card,
body.portal-page .cab-card,
body.portal-page .panel-card,
body.portal-page .stat-card,
body.portal-page .item-card,
body.portal-page .portal-conversation article,
body.portal-page .portal-message {
  background: linear-gradient(160deg, rgba(8, 19, 36, 0.80), rgba(5, 12, 23, 0.89)) !important;
  border-color: rgba(125, 211, 252, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.18), 0 18px 44px rgba(2, 8, 18, 0.60) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
body.portal-page .navbar,
body.portal-page #cabNavbar {
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.90), rgba(6, 14, 27, 0.82)) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* FIX UNREADABLE DARK BUTTONS IN CABINET V2 (+ Создать аккаунт, Получить в игре, Показать аккаунт, Отправить обращение) */
body.portal-page .btn--gold,
body.portal-page .vote-box a[href*="/cabinet/portal/calendar/"],
body.portal-page .server-pill,
body.portal-page .cab-server-btn {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90) 0%, rgba(224, 242, 254, 0.56) 14%, transparent 32%),
    linear-gradient(180deg, #f3d792 0%, #d6ad5e 54%, #a87f39 100%) !important;
  color: #101620 !important;
  border: 1px solid rgba(224, 242, 254, 0.72) !important;
  border-bottom-color: rgba(143, 111, 54, 0.85) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1.5px 0 #ffffff, 0 8px 22px rgba(213, 173, 104, 0.28), 0 0 16px rgba(125, 211, 252, 0.24) !important;
  text-shadow: 0 1px 0 rgba(255, 252, 240, 0.45) !important;
  animation: none !important;
}
body.portal-page .btn--gold:hover,
body.portal-page .vote-box a[href*="/cabinet/portal/calendar/"]:hover {
  filter: brightness(1.07);
  box-shadow: inset 0 1.5px 0 #ffffff, 0 10px 26px rgba(213, 173, 104, 0.42), 0 0 22px rgba(125, 211, 252, 0.42) !important;
}
body.portal-page .btn--outline,
body.portal-page button.btn--outline,
body.portal-page a.btn--outline {
  background: linear-gradient(180deg, rgba(16, 36, 64, 0.88), rgba(8, 19, 36, 0.94)) !important;
  color: #F3DFA8 !important;
  border: 1px solid rgba(186, 230, 253, 0.42) !important;
  border-bottom-color: rgba(213, 173, 104, 0.55) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 4px 16px rgba(2, 8, 18, 0.45) !important;
  text-shadow: 0 1px 6px rgba(2, 8, 18, 0.75) !important;
  animation: none !important;
}
body.portal-page .btn--outline:hover,
body.portal-page button.btn--outline:hover,
body.portal-page a.btn--outline:hover {
  border-color: #F3DFA8 !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 18px rgba(125, 211, 252, 0.34) !important;
}
body.portal-page .btn--ghost,
body.portal-page a.btn--ghost {
  background: rgba(10, 22, 42, 0.72) !important;
  color: #DCE8F6 !important;
  border: 1px solid rgba(125, 211, 252, 0.26) !important;
}
body.portal-page .btn--ghost:hover,
body.portal-page a.btn--ghost:hover {
  color: #F3DFA8 !important;
  border-color: rgba(243, 223, 168, 0.58) !important;
}

/* FIX TOP-RIGHT CALENDAR KPI CARD (.ov-card[data-portal-card="calendar"]) — Custom Winter Calendar Art */
body.portal-page .ov-card[data-portal-card="calendar"] {
  border: 1px solid rgba(186, 230, 253, 0.52) !important;
  background:
    linear-gradient(125deg, rgba(8, 22, 42, 0.58) 0%, rgba(6, 15, 30, 0.68) 55%, rgba(16, 36, 62, 0.56) 100%),
    url('/design/assets/images/winter/winter-calendar.webp?v=20261127-24') center 28% / cover no-repeat !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.42), 0 12px 34px rgba(2, 8, 18, 0.58), 0 0 24px rgba(125, 211, 252, 0.24) !important;
}

/* FIX CALENDAR PAGE INTRO BANNER & 21-DAY GRID (.portal-attendance-intro, .portal-attendance-day) */
body.portal-page .portal-attendance-intro {
  background: linear-gradient(125deg, rgba(8, 19, 36, 0.84) 0%, rgba(5, 12, 23, 0.90) 65%, rgba(10, 24, 46, 0.84) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.20), 0 16px 38px rgba(2, 8, 18, 0.58) !important;
  backdrop-filter: blur(8px) !important;
}
body.portal-page .portal-attendance-progress {
  background: rgba(6, 15, 29, 0.86) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
}
body.portal-page .portal-attendance-day {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.12) 0%, transparent 16%),
    linear-gradient(160deg, rgba(8, 20, 38, 0.84), rgba(5, 12, 23, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.20), 0 10px 24px rgba(2, 8, 18, 0.55) !important;
  backdrop-filter: blur(8px) !important;
}
body.portal-page .portal-attendance-day:hover {
  border-color: rgba(243, 223, 168, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 14px 32px rgba(2, 8, 18, 0.68), 0 0 22px rgba(125, 211, 252, 0.24) !important;
}
body.portal-page .portal-attendance-day:nth-child(7n) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(243, 223, 168, 0.14) 18%, transparent 42%),
    linear-gradient(160deg, rgba(14, 30, 54, 0.88), rgba(6, 14, 28, 0.94)) !important;
  border: 1px solid rgba(243, 223, 168, 0.72) !important;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.42), 0 12px 30px rgba(2, 8, 18, 0.65), 0 0 24px rgba(213, 173, 104, 0.26) !important;
}
body.portal-page .portal-attendance-day.is-current {
  border: 2px solid #BAE6FD !important;
  box-shadow: inset 0 1.5px 0 #ffffff, 0 0 28px rgba(125, 211, 252, 0.46), 0 0 18px rgba(243, 223, 168, 0.36) !important;
}
body.portal-page input,
body.portal-page select,
body.portal-page textarea {
  background: rgba(6, 14, 27, 0.90) !important;
  border: 1px solid rgba(125, 211, 252, 0.30) !important;
  color: #F3F7FC !important;
}

/* Sidebar Active Links & Cabinet Inputs/Selects in Arctic Frost */
body.portal-page .cab-side-link.is-active {
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.16), rgba(213, 173, 104, 0.14)) !important;
  border: 1px solid rgba(186, 230, 253, 0.42) !important;
  color: #F3DFA8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 16px rgba(125, 211, 252, 0.14) !important;
}
body.portal-page input,
body.portal-page select,
body.portal-page textarea {
  background: rgba(6, 15, 29, 0.88) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: #F3F7FC !important;
}
body.portal-page select option {
  background: #0A1526;
  color: #F3F7FC;
}
body.portal-page footer,
body.portal-page .cab-footer {
  background: rgba(5, 12, 24, 0.86) !important;
  border-top: 1px solid rgba(125, 211, 252, 0.20) !important;
  color: #9FC0DF !important;
}
body.portal-page footer a,
body.portal-page .cab-footer a {
  color: #BAE6FD !important;
}
body.portal-page footer a:hover,
body.portal-page .cab-footer a:hover {
  color: #F3DFA8 !important;
}

/* Files / Download Modal (.modal__dialog & .dl-row) — Full Winter HD Frosted Glass & Snow-Cap Rim */
.modal__dialog {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(186, 230, 253, 0.14) 5%, transparent 18%),
    linear-gradient(#F3DFA8, #F3DFA8) left top / 16px 2px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 2px 16px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 16px 2px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) right top / 2px 16px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 16px 2px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) left bottom / 2px 16px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 16px 2px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 2px 16px no-repeat,
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(125, 211, 252, 0.24), transparent 65%),
    linear-gradient(170deg, rgba(8, 20, 38, 0.88), rgba(5, 12, 24, 0.94)),
    url('/design/assets/images/winter/winter-community.webp') center top / cover no-repeat !important;
  border: 1px solid rgba(186, 230, 253, 0.44) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 28px rgba(125, 211, 252, 0.12),
    0 28px 80px rgba(0, 6, 16, 0.88),
    0 0 42px rgba(125, 211, 252, 0.20) !important;
  scrollbar-color: #7DD3FC #071324 !important;
}
.modal__dialog::after { display: none !important; }
.modal__content h2 {
  background: linear-gradient(120deg, #E0F2FE 0%, #FFF4CE 42%, #D5AD68 72%, #BAE6FD 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.36)) !important;
}
.dl-row {
  background:
    linear-gradient(180deg, rgba(224, 242, 254, 0.18) 0%, transparent 22%),
    linear-gradient(#F3DFA8, #F3DFA8) left top / 10px 1.5px no-repeat,
    linear-gradient(#F3DFA8, #F3DFA8) left top / 1.5px 10px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 10px 1.5px no-repeat,
    linear-gradient(#7DD3FC, #7DD3FC) right bottom / 1.5px 10px no-repeat,
    linear-gradient(160deg, rgba(11, 26, 48, 0.84), rgba(6, 14, 27, 0.92)) !important;
  border: 1px solid rgba(125, 211, 252, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 10px 28px rgba(2, 8, 18, 0.52), 0 0 16px rgba(125, 211, 252, 0.08) !important;
}
.dl-row::after { display: none !important; }
.dl-row:hover {
  border-color: rgba(243, 223, 168, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 32px rgba(2, 8, 18, 0.68), 0 0 24px rgba(125, 211, 252, 0.24) !important;
}
@media (min-width: 680px) {
  .dl-row { flex-wrap: nowrap !important; }
  .dl-row > :first-child { flex: 1 1 auto; min-width: 0; }
  .dl-row .btn { flex-shrink: 0; }
}
.modal__subtitle { color: #BAE6FD !important; }
.modal__subtitle::after { color: #7DD3FC !important; text-shadow: 0 0 12px rgba(125, 211, 252, 0.85) !important; }
.modal__close {
  border-color: rgba(186, 230, 253, 0.38) !important;
  background: rgba(10, 24, 44, 0.78) !important;
  color: #E0F2FE !important;
}
.modal__close:hover {
  border-color: #F3DFA8 !important;
  color: #F3DFA8 !important;
  background: rgba(16, 36, 64, 0.92) !important;
  box-shadow: 0 0 16px rgba(125, 211, 252, 0.32);
}

/* Keep .hero__side absolute (do NOT override its positioning!), only ensure clean z-index */
.hero__content { z-index: 4; }
.hero__side { z-index: 5; }
body.portal-page > :not(#la2pWinterSnowCanvas) { position: relative; z-index: 2; }
body.portal-page #cabNavbar, body.portal-page .navbar { z-index: 30; }

/* Clean Single-Column CMS Pages (master.php without legacy Cabinet sidebar) */
.cms-shell--clean {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 980px !important;
  margin: 34px auto 60px !important;
  padding: 0 20px !important;
}
.cms-shell--clean .cms-content {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 32px 34px !important;
  border-radius: 14px !important;
}

/* CRITICAL MOBILE FIX (<= 1023px): disable backdrop-filter on .header so position:fixed .header__nav fills full 100vh viewport! */
@media (max-width: 1023px) {
  .header,
  header.header,
  .header.scrolled,
  .cms-page .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: linear-gradient(180deg, rgba(6, 14, 27, 0.98), rgba(8, 18, 34, 0.96)) !important;
  }
  .header__nav {
    background:
      radial-gradient(ellipse 90% 40% at 50% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
      linear-gradient(180deg, rgba(6, 14, 27, 0.98), rgba(9, 22, 42, 0.99)) !important;
    border-top: 1px solid rgba(125, 211, 252, 0.22) !important;
  }
  .header__nav .header__link {
    border-bottom-color: rgba(125, 211, 252, 0.18) !important;
    color: #E2EEF9 !important;
  }
  .header__nav .header__icon {
    color: #7DD3FC !important;
    filter: drop-shadow(0 0 6px rgba(125, 211, 252, 0.45));
  }
}







/* Arrow 5: Hide any remaining Staging / Test UI notices */
.auth-test-note,
.auth-register-message,
.portal-demo-topup {
  display: none !important;
}

/* Arrow 6: Bottom Footer & Legal Links in Frosted Arctic Style */
.landing .footer {
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.72), rgba(4, 10, 20, 0.92)) !important;
  backdrop-filter: blur(14px) !important;
  border-top: 1px solid rgba(125, 211, 252, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.14) !important;
}
.footer__copy { color: #9FC0DF !important; }
.footer__links a {
  color: #BAE6FD !important;
  text-decoration-color: rgba(125, 211, 252, 0.45) !important;
}
.footer__links a:hover {
  color: #F3DFA8 !important;
  text-decoration-color: rgba(243, 223, 168, 0.75) !important;
  text-shadow: 0 0 12px rgba(125, 211, 252, 0.38);
}

/* Calendar & Cabinet V2 Deep Winter Polish */
.cal-grid .cal-day,
.cal-card,
.portal-card,
.portal-box {
  background: linear-gradient(160deg, rgba(11, 24, 44, 0.88), rgba(6, 13, 24, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16), 0 14px 36px rgba(2, 8, 18, 0.64) !important;
}
.cal-day.is-today,
.cal-day.is-active,
.cal-day.is-claimable {
  border-color: rgba(243, 223, 168, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 22px rgba(125, 211, 252, 0.28) !important;
}

/* Battle Pass Calendar Winter Arctic Polish */
body.portal-page .cal-bp-hero {
  background:
    radial-gradient(ellipse 65% 80% at 14% 0%, rgba(125, 211, 252, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 70% at 88% 100%, rgba(213, 173, 104, 0.16), transparent 64%),
    linear-gradient(115deg, rgba(7, 18, 36, 0.84) 0%, rgba(4, 11, 22, 0.72) 52%, rgba(7, 18, 36, 0.86) 100%),
    url('/design/assets/images/winter/winter-calendar.webp?v=20261127-24') center 24% / cover no-repeat;
  border-color: rgba(186, 230, 253, 0.42);
  backdrop-filter: blur(10px);
}
body.portal-page .cal-bp-day {
  backdrop-filter: blur(8px);
}
body.portal-page .cal-bp-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
body.portal-page .cal-bp-mini__ico .cal-bp-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

/* Purchase-Only Per-Account Calendar Panel */
body.portal-page .cal-acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
body.portal-page .cal-acc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(7, 16, 32, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.28);
}
body.portal-page .cal-acc-row.is-open {
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(10, 28, 30, 0.78);
}
body.portal-page .cal-acc-row__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
body.portal-page .cal-acc-row__info strong {
  color: #F6FAFF;
  font-size: 0.96rem;
}
body.portal-page .cal-acc-row__sub {
  color: #9FC0DF;
  font-size: 0.78rem;
}
body.portal-page .cal-acc-row__sub.is-ok {
  color: #86EFAC;
}
body.portal-page .cal-acc-row__act form {
  margin: 0;
}
body.portal-page .cal-acc-row__act button,
body.portal-page .cal-acc-row__act .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}
body.portal-page .cal-ingame-guide {
  padding: 22px 24px;
}
body.portal-page .cal-ingame-guide__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #F3DFA8;
}
body.portal-page .cal-ingame-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
body.portal-page .cal-ingame-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.20);
}
body.portal-page .cal-ingame-step__num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.84rem;
  color: #0B1220;
  background: linear-gradient(135deg, #FFF0BE, #D5AD68);
}
body.portal-page .cal-ingame-step strong {
  display: block;
  margin-bottom: 4px;
  color: #F3F7FC;
  font-size: 0.9rem;
}
body.portal-page .cal-ingame-step p {
  margin: 0;
  color: #A7C2DE;
  font-size: 0.82rem;
  line-height: 1.45;
}
@media (max-width: 820px) {
  body.portal-page .cal-ingame-steps {
    grid-template-columns: 1fr;
  }
}

/* Referral Center Winter Polish */
body.portal-page .ref-hero {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
body.portal-page .ref-hero__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.portal-page .ref-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
body.portal-page .ref-kpi {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.24);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.portal-page .ref-kpi__label {
  font-size: 0.78rem;
  color: #9FC0DF;
}
body.portal-page .ref-kpi__val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #F6FAFF;
}
body.portal-page .ref-kpi__val--gold {
  color: #F3DFA8;
}
body.portal-page .ref-share {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.portal-page .ref-share__label {
  font-size: 0.82rem;
  color: #B4CFE8;
}
body.portal-page .ref-copy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
body.portal-page .ref-copy-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
body.portal-page .ref-copy-row .btn--gold {
  flex: 0 0 auto;
  padding: 10px 20px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  body.portal-page .ref-kpis {
    grid-template-columns: 1fr;
  }
  body.portal-page .ref-copy-row {
    flex-direction: column;
  }
}

/* === Multi-Account Hub & Create Account (Winter Edition) === */
body.portal-page .ma-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
body.portal-page .ma-hub-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.portal-page .ma-slot-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #F3DFA8;
  background: rgba(213, 173, 104, 0.14);
  border: 1px solid rgba(213, 173, 104, 0.36);
}
body.portal-page .ma-hub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.portal-page .ma-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.68);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
body.portal-page .ma-search-input {
  width: 100%;
  padding: 9px 13px;
  border-radius: 9px;
  background: rgba(8, 20, 38, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: #F3F7FC;
  font-size: 0.86rem;
}
body.portal-page .ma-search-input:focus {
  outline: none;
  border-color: rgba(243, 223, 168, 0.6);
}
body.portal-page .ma-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
body.portal-page .ma-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(9, 21, 39, 0.72);
  color: #B4CFE8;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
body.portal-page .ma-chip:hover {
  border-color: rgba(243, 223, 168, 0.45);
  color: #F6FAFF;
}
body.portal-page .ma-chip.is-active {
  background: rgba(213, 173, 104, 0.2);
  border-color: rgba(243, 223, 168, 0.65);
  color: #FFF0BE;
}
body.portal-page .ma-chip--toggle {
  margin-left: auto;
}
body.portal-page .acc-item.is-pinned {
  border-color: rgba(243, 223, 168, 0.42);
  box-shadow: 0 0 0 1px rgba(243, 223, 168, 0.14) inset;
}
body.portal-page .ma-acc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
body.portal-page .ma-acc-summary__left,
body.portal-page .ma-acc-summary__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
body.portal-page .ma-acc-mark {
  color: #7DD3FC;
  font-size: 0.85rem;
}
body.portal-page .ma-acc-mark.is-pinned {
  color: #F3DFA8;
  font-size: 0.98rem;
}
body.portal-page .ma-acc-login {
  color: #F6FAFF;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}
body.portal-page .ma-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(9, 21, 39, 0.75);
  color: #9FC0DF;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
body.portal-page .ma-copy-btn:hover {
  border-color: rgba(243, 223, 168, 0.55);
  color: #FFF0BE;
}
body.portal-page .ma-copy-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(20, 83, 45, 0.45);
  color: #86EFAC;
}
body.portal-page .ma-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
body.portal-page .ma-role-pill--gold    { background: rgba(213, 173, 104, 0.18); border-color: rgba(243, 223, 168, 0.45); color: #FDE68A; }
body.portal-page .ma-role-pill--sky     { background: rgba(56, 189, 248, 0.16);  border-color: rgba(125, 211, 252, 0.42); color: #7DD3FC; }
body.portal-page .ma-role-pill--violet  { background: rgba(167, 139, 250, 0.18); border-color: rgba(196, 181, 253, 0.42); color: #DDD6FE; }
body.portal-page .ma-role-pill--amber   { background: rgba(245, 158, 11, 0.16);  border-color: rgba(252, 211, 77, 0.4);   color: #FCD34D; }
body.portal-page .ma-role-pill--emerald { background: rgba(52, 211, 153, 0.16);  border-color: rgba(110, 231, 183, 0.42); color: #6EE7B7; }
body.portal-page .ma-role-pill--rose    { background: rgba(251, 113, 133, 0.16); border-color: rgba(253, 164, 175, 0.42); color: #FDA4AF; }
body.portal-page .ma-role-pill--ice     { background: rgba(148, 163, 184, 0.16); border-color: rgba(203, 213, 225, 0.36); color: #CBD5E1; }

body.portal-page .ma-note-text {
  font-size: 0.78rem;
  color: #9FC0DF;
  font-style: italic;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.portal-page .ma-hidden-tag {
  color: var(--text-3);
  font-size: 0.75rem;
}
body.portal-page .ma-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
}
body.portal-page .ma-pill--online {
  background: rgba(22, 101, 52, 0.38);
  border: 1px solid rgba(74, 222, 128, 0.48);
  color: #86EFAC;
}
body.portal-page .ma-pill--cal {
  background: rgba(213, 173, 104, 0.15);
  border: 1px solid rgba(243, 223, 168, 0.42);
  color: #F3DFA8;
}
body.portal-page .ma-pill--cal:hover {
  background: rgba(213, 173, 104, 0.28);
}
body.portal-page .ma-pill--chars {
  background: rgba(15, 32, 58, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.2);
  color: #9FC0DF;
}
body.portal-page .ma-char-col-btn {
  padding: 4px 10px;
  font-size: 0.76rem;
}
body.portal-page .ma-acc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
}
body.portal-page .ma-acc-footer__left,
body.portal-page .ma-acc-footer__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
body.portal-page .ma-inline-form {
  display: inline-flex;
  margin: 0;
}
body.portal-page .ma-acc-footer .is-pin-active {
  border-color: rgba(243, 223, 168, 0.52);
  color: #FDE68A;
}
body.portal-page .ma-meta-editor {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(5, 13, 26, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
body.portal-page .ma-meta-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
body.portal-page .ma-meta-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
body.portal-page .ma-meta-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}
body.portal-page .ma-no-match {
  padding: 18px;
  text-align: center;
  color: #9FC0DF;
  font-size: 0.88rem;
}

/* Role Picker Chips (shared across Create, Attach & Home editor) */
body.portal-page .ma-role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.portal-page .ma-role-opt {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(8, 20, 38, 0.76);
  color: #B4CFE8;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
body.portal-page .ma-role-opt:hover {
  border-color: rgba(243, 223, 168, 0.45);
  color: #F6FAFF;
}
body.portal-page .ma-role-opt.is-selected {
  background: rgba(213, 173, 104, 0.22);
  border-color: rgba(243, 223, 168, 0.78);
  color: #FFF0BE;
  box-shadow: 0 0 12px rgba(213, 173, 104, 0.2);
}

/* Create / Link Account Page Layout */
body.portal-page .ma-create-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: start;
}
body.portal-page .ma-create-main {
  padding: 22px 24px;
}
body.portal-page .ma-slots-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(6, 15, 29, 0.76);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
body.portal-page .ma-slots-banner__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
body.portal-page .ma-slots-counter {
  text-align: right;
}
body.portal-page .ma-slots-counter strong {
  display: block;
  font-size: 1.25rem;
  color: #F3DFA8;
  line-height: 1.1;
}
body.portal-page .ma-slots-counter span {
  font-size: 0.74rem;
  color: #9FC0DF;
}
body.portal-page .ma-slots-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 32, 58, 0.85);
  overflow: hidden;
}
body.portal-page .ma-slots-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7DD3FC, #F3DFA8);
  transition: width 0.25s ease;
}
body.portal-page .ma-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(5, 13, 26, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
body.portal-page .ma-mode-tab {
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #9FC0DF;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
body.portal-page .ma-mode-tab:hover {
  color: #F6FAFF;
}
body.portal-page .ma-mode-tab.is-active {
  background: linear-gradient(135deg, rgba(213, 173, 104, 0.22), rgba(125, 211, 252, 0.14));
  border-color: rgba(243, 223, 168, 0.55);
  color: #FFF0BE;
}
body.portal-page .ma-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.portal-page .ma-field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.portal-page .ma-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
body.portal-page .ma-field-label-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #C7DDF2;
}
body.portal-page .ma-char-count {
  font-size: 0.76rem;
  color: #8BA8C7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.portal-page .ma-char-count.is-ok {
  color: #86EFAC;
}
body.portal-page .ma-quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
body.portal-page .ma-quick-chips__label {
  font-size: 0.74rem;
  color: #8BA8C7;
}
body.portal-page .ma-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(8, 21, 40, 0.75);
  color: #E2EEF9;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
body.portal-page .ma-quick-chip small {
  color: #9FC0DF;
  font-size: 0.7rem;
}
body.portal-page .ma-quick-chip:hover {
  border-color: rgba(243, 223, 168, 0.55);
  background: rgba(213, 173, 104, 0.14);
}
body.portal-page .ma-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.portal-page .ma-gen-btn {
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(243, 223, 168, 0.42);
  background: rgba(213, 173, 104, 0.14);
  color: #F3DFA8;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
body.portal-page .ma-gen-btn:hover {
  background: rgba(213, 173, 104, 0.26);
}
body.portal-page .ma-input-eye {
  position: relative;
  display: flex;
  align-items: center;
}
body.portal-page .ma-input-eye input {
  width: 100%;
  padding-right: 40px;
}
body.portal-page .ma-eye-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: 0;
  color: #9FC0DF;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px 6px;
}
body.portal-page .ma-eye-btn.is-revealed {
  color: #F3DFA8;
}
body.portal-page .ma-strength {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
body.portal-page .ma-strength__bar {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 32, 58, 0.85);
  overflow: hidden;
}
body.portal-page .ma-strength__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}
body.portal-page .ma-strength[data-level="weak"] .ma-strength__bar span { background: #F87171; }
body.portal-page .ma-strength[data-level="mid"] .ma-strength__bar span { background: #FBBF24; }
body.portal-page .ma-strength[data-level="strong"] .ma-strength__bar span { background: #4ADE80; }
body.portal-page .ma-strength small {
  font-size: 0.73rem;
  color: #9FC0DF;
  white-space: nowrap;
}

/* Locked Master Account Email Box */
body.portal-page .ma-locked-email {
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(6, 16, 31, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.24);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
body.portal-page .ma-locked-email__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #B4CFE8;
  font-weight: 600;
}
body.portal-page .ma-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #F3DFA8;
  background: rgba(213, 173, 104, 0.15);
  border: 1px solid rgba(243, 223, 168, 0.38);
}
body.portal-page .ma-locked-email__box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 9px;
  background: rgba(3, 10, 22, 0.82);
  border: 1px dashed rgba(125, 211, 252, 0.28);
  color: #E2EEF9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  user-select: all;
  cursor: not-allowed;
}
body.portal-page .ma-locked-email__box svg {
  color: #F3DFA8;
  flex: 0 0 auto;
}
body.portal-page .ma-locked-email__hint {
  font-size: 0.76rem;
  color: #8BA8C7;
  line-height: 1.4;
}
body.portal-page .ma-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
body.portal-page .ma-limit-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FECACA;
  font-size: 0.86rem;
}

/* Post-Creation Credentials Card */
body.portal-page .ma-created-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10, 34, 34, 0.88), rgba(7, 20, 38, 0.92));
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}
body.portal-page .ma-created-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
body.portal-page .ma-created-check {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.6);
  color: #86EFAC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
body.portal-page .ma-created-card__head h3 {
  margin: 0 0 3px;
  color: #86EFAC;
  font-size: 1.04rem;
}
body.portal-page .ma-created-card__head p {
  margin: 0;
  font-size: 0.82rem;
  color: #B4CFE8;
}
body.portal-page .ma-created-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
body.portal-page .ma-created-item {
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(4, 12, 24, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.2);
}
body.portal-page .ma-created-item span {
  display: block;
  font-size: 0.72rem;
  color: #8BA8C7;
  margin-bottom: 3px;
}
body.portal-page .ma-created-item strong {
  color: #F6FAFF;
  font-size: 0.9rem;
  word-break: break-all;
}
body.portal-page .ma-created-pass-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.portal-page .ma-created-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Aside card on Create Account page */
body.portal-page .ma-create-aside {
  padding: 20px;
}
body.portal-page .ma-aside-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #F3DFA8;
}
body.portal-page .ma-mini-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.portal-page .ma-mini-row {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(6, 15, 29, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.18);
}
body.portal-page .ma-mini-row__main {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
body.portal-page .ma-mini-row__main strong {
  color: #F3F7FC;
  font-size: 0.86rem;
}
body.portal-page .ma-mini-row__note {
  display: block;
  margin-top: 3px;
  color: #8BA8C7;
  font-size: 0.74rem;
}
body.portal-page .ma-aside-tips {
  padding: 13px 14px;
  border-radius: 10px;
  background: rgba(6, 15, 29, 0.65);
  border: 1px solid rgba(243, 223, 168, 0.22);
}
body.portal-page .ma-aside-tips strong {
  display: block;
  margin-bottom: 8px;
  color: #F3DFA8;
  font-size: 0.84rem;
}
body.portal-page .ma-aside-tips ul {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #A7C2DE;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 920px) {
  body.portal-page .ma-create-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body.portal-page .ma-pass-grid,
  body.portal-page .ma-created-grid,
  body.portal-page .ma-mode-tabs {
    grid-template-columns: 1fr;
  }
  body.portal-page .ma-chip--toggle {
    margin-left: 0;
  }
}

/* === CMS / Forgot-Password Button & Inputs Fix + Global Dark Autofill === */
.cms-content .btn--gold,
.cms-content button[type="submit"].btn--gold,
.cms-content input[type="submit"].btn--gold {
  --end: none !important;
  color: #140f08 !important;
  text-shadow: 0 1px 0 rgba(255, 250, 235, 0.55) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.65) 10%, rgba(186, 230, 253, 0.0) 28%),
    linear-gradient(180deg, #f6dc99 0%, #dfb462 52%, #b0853a 100%) !important;
  background-size: 100% 100% !important;
  background-position: center !important;
  border: 1px solid rgba(255, 244, 210, 0.82) !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  min-height: 44px;
  box-shadow: 0 8px 24px rgba(213, 173, 104, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  animation: none !important;
}
.cms-content .btn--gold:hover,
.cms-content button[type="submit"].btn--gold:hover {
  filter: brightness(1.07) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(243, 223, 168, 0.5), 0 0 18px rgba(125, 211, 252, 0.25) !important;
}
.cms-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.cms-content select,
.cms-content textarea {
  background: rgba(6, 15, 29, 0.88) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  color: #F3F7FC !important;
  color-scheme: dark;
}
.cms-content input:focus,
.cms-content select:focus,
.cms-content textarea:focus {
  border-color: rgba(243, 223, 168, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.16) !important;
}

/* Global Dark-Winter Chrome Autofill & Number Input Fix */
body.portal-page input,
body.portal-page select,
body.portal-page textarea {
  color-scheme: dark;
}
body.portal-page input:-webkit-autofill,
body.portal-page input:-webkit-autofill:hover,
body.portal-page input:-webkit-autofill:focus,
body.portal-page textarea:-webkit-autofill,
body.portal-page select:-webkit-autofill,
.cms-content input:-webkit-autofill,
.cms-content input:-webkit-autofill:hover,
.cms-content input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #060f1d inset !important;
  -webkit-text-fill-color: #F3F7FC !important;
  caret-color: #F3F7FC !important;
  color-scheme: dark;
  transition: background-color 99999s ease-in-out 0s;
}

/* === 2-Tab Warehouse (Winter Edition) === */
body.portal-page .wh-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.portal-page .wh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
body.portal-page .wh-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(5, 13, 26, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.22);
}
body.portal-page .wh-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #9FC0DF;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
body.portal-page .wh-tab:hover {
  color: #F6FAFF;
}
body.portal-page .wh-tab.is-active {
  background: linear-gradient(135deg, rgba(213, 173, 104, 0.22), rgba(125, 211, 252, 0.14));
  border-color: rgba(243, 223, 168, 0.56);
  color: #FFF0BE;
}
body.portal-page .wh-tab__cnt {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(15, 32, 58, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.22);
  font-size: 0.74rem;
  color: #E2EEF9;
}
body.portal-page .wh-tab.is-active .wh-tab__cnt {
  background: rgba(243, 223, 168, 0.2);
  border-color: rgba(243, 223, 168, 0.45);
  color: #FFF0BE;
}
body.portal-page .wh-empty {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
body.portal-page .wh-empty strong {
  color: #F3DFA8;
  font-size: 1.02rem;
}
body.portal-page .wh-empty p {
  margin: 0;
  max-width: 520px;
}
body.portal-page .wh-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.portal-page .wh-card__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
body.portal-page .wh-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(8, 21, 40, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #F3DFA8;
  font-size: 1.25rem;
}
body.portal-page .wh-icon.is-col {
  border-color: rgba(243, 223, 168, 0.55);
  box-shadow: 0 0 14px rgba(213, 173, 104, 0.24);
}
body.portal-page .wh-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.portal-page .wh-card__meta {
  min-width: 0;
  flex: 1 1 auto;
}
body.portal-page .wh-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
body.portal-page .wh-card__title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: #F6FAFF;
}
body.portal-page .wh-ench {
  color: #7DD3FC;
}
body.portal-page .wh-card__qty {
  margin: 0;
  font-size: 0.84rem;
  color: #9FC0DF;
}
body.portal-page .wh-card__qty strong {
  color: #F3DFA8;
}
body.portal-page .wh-grade {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #BAE6FD;
}
body.portal-page .wh-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
body.portal-page .wh-status--ok {
  background: rgba(22, 101, 52, 0.38);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86EFAC;
}
body.portal-page .wh-status--info {
  background: rgba(14, 116, 144, 0.32);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #BAE6FD;
}
body.portal-page .wh-status--gold {
  background: rgba(213, 173, 104, 0.2);
  border: 1px solid rgba(243, 223, 168, 0.48);
  color: #FDE68A;
}
body.portal-page .wh-status--muted {
  background: rgba(51, 65, 85, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #CBD5E1;
}
body.portal-page .wh-history-card {
  padding: 14px 18px;
}
body.portal-page .wh-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.portal-page .wh-row-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(8, 21, 40, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #F3DFA8;
}
body.portal-page .wh-row-icon.is-col {
  border-color: rgba(243, 223, 168, 0.52);
}
body.portal-page .wh-row-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.portal-page .wh-row-sub {
  display: block;
  font-size: 0.74rem;
  color: #8BA8C7;
}
body.portal-page .wh-date {
  white-space: nowrap;
  color: #9FC0DF;
  font-size: 0.82rem;
}

/* === Create Account Grid Alignment Fixes + Rating Scrollbar Polish === */
body.portal-page .ma-quick-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
body.portal-page .ma-quick-chips-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
body.portal-page .ma-quick-chips-grid .ma-quick-chip {
  width: 100%;
  justify-content: space-between;
  padding: 6px 10px;
}
body.portal-page .ma-quick-chips-grid .ma-quick-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.portal-page .ma-pass-grid {
  align-items: start;
}
body.portal-page .ma-field-label-row--fixed {
  min-height: 28px;
  flex-wrap: nowrap;
}
body.portal-page .ma-field-label-row--fixed label {
  white-space: nowrap;
}
body.portal-page .ma-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex: 0 0 auto;
  padding: 4px 10px;
  line-height: 1.2;
}
body.portal-page .ma-role-picker--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
body.portal-page .ma-role-picker--grid .ma-role-opt {
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 7px 8px;
}
@media (max-width: 780px) {
  body.portal-page .ma-quick-chips-grid,
  body.portal-page .ma-role-picker--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Override overly bright scrollbar in rating tables */
.rating-widget .rating__panel,
.rating-widget--full .rating__panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 197, 253, 0.28) rgba(6, 15, 29, 0.45) !important;
}
.rating-widget .rating__panel::-webkit-scrollbar,
.rating-widget--full .rating__panel::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}
.rating-widget .rating__panel::-webkit-scrollbar-thumb,
.rating-widget--full .rating__panel::-webkit-scrollbar-thumb {
  background: rgba(147, 197, 253, 0.28) !important;
  border-radius: 999px !important;
}
.rating-widget .rating__tab,
.rating-widget--full .rating__tab {
  text-transform: uppercase !important;
}

/* === Unified Cabinet Language Dropdown (matches Landing 🌐 EN ▾) & Landing Rating Polish === */
body.portal-page .cab-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(8, 20, 39, 0.78);
  color: #E2EEF9;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.16s ease;
}
body.portal-page .cab-lang-btn:hover,
body.portal-page .cab-lang-dd.is-open .cab-lang-btn {
  border-color: rgba(243, 223, 168, 0.6);
  color: #FFF0BE;
  background: rgba(14, 32, 58, 0.9);
}
body.portal-page .cab-lang-btn svg {
  color: #7DD3FC;
  flex-shrink: 0;
}
body.portal-page .cab-lang-caret {
  color: #8BA8C7;
  font-size: 0.72rem;
}
body.portal-page .cab-lang-menu {
  min-width: 175px;
}
body.portal-page .cab-lang-menu .nav-drop__item.is-active {
  color: #F3DFA8;
  background: rgba(213, 173, 104, 0.14);
}
.rating-widget:not(.rating-widget--full) .rating-updated {
  display: none !important;
}

/* === Override cabinet-v2.css permanent Calendar sidebar highlight (only highlight when .is-active!) === */
body.portal-page .cab-side-link[href*="/cabinet/portal/calendar/"]:not(.is-active),
body.portal-page .cab-side-link[href*="/calendar/"]:not(.is-active) {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-2, #B4CFE8) !important;
  box-shadow: none !important;
}
body.portal-page .cab-side-link[href*="/cabinet/portal/calendar/"]:not(.is-active) svg,
body.portal-page .cab-side-link[href*="/calendar/"]:not(.is-active) svg {
  color: currentColor !important;
  opacity: 0.78 !important;
}
body.portal-page .cab-side-link[href*="/cabinet/portal/calendar/"]:not(.is-active):hover,
body.portal-page .cab-side-link[href*="/calendar/"]:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #F6FAFF !important;
}
body.portal-page .sec-card {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.portal-page .sec-acc-item {
  margin-bottom: 0;
}

/* === Footer Winter Social Buttons & Clean Single-Row Alignment === */
.footer {
  padding: 12px 0 !important;
}
.footer__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
.footer__copy {
  font-size: 0.78rem !important;
  color: #9FC0DF !important;
  white-space: nowrap;
}
.footer__copy p {
  margin: 0 !important;
}
.footer__social {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}
.footer__social .header__social,
.header__social {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  background: rgba(9, 22, 42, 0.78) !important;
  color: #DCE8F6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.14) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease !important;
}
.footer__social .header__social:hover,
.header__social:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 223, 168, 0.68) !important;
  background: rgba(16, 36, 66, 0.92) !important;
  color: #FFF0BE !important;
  box-shadow: 0 6px 16px rgba(125, 211, 252, 0.22), 0 0 14px rgba(243, 223, 168, 0.28) !important;
}
.footer__links {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
}
.footer__links a {
  font-size: 0.76rem !important;
  color: #B4CFE8 !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}
.footer__links a:hover {
  color: #F3DFA8 !important;
}
@media (max-width: 720px) {
  .footer__inner {
    justify-content: center !important;
    gap: 10px 18px !important;
  }
}

/* === Unified Topbar Controls Geometry (height: 36px, radius: 10px, identical frost border) === */
.navbar .winter-snow-btn,
.header .winter-snow-btn,
.navbar .header__social,
.header .header__social,
.navbar .cab-lang-btn,
.header .lang-dd__btn,
.navbar .icon-btn,
.navbar .profile-pill {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  background: rgba(8, 20, 39, 0.78) !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.14) !important;
}
.navbar .header__social,
.header .header__social,
.navbar .icon-btn {
  width: 36px !important;
  padding: 0 !important;
}
.navbar .winter-snow-btn,
.header .winter-snow-btn,
.navbar .cab-lang-btn,
.header .lang-dd__btn {
  padding: 0 12px !important;
}
.navbar .profile-pill {
  padding: 0 12px 0 6px !important;
  gap: 8px !important;
}
.navbar .nav-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.navbar .winter-snow-btn:hover,
.header .winter-snow-btn:hover,
.navbar .cab-lang-btn:hover,
.header .lang-dd__btn:hover,
.navbar .icon-btn:hover,
.navbar .profile-pill:hover {
  border-color: rgba(243, 223, 168, 0.62) !important;
  background: rgba(14, 32, 58, 0.92) !important;
}

/* === Exact Geometric Center for Footer Social Buttons on Wide Screens + Donate Nav Accent === */
@media (min-width: 721px) {
  .footer__inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .footer__copy { justify-self: start !important; text-align: left !important; }
  .footer__social { justify-self: center !important; }
  .footer__links { justify-self: end !important; justify-content: flex-end !important; }
}
.header__link--donate,
.nav-link--donate {
  color: var(--text-2) !important;
}
.header__link--donate:hover,
.header__link--donate.is-active,
.nav-link--donate:hover,
.nav-link--donate.is-active {
  color: #F3DFA8 !important;
}
.header__link--donate.is-active::after {
  transform: scaleX(1) !important;
}

/* === Wide Header & Footer + Centered Nav + Unified Globe Language Dropdown (v37) === */
.header__container.container,
.footer__inner.container {
  max-width: 1680px !important;
  width: 100% !important;
  padding-left: clamp(16px, 2.4vw, 40px) !important;
  padding-right: clamp(16px, 2.4vw, 40px) !important;
}

@media (min-width: 1024px) {
  .header__container {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: clamp(12px, 1.6vw, 28px) !important;
  }
  .header__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }
  .header__link {
    --px: clamp(7px, 0.72vw, 14px) !important;
    padding: 6px var(--px) !important;
    font-size: clamp(0.64rem, 0.56rem + 0.18vw, 0.74rem) !important;
    letter-spacing: 0.055em !important;
    flex-shrink: 0 !important;
  }
  .header__actions {
    display: flex !important;
    align-items: center !important;
    gap: clamp(6px, 0.55vw, 10px) !important;
    flex-shrink: 0 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .header__container {
    gap: 10px !important;
  }
  .header__link {
    --px: 6px !important;
    font-size: 0.63rem !important;
    letter-spacing: 0.04em !important;
  }
  .header__logo-img {
    max-width: 118px !important;
  }
}

/* Unified frosted globe language switcher on landing (matches cabinet) */
.lang-dd__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-width: 74px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(186, 230, 253, 0.22) !important;
  background: rgba(13, 24, 40, 0.78) !important;
  color: #e6f2ff !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}
.lang-dd__btn:hover,
.lang-dd.open .lang-dd__btn {
  border-color: rgba(125, 211, 252, 0.55) !important;
  background: rgba(20, 38, 62, 0.92) !important;
  color: #ffffff !important;
}
.lang-dd__globe {
  color: #7dd3fc !important;
  flex-shrink: 0 !important;
}
.lang-dd__caret {
  font-size: 0.65rem !important;
  opacity: 0.75 !important;
  margin-left: 1px !important;
}
.lang-dd__menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  min-width: 152px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(186, 230, 253, 0.2) !important;
  background: rgba(8, 15, 27, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
  z-index: 1100 !important;
}
.lang-dd__item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 11px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  color: #cbd5e1 !important;
  text-align: left !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}
.lang-dd__item:hover {
  background: rgba(125, 211, 252, 0.12) !important;
  color: #ffffff !important;
}
.lang-dd__item.active {
  background: rgba(243, 223, 168, 0.14) !important;
  color: #f3dfa8 !important;
  font-weight: 600 !important;
}

/* === Transparent Inner-Page Header at Top (matches Landing) v38 === */
body.cms-page .header:not(.scrolled) {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.cms-page .header.scrolled {
  background: rgba(6, 12, 24, 0.78) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(186, 230, 253, 0.14) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.42) !important;
}

/* === Seamless Transparent Header & Footer + Frosted Controls Readability (v39) === */
@media (min-width: 1024px) {
  /* Full-bleed invisible-edge atmospheric fade at top (Landing + Inner CMS pages) */
  body .header:not(.scrolled),
  header.header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(4, 10, 20, 0.56) 0%, rgba(4, 10, 20, 0.22) 62%, rgba(4, 10, 20, 0) 100%) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body .header:not(.scrolled)::before,
  header.header:not(.scrolled)::before {
    opacity: 0 !important;
  }
  body .header.scrolled,
  header.header.scrolled {
    background: linear-gradient(180deg, rgba(6, 13, 25, 0.88), rgba(7, 16, 30, 0.80)) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
    border-bottom: 1px solid rgba(186, 230, 253, 0.14) !important;
    box-shadow: 0 8px 30px rgba(2, 8, 18, 0.48) !important;
  }

  /* Crisp nav readability over full-bleed dragon artwork */
  .header__nav .header__link {
    color: #E4EFFB;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(2, 8, 18, 0.92), 0 0 16px rgba(2, 8, 18, 0.7);
  }
  .header__nav .header__link:hover,
  .header__nav .header__link.is-active {
    color: #F3DFA8 !important;
    text-shadow: 0 1px 10px rgba(2, 8, 18, 0.95), 0 0 16px rgba(243, 223, 168, 0.35);
  }

  /* Frosted glass elevation on right-side buttons so they stay crisp without a solid header bar */
  .header .header__social,
  .header .winter-snow-btn,
  .header .lang-dd__btn {
    background: rgba(7, 17, 34, 0.66) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(186, 230, 253, 0.28) !important;
    box-shadow: 0 4px 16px rgba(2, 8, 18, 0.48), inset 0 1px 0 rgba(224, 242, 254, 0.16) !important;
  }
  .header .header__social:hover,
  .header .winter-snow-btn:hover,
  .header .lang-dd__btn:hover,
  .header .lang-dd.open .lang-dd__btn {
    background: rgba(13, 30, 56, 0.86) !important;
    border-color: rgba(243, 223, 168, 0.6) !important;
  }

  /* Balanced spacing across wide header */
  .header__actions {
    gap: 8px !important;
  }
  .header__actions .btn--sm {
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Seamless full-bleed transparent atmospheric fade at bottom footer (Landing) */
  body.landing .footer {
    background: linear-gradient(0deg, rgba(4, 10, 20, 0.72) 0%, rgba(4, 10, 20, 0.28) 65%, rgba(4, 10, 20, 0) 100%) !important;
    border-top: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 14px 0 12px !important;
  }
  body.landing .footer__copy,
  body.landing .footer__links a {
    text-shadow: 0 1px 8px rgba(2, 8, 18, 0.95), 0 0 14px rgba(2, 8, 18, 0.75) !important;
  }
  body.landing .footer__social .header__social {
    background: rgba(7, 17, 34, 0.66) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(186, 230, 253, 0.28) !important;
    box-shadow: 0 4px 16px rgba(2, 8, 18, 0.5), inset 0 1px 0 rgba(224, 242, 254, 0.16) !important;
  }
}

/* === Grounded Bottom Footer (Unpinned from Hero Viewport) v40 === */
body.landing .footer,
.landing .footer {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 10 !important;
  background: linear-gradient(180deg, rgba(6, 14, 27, 0.92) 0%, #040912 100%) !important;
  border-top: 1px solid rgba(186, 230, 253, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 20px 0 !important;
}
body.landing .footer__copy,
.cms-page .footer__copy {
  font-size: 0.74rem !important;
  color: rgba(203, 213, 225, 0.85) !important;
  text-shadow: none !important;
}
body.landing .footer__links,
.cms-page .footer__links {
  margin: 0 !important;
  align-items: center !important;
  column-gap: 18px !important;
}
body.landing .footer__links a,
.cms-page .footer__links a {
  font-size: 0.74rem !important;
  text-shadow: none !important;
}

/* === Unified Modern Winter Buttons (Pure CSS, Zero Legacy SVG Caps) v41 === */
body .btn--gold::before,
body .btn--gold::after,
body .btn--outline::before,
body .btn--outline::after,
body:not(.portal-page) .btn--gold::before,
body:not(.portal-page) .btn--gold::after,
body:not(.portal-page) .btn--outline::before,
body:not(.portal-page) .btn--outline::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

body .btn--gold,
body .btn--outline,
body:not(.portal-page) .btn--gold,
body:not(.portal-page) .btn--outline {
  --e: 0px !important;
  animation: none !important;
  border-radius: 10px !important;
  padding: 13px 28px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

body .btn--gold.btn--sm,
body .btn--outline.btn--sm,
body:not(.portal-page) .btn--gold.btn--sm,
body:not(.portal-page) .btn--outline.btn--sm {
  height: 36px !important;
  padding: 0 18px !important;
  font-size: 0.72rem !important;
  border-radius: 10px !important;
}

body .btn--gold.btn--lg,
body .btn--outline.btn--lg,
body:not(.portal-page) .btn--gold.btn--lg,
body:not(.portal-page) .btn--outline.btn--lg {
  padding: 16px 40px !important;
  font-size: 0.84rem !important;
  border-radius: 12px !important;
}

/* Noble Warm Gold Primary Button — 100% full-bleed fill, zero snow-cap bar, zero side gaps */
body .btn--gold,
body:not(.portal-page) .btn--gold,
body.portal-page .btn--gold,
body .cms-content .btn--gold,
body .hero .btn--gold {
  color: #161006 !important;
  border: 1px solid rgba(255, 241, 198, 0.74) !important;
  background: linear-gradient(180deg, #F6DC9B 0%, #DFB359 48%, #B98732 100%) !important;
  background-size: 100% 100% !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 232, 0.68),
    inset 0 -1px 0 rgba(118, 78, 16, 0.55),
    0 6px 20px rgba(212, 168, 86, 0.30),
    0 2px 6px rgba(0, 0, 0, 0.38) !important;
  text-shadow: 0 1px 0 rgba(255, 248, 224, 0.35) !important;
}
body .btn--gold:hover,
body:not(.portal-page) .btn--gold:hover,
body.portal-page .btn--gold:hover,
body .cms-content .btn--gold:hover,
body .hero .btn--gold:hover {
  transform: translateY(-1px) !important;
  filter: none !important;
  border-color: rgba(255, 248, 220, 0.92) !important;
  background: linear-gradient(180deg, #FCE7AE 0%, #E7BF68 48%, #C6943C 100%) !important;
  background-size: 100% 100% !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 252, 240, 0.85),
    inset 0 -1px 0 rgba(128, 86, 20, 0.5),
    0 10px 28px rgba(226, 180, 92, 0.48),
    0 0 18px rgba(243, 223, 168, 0.28) !important;
}
body .btn--gold:active,
body:not(.portal-page) .btn--gold:active {
  transform: translateY(0) !important;
}

/* Hero Primary CTA («ПРИСОЕДИНИТЬСЯ») — elevated noble presence */
body.landing .hero .btn--gold,
body .hero__cta.btn--gold {
  min-width: 242px !important;
  padding: 16px 42px !important;
  border-radius: 12px !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.12em !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 232, 0.72),
    inset 0 -2px 0 rgba(118, 78, 16, 0.55),
    0 10px 30px rgba(212, 168, 86, 0.38),
    0 4px 12px rgba(0, 0, 0, 0.45) !important;
}

/* Dark Arctic Frosted Glass Secondary Button («ВОЙТИ», «ДОБАВИТЬ СТРИМ», «ПОЛНЫЙ РЕЙТИНГ») */
body .btn--outline,
body:not(.portal-page) .btn--outline,
body.portal-page .btn--outline,
body .cms-content .btn--outline {
  color: #EEF6FF !important;
  font-weight: 600 !important;
  border: 1px solid rgba(186, 230, 253, 0.34) !important;
  background: linear-gradient(180deg, rgba(14, 30, 56, 0.82) 0%, rgba(7, 17, 34, 0.90) 100%) !important;
  background-size: 100% 100% !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.18),
    0 4px 16px rgba(2, 8, 18, 0.46) !important;
}
body .btn--outline:hover,
body:not(.portal-page) .btn--outline:hover,
body.portal-page .btn--outline:hover,
body .cms-content .btn--outline:hover {
  transform: translateY(-1px) !important;
  filter: none !important;
  color: #FFF2CC !important;
  border-color: rgba(243, 223, 168, 0.72) !important;
  background: linear-gradient(180deg, rgba(22, 46, 82, 0.92) 0%, rgba(11, 25, 48, 0.96) 100%) !important;
  background-size: 100% 100% !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 220, 0.24),
    0 8px 24px rgba(125, 211, 252, 0.20),
    0 0 14px rgba(243, 223, 168, 0.22) !important;
}
body .btn--outline:active,
body:not(.portal-page) .btn--outline:active {
  transform: translateY(0) !important;
}

/* === Seamless Transparent Wide Auth Header (/login/, /register/) v43 === */
body.portal-auth .auth-top,
header.auth-top {
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  max-width: 1680px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 18px clamp(16px, 2.4vw, 40px) !important;
}
body.portal-auth .auth-top::before,
body.portal-auth .auth-top::after {
  display: none !important;
}
body.portal-auth .auth-top__nav {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body.portal-auth .auth-top__link,
body.portal-auth .auth-top .winter-snow-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(186, 230, 253, 0.28) !important;
  background: rgba(7, 17, 34, 0.66) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #E6F2FF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(2, 8, 18, 0.42), inset 0 1px 0 rgba(224, 242, 254, 0.16) !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}
body.portal-auth .auth-top__link:hover,
body.portal-auth .auth-top .winter-snow-btn:hover {
  border-color: rgba(243, 223, 168, 0.64) !important;
  background: rgba(14, 32, 58, 0.88) !important;
  color: #FFF2CC !important;
}
body.portal-auth button[type="submit"],
body.portal-auth .auth-submit {
  background: linear-gradient(180deg, #F6DC9B 0%, #DFB359 48%, #B98732 100%) !important;
  border: 1px solid rgba(255, 241, 198, 0.74) !important;
  border-radius: 10px !important;
  color: #161006 !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 232, 0.68), 0 6px 20px rgba(212, 168, 86, 0.30) !important;
}
body.portal-auth button[type="submit"]:hover,
body.portal-auth .auth-submit:hover {
  background: linear-gradient(180deg, #FCE7AE 0%, #E7BF68 48%, #C6943C 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, 0.85), 0 10px 26px rgba(226, 180, 92, 0.46) !important;
}

/* === Mobile Header Compact Fit (360px-767px) + Forgot Password Full-Width CTA v44 === */
@media (max-width: 1023px) {
  .header__container.container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    max-width: 100% !important;
  }
  .header__logo {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .header__logo-img,
  .header__logo .brand-logo__img {
    height: 30px !important;
    max-width: 104px !important;
    width: auto !important;
  }
  .header__actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .header .header__social,
  .header .winter-snow-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 9px !important;
  }
  .header .winter-snow-btn span {
    display: none !important;
  }
  .header .lang-dd__btn {
    height: 32px !important;
    min-height: 32px !important;
    min-width: 54px !important;
    padding: 0 7px !important;
    gap: 4px !important;
    font-size: 0.7rem !important;
    border-radius: 9px !important;
  }
  .header .lang-dd__globe {
    width: 13px !important;
    height: 13px !important;
  }
  .header .burger {
    display: flex !important;
    flex-shrink: 0 !important;
    width: 30px !important;
    height: 32px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px !important;
    margin-left: 2px !important;
  }
}

@media (max-width: 400px) {
  .header__logo-img,
  .header__logo .brand-logo__img {
    height: 26px !important;
    max-width: 88px !important;
  }
  .header__actions {
    gap: 5px !important;
  }
}

/* Forgotten Password full-width clean gold submit */
.cms-content form .btn--gold,
.cms-content .btn--gold.btn--full {
  width: 100% !important;
}

/* === Mobile Cabinet Minimalist Navbar + Safe-Area Landing Drawer + Centered Mobile Footer (v45) === */
html, body.portal-page {
  overflow-x: clip !important;
  max-width: 100vw !important;
}

.mobile-drawer__utils {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
}

@media (max-width: 1023px) {
  /* Cabinet Mobile Minimalist Topbar: [Logo] left + [🌐 RU ▾] [H2] [☰ Меню] right — ZERO overflow! */
  body.portal-page .navbar__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 0 12px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  body.portal-page .navbar .brand {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  body.portal-page .navbar .brand img {
    height: 30px !important;
    max-width: 102px !important;
    width: auto !important;
  }
  body.portal-page .navbar .nav-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  /* Move Snow, TG, TikTok, Notifications inside ☰ Меню drawer on mobile */
  body.portal-page .navbar .nav-right > .header__social,
  body.portal-page .navbar .nav-right > .winter-snow-btn,
  body.portal-page .navbar .nav-right > .icon-btn {
    display: none !important;
  }
  /* Compact language button [🌐 RU ▾] */
  body.portal-page .navbar .cab-lang-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    font-size: 0.72rem !important;
  }
  /* Compact profile avatar pill [H2] without long login string */
  body.portal-page .navbar .profile-pill {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 4px !important;
    width: 34px !important;
    min-width: 34px !important;
    gap: 0 !important;
    justify-content: center !important;
  }
  body.portal-page .navbar .profile-pill > span:not(.profile-pill__ava) {
    display: none !important;
  }
  /* Compact ☰ Меню button */
  body.portal-page .navbar .mobile-toggle {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  /* Ensure Cabinet content spans full 100% width with zero side void */
  body.portal-page .cab-shell {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 14px 12px 48px !important;
    box-sizing: border-box !important;
  }
  body.portal-page .cab-main {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Landing Mobile Menu Drawer: keep BOTH «СОЗДАТЬ АККАУНТ» and «ВОЙТИ» cleanly visible above iOS Safari bar */
  .header__nav {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    padding-top: 14px !important;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .header__nav .header__link {
    padding: 13px 6px !important;
    font-size: 0.86rem !important;
  }
  .header__mobile {
    margin-top: 18px !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
  }
  .header__mobile .btn {
    width: 100% !important;
    padding: 13px 20px !important;
  }
}

@media (max-width: 640px) {
  /* Cabinet top stat cards stack cleanly 1-per-row so Balance & Calendar never truncate */
  body.portal-page .cab-stats,
  body.portal-page .stat-row,
  body.portal-page .hero-cards,
  body.portal-page .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* Mobile Footer (< 721px): crisp vertical centered stack */
@media (max-width: 720px) {
  .footer__inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .footer__social { order: 1 !important; justify-content: center !important; }
  .footer__copy { order: 2 !important; text-align: center !important; }
  .footer__links { order: 3 !important; justify-content: center !important; row-gap: 8px !important; }
}

/* === Single-Row Mobile Auth Topbar + Full-Width Cabinet Overview Cards (v46) === */
@media (max-width: 640px) {
  body.portal-auth .auth-top,
  header.auth-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 14px 12px !important;
    box-sizing: border-box !important;
  }
  body.portal-auth .auth-logo {
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  body.portal-auth .auth-logo img {
    height: 28px !important;
    max-width: 100px !important;
    width: auto !important;
  }
  body.portal-auth .auth-top__nav {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  body.portal-auth .auth-top__link {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
  }
  body.portal-auth.portal-auth--register .auth-top__link {
    padding: 0 8px !important;
    font-size: 0.7rem !important;
  }
  body.portal-auth .auth-top .winter-snow-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 9px !important;
  }
  body.portal-auth .auth-top .winter-snow-btn span {
    display: none !important;
  }

  /* Cabinet top 3 overview cards (.overview-grid) stack full-width cleanly on phone */
  body.portal-page .overview-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.portal-page .ov-card,
  body.portal-page .cab-card,
  body.portal-page .acc-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* === Modern Rounded Section Banners + BrandLogo Mobile Fix + Mobile Cabinet Card Fit (v47) === */
/* 1. Unified Modern Winter Section Banners (МЕДИА, Зимний мир Эльмора, РЕЙТИНГ, Wiki titles — zero SVG end-caps) */
body .banner::before,
body .banner::after,
body .wiki__title::before,
body .wiki__title::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
body .banner,
body .wiki__title {
  --e: 0px !important;
  padding: 14px 36px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(186, 230, 253, 0.30) !important;
  background: linear-gradient(180deg, rgba(15, 32, 58, 0.86) 0%, rgba(7, 16, 32, 0.94) 100%) !important;
  background-size: 100% 100% !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.22),
    inset 0 -1px 0 rgba(243, 223, 168, 0.16),
    0 12px 32px rgba(2, 8, 18, 0.54),
    0 0 24px rgba(125, 211, 252, 0.12) !important;
  color: #F6FAFF !important;
  text-shadow: 0 2px 14px rgba(2, 10, 24, 0.85) !important;
}
body .banner__sub {
  color: #9CC3E4 !important;
  letter-spacing: 0.14em !important;
}
@media (max-width: 640px) {
  body .banner,
  body .wiki__title {
    padding: 12px 22px !important;
    border-radius: 12px !important;
  }
}

/* 2. Fix Mobile BrandLogo Ghost Artifact: scale .brand-logo wrapper itself (1:1 with img) and disable mobile sheen mask */
@media (max-width: 1023px) {
  .header__logo .brand-logo,
  body.portal-page .navbar .brand .brand-logo,
  body.portal-auth .auth-logo .brand-logo {
    width: 112px !important;
    max-width: 112px !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
  }
  .header__logo .brand-logo__image,
  body.portal-page .navbar .brand .brand-logo__image,
  body.portal-auth .auth-logo .brand-logo__image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 1 !important;
    object-fit: contain !important;
  }
  .header__logo .brand-logo__sheen,
  body.portal-page .navbar .brand .brand-logo__sheen,
  body.portal-auth .auth-logo .brand-logo__sheen {
    display: none !important;
    opacity: 0 !important;
    animation: none !important;
  }
}
@media (max-width: 400px) {
  .header__logo .brand-logo,
  body.portal-page .navbar .brand .brand-logo,
  body.portal-auth .auth-logo .brand-logo {
    width: 96px !important;
    max-width: 96px !important;
  }
}

/* 3. Mobile Cabinet Account Cards: zero right-edge clipping on narrow phones */
@media (max-width: 640px) {
  body.portal-page .card,
  body.portal-page .acc-card,
  body.portal-page .account-card,
  body.portal-page .cab-card,
  body.portal-page .hub-card {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  body.portal-page .acc-table-wrap,
  body.portal-page .table-wrap,
  body.portal-page .char-table-wrap {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.portal-page .acc-card p,
  body.portal-page .account-card p,
  body.portal-page .cab-card p,
  body.portal-page .acc-empty,
  body.portal-page td,
  body.portal-page th {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  body.portal-page .char-head,
  body.portal-page .acc-table thead th {
    font-size: 0.64rem !important;
    letter-spacing: 0.04em !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* === Full-Screen Mobile Cabinet Menu Overlay (matches Landing Drawer) v48 === */
html.cab-menu-open,
body.cab-menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.cab-mobile-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  background:
    radial-gradient(ellipse 90% 35% at 50% 0%, rgba(125, 211, 252, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(5, 12, 24, 0.99) 0%, rgba(8, 19, 36, 0.99) 100%) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.24s ease, visibility 0.22s ease;
}
.cab-mobile-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
@media (min-width: 1024px) {
  .cab-mobile-overlay {
    display: none !important;
  }
}

.cab-mobile-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  min-height: 60px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  flex-shrink: 0;
}
.cab-mobile-overlay__head .brand .brand-logo {
  width: 108px !important;
  max-width: 108px !important;
  aspect-ratio: 3 / 1 !important;
}
.cab-mobile-overlay__head .brand .brand-logo__sheen {
  display: none !important;
}
.cab-mobile-overlay__close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(186, 230, 253, 0.28);
  background: rgba(12, 26, 48, 0.72);
  color: #F3DFA8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cab-mobile-overlay__close svg {
  width: 20px;
  height: 20px;
}

.cab-mobile-overlay__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 22px calc(104px + env(safe-area-inset-bottom, 0px));
}

.cab-mobile-overlay__list {
  display: flex;
  flex-direction: column;
}
.cab-mob-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
  color: #E4EFFB;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.16s ease, padding-left 0.16s ease;
}
.cab-mob-link svg {
  width: 19px;
  height: 19px;
  color: #7DD3FC;
  flex-shrink: 0;
}
.cab-mob-link.is-active {
  color: #F3DFA8;
  font-weight: 700;
}
.cab-mob-link.is-active svg {
  color: #F3DFA8;
}
.cab-mob-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(243, 223, 168, 0.18);
  border: 1px solid rgba(243, 223, 168, 0.45);
  color: #FFF0BE;
  font-size: 0.72rem;
  font-weight: 700;
}

.cab-mobile-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.cab-mob-site-btn {
  width: 100% !important;
  text-align: center !important;
  padding: 13px 18px !important;
}
.cab-mob-logout-form {
  margin: 0;
  width: 100%;
}
.cab-mob-logout-btn {
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.22);
  color: #FCA5A5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.cab-mobile-overlay__utils {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
}
.cab-mobile-overlay__utils .winter-snow-btn,
.cab-mobile-overlay__utils .header__social {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  background: rgba(8, 20, 39, 0.78) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.cab-mobile-overlay__utils .winter-snow-btn {
  padding: 0 14px !important;
  gap: 7px !important;
  width: auto !important;
}
.cab-mobile-overlay__utils .winter-snow-btn span {
  display: inline !important;
}
.cab-mobile-overlay__utils .header__social {
  width: 36px !important;
  padding: 0 !important;
}

/* === Crisp Pixel-Art L2 Clan/Ally Crests + Calendar Active Chips (v49) === */
.l2-clan-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.l2-crests {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
.l2-crest {
  display: block;
  height: 12px;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  border-radius: 1px;
}
.l2-crest--ally { width: 8px; }
.l2-crest--clan { width: 16px; }

.cal-active-chips {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 211, 252, 0.16);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cal-active-chips__lbl {
  font-size: 0.74rem;
  color: #8FB2D4;
}
.cal-active-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* === Unified Modern Winter Wiki & Sidebar Styling (/wiki/) v50 === */
/* 1. Rounded Frosted Arctic Sidebar Menu (.side-menu & .menu) */
.side-menu {
  border-radius: 14px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(11, 24, 46, 0.88) 0%, rgba(6, 14, 28, 0.94) 100%) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(186, 230, 253, 0.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.16),
    0 14px 36px rgba(2, 8, 18, 0.52) !important;
  padding: 8px !important;
}
.side-menu .menu {
  border: none !important;
  gap: 3px !important;
  background: transparent !important;
}
.side-menu .menu li > a {
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  border-left-width: 1px !important;
  padding: 10px 14px !important;
  color: #C7DCF1 !important;
  font-size: 0.77rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
}
.side-menu .menu li > a .icon {
  color: #7DD3FC !important;
  opacity: 0.85;
  transition: color 0.18s ease, opacity 0.18s ease !important;
}
.side-menu .menu li > a:hover {
  background: rgba(125, 211, 252, 0.10) !important;
  border-color: rgba(186, 230, 253, 0.22) !important;
  color: #FFFFFF !important;
}
.side-menu .menu li > a:hover .icon {
  color: #F3DFA8 !important;
  opacity: 1;
}
.side-menu .menu li.active > a {
  background: linear-gradient(90deg, rgba(243, 223, 168, 0.18) 0%, rgba(125, 211, 252, 0.08) 100%) !important;
  border-color: rgba(243, 223, 168, 0.44) !important;
  color: #FFF0BE !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.18) !important;
}
.side-menu .menu li.active > a .icon {
  color: #F3DFA8 !important;
  opacity: 1;
}
@media (max-width: 1023px) {
  .side-menu {
    padding: 6px !important;
    border-radius: 12px !important;
  }
  .menu__toggle {
    border-radius: 10px !important;
    border: 1px solid rgba(186, 230, 253, 0.24) !important;
    background: rgba(11, 24, 46, 0.88) !important;
  }
}

/* 2. Frosted Ice-Gold Subheadings (.wiki__sub) — crisp legibility over castle backdrop */
.wiki__sub {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin: 26px 0 14px !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  background: linear-gradient(90deg, rgba(8, 18, 36, 0.45) 0%, rgba(14, 30, 56, 0.86) 20%, rgba(14, 30, 56, 0.86) 80%, rgba(8, 18, 36, 0.45) 100%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(243, 223, 168, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.15),
    0 6px 20px rgba(2, 8, 18, 0.36) !important;
  font-family: var(--font-display, 'Cinzel', serif) !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  color: #F6DFA2 !important;
  text-shadow: 0 2px 10px rgba(2, 8, 18, 0.92) !important;
  text-align: center !important;
}
.wiki__sub::before,
.wiki__sub::after {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  flex-shrink: 0 !important;
  transform: rotate(45deg) !important;
  background: linear-gradient(135deg, #F3DFA8, #7DD3FC) !important;
  box-shadow: 0 0 8px rgba(243, 223, 168, 0.55) !important;
}

/* 3. Rounded Frosted Content Rows & Tables (.wiki__row, .wiki__table) */
.wiki__row {
  padding: 12px 16px 12px 38px !important;
  margin-bottom: 8px !important;
  border-radius: 10px !important;
  background: linear-gradient(168deg, rgba(11, 24, 46, 0.82) 0%, rgba(6, 14, 28, 0.88) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.08) !important;
  color: #E4EFFB !important;
  transition: border-color 0.18s ease, background 0.18s ease !important;
}
.wiki__row:hover {
  border-color: rgba(186, 230, 253, 0.34) !important;
  background: linear-gradient(168deg, rgba(14, 30, 56, 0.88) 0%, rgba(7, 17, 34, 0.92) 100%) !important;
}
.wiki__row::before {
  left: 16px !important;
  width: 6px !important;
  height: 6px !important;
  background: linear-gradient(135deg, #F3DFA8, #7DD3FC) !important;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.45) !important;
}
.wiki__row--note {
  border-color: rgba(243, 223, 168, 0.46) !important;
  background: linear-gradient(168deg, rgba(36, 29, 16, 0.80) 0%, rgba(10, 18, 34, 0.92) 100%) !important;
  color: #FFF0BE !important;
}
.wiki__table {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(7, 16, 32, 0.84) !important;
  border: 1px solid rgba(125, 211, 252, 0.18) !important;
}
.wiki__table th {
  background: rgba(14, 30, 56, 0.85) !important;
  color: #F3DFA8 !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.22) !important;
}
.wiki__table td {
  border-bottom: 1px solid rgba(125, 211, 252, 0.10) !important;
  color: #E4EFFB !important;
}

/* === Wiki Tables Rounded Border Fix + Unified Latin/Cyrillic Headings + Sticky Sidebar Fix (v51) === */
/* Allow .side-menu position:sticky to work smoothly while scrolling /wiki/ */
body.cms-page {
  overflow-x: clip !important;
}

/* Unified crisp typography for Wiki titles & subheadings (no Cinzel/system-serif clash on Cyrillic) */
.wiki__title {
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 16px !important;
}
.wiki__sub {
  font-family: var(--font-body, 'Inter', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 1.04rem !important;
  letter-spacing: 0.04em !important;
  margin: 24px 0 10px !important;
}

/* Fix sharp table corners: border-collapse:separate enables true 12px border-radius on .wiki__table! */
.wiki__table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 0 0 14px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: linear-gradient(168deg, rgba(11, 24, 46, 0.86) 0%, rgba(6, 14, 28, 0.92) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(224, 242, 254, 0.12),
    0 10px 28px rgba(2, 8, 18, 0.40) !important;
}
.wiki__table thead th {
  padding: 11px 16px !important;
  background: rgba(16, 34, 62, 0.92) !important;
  color: #F3DFA8 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.24) !important;
}
.wiki__table thead th:first-child {
  border-top-left-radius: 11px !important;
  width: 36%;
}
.wiki__table thead th:last-child {
  border-top-right-radius: 11px !important;
}
.wiki__table tbody td {
  padding: 11px 16px !important;
  font-size: 0.88rem !important;
  line-height: 1.48 !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.10) !important;
  color: #E8F2FC !important;
  transition: background 0.15s ease !important;
}
.wiki__table tbody td:first-child {
  color: #A8C7E4 !important;
  font-weight: 500 !important;
}
.wiki__table tbody tr:hover td {
  background: rgba(125, 211, 252, 0.06) !important;
}
.wiki__table tbody tr:last-child td {
  border-bottom: none !important;
}
.wiki__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 11px !important;
}
.wiki__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 11px !important;
}

/* Note callout box harmony right below table */
.wiki__row--note {
  margin-top: 2px !important;
  margin-bottom: 16px !important;
  border-radius: 12px !important;
  padding: 13px 18px 13px 40px !important;
  border: 1px solid rgba(243, 223, 168, 0.42) !important;
  background: linear-gradient(168deg, rgba(36, 28, 16, 0.78) 0%, rgba(9, 18, 34, 0.90) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 210, 0.14), 0 8px 22px rgba(2, 8, 18, 0.34) !important;
}

/* === Castle Showcase Cards Grid + Rounded Winter Rating Tabs (v53) === */
/* Replace legacy hexagon/angled rating tabs with sleek unified winter pills */
.rating__tab,
.rating-widget--full .rating__tab {
  clip-path: none !important;
  border-radius: 10px !important;
  border: 1px solid rgba(186, 230, 253, 0.24) !important;
  background: rgba(9, 22, 42, 0.78) !important;
  color: #C7DCF1 !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: all 0.18s ease !important;
}
.rating__tab::before,
.rating__tab::after,
.rating-widget--full .rating__tab::before,
.rating-widget--full .rating__tab::after {
  display: none !important;
  content: none !important;
}
.rating__tab:hover,
.rating-widget--full .rating__tab:hover {
  border-color: rgba(243, 223, 168, 0.52) !important;
  background: rgba(16, 36, 66, 0.90) !important;
  color: #FFFFFF !important;
}
.rating__tab.active,
.rating-widget--full .rating__tab.active {
  border-color: rgba(255, 241, 198, 0.78) !important;
  background: linear-gradient(180deg, #F6DC9B 0%, #DFB359 48%, #B98732 100%) !important;
  color: #161006 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 250, 232, 0.72), 0 6px 20px rgba(212, 168, 86, 0.34) !important;
}

/* Castle Showcase Grid inside /rating/#tab-top_castle */
.castle-grid-row,
.castle-grid-row:hover {
  background: transparent !important;
}
.castle-grid-row > td {
  padding: 16px 4px !important;
  border: none !important;
  background: transparent !important;
}
.castle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.castle-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(168deg, rgba(11, 24, 46, 0.90) 0%, rgba(5, 13, 26, 0.96) 100%);
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.12), 0 14px 34px rgba(2, 8, 18, 0.45);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.castle-card:hover {
  transform: translateY(-3px);
  border-color: rgba(186, 230, 253, 0.42);
  box-shadow: 0 18px 42px rgba(2, 8, 18, 0.58), 0 0 20px rgba(125, 211, 252, 0.14);
}
.castle-card--owned {
  border-color: rgba(243, 223, 168, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 244, 210, 0.24), 0 16px 38px rgba(2, 8, 18, 0.52), 0 0 24px rgba(213, 173, 104, 0.18);
}
.castle-card--owned:hover {
  border-color: rgba(243, 223, 168, 0.82);
  box-shadow: 0 20px 44px rgba(2, 8, 18, 0.62), 0 0 28px rgba(213, 173, 104, 0.28);
}
.castle-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060e1c;
}
.castle-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.castle-card:hover .castle-card__media img {
  transform: scale(1.04);
}
.castle-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.45) 0%, rgba(4, 10, 20, 0.08) 42%, rgba(5, 13, 26, 0.94) 100%);
  pointer-events: none;
}
.castle-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.castle-pill {
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.castle-pill--owned {
  background: rgba(213, 173, 104, 0.28);
  border: 1px solid rgba(243, 223, 168, 0.65);
  color: #FFF0BE;
}
.castle-pill--free {
  background: rgba(8, 20, 39, 0.74);
  border: 1px solid rgba(186, 230, 253, 0.28);
  color: #C7DCF1;
}
.castle-pill--tax {
  background: rgba(213, 173, 104, 0.22);
  border: 1px solid rgba(243, 223, 168, 0.5);
  color: #FDE68A;
}
.castle-pill--muted {
  background: rgba(8, 20, 39, 0.72);
  border: 1px solid rgba(186, 230, 253, 0.2);
  color: #9BBAD8;
}
.castle-card__name {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.04em;
}
.castle-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.castle-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.castle-meta-lbl {
  color: #8FB2D4;
  font-size: 0.76rem;
}
.castle-meta-val {
  color: #F2F7FD;
  font-weight: 600;
  text-align: right;
}
.castle-meta-val.is-gold {
  color: #FFF0BE;
}
.castle-meta-val.is-muted {
  color: #6B89A8;
  font-weight: 500;
}
.castle-siege-box {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(4, 11, 23, 0.76);
  border: 1px solid rgba(125, 211, 252, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.castle-siege-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.castle-siege-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: #E8F3FF;
  letter-spacing: 0.02em;
}
.castle-cd {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.36);
  color: #BAE6FD;
  white-space: nowrap;
}
.castle-cd--live {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(248, 113, 113, 0.55);
  color: #FECACA;
}
.castle-sides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.castle-side {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(7, 17, 34, 0.68);
  border: 1px solid rgba(125, 211, 252, 0.12);
}
.castle-side__lbl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71rem;
  color: #9BBAD8;
  margin-bottom: 4px;
}
.castle-side__lbl b {
  color: #F3DFA8;
}
.castle-side__list {
  margin: 0;
  font-size: 0.76rem;
  color: #E4EFFB;
  line-height: 1.35;
  word-break: break-word;
}
.castle-side__list.is-empty {
  color: #607D9B;
  font-style: italic;
}

@media (max-width: 1080px) {
  .castle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .castle-grid { grid-template-columns: 1fr; }
}

/* === V54 POLISH: Clickable Hero Stages + Unified Gold Wiki Subheadings + Bonus Pills === */
.side-item {
  cursor: pointer !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.side-item:hover {
  transform: translateX(-4px);
  border-color: rgba(243, 223, 168, 0.58) !important;
  box-shadow: 0 12px 28px rgba(2, 8, 18, 0.62), 0 0 18px rgba(125, 211, 252, 0.18) !important;
}
.wiki__sub {
  color: #F3DFA8 !important;
}
.wiki-bonus-pill {
  display: inline-block;
  padding: 2px 8px;
  margin: 1px 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(243, 223, 168, 0.20), rgba(213, 173, 104, 0.10));
  border: 1px solid rgba(243, 223, 168, 0.45);
  color: #F3DFA8;
  font-weight: 600;
  font-size: 0.86em;
  white-space: nowrap;
}
.wiki-free-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6EE7B7;
  font-weight: 600;
  font-size: 0.86em;
}

/* === V56 CABINET POLISH: Arctic Profile Dropdown, Calm Gold, Balance Actions, Launch Card & Footer === */
.portal-page .nav-drop__menu,
.portal-page .cab-profile-menu,
.portal-page .cab-lang-menu {
  background: linear-gradient(168deg, rgba(10, 23, 44, 0.95), rgba(5, 13, 27, 0.97)) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16), 0 20px 50px rgba(2, 8, 18, 0.78) !important;
  padding: 6px !important;
  min-width: 218px !important;
}
.cab-profile-menu__email {
  padding: 8px 11px 10px;
  margin-bottom: 4px;
  font-size: 0.76rem;
  color: #BAE6FD;
  font-weight: 600;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cab-profile-menu__sep {
  height: 1px;
  margin: 5px 4px;
  background: rgba(125, 211, 252, 0.14);
}
.portal-page .cab-profile-menu .nav-drop__item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100%;
  padding: 9px 11px !important;
  border-radius: 9px !important;
  color: #E2EEF9 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}
.portal-page .cab-profile-menu .nav-drop__item svg {
  width: 15px;
  height: 15px;
  color: #7DD3FC;
  flex-shrink: 0;
}
.portal-page .cab-profile-menu .nav-drop__item:hover {
  background: rgba(125, 211, 252, 0.12) !important;
  color: #F3DFA8 !important;
}
.portal-page .cab-profile-menu .nav-drop__item:hover svg {
  color: #F3DFA8;
}
.portal-page .cab-profile-menu .nav-drop__item--danger {
  color: #FCA5A5 !important;
}
.portal-page .cab-profile-menu .nav-drop__item--danger svg {
  color: #F87171 !important;
}
.portal-page .cab-profile-menu .nav-drop__item--danger:hover {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #FECACA !important;
}

/* Unified Calm Noble Warm Gold in Cabinet (no white glare) */
.portal-page .server-pill,
.portal-page .btn--gold,
.portal-page .vote-box .btn--gold {
  background: linear-gradient(180deg, #E8CE8C 0%, #CFA354 54%, #A67B32 100%) !important;
  color: #14100A !important;
  border: 1px solid rgba(243, 223, 168, 0.56) !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.50), 0 6px 18px -4px rgba(196, 152, 74, 0.38) !important;
  text-shadow: none !important;
}
.portal-page .btn--gold:hover,
.portal-page .vote-box .btn--gold:hover {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 250, 234, 0.72), 0 10px 24px -4px rgba(213, 173, 104, 0.50) !important;
}

/* Balance Card Quick Actions */
.ov-bal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  position: relative;
  z-index: 3;
}
.ov-bal-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(125, 211, 252, 0.30);
  background: rgba(8, 20, 40, 0.78);
  color: #DCEAF8;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.16s, color 0.16s, transform 0.16s;
}
.ov-bal-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 223, 168, 0.60);
  color: #F3DFA8;
}
.ov-bal-btn--gold {
  background: linear-gradient(180deg, #E8CE8C 0%, #CFA354 54%, #A67B32 100%);
  border-color: rgba(243, 223, 168, 0.56);
  color: #14100A !important;
  font-weight: 700;
}
.ov-bal-btn--gold:hover {
  filter: brightness(1.06);
  color: #14100A !important;
}

/* Hidden Accounts Clear Notice */
.ma-hidden-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin: 12px 0;
  border-radius: 12px;
  background: rgba(12, 28, 52, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.26);
}
.ma-hidden-banner strong {
  display: block;
  color: #F3DFA8;
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.ma-hidden-banner span {
  display: block;
  color: #A8C2DC;
  font-size: 0.78rem;
}

/* Left Column Stack + Launch Readiness Card */
.cab-left-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cab-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px !important;
  border-color: rgba(243, 223, 168, 0.28) !important;
}
.cab-launch-card__copy {
  flex: 1 1 280px;
  min-width: 0;
}
.cab-launch-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.34);
  color: #BAE6FD;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cab-launch-card h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
  color: #F3F7FC;
}
.cab-launch-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #A6C0DA;
  line-height: 1.45;
}
.cab-launch-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Unified Cabinet Footer with Socials */
.portal-page .cab-footer {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 14px !important;
}
.portal-page .cab-footer__left a {
  color: #F3DFA8;
  text-decoration: none;
}
.portal-page .cab-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.portal-page .cab-footer__right {
  text-align: right;
  color: #8FB4D8;
}
@media (max-width: 720px) {
  .portal-page .cab-footer {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .portal-page .cab-footer__right { text-align: center; }
}

/* === V57 FIX: Disable duplicate hover overlay on balance tile & smooth gold === */
.ov-card--balance .ov-card__hover {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.ov-card--balance:hover .ov-card__main,
.ov-card--balance:focus-within .ov-card__main,
.ov-card--balance:hover .ov-card__icon,
.ov-card--balance:focus-within .ov-card__icon {
  opacity: 1 !important;
  transform: none !important;
}
.ov-card--balance:hover {
  border-color: rgba(243, 223, 168, 0.48) !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.18), 0 16px 38px rgba(2, 8, 18, 0.56) !important;
}
.portal-page .server-pill::before,
.portal-page .btn--gold::before {
  display: none !important;
}

/* === V58 FIX: Direct clickable Calendar tile without dark hover curtain === */
a.ov-card--calendar {
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}
a.ov-card--calendar:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 223, 168, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.28), 0 16px 38px rgba(2, 8, 18, 0.60), 0 0 22px rgba(213, 173, 104, 0.22) !important;
}
a.ov-card--calendar:hover .ov-card__main,
a.ov-card--calendar:hover .ov-card__icon {
  opacity: 1 !important;
  transform: none !important;
}

/* === V59 POLISH: Arctic Cabinet Forms, Support FAQ & Clean Rating Outer Frame === */
.portal-page .portal-form input[type="text"],
.portal-page .portal-form input[type="email"],
.portal-page .portal-form input[type="password"],
.portal-page .portal-form input[type="number"],
.portal-page .portal-form input[type="search"],
.portal-page .portal-form select,
.portal-page .portal-form textarea {
  background: rgba(6, 15, 30, 0.82) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  border-radius: 10px !important;
  color: #EFF6FF !important;
  padding: 10px 13px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.portal-page .portal-form select option {
  background: #081529;
  color: #EFF6FF;
}
.portal-page .portal-form input:focus,
.portal-page .portal-form select:focus,
.portal-page .portal-form textarea:focus {
  outline: none !important;
  border-color: rgba(125, 211, 252, 0.68) !important;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.16) !important;
  background: rgba(8, 20, 40, 0.92) !important;
}
.portal-page .portal-field > span {
  color: #9CC0E2 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  margin-bottom: 5px !important;
}

/* Support Page Layout & FAQ */
.sup-layout {
  align-items: start !important;
}
.sup-left-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.sup-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sup-card-head h2 { margin: 0 !important; }
.sup-empty {
  padding: 24px 16px;
  text-align: center;
  border-radius: 12px;
  background: rgba(6, 15, 30, 0.56);
  border: 1px dashed rgba(125, 211, 252, 0.22);
}
.sup-empty__ic { font-size: 1.6rem; margin-bottom: 6px; }
.sup-empty strong { display: block; color: #F3F7FC; font-size: 0.92rem; margin-bottom: 4px; }
.sup-empty p { margin: 0; color: #95B2CF; font-size: 0.80rem; line-height: 1.45; }

.sup-faq h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: #F3DFA8;
}
.sup-faq details {
  border: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(6, 15, 30, 0.55);
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 8px;
  transition: border-color 0.16s ease;
}
.sup-faq details[open] {
  border-color: rgba(243, 223, 168, 0.42);
  background: rgba(10, 23, 44, 0.76);
}
.sup-faq summary {
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: #E2EEF9;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sup-faq summary::-webkit-details-marker { display: none; }
.sup-faq summary::after {
  content: "+";
  color: #7DD3FC;
  font-weight: 700;
  font-size: 1rem;
}
.sup-faq details[open] summary::after { content: "−"; color: #F3DFA8; }
.sup-faq details p {
  margin: 8px 0 0;
  font-size: 0.80rem;
  color: #A6C0DA;
  line-height: 1.5;
}
.sup-faq__tg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(125, 211, 252, 0.14);
  font-size: 0.80rem;
  color: #95B2CF;
}

.sup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 680px) {
  .sup-form-grid { grid-template-columns: 1fr; }
}

/* Soften old square outer gold-corner frame around rating table/castle grid */
.rating-page .table-wrap,
.rating-page .rating-table,
.rating-page .tabs__panel,
.rating-page .panel--framed {
  border-radius: 16px !important;
  border-color: rgba(125, 211, 252, 0.20) !important;
}
.rating-page .tabs__panel::before,
.rating-page .tabs__panel::after,
.rating-page .table-wrap::before,
.rating-page .table-wrap::after {
  display: none !important;
}
/* === V60 POLISH: Compact Winter Castle Showcase, Anti-Lag Performance & Clean Rating Frame === */

/* 1. Eliminate /rating/ scroll lag: zero nested backdrop-filter layers, hide redundant particle canvas on inner CMS pages */
body.cms-page #heroParticles {
  display: none !important;
}
.rating-widget--full {
  background: rgba(7, 17, 34, 0.88) !important;
  border: 1px solid rgba(147, 197, 253, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 46px rgba(2, 8, 18, 0.56) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 18px 20px !important;
}
/* Remove legacy square inner gold-corner-bracket frame around rating tables & castle grid */
.rating-widget--full .rating__panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 2px 0 0 !important;
  margin-top: 12px !important;
  overflow-x: auto !important;
}
.rating-widget--full .rating__table:not([data-rating-table="castles"]) {
  background: rgba(6, 15, 30, 0.64) !important;
  border: 1px solid rgba(125, 211, 252, 0.16) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.rating-widget--full .rating__tabs {
  border-bottom: 1px solid rgba(147, 197, 253, 0.16) !important;
  padding-bottom: 14px !important;
  gap: 8px !important;
  justify-content: center !important;
}
.rating__tab,
.rating-widget--full .rating__tab {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 8px 16px !important;
  font-size: 0.78rem !important;
  background: rgba(10, 24, 46, 0.86) !important;
  border: 1px solid rgba(147, 197, 253, 0.22) !important;
  box-shadow: none !important;
}
/* Calm noble warm gold on active rating tab (unified with site palette) */
.rating__tab.active,
.rating-widget--full .rating__tab.active {
  background: linear-gradient(180deg, #E8CE8C 0%, #CFA354 54%, #A67B32 100%) !important;
  border-color: rgba(232, 206, 140, 0.65) !important;
  color: #151006 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 224, 0.55), 0 4px 14px rgba(180, 134, 52, 0.26) !important;
  text-shadow: none !important;
}
.rating__tab.active:hover,
.rating-widget--full .rating__tab.active:hover {
  background: linear-gradient(180deg, #EED69A 0%, #D6AC5E 54%, #B08438 100%) !important;
  color: #151006 !important;
}

/* 2. Sleek frosted arctic server status pill instead of raw black <select> */
.rating-server-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #9BBAD8 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 4px !important;
}
.rating-server-label select {
  background: rgba(9, 22, 42, 0.88) !important;
  color: #E8F2FC !important;
  border: 1px solid rgba(147, 197, 253, 0.28) !important;
  border-radius: 10px !important;
  padding: 7px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  outline: none !important;
}
.rating-server-label.is-single-server select {
  display: none !important;
}
.rating-server-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 24, 46, 0.86);
  border: 1px solid rgba(147, 197, 253, 0.26);
  color: #EAF3FC;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(2, 8, 18, 0.32);
}
.rating-server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.75);
  flex-shrink: 0;
}

/* 3. Compact, silky-smooth 60fps Castle Showcase Cards (6 cards visible at once) */
.castle-grid-row > td {
  padding: 6px 0 4px !important;
}
.castle-grid {
  gap: 14px !important;
}
.castle-card {
  border-radius: 13px !important;
  background: linear-gradient(170deg, rgba(11, 25, 48, 0.94) 0%, rgba(5, 13, 27, 0.97) 100%) !important;
  border: 1px solid rgba(125, 211, 252, 0.20) !important;
  box-shadow: 0 8px 22px rgba(2, 8, 18, 0.42) !important;
  contain: layout style paint;
  transition: transform 0.18s ease, border-color 0.18s ease !important;
}
.castle-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(186, 230, 253, 0.42) !important;
  box-shadow: 0 12px 26px rgba(2, 8, 18, 0.54) !important;
}
.castle-card--aden {
  border-color: rgba(232, 206, 140, 0.36) !important;
}
.castle-card--aden:hover {
  border-color: rgba(232, 206, 140, 0.66) !important;
}
.castle-card__media {
  aspect-ratio: auto !important;
  height: 118px !important;
  background: #060e1c !important;
}
.castle-card__media img {
  transition: transform 0.28s ease !important;
}
.castle-card:hover .castle-card__media img {
  transform: scale(1.03) !important;
}
.castle-card__media::after {
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.42) 0%, rgba(4, 10, 20, 0.05) 42%, rgba(6, 14, 28, 0.94) 100%) !important;
}
.castle-card__badges {
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  gap: 6px !important;
}
.castle-pill {
  padding: 3px 7px !important;
  border-radius: 7px !important;
  font-size: 0.66rem !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.castle-pill--free {
  background: rgba(6, 16, 33, 0.86) !important;
}
.castle-pill--muted {
  background: rgba(6, 16, 33, 0.84) !important;
}
.castle-card__name {
  left: 12px !important;
  right: 12px !important;
  bottom: 7px !important;
  font-size: 1.06rem !important;
  letter-spacing: 0.05em !important;
}
.castle-card__body {
  padding: 10px 12px 11px !important;
  gap: 6px !important;
}
.castle-meta-row {
  font-size: 0.76rem !important;
  gap: 8px !important;
}
.castle-meta-lbl {
  font-size: 0.72rem !important;
}
/* Capture reward & passive castle buff strip */
.castle-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1px;
}
.castle-reward {
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 5px;
}
.castle-reward--aden {
  background: linear-gradient(90deg, rgba(207, 163, 84, 0.22), rgba(207, 163, 84, 0.09));
  border: 1px solid rgba(232, 206, 140, 0.48);
  color: #F6E2AE;
}
.castle-reward--top {
  background: rgba(207, 163, 84, 0.11);
  border: 1px solid rgba(232, 206, 140, 0.30);
  color: #EAD39A;
}
.castle-buff {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(125, 211, 252, 0.16);
  color: #9CC6EA;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.25;
}
.castle-siege-box {
  margin-top: 1px !important;
  padding: 7px 10px !important;
  border-radius: 9px !important;
  gap: 3px !important;
}
.castle-siege-date {
  font-size: 0.80rem !important;
}
.castle-cd {
  padding: 2px 6px !important;
  font-size: 0.65rem !important;
}
.castle-sides {
  gap: 6px !important;
  padding-top: 2px !important;
}
.castle-side {
  padding: 6px 8px !important;
  border-radius: 8px !important;
}
.castle-side__lbl {
  font-size: 0.68rem !important;
  margin-bottom: 2px !important;
}
.castle-side__list {
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}
@media (max-width: 640px) {
  .rating-widget--full { padding: 12px !important; }
  .castle-card__media { height: 128px !important; }
}
