/* REIGN CS2 — black / charcoal / champagne gold */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap");

:root {
  --bg: #030303;
  --card: #2c2c2e;
  --card-hover: #363638;
  --span: #ffdb89;
  --gold: #ffdb89;
  --text-custom: #ffdb89;
  --text-secondary: #8e8e93;
  --orange: #e8c56a;
  --vip-color: #ffe4a8;
  --btn-ready: #34c759;
  --input-form: #1c1c1e;
  --bg-modal: rgba(3, 3, 3, 0.72);
  --red: #ff453a;
  --text: #f5f5f7;
  --text-muted: #aeaeb2;
  --border: rgba(255, 219, 137, 0.16);
  --border-strong: rgba(255, 219, 137, 0.36);
  --sidebar-w: 80px;
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --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: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::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;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(255, 219, 137, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(255, 219, 137, 0.04), transparent 50%);
  animation: ambientPulse 12s var(--ease-ios) infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  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;
}

@keyframes ambientPulse {
  from { transform: scale(1); opacity: 0.45; }
  to { transform: scale(1.04); opacity: 0.65; }
}

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

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

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

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;
}

/* ——— Layout shell ——— */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  padding-left: var(--sidebar-w);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(28, 28, 30, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 20px;
  z-index: 300;
  gap: 6px;
  overflow: visible;
}

.sidebar__brand {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.sidebar__brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  flex: 1;
  overflow: visible;
  padding: 0 8px;
}

.sidebar__link {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.7;
  position: relative;
  z-index: 1;
  transition: background 0.4s var(--ease-ios), opacity 0.4s var(--ease-ios), color 0.4s var(--ease-ios), transform 0.4s var(--ease-spring);
}

.sidebar__link:hover,
.sidebar__link.is-active {
  z-index: 5;
  opacity: 1;
  background: rgba(255, 219, 137, 0.12);
  color: var(--vip-color);
}

.sidebar__link.is-active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.sidebar__link svg,
.icon-btn svg,
.btn svg {
  width: 22px;
  height: 22px;
  display: block;
}

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

.sidebar__tip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1c1c1e;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-ios), visibility 0.2s;
  z-index: 400;
}

.sidebar__link:hover .sidebar__tip {
  opacity: 1;
  visibility: visible;
}

.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(28, 28, 30, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 219, 137, 0.35);
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid rgba(40, 167, 69, 0.45);
  color: #6fdc8c;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
}

.online-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--btn-ready);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--gold);
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
  color: var(--vip-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.35s var(--ease-spring), background 0.35s var(--ease-ios), border-color 0.35s var(--ease-ios), opacity 0.35s var(--ease-ios), box-shadow 0.35s var(--ease-ios);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-topup {
  background: rgba(255, 219, 137, 0.08);
  color: var(--text-custom);
  border: 1px solid rgba(255, 219, 137, 0.28);
}

.btn-topup:hover {
  background: rgba(255, 219, 137, 0.16);
  color: var(--vip-color);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe4a8 0%, var(--gold) 55%, #e0bf6a 100%);
  color: #030303;
  border: 1px solid rgba(255, 228, 168, 0.7);
  box-shadow: 0 6px 18px rgba(255, 219, 137, 0.18);
}

.btn-gold:hover {
  filter: brightness(1.04);
  color: #030303;
  transform: translateY(-1px);
}

.btn-green {
  background: var(--btn-ready);
  color: #fff;
  border: 1px solid #34c759;
}

.btn-green:hover {
  filter: brightness(1.08);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(255, 219, 137, 0.1);
  color: var(--vip-color);
}

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

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

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

.content {
  flex: 1;
  padding: 24px 28px 40px;
  width: 100%;
}

.page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}

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

/* ——— Cards ——— */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.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: 15px;
  font-weight: 600;
  color: var(--text-custom);
}

/* ——— Server mode cards ——— */
.servers-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

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

.server-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.server-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s;
}

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

.server-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 22, 16, 0.25) 0%, rgba(20, 14, 10, 0.88) 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: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  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: #9ee6b0;
}

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

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

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

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

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

.server-card--empty .server-card__body {
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}

/* ——— Home mid row ——— */
.home-mid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

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

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

