/* CyrusMine — Premium Black & Gold design system */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2-variations"), url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2-variations"), url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08090c;
  --bg-2: #111318;
  --card: #181a20;
  --card-2: #1e2028;
  --card-3: #24262f;
  --gold: #d4af37;
  --gold-light: #f5d76e;
  --gold-dark: #8d6b19;
  --text: #f5f5f5;
  --muted: #a5a5a5;
  --muted-2: #6f717a;
  --success: #21c58e;
  --danger: #ef5350;
  --warning: #f5a524;
  --info: #4fa3f7;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(212, 175, 55, 0.24);
  --gold-soft: rgba(212, 175, 55, 0.1);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 18px 50px rgba(212, 175, 55, 0.14);
  --gradient-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 48%, var(--gold-dark) 100%);
  --gradient-card: linear-gradient(160deg, rgba(36, 38, 47, 0.92) 0%, rgba(24, 26, 32, 0.96) 55%, rgba(17, 19, 24, 0.98) 100%);
  --header-h: 78px;
  --container: 1280px;
  --font: "Vazirmatn", "IRANSansX", Tahoma, sans-serif;
  --font-en: "Inter", "Vazirmatn", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 85% -10%, rgba(212, 175, 55, 0.09), transparent 60%),
    radial-gradient(900px 480px at 0% 8%, rgba(141, 107, 25, 0.08), transparent 60%),
    linear-gradient(180deg, #08090c 0%, #0a0b0f 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: #fff;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.08rem; }

p {
  margin: 0 0 1em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

code,
kbd,
.ltr,
.en {
  font-family: var(--font-en);
  direction: ltr;
  unicode-bidi: isolate;
}

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 2rem 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #111;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: 880px;
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
}

.section-sm {
  padding-block: clamp(36px, 5vw, 64px);
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 19, 24, 0) 0%, rgba(17, 19, 24, 0.75) 18%, rgba(17, 19, 24, 0.75) 82%, rgba(17, 19, 24, 0) 100%);
}

.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-muted { color: var(--muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-center { text-align: center; }
.text-end { text-align: left; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.text-lg { font-size: 1.12rem; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grow { flex: 1 1 auto; min-width: 0; }

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.05);
  --btn-color: var(--text);
  --btn-border: var(--border-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 46px;
  padding: 0.62em 1.35em;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  user-select: none;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.2s;
}

.btn:hover {
  color: var(--btn-color);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-gold {
  --btn-bg: var(--gradient-gold);
  --btn-color: #1a1305;
  --btn-border: rgba(245, 215, 110, 0.6);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s var(--ease);
}

.btn-gold:hover {
  box-shadow: 0 16px 42px rgba(212, 175, 55, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-gold:hover::after {
  transform: translateX(-120%);
}

.btn-outline {
  --btn-bg: transparent;
  --btn-color: var(--gold-light);
  --btn-border: var(--border-gold);
}

.btn-outline:hover {
  --btn-bg: rgba(212, 175, 55, 0.1);
  --btn-border: rgba(212, 175, 55, 0.55);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.04);
  --btn-border: var(--border);
}

.btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: var(--border-2);
}

.btn-danger {
  --btn-bg: rgba(239, 83, 80, 0.12);
  --btn-color: #ff8a87;
  --btn-border: rgba(239, 83, 80, 0.35);
}

.btn-danger:hover {
  --btn-bg: rgba(239, 83, 80, 0.2);
}

.btn-success {
  --btn-bg: rgba(33, 197, 142, 0.14);
  --btn-color: #5ee0b3;
  --btn-border: rgba(33, 197, 142, 0.35);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4em 0.95em;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-lg {
  min-height: 56px;
  padding: 0.8em 1.8em;
  font-size: 1.05rem;
  border-radius: 14px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
}

.btn-icon.btn-sm {
  width: 36px;
  min-height: 36px;
}

.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--gold-light);
  animation: spin 0.7s linear infinite;
}

.btn-gold.is-loading::before {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: #1a1305;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold-light);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-btn:hover {
  color: #fff;
}

/* ------------------------------------------------------------------ */
/* Badges & chips                                                      */
/* ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.badge-plain::before {
  display: none;
}

.badge-success { color: #4fe0ad; background: rgba(33, 197, 142, 0.12); border-color: rgba(33, 197, 142, 0.25); }
.badge-danger { color: #ff7a77; background: rgba(239, 83, 80, 0.12); border-color: rgba(239, 83, 80, 0.25); }
.badge-warning { color: #ffc15a; background: rgba(245, 165, 36, 0.12); border-color: rgba(245, 165, 36, 0.25); }
.badge-info { color: #7cbcff; background: rgba(79, 163, 247, 0.12); border-color: rgba(79, 163, 247, 0.25); }
.badge-gold { color: var(--gold-light); background: rgba(212, 175, 55, 0.12); border-color: rgba(212, 175, 55, 0.3); }
.badge-neutral { color: #c6c6cc; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chip .icon {
  color: var(--gold);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted-2);
  flex-shrink: 0;
}

.dot-online {
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(33, 197, 142, 0.6);
  animation: pulse-dot 2s infinite;
}

.dot-offline {
  background: var(--danger);
}

.dot-unknown {
  background: var(--warning);
}

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(245, 215, 110, 0.18), transparent 40%, transparent 70%, rgba(212, 175, 55, 0.08));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: var(--glow), var(--shadow);
}

.card-body {
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 .icon,
.card-header h3 .icon {
  color: var(--gold);
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.glass {
  background: rgba(17, 19, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.85), rgba(8, 9, 12, 0));
  pointer-events: none;
  transition: opacity 0.35s;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(10, 11, 15, 0.82);
  border-bottom-color: rgba(212, 175, 55, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.site-header.is-scrolled::before,
.site-header.is-solid::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  flex-shrink: 0;
}

.brand:hover {
  color: #fff;
}

.brand img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 4px 14px rgba(212, 175, 55, 0.35));
  transition: transform 0.5s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.12rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  font-family: var(--font-en);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  color: #d8d8dc;
  font-weight: 600;
  font-size: 0.93rem;
  white-space: nowrap;
}

.main-nav a .icon {
  display: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 30%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a.is-active {
  color: var(--gold-light);
}

.main-nav a.is-active::after,
.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.icon-btn:hover {
  color: var(--gold-light);
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.08);
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.counter {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 3px var(--bg);
}

.counter:empty,
.counter[data-count="0"] {
  display: none;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding-inline: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
}

.user-menu-btn:hover {
  border-color: var(--border-gold);
}

.user-menu-btn img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  image-rendering: pixelated;
  background: var(--card-2);
}

.menu-toggle {
  display: none;
}

/* Dropdown */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  z-index: 120;
  min-width: 240px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(20, 22, 28, 0.97);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown-menu a,
.dropdown-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #dcdce0;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: start;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: rgba(212, 175, 55, 0.09);
  color: var(--gold-light);
}

.dropdown-menu .icon {
  color: var(--gold);
}

.dropdown-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.dropdown-head img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  image-rendering: pixelated;
}

.dropdown-head strong {
  display: block;
  font-size: 0.95rem;
}

.dropdown-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dropdown-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}

