/* FLUX CS2 — mauve editorial · flat top-nav */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --bg: #16131f;
  --surface: #4a3f4b;
  --elevated: #806c79;
  --accent: #c1a0ac;
  --accent-hot: #f0d9e4;
  --heather: #f0d9e4;
  --decant: #c1a0ac;
  --moon: #806c79;
  --funk: #4a3f4b;
  --text: #f0d9e4;
  --muted: #c1a0ac;
  --border: rgba(240, 217, 228, 0.12);
  --border-strong: rgba(240, 217, 228, 0.28);
  --ok: #c1a0ac;
  --danger: #c17b8a;
  --header-h: 64px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(22, 19, 31, 0.35);
  --ease-ios: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-card: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(94vw, 1440px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 72px;
}

@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 10% 0%, rgba(240, 217, 228, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(193, 160, 172, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 40% 100%, rgba(128, 108, 121, 0.18), transparent 55%);
  background-size: 120% 120%, 120% 120%, 100% 100%;
  animation: fluxAurora 18s ease-in-out infinite alternate;
}

@keyframes fluxAurora {
  to {
    background-position: 8% 4%, -6% -3%, 0 0;
    opacity: 0.85;
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-ios), opacity 0.3s var(--ease-ios);
}

a:hover {
  color: var(--heather);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ——— Shell ——— */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(22, 19, 31, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s var(--ease-ios);
}

.site-header.is-scrolled {
  background: rgba(22, 19, 31, 0.98);
}

.site-header__inner {
  width: var(--shell);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--heather);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  line-height: 1;
}

.logo__mark {
  display: none;
}

.logo:hover {
  color: var(--decant);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--moon);
  background: transparent;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.online-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--decant);
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--moon);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease-ios), border-color 0.25s var(--ease-ios);
}

.nav__link:hover {
  color: var(--heather);
  background: transparent;
}

.nav__link.is-active {
  color: var(--heather);
  background: transparent;
  border-bottom-color: var(--decant);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-card);
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  align-items: center;
  justify-content: center;
}

.nav-drawer {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(22, 19, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}

.nav-drawer a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav-drawer a.is-active,
.nav-drawer a:hover {
  color: var(--accent);
  background: rgba(240, 217, 228, 0.08);
}

body.nav-open .nav-drawer {
  display: flex;
}

/* Bottom mobile tabs */
.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 60px;
  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 0 8px;
  align-items: stretch;
  justify-content: space-around;
}

.mobile-tabs a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.mobile-tabs a svg {
  width: 20px;
  height: 20px;
}

.mobile-tabs a.is-active {
  color: var(--accent);
}

.content {
  flex: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0 48px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--heather);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.page-title span {
  color: var(--accent);
}

.page-sub {
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 0.2s var(--ease-card),
    background 0.25s var(--ease-ios),
    box-shadow 0.25s var(--ease-ios),
    border-color 0.25s;
  border: 1px solid transparent;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-coral,
.btn-hot {
  background: var(--moon);
  color: var(--heather);
  border-color: var(--decant);
  box-shadow: none;
}

.btn-coral:hover,
.btn-hot:hover {
  background: var(--funk);
  box-shadow: none;
}

.btn-mint {
  background: transparent;
  color: var(--heather);
  border-color: var(--border-strong);
  box-shadow: none;
}

.btn-mint:hover {
  background: rgba(240, 217, 228, 0.06);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(240, 217, 228, 0.08);
}

.btn-steam {
  background: #171a21;
  border-color: #3d4450;
  color: #c7d5e0;
}

.btn-steam:hover {
  background: #1b2838;
  color: #fff;
}

.btn-steam svg {
  width: 16px;
  height: 16px;
}

.btn-topup {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--heather);
  box-shadow: none;
}

.btn-topup:hover {
  background: rgba(240, 217, 228, 0.06);
}

.btn-danger {
  background: rgba(255, 92, 106, 0.15);
  border-color: rgba(255, 92, 106, 0.4);
  color: #ff8a95;
}

.btn-danger:hover {
  background: rgba(255, 92, 106, 0.25);
}

.btn-block {
  width: 100%;
}

.btn-green {
  background: var(--moon);
  color: var(--heather);
  border: 1px solid var(--decant);
}

.hide-sm {
  display: inline;
}

/* ——— Cards ——— */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease-spring), border-color 0.3s var(--ease-ios), box-shadow 0.45s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-pad {
  padding: 18px 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--heather);
  letter-spacing: 0.02em;
}

/* ——— Servers ——— */
.servers-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.server-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.45s var(--ease-spring), border-color 0.35s, box-shadow 0.45s;
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.server-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-card);
}

.server-card:hover .server-card__bg {
  transform: scale(1.06);
}

.server-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.2) 0%, rgba(10, 12, 16, 0.9) 100%);
}