.banner-season__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 20, 14, 0.92) 0%, rgba(30, 20, 14, 0.35) 70%, transparent 100%);
}

.banner-season__content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 200px;
  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(--vip-color);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.03em;
}

.donators {
  padding: 16px 18px;
}

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

.tab {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--input-form);
  border: 1px solid transparent;
  transition: all 0.15s;
}

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

.tab.is-active {
  color: #2a2018;
  background: var(--gold);
  border-color: #e8cf8e;
}

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

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

.donator-row:nth-child(1) {
  border-color: rgba(242, 199, 82, 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, #f2c752, #c9a227); color: #2a2018; }
.donator-medal.silver { background: linear-gradient(180deg, #d0d0d0, #8e8e8e); color: #222; }
.donator-medal.bronze { background: linear-gradient(180deg, #d08a5a, #8e5230); color: #fff; }

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

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

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

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

.stat-card {
  padding: 16px 14px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s;
}

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

.stat-card--vip {
  border-color: rgba(242, 199, 82, 0.45);
  background: linear-gradient(180deg, rgba(242, 199, 82, 0.12) 0%, var(--card) 100%);
}

.stat-card__label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.3;
}

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

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

/* ——— Promo ——— */
.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.95), rgba(3, 3, 3, 0.7)),
    url("../assets/img/banner-giveaway.png") center/cover;
}

.promo-banner h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--vip-color);
  margin-bottom: 6px;
}

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

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

.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
}

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

.data-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 219, 137, 0.04);
}

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

.player-cell img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-ban { background: rgba(204, 92, 77, 0.2); color: #e88a7d; }
.badge-mute { background: rgba(215, 141, 60, 0.2); color: var(--orange); }
.badge-ok { background: rgba(40, 167, 69, 0.2); color: #6fdc8c; }
.badge-wait { background: rgba(255, 219, 137, 0.15); color: var(--gold); }
.badge-closed { background: rgba(131, 131, 131, 0.2); color: #aaa; }
.badge-vip { background: rgba(242, 199, 82, 0.2); color: var(--vip-color); }
.badge-free { background: rgba(40, 167, 69, 0.25); color: #7ee89a; }

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

.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.page-btn.is-active,
.page-btn:hover {
  color: #2a2018;
  background: var(--gold);
  border-color: #e8cf8e;
}

/* ——— Gate / skinchanger ——— */
.gate {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1410 center/cover no-repeat;
  margin-bottom: 8px;
}

.gate__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(20, 14, 10, 0.55) 0%, rgba(12, 9, 7, 0.88) 70%);
}

.gate__card {
  width: min(520px, 100%);
  text-align: center;
  padding: 36px 32px;
  position: relative;
  z-index: 1;
  background: rgba(45, 36, 30, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.gate__text {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ——— Forms / filters ——— */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

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

.field label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.select,
.input {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  min-width: 180px;
}

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

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.chip.is-active {
  color: #2a2018;
  background: var(--gold);
  border-color: #e8cf8e;
}

.rank {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-custom);
  width: 36px;
}

.rank--1 { color: var(--vip-color); }
.rank--2 { color: #c0c0c0; }
.rank--3 { color: #cd7f32; }

/* ——— Cases / shop / clans ——— */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.case-card,
.shop-card,
.clan-card {
  padding: 14px;
  transition: transform 0.15s, border-color 0.15s;
}

.case-card:hover,
.shop-card:hover,
.clan-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.case-card__img,
.shop-card__img {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--input-form);
  border: 1px solid var(--border);
}

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

.case-card__name,
.shop-card__name,
.clan-card__name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

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

.case-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
}

.clan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clan-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 219, 137, 0.12);
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-display);
}

/* ——— Rules accordion ——— */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.acc-btn::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
}

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

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

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

.acc-panel ol {
  list-style: decimal;
  padding-left: 18px;
}

.acc-panel li {
  margin-bottom: 8px;
}

/* ——— Footer ——— */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #1c1c1e;
  padding: 18px 28px 24px;
}

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

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

.footer__nav a {
  color: var(--text-secondary);
}

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

.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  text-align: center;
}

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