.notif-menu {
  width: 360px;
  max-width: calc(100vw - 32px);
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px;
}

.notif-item .notif-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.notif-item strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}

.notif-item small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.6;
}

.notif-item.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-start: 6px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

/* Mobile drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.drawer.is-open {
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #121419, #0b0c10);
  border-inline-end: 1px solid var(--border-gold);
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out);
  overflow-y: auto;
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #dedee2;
  font-weight: 700;
  opacity: 0;
  transform: translateX(16px);
  transition: background 0.2s, color 0.2s, opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.drawer.is-open .drawer-nav a {
  opacity: 1;
  transform: none;
}

.drawer-nav a .icon {
  color: var(--gold);
  width: 20px;
  height: 20px;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  background: rgba(212, 175, 55, 0.09);
  color: var(--gold-light);
}

.drawer-foot {
  margin-top: auto;
  padding: 18px 20px 26px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  --parx: 0;
  --pary: 0;
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-media picture,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
  will-change: transform;
}

.has-hero-parallax .hero-media {
  transform: translate3d(calc(var(--parx) * 14px), calc(var(--pary) * 10px), 0);
}

.has-hero-parallax .hero::after {
  transform: translate3d(calc(var(--parx) * -8px), calc(var(--pary) * -6px), 0);
}

.hero-media img {
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  animation: hero-zoom 26s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(8, 9, 12, 0.25) 0%, rgba(8, 9, 12, 0.72) 70%, rgba(8, 9, 12, 0.92) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.55) 0%, rgba(8, 9, 12, 0.1) 35%, rgba(8, 9, 12, 0.65) 75%, var(--bg) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 0%, transparent 75%);
}

.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particles span {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(212, 175, 55, 0.6);
  opacity: 0;
  animation: float-up linear infinite;
}

.hero-content {
  position: relative;
  width: 100%;
  text-align: center;
}

.hero-logo {
  position: relative;
  width: clamp(110px, 14vw, 156px);
  margin: 0 auto 22px;
}

.hero-logo::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 65%);
  filter: blur(6px);
  animation: glow-pulse 4s ease-in-out infinite;
}

.hero-logo img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.eyebrow::after {
  transform: scaleX(-1);
}

.eyebrow .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5.6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.hero-slogan {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 800;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 32px;
  color: #d0d0d6;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.server-box {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 11, 15, 0.7);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.server-box-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-inline-end: 1px solid var(--border-2);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.server-box-status strong {
  font-family: var(--font-en);
  color: #fff;
  font-size: 1.05rem;
}

.server-box-ip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff;
  direction: ltr;
}

.server-box-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 20px;
  border: 0;
  background: var(--gradient-gold);
  color: #1a1305;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: filter 0.2s;
}

.server-box-copy:hover {
  filter: brightness(1.08);
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
}

.scroll-hint span {
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
}

.scroll-hint span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scroll-dot 1.8s infinite;
}

/* ------------------------------------------------------------------ */
/* Section headings                                                     */
/* ------------------------------------------------------------------ */

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.is-start {
  margin-inline: 0;
  text-align: start;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head-row .section-head {
  margin: 0;
  text-align: start;
}

.section-head-row .eyebrow::before {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Stat cards                                                           */
/* ------------------------------------------------------------------ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.16), transparent 70%);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.22), rgba(141, 107, 25, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.stat-icon .icon {
  width: 22px;
  height: 22px;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
}

.stat-value.is-unknown {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Game mode cards                                                      */
/* ------------------------------------------------------------------ */

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
}

.mode-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mode-media {
  position: relative;
  display: block;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  color: #fff;
}

.mode-media:hover {
  color: #fff;
}

.mode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}