.server-card__body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.server-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.server-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.players-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.players-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.server-card__cta {
  opacity: 0;
  transform: translateY(6px);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-hot);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.25s, transform 0.25s var(--ease-card);
}

.server-card:hover .server-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.server-card--empty {
  border-style: dashed;
  opacity: 0.5;
  cursor: default;
  background: repeating-linear-gradient(
    -45deg,
    var(--surface),
    var(--surface) 8px,
    #1a2230 8px,
    #1a2230 16px
  );
}

.server-card--empty:hover {
  transform: none;
  box-shadow: none;
}

.server-card--empty .server-card__body {
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* ——— Home mid ——— */
.home-mid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.banner-season {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.banner-season__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.72);
}

.banner-season__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.4) 65%, transparent 100%);
}

.banner-season__content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 210px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.banner-season__label {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.banner-season__sub {
  color: var(--muted);
  max-width: 320px;
  font-size: 13px;
}

.donators {
  padding: 16px 18px;
}

.donators__tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.tab {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--elevated);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease-ios);
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  color: #16131F;
  background: var(--accent);
  border-color: #F0D9E4;
}

.donator-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid transparent;
}

.donator-row:nth-child(1) {
  border-color: rgba(240, 217, 228, 0.35);
}

.donator-medal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.donator-medal.gold {
  background: linear-gradient(180deg, #C1A0AC, #806C79);
  color: #16131F;
}
.donator-medal.silver {
  background: linear-gradient(180deg, #c8d0dc, #8b95a8);
  color: #111;
}
.donator-medal.bronze {
  background: linear-gradient(180deg, #F0D9E4, #F0D9E4);
  color: #1a0c08;
}

.donator-av {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.donator-name {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donator-sum {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}

/* ——— Stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card,
.server-card,
.case-card,
.shop-card,
.ticket-cat {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
}

.stat-card::before,
.case-card::before,
.shop-card::before,
.ticket-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(240, 217, 228, 0.16),
    transparent 42%
  );
  transition: opacity 0.4s var(--ease-ios);
}

.stat-card:hover::before,
.case-card:hover::before,
.shop-card:hover::before,
.ticket-cat:hover::before {
  opacity: 1;
}

.stat-card > *,
.case-card > *,
.shop-card > *,
.ticket-cat > * {
  position: relative;
  z-index: 1;
}

.stat-card {
  padding: 16px 14px;
  text-align: center;
  transition: border-color 0.2s, transform 0.35s var(--ease-spring);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.stat-card--vip {
  border-color: rgba(193, 160, 172, 0.4);
  background: linear-gradient(180deg, rgba(193, 160, 172, 0.1) 0%, var(--surface) 100%);
}

.stat-card__label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.stat-card--vip .stat-card__value {
  color: var(--accent-hot);
}

/* ——— Promo ——— */
.promo-banner {
  border-radius: var(--radius);
  min-height: 120px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background:
    linear-gradient(110deg, rgba(240, 217, 228, 0.12), rgba(193, 160, 172, 0.08)),
    var(--elevated);
}

.promo-banner h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.promo-banner p {
  color: var(--muted);
  max-width: 520px;
  font-size: 13px;
}

/* ——— Feed / tables ——— */
.feed-panel {
  padding: 18px 20px;
}

.feed-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(240, 217, 228, 0.08);
  white-space: nowrap;
}

.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--elevated);
  font-weight: 700;
}

.data-table tbody tr {
  transition: background 0.2s;
}

.data-table tbody tr:hover {
  background: rgba(240, 217, 228, 0.04);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-cell img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

.badge-ban {
  background: rgba(255, 92, 106, 0.15);
  color: #ff8a95;
}
.badge-mute {
  background: rgba(255, 184, 77, 0.15);
  color: #ffc46b;
}
.badge-vip {
  background: rgba(193, 160, 172, 0.15);
  color: var(--accent-hot);
}
.badge-ok {
  background: rgba(240, 217, 228, 0.12);
  color: var(--accent);
}
.badge-free {
  background: rgba(240, 217, 228, 0.18);
  color: var(--accent);
}

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  justify-content: flex-end;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  transition: all 0.2s;
}

.page-btn:hover,
.page-btn.is-active {
  color: #16131F;
  background: var(--accent);
  border-color: #F0D9E4;
}

/* ——— Grids ——— */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shop-card,
.case-card,
.clan-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.shop-card__img,
.case-card__img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--elevated);
  aspect-ratio: 16 / 10;
}

.shop-card__img img,
.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card__name,
.case-card__name,
.clan-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shop-card__meta,
.case-card__meta,
.clan-card__meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
  flex: 1;
}

.case-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent);
}

.clan-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: #16131F;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  width: fit-content;
}

.shop-card__visual {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent);
  background: linear-gradient(145deg, #4A3F4B, #806C79 55%, rgba(240, 217, 228, 0.18));
  border: 1px solid var(--border);
}