/* ——— Tickets ——— */
.breadcrumb {
  margin: -6px 0 20px;
  font-size: 13px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.ticket-cat {
  text-align: left;
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255, 219, 137, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, background 0.15s;
}

.ticket-cat:hover,
.ticket-cat.is-active {
  border-color: var(--gold);
  background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255, 219, 137, 0.2);
}

.ticket-cat__title {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  line-height: 1.35;
}

.ticket-cat__time {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-custom);
}

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

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

.lb-info__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.lb-info__text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.btn-block {
  width: 100%;
}

.btn-danger {
  background: rgba(204, 92, 77, 0.18);
  color: #e89a8f;
  border: 1px solid rgba(204, 92, 77, 0.4);
}

.btn-danger:hover {
  background: rgba(204, 92, 77, 0.28);
}

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

.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(--gold);
}

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

.switch {
  width: 40px;
  height: 22px;
  accent-color: var(--gold);
}

.lb-table-card .data-table thead th {
  color: var(--orange);
  font-size: 11px;
  text-transform: none;
}

/* ——— Cookie ——— */
.cookie-toast {
  position: fixed;
  left: calc(var(--sidebar-w) + 20px);
  bottom: 20px;
  z-index: 200;
  width: min(380px, calc(100vw - var(--sidebar-w) - 40px));
  background: #241c17;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: none;
}

.cookie-toast.is-visible {
  display: block;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.cookie-toast p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.cookie-toast .btn {
  width: 100%;
}

/* ——— Modals ——— */
.modal-root[hidden] {
  display: none !important;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-modal);
  backdrop-filter: blur(4px);
}

.modal {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

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

.modal__title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
}

.modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

.modal__close:hover {
  background: var(--input-form);
  color: var(--text);
}

.modal__body p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 13px;
}

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

.amount-btn {
  height: 36px;
  border-radius: 8px;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--text-custom);
  font-weight: 700;
  font-size: 12px;
}

.amount-btn.is-active {
  background: rgba(255, 219, 137, 0.2);
  border-color: var(--gold);
  color: var(--vip-color);
}

.modal__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.modal__actions .btn {
  flex: 1;
}

/* ——— Dropdown shop (header optional) ——— */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #241c17;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: block;
}

.nav-dropdown__menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.nav-dropdown__menu a:hover {
  background: rgba(255, 219, 137, 0.1);
  color: var(--gold);
}

.mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--input-form);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 18px;
}

.empty-hint {
  text-align: center;
  padding: 28px;
  color: var(--text-secondary);
}

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

@media (max-width: 900px) {
  .home-mid {
    grid-template-columns: 1fr;
  }
  .servers-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 80px;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }

  .app {
    padding-left: 0;
  }

  .site-header,
  .content,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    font-size: 16px;
  }

  .header__right .btn span.hide-sm {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cookie-toast {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .banner-season__label {
    font-size: 22px;
  }

  .ticket-cats {
    grid-template-columns: 1fr 1fr;
  }

  .lb-layout {
    grid-template-columns: 1fr;
  }

  .footer__bar {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__nav--right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .servers-row {
    grid-template-columns: 1fr;
  }
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ticket-cats {
    grid-template-columns: 1fr;
  }
}

/* ——— iOS motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.55s var(--ease-spring),
    transform 0.55s var(--ease-spring);
  transition-delay: var(--delay, 0ms);
}

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

.card,
.server-card,
.ticket-cat,
.case-card,
.clan-card,
.shop-card {
  transition:
    transform 0.28s var(--ease-card),
    border-color 0.28s var(--ease-ios),
    box-shadow 0.28s var(--ease-card),
    background 0.28s var(--ease-ios);
}

.card:hover,
.ticket-cat:hover,
.case-card:hover,
.clan-card:hover,
.shop-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.modal-root:not([hidden]) .modal {
  animation: modalIn 0.42s var(--ease-spring) both;
}

.modal-root:not([hidden]) .modal-backdrop {
  animation: fadeIn 0.3s var(--ease-ios) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab,
.chip,
.page-btn {
  transition: background 0.35s var(--ease-ios), color 0.35s var(--ease-ios), border-color 0.35s var(--ease-ios), transform 0.35s var(--ease-spring);
}

.tab:active,
.chip:active,
.btn:active,
.page-btn:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #particles {
    display: none;
  }
  body::before {
    animation: none;
  }
}