.mode-card:hover .mode-media img {
  transform: scale(1.07);
}

.mode-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0) 35%, rgba(18, 20, 25, 0.96) 100%);
}

.mode-card.is-muted .mode-media img {
  filter: grayscale(0.45) brightness(0.8);
}

.mode-badges {
  position: absolute;
  top: 14px;
  inset-inline: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mode-title {
  position: absolute;
  bottom: 14px;
  inset-inline: 20px;
  z-index: 2;
}

.mode-title h3 {
  margin: 0;
  font-size: 1.45rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.mode-card:hover .mode-title h3 {
  color: var(--gold-light);
}

.mode-title span {
  display: block;
  font-family: var(--font-en);
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: end;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.mode-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.mode-body p {
  color: var(--muted);
  font-size: 0.93rem;
}

.mode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 18px;
}

.mode-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.mode-actions .btn {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Product cards                                                        */
/* ------------------------------------------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 22px;
}

.product-grid.is-ranks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  direction: ltr;
  gap: 22px;
}

.product-grid.is-ranks > .product-card {
  direction: rtl;
  box-sizing: border-box;
  flex: 0 0 calc((100% - 66px) / 4);
  max-width: calc((100% - 66px) / 4);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin: 12px 12px 0;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, 0.2), rgba(8, 9, 12, 0.2) 65%), #101116;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.08) rotate(-1.5deg);
}

.product-flags {
  position: absolute;
  top: 10px;
  inset-inline: 10px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  z-index: 1;
}

.ribbon {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(239, 83, 80, 0.4);
}

.ribbon-gold {
  background: var(--gradient-gold);
  color: #1a1305;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.product-cat {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-body h3 {
  margin: 2px 0 6px;
  font-size: 1.06rem;
}

.product-body h3 a {
  color: #fff;
}

.product-body h3 a:hover {
  color: var(--gold-light);
}

.product-body p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.price del {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.price strong {
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--gold-light);
}

.price strong small {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  margin-inline-start: 3px;
}

/* ------------------------------------------------------------------ */
/* Leaderboard preview / podium                                         */
/* ------------------------------------------------------------------ */

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}

.podium-item {
  position: relative;
  text-align: center;
  padding: 26px 16px 22px;
  border-radius: var(--radius-lg);
}

.podium-item .rank-crown {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 900;
  font-family: var(--font-en);
}

.podium-item img {
  width: 76px;
  height: 76px;
  margin: 10px auto 12px;
  border-radius: 16px;
  image-rendering: pixelated;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.podium-item.rank-1 {
  padding-top: 38px;
  border-color: rgba(245, 215, 110, 0.45);
  box-shadow: var(--glow);
}

.podium-item.rank-1 img {
  width: 92px;
  height: 92px;
}

.rank-1 .rank-crown { background: var(--gradient-gold); color: #1a1305; box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45); }
.rank-2 .rank-crown { background: linear-gradient(135deg, #f2f2f2, #9da3ad); color: #16181d; }
.rank-3 .rank-crown { background: linear-gradient(135deg, #f0b27a, #8a5228); color: #1b0f05; }

.podium-item h4 {
  margin: 0;
  font-family: var(--font-en);
  font-size: 1.02rem;
}

.podium-value {
  display: block;
  margin-top: 4px;
  color: var(--gold-light);
  font-weight: 800;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.lb-row:hover {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(-4px);
}

.lb-rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--muted);
}

.lb-row img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  image-rendering: pixelated;
}

.lb-name {
  flex: 1;
  min-width: 0;
}

.lb-name strong {
  display: block;
  font-family: var(--font-en);
  color: #fff;
}

.lb-name small {
  color: var(--muted);
  font-size: 0.78rem;
}

.lb-value {
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* News cards                                                           */
/* ------------------------------------------------------------------ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.news-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.news-card:hover .news-media img {
  transform: scale(1.06);
}

.news-media .chip {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
}

.news-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-meta .icon {
  color: var(--gold);
}

.news-body h3 {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.news-body h3 a {
  color: #fff;
}

.news-body h3 a:hover {
  color: var(--gold-light);
}

.news-body p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Community / CTA                                                      */
/* ------------------------------------------------------------------ */

.community {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-gold);
  isolation: isolate;
}

.community-media,
.community-media picture,
.community-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-media {
  z-index: -2;
}

.community::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 12, 0.35) 0%, rgba(8, 9, 12, 0.85) 55%, rgba(8, 9, 12, 0.96) 100%);
}

.community-content {
  max-width: 560px;
  padding: clamp(32px, 6vw, 64px);
}

.community-content p {
  color: #cfcfd5;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-2);
  color: #e5e5e8;
  transition: all 0.25s var(--ease);
}

.social-btn:hover {
  color: #1a1305;
  background: var(--gradient-gold);
  border-color: transparent;
  transform: translateY(-3px);
}

.splus-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.38);
}

.splus-card .splus-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #0b0d12;
  flex-shrink: 0;
  overflow: hidden;
}