.shop-card__visual--hot {
  color: var(--accent-hot);
  background: linear-gradient(145deg, #4A3F4B, #806C79 55%, rgba(193, 160, 172, 0.2));
}

/* ——— Leaderboard ——— */
.lb-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: start;
}

.lb-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-info__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lb-info__text {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.select,
.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.select:focus,
.input:focus {
  border-color: var(--border-strong);
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.radio input {
  accent-color: var(--accent);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.switch {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.rank {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--elevated);
  font-weight: 800;
  font-size: 12px;
}

.rank--1 {
  background: var(--accent);
  color: #16131F;
}
.rank--2 {
  background: #8b95a8;
  color: #111;
}
.rank--3 {
  background: var(--accent-hot);
  color: #1a0c08;
}

.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.field label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.amount-btn {
  padding: 10px;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid var(--border);
  font-weight: 700;
  transition: all 0.2s;
}

.amount-btn:hover,
.amount-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(240, 217, 228, 0.08);
}

/* ——— Tickets ——— */
.ticket-create {
  max-width: 920px;
}

.ticket-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ticket-cat {
  text-align: left;
  padding: 18px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s, box-shadow 0.35s;
}

.ticket-cat:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ticket-cat.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(240, 217, 228, 0.25), var(--shadow);
  background: linear-gradient(160deg, rgba(240, 217, 228, 0.08), var(--surface));
}

.ticket-cat__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.ticket-cat__time {
  font-size: 12px;
  color: var(--muted);
}

/* ——— Accordion ——— */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
}

.acc-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.acc-btn::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.3s var(--ease-card);
}

.acc-item.is-open .acc-btn::after {
  content: "−";
}

.acc-panel {
  display: none;
  padding: 0 18px 16px;
  color: var(--muted);
}

.acc-item.is-open .acc-panel {
  display: block;
}

.acc-panel ol {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-panel li {
  padding-left: 4px;
}

/* ——— Gate ——— */
.gate {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 160px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(10, 12, 16, 0.55), rgba(10, 12, 16, 0.85)),
    url("../assets/img/flux-hero.png") center / cover;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.gate__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(240, 217, 228, 0.12), transparent 55%);
}

.gate__card {
  position: relative;
  z-index: 1;
  max-width: 440px;
  padding: 32px 28px;
  text-align: center;
  background: rgba(21, 25, 34, 0.88);
  backdrop-filter: blur(16px);
}

.gate__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--accent-hot);
}

.gate__text {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(22, 19, 31, 0.85);
  margin-top: auto;
}

.footer__inner {
  width: var(--shell);
  margin: 0 auto;
  padding: 28px 0 22px;
}

.footer__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer__nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__nav--left {
  justify-content: flex-start;
}

.footer__nav--right {
  justify-content: flex-end;
}

.footer__nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
}

.footer__desc {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ——— Cookie ——— */
.cookie-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 200;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(21, 25, 34, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-ios), transform 0.4s var(--ease-card);
}

.cookie-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-toast h4 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.cookie-toast p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .cookie-toast {
    bottom: 76px;
  }
}

/* ——— Modals ——— */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-root[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 20px;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.4s var(--ease-card), opacity 0.35s var(--ease-ios);
}

.modal-root.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--elevated);
  color: var(--muted);
  font-size: 18px;
}

.modal__body p {
  color: var(--muted);
  font-size: 13px;
}

.modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ——— Motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity 0.9s var(--ease-spring),
    transform 0.9s var(--ease-spring),
    filter 0.9s var(--ease-spring);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.btn-coral,
.btn-hot,
.btn-mint,
.btn-topup,
.btn-login {
  --mx: 0px;
  --my: 0px;
  touch-action: manipulation;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s var(--ease-ios), border-color 0.3s var(--ease-ios), box-shadow 0.3s var(--ease-ios);
  transform: translate3d(var(--mx), var(--my), 0);
}

.btn-coral.is-pressed,
.btn-hot.is-pressed,
.btn-mint.is-pressed,
.btn-topup.is-pressed,
.btn-login.is-pressed {
  transform: translate3d(var(--mx), var(--my), 0) scale(0.96) !important;
  transition: transform 80ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .btn:active {
    transform: none !important;
  }

  body::before {
    animation: none;
  }

  .stat-card::before,
  .case-card::before,
  .shop-card::before,
  .ticket-cat::before {
    display: none;
  }
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .servers-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .home-mid {
    grid-template-columns: 1fr;
  }
  .lb-layout {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .mobile-tabs {
    display: flex;
  }
  .hide-sm {
    display: none;
  }
}

@media (max-width: 700px) {
  .servers-row {
    grid-template-columns: 1fr 1fr;
  }
  .stats-row,
  .grid-cards,
  .ticket-cats {
    grid-template-columns: 1fr;
  }
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__bar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__nav--left,
  .footer__nav--right {
    justify-content: center;
  }
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .banner-season__label {
    font-size: 22px;
  }
}