.splus-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.splus-card .splus-logo .splus-logo-img {
  width: 52px;
  height: 52px;
}

.icon-btn.splus-btn {
  overflow: hidden;
  padding: 6px;
}

.icon-btn.splus-btn .splus-logo-img {
  width: 28px;
  height: 28px;
}

/* ------------------------------------------------------------------ */
/* Page header                                                          */
/* ------------------------------------------------------------------ */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 54px) 0 54px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.page-hero-media,
.page-hero-media picture,
.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-media {
  z-index: -2;
  opacity: 0.38;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.6) 0%, rgba(8, 9, 12, 0.85) 70%, var(--bg) 100%), radial-gradient(700px 300px at 50% 0%, rgba(212, 175, 55, 0.18), transparent 70%);
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.page-hero p {
  max-width: 680px;
  color: #c9c9cf;
  margin: 0;
}

.page-hero.is-center {
  text-align: center;
}

.page-hero.is-center p {
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-hero.is-center .breadcrumb {
  justify-content: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--muted-2);
  border-left: 1.5px solid var(--muted-2);
  transform: rotate(-45deg);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb [aria-current] {
  color: var(--gold-light);
}

/* ------------------------------------------------------------------ */
/* Forms                                                                */
/* ------------------------------------------------------------------ */

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > label,
.label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e3e3e7;
}

.field .hint {
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.7;
}

.field .error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff7a77;
  font-size: 0.82rem;
  font-weight: 600;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #2a2d36;
  background: rgba(10, 11, 15, 0.75);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: #5d6068;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: #3a3d48;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.65);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
  background: rgba(10, 11, 15, 0.95);
}

.has-error .input,
.has-error .select,
.has-error .textarea {
  border-color: rgba(239, 83, 80, 0.6);
}

.textarea {
  min-height: 140px;
  line-height: 1.9;
  resize: vertical;
}

.select {
  appearance: none;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
}

.select option {
  background: #14161b;
}

.input-group {
  position: relative;
}

.input-group > .icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 15px;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.2s;
}

.input-group .input {
  padding-inline-start: 46px;
}

.input-group:focus-within > .icon {
  color: var(--gold);
}

.input-group .input-action {
  position: absolute;
  top: 50%;
  inset-inline-end: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.input-group .input-action:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

.input-ltr {
  direction: ltr;
  text-align: left;
  font-family: var(--font-en);
}

.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #d5d5da;
  line-height: 1.7;
}

.check input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 6px;
  border: 1.5px solid #3b3e49;
  background: rgba(10, 11, 15, 0.8);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.check input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #1a1305;
  border-bottom: 2px solid #1a1305;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.2s var(--ease);
}

.check input:checked {
  background: var(--gradient-gold);
  border-color: var(--gold);
}

.check input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.check input[type="radio"] {
  border-radius: 50%;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.switch input {
  appearance: none;
  position: relative;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: #2a2d36;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s;
}

.switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease);
}

.switch input:checked {
  background: var(--gold);
}

.switch input:checked::after {
  transform: translateX(-20px);
}

.strength {
  height: 5px;
  border-radius: 4px;
  background: #23262e;
  overflow: hidden;
}

.strength span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.3s var(--ease), background 0.3s;
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed #343844;
  background: rgba(10, 11, 15, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-drop:hover,
.file-drop.is-dragover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-drop .icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.file-drop small {
  display: block;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ */
/* Alerts                                                               */
/* ------------------------------------------------------------------ */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.92rem;
  line-height: 1.8;
}

.alert .icon {
  width: 21px;
  height: 21px;
  margin-top: 3px;
}

.alert p:last-child {
  margin-bottom: 0;
}

.alert-info { background: rgba(79, 163, 247, 0.08); border-color: rgba(79, 163, 247, 0.25); color: #b7dbff; }
.alert-success { background: rgba(33, 197, 142, 0.08); border-color: rgba(33, 197, 142, 0.25); color: #a5f0d4; }
.alert-warning { background: rgba(245, 165, 36, 0.08); border-color: rgba(245, 165, 36, 0.28); color: #ffd79a; }
.alert-danger { background: rgba(239, 83, 80, 0.08); border-color: rgba(239, 83, 80, 0.28); color: #ffb3b1; }
.alert-gold { background: rgba(212, 175, 55, 0.07); border-color: rgba(212, 175, 55, 0.28); color: #f0dfa5; }

/* ------------------------------------------------------------------ */
/* Tables                                                               */
/* ------------------------------------------------------------------ */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 13px 16px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table th {
  position: sticky;
  top: 0;
  background: #14161c;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .num {
  font-family: var(--font-en);
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ------------------------------------------------------------------ */
/* Tabs                                                                 */
/* ------------------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.tab.is-active {
  color: #1a1305;
  background: var(--gradient-gold);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.25);
}

.tab .icon {
  width: 17px;
  height: 17px;
}

.tab-panel {
  display: none;
  animation: fade-in 0.35s var(--ease);
}

.tab-panel.is-active {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Pagination                                                           */
/* ------------------------------------------------------------------ */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
}

.pagination a:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.pagination .is-current {
  background: var(--gradient-gold);
  color: #1a1305;
  border-color: transparent;
}

.pagination .is-gap {
  border: 0;
  background: none;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ */
/* Empty / skeleton / spinner                                           */
/* ------------------------------------------------------------------ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(212, 175, 55, 0.22);
  background: radial-gradient(400px 200px at 50% 0%, rgba(212, 175, 55, 0.06), transparent 70%);
}

.empty-icon {
  position: relative;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(141, 107, 25, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}

.empty-icon .icon {
  width: 34px;
  height: 34px;
}

.empty h3 {
  margin-bottom: 8px;
}

.empty p {
  max-width: 440px;
  color: var(--muted);
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #1a1c22;
  color: transparent !important;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

.skeleton-text {
  display: inline-block;
  height: 1em;
  min-width: 60px;
  vertical-align: middle;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
}

.modal.is-open {
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.72);
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(170deg, #1d1f27, #121419);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(212, 175, 55, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out);
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: none;
}

.modal-lg .modal-dialog {
  width: min(760px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px 0;
}

.modal-head h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-head h3 .icon {
  color: var(--gold);
}

.modal-body {
  padding: 18px 26px 8px;
  overflow-y: auto;
  min-height: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 16px 26px 22px;
  flex-shrink: 0;
}

.connect-steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.connect-steps li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.connect-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--gradient-gold);
  color: #1a1305;
  font-weight: 900;
  font-family: var(--font-en);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: rgba(8, 9, 12, 0.8);
  border: 1px solid var(--border-gold);
  direction: ltr;
}

.copy-field code {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ */
/* Toasts                                                               */
/* ------------------------------------------------------------------ */

.toasts {
  position: fixed;
  z-index: 400;
  bottom: 22px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22, 24, 30, 0.97);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow: hidden;
  pointer-events: auto;
  animation: toast-in 0.45s var(--ease-out);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast.is-leaving {
  animation: toast-out 0.3s var(--ease) forwards;
}

.toast-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.toast-success .toast-icon { background: rgba(33, 197, 142, 0.15); color: var(--success); }
.toast-error .toast-icon { background: rgba(239, 83, 80, 0.15); color: var(--danger); }
.toast-warning .toast-icon { background: rgba(245, 165, 36, 0.15); color: var(--warning); }
.toast-info .toast-icon { background: rgba(212, 175, 55, 0.15); color: var(--gold); }

.toast-success { border-color: rgba(33, 197, 142, 0.3); }
.toast-error { border-color: rgba(239, 83, 80, 0.3); }
.toast-warning { border-color: rgba(245, 165, 36, 0.3); }

.toast-text {
  flex: 1;
  padding-top: 3px;
}

.toast-close {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 4px;
  border-radius: 6px;
}

.toast-close:hover {
  color: #fff;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  background: currentColor;
  opacity: 0.4;
  transform-origin: left;
  animation: toast-progress linear forwards;
}

.toast-success .toast-progress { color: var(--success); }
.toast-error .toast-progress { color: var(--danger); }
.toast-warning .toast-progress { color: var(--warning); }
.toast-info .toast-progress { color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */

.site-footer {
  position: relative;
  margin-top: 40px;
  padding-top: 72px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.4), #07080a 60%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 16px 0 20px;
}

.footer-title {
  margin-bottom: 18px;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(-3px);
}

.footer-server {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.footer-server .copy-field {
  margin: 12px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 0.82rem;
}

.footer-bottom nav {
  display: flex;
  gap: 18px;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

.disclaimer {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: #50525a;
  text-align: center;
  padding-bottom: 22px;
  direction: ltr;
}

/* ------------------------------------------------------------------ */
/* Content / prose                                                       */
/* ------------------------------------------------------------------ */

.prose {
  color: #d8d8dd;
  font-size: 1.02rem;
  line-height: 2.05;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.8em;
  color: #fff;
}

.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.22rem; }

.prose h2::after,
.prose h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gradient-gold);
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 4px;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--gold);
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 22px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  color: #ece3c4;
}

.prose img {
  border-radius: 16px;
  margin: 1.5em auto;
  border: 1px solid var(--border);
}

.prose code {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold-light);
  font-size: 0.88em;
}

.prose pre {
  padding: 16px;
  border-radius: 14px;
  background: #0b0c10;
  border: 1px solid var(--border);
  overflow-x: auto;
  direction: ltr;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--border-2);
}

.prose .note {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(79, 163, 247, 0.08);
  border: 1px solid rgba(79, 163, 247, 0.2);
}

.prose .warning {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(245, 165, 36, 0.08);
  border: 1px solid rgba(245, 165, 36, 0.25);
}

/* ------------------------------------------------------------------ */
/* Auth pages                                                           */
/* ------------------------------------------------------------------ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.auth-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-visual picture,
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(8, 9, 12, 0.25) 40%, rgba(8, 9, 12, 0.15) 100%), linear-gradient(0deg, rgba(8, 9, 12, 0.85), transparent 45%);
}

.auth-visual-content {
  position: absolute;
  z-index: 1;
  inset-inline: 48px;
  bottom: 72px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
}

.auth-visual-content h2 {
  font-size: 2rem;
}

.auth-visual-content p {
  color: #d3d3d8;
  max-width: 420px;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(20px, 6vw, 88px);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

.auth-card .brand {
  margin-bottom: 34px;
}

.auth-card h1 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.auth-card .lead {
  color: var(--muted);
  margin-bottom: 28px;
}

.divider-text {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

.btn-google {
  --btn-bg: #fff;
  --btn-color: #1f1f1f;
  --btn-border: #fff;
}

.btn-google:hover {
  --btn-bg: #f2f2f2;
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.auth-switch {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------------------------------------------ */
/* Dashboard layout                                                      */
/* ------------------------------------------------------------------ */

.dash {
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 60px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 18px;
  border-radius: var(--radius-xl);
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 6px 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.dash-user img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  image-rendering: pixelated;
  border: 2px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dash-user strong {
  display: block;
  font-size: 1rem;
}

.dash-user span {
  color: var(--muted);
  font-size: 0.8rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dash-nav a,
.dash-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #c9c9ce;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: start;
  width: 100%;
  transition: background 0.2s, color 0.2s;
}

.dash-nav a .icon,
.dash-nav button .icon {
  width: 19px;
  height: 19px;
  color: var(--muted-2);
  transition: color 0.2s;
}

.dash-nav a:hover,
.dash-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.dash-nav a.is-active {
  position: relative;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.02), rgba(212, 175, 55, 0.14));
  color: var(--gold-light);
}

.dash-nav a.is-active::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.dash-nav a.is-active .icon,
.dash-nav a:hover .icon {
  color: var(--gold);
}

.dash-nav .nav-count {
  margin-inline-start: auto;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.dash-nav .is-logout:hover {
  background: rgba(239, 83, 80, 0.1);
  color: #ff8a87;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.dash-head h1 {
  margin: 0;
  font-size: 1.6rem;
}

.dash-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dash-mobile-nav {
  display: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.kpi .stat-icon {
  margin: 0;
}

.kpi strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.4;
}

.kpi span {
  color: var(--muted);
  font-size: 0.82rem;
}

.welcome-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  margin-bottom: 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

.welcome-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px 220px at 100% 0%, rgba(212, 175, 55, 0.18), transparent 70%);
}

.welcome-card img.avatar-xl {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  image-rendering: pixelated;
  border: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-2);
  font-size: 0.92rem;
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  font-weight: 700;
  text-align: left;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-inline-start: 30px;
  padding-bottom: 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 6px;
  top: 10px;
  bottom: -4px;
  width: 1px;
  background: var(--border-2);
}

.timeline li:last-child::before {
  display: none;
}

.timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 1px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--gold);
}

.timeline strong {
  display: block;
  font-size: 0.9rem;
}

.timeline small {
  color: var(--muted);
}

.code-display {
  display: flex;
  justify-content: center;
  gap: 10px;
  direction: ltr;
  margin: 18px 0;
}

.code-display span {
  width: 56px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(8, 9, 12, 0.85);
  border: 1px solid var(--border-gold);
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--gold-light);
  box-shadow: inset 0 0 22px rgba(212, 175, 55, 0.08);
}

/* Tickets chat */

.chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.msg {
  display: flex;
  gap: 12px;
  max-width: 88%;
}

.msg img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  border-top-right-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.msg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.msg-meta strong {
  color: #fff;
  font-size: 0.88rem;
}

.msg-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.95;
  font-size: 0.94rem;
}

.msg.is-staff {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg.is-staff .msg-bubble {
  border-top-right-radius: 18px;
  border-top-left-radius: 6px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
  border-color: rgba(212, 175, 55, 0.25);
}

.msg.is-internal .msg-bubble {
  background: rgba(245, 165, 36, 0.08);
  border-style: dashed;
  border-color: rgba(245, 165, 36, 0.35);
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-2);
  color: #dcdce0;
  font-size: 0.8rem;
}

.attachment:hover {
  border-color: var(--border-gold);
  color: var(--gold-light);
}

/* Rules */

.rules-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 14px;
  border-radius: var(--radius-lg);
}

.rules-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cfcfd4;
  font-weight: 600;
  font-size: 0.9rem;
}

.rules-toc a .icon {
  color: var(--gold);
}

.rules-toc a:hover,
.rules-toc a.is-active {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
}

.rule-section {
  margin-bottom: 26px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.rule-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border-2);
}

.rule-item:last-child {
  border-bottom: 0;
}

.rule-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.9rem;
}

.rule-item h4 {
  margin-bottom: 4px;
}

.rule-item p {
  margin: 0;
  color: #cacacf;
}

.rule-punish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #ff9e9b;
  font-size: 0.8rem;
  font-weight: 700;
}

/* FAQ accordion */

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.accordion details[open] {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.04);
}

.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary .icon {
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.accordion details[open] summary .icon {
  transform: rotate(180deg);
}

.accordion .accordion-body {
  padding: 0 20px 18px;
  color: #c9c9ce;
}

/* Filters bar */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
}

.filters .input,
.filters .select {
  min-height: 46px;
}

.filters .grow {
  min-width: 200px;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  color: #d6d6db;
  font-weight: 700;
  font-size: 0.86rem;
  transition: all 0.25s var(--ease);
}

.cat-pill .icon {
  color: var(--gold);
  width: 17px;
  height: 17px;
}

.cat-pill:hover {
  border-color: var(--border-gold);
  color: #fff;
}

.cat-pill.is-active {
  background: var(--gradient-gold);
  color: #1a1305;
  border-color: transparent;
}

.cat-pill.is-active .icon {
  color: #1a1305;
}

.cat-pill small {
  opacity: 0.7;
  font-weight: 600;
}

/* Product page */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 16px;
  border-radius: var(--radius-xl);
}

.product-gallery .product-media {
  margin: 0;
  border-radius: 20px;
}

.product-info h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.price-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 22px;
  margin: 22px 0;
  border-radius: var(--radius-lg);
}

.price-box .price strong {
  font-size: 1.8rem;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.feature-list li .icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 7px;
  background: rgba(33, 197, 142, 0.15);
  color: var(--success);
  margin-top: 3px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  overflow: hidden;
  background: rgba(10, 11, 15, 0.7);
}

.qty button {
  width: 42px;
  height: 46px;
  border: 0;
  background: none;
  color: var(--gold-light);
}

.qty button:hover {
  background: rgba(212, 175, 55, 0.1);
}

.qty input {
  width: 54px;
  height: 46px;
  border: 0;
  background: none;
  text-align: center;
  font-weight: 800;
  font-family: var(--font-en);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* Cart */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  object-fit: cover;
  background: #101116;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.94rem;
}

.summary-row.is-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-2);
  font-size: 1.1rem;
  font-weight: 900;
}

.summary-row.is-total strong {
  color: var(--gold-light);
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.pay-method:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

/* Result page */

.result-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 28px;
  border-radius: var(--radius-xl);
}

.result-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.result-icon .icon {
  width: 46px;
  height: 46px;
}

.result-icon.is-success { background: rgba(33, 197, 142, 0.12); color: var(--success); box-shadow: 0 0 0 10px rgba(33, 197, 142, 0.05), 0 0 60px rgba(33, 197, 142, 0.25); }
.result-icon.is-failed { background: rgba(239, 83, 80, 0.12); color: var(--danger); box-shadow: 0 0 0 10px rgba(239, 83, 80, 0.05); }
.result-icon.is-processing { background: rgba(245, 165, 36, 0.12); color: var(--warning); }

/* Player profile */

.profile-head {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.profile-avatar {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 28px;
  padding: 4px;
  background: var(--gradient-gold);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  image-rendering: pixelated;
  background: #101116;
}

.profile-avatar .dot {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 6px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--bg);
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.stat-tile {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.stat-tile span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.stat-tile span .icon {
  color: var(--gold);
}

.stat-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: 900;
}

/* Events */

.event-card .event-date {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  z-index: 1;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 9, 12, 0.8);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(8px);
}

.event-date strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gold-light);
}

.event-date span {
  font-size: 0.75rem;
  color: var(--muted);
}

.countdown {
  display: flex;
  gap: 10px;
  direction: ltr;
}

.countdown div {
  min-width: 70px;
  padding: 12px 8px;
  border-radius: 14px;
  text-align: center;
  background: rgba(8, 9, 12, 0.7);
  border: 1px solid var(--border-gold);
}

.countdown strong {
  display: block;
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
}

.countdown span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Vote */

.vote-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.vote-card .vote-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vote-card .vote-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--gradient-gold);
  color: #1a1305;
  font-weight: 900;
}

/* Error pages */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 120px 20px 60px;
  text-align: center;
}

.error-code {
  font-family: var(--font-en);
  font-size: clamp(6rem, 20vw, 11rem);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 20px 60px rgba(212, 175, 55, 0.25));
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.reveal.is-visible {
  will-change: auto;
}

.hero-content > * {
  animation: rise-in 0.8s var(--ease-out) both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.28s; }
.hero-content > *:nth-child(5) { animation-delay: 0.36s; }
.hero-content > *:nth-child(6) { animation-delay: 0.44s; }

.site-header {
  animation: header-in 0.55s var(--ease-out) both;
}

.mode-media img,
.product-media img,
.news-media img {
  animation: media-in 0.9s var(--ease-out) both;
}

/* Keyframes */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(-100%); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-1%); } }
@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-105vh) rotate(180deg); opacity: 0; }
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(33, 197, 142, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(33, 197, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(33, 197, 142, 0); }
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-30px); } }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes media-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 1200px) {
  .main-nav a { padding: 9px 10px; font-size: 0.88rem; }
}

@media (max-width: 1080px) {
  .product-grid.is-ranks > .product-card {
    flex-basis: calc((100% - 22px) / 2);
    max-width: calc((100% - 22px) / 2);
  }

  .main-nav,
  .header-actions .hide-tablet {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .header-inner {
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-sidebar {
    display: none;
  }

  .dash-mobile-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    scrollbar-width: none;
  }

  .dash-mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-mobile-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 11px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .dash-mobile-nav a.is-active {
    background: var(--gradient-gold);
    color: #1a1305;
  }

  .cart-layout,
  .product-layout,
  .rules-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-gallery,
  .summary-card,
  .rules-toc {
    position: static;
  }

  .rules-toc {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }

  .rules-toc a {
    white-space: nowrap;
  }

  .auth-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-visual {
    display: none;
  }

  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .product-grid.is-ranks > .product-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  body { font-size: 15px; }
  :root { --header-h: 68px; }
  .container { padding-inline: 16px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text small { display: none; }
  .header-actions { gap: 8px; }
  .form-row,
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .server-box { flex-direction: column; width: 100%; }
  .server-box-status { justify-content: center; border-inline-end: 0; border-bottom: 1px solid var(--border-2); }
  .server-box-ip { justify-content: center; }
  .server-box-copy { justify-content: center; padding-block: 14px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.4rem; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .podium { grid-template-columns: 1fr; }
  .podium-item.rank-1 { order: -1; }
  .msg { max-width: 100%; }
  .card-body { padding: 18px; }
  .modal-body,
  .modal-head,
  .modal-actions { padding-inline: 18px; }
  .cart-item { flex-wrap: wrap; }
  .toasts { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .code-display span { width: 44px; height: 54px; font-size: 1.5rem; }
  .welcome-card { flex-direction: column; text-align: center; }
  .dash-head h1 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .hero-content > *,
  .section-head,
  .page-hero .container,
  .site-header,
  .mode-media img,
  .product-media img,
  .news-media img {
    opacity: 1;
    transform: none;
    animation: none !important;
    filter: none;
  }
  .particles { display: none; }
  .has-hero-parallax .hero-media,
  .has-hero-parallax .hero::after { transform: none; }
}

.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 0.82rem; font-weight: 600; }
.empty-inline { padding: 18px; color: var(--muted); font-size: 0.88rem; margin: 0; }
.admin-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { padding: 18px; }
.kpi span { display: block; color: var(--muted); font-size: 0.82rem; }
.kpi strong { font-size: 1.45rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.admin-nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 0.84rem; border: 1px solid var(--border); }
.admin-nav a.is-active, .admin-nav a:hover { color: var(--gold-light); border-color: var(--border-gold); }
.install-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.install-card { width: min(640px, 100%); }
.code-display { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.code-display span { width: 48px; height: 58px; display: grid; place-items: center; border-radius: 12px; background: rgba(212,175,55,.12); border: 1px solid var(--border-gold); font-family: var(--font-en); font-size: 1.6rem; font-weight: 800; color: var(--gold-light); }
.welcome-card { display: flex; gap: 22px; align-items: center; padding: 22px; }
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 36px; }
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.admin-panel { margin-top: 8px; }
.admin-panel > h3 { margin: 0 0 16px; }
.table-activity th,
.table-activity td { text-align: center; }
.table-activity .cell-user {
  font-family: var(--font-en);
  direction: ltr;
  unicode-bidi: isolate;
  text-align: center;
}

@media print {
  .site-header,
  .site-footer,
  .dash-sidebar,
  .toasts { display: none !important; }
  body { background: #fff; color: #000; }
}

.admin-body { background: var(--bg); min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { background: #111318; border-inline-end: 1px solid var(--border); padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-brand { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 800; margin-bottom: 18px; }
.admin-brand small { display: block; color: var(--gold); font-weight: 600; }
.admin-nav-label { color: var(--muted); font-size: 0.72rem; margin: 14px 8px 6px; letter-spacing: .04em; }
.admin-side-nav a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 0.86rem; }
.admin-side-nav a.is-active, .admin-side-nav a:hover { background: rgba(212,175,55,.1); color: var(--gold-light); }
.admin-side-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.admin-side-foot button, .admin-side-foot a { background: none; border: 0; color: var(--muted); text-align: right; font-weight: 700; cursor: pointer; }
.admin-top { display: flex; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.admin-content { padding: 24px; }
.admin-content h1 { font-size: 1.6rem; margin: 0; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row .input { width: 100%; }
.inline { display: inline; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; }
.bar { flex: 1; display: flex; align-items: flex-end; height: 100%; }
.bar span { display: block; width: 100%; background: linear-gradient(180deg, var(--gold-light), var(--gold-dark)); border-radius: 4px 4px 0 0; min-height: 2px; }
.copy-field { display: flex; gap: 8px; align-items: center; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.gap-2 { gap: 8px; }
.p-3 { padding: 12px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
}
