@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@600;800;900&family=Rubik:wght@400;500;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0618;
  --bg2: #170b33;
  --bg3: #24104f;
  --panel: rgba(28, 14, 60, 0.72);
  --panel-solid: #1a0d3a;
  --card: rgba(255, 255, 255, 0.06);
  --card-hi: rgba(255, 255, 255, 0.1);
  --line: rgba(196, 170, 255, 0.16);
  --line-hi: rgba(196, 170, 255, 0.34);
  --text: #f4eeff;
  --muted: #ab9ed0;
  --dim: #7d6fa6;
  --purple: #8b5cf6;
  --violet: #a855f7;
  --magenta: #ff4fd8;
  --lime: #b8ff3c;
  --cyan: #3ad0ff;
  --gold: #ffcc33;
  --danger: #ff5d6c;
  --radius: 18px;
  --font-display: 'Unbounded', 'Rubik', system-ui, sans-serif;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 20px 60px -20px rgba(10, 0, 40, 0.8);
  --glow: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 10px 40px -8px rgba(168, 85, 247, 0.55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 50% -10%, #3b1782 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(255, 79, 216, 0.12) 0%, transparent 60%),
    radial-gradient(900px 700px at 0% 70%, rgba(58, 208, 255, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(180deg, rgba(11, 6, 24, 0.85), rgba(11, 6, 24, 0.4));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 170, 255, 0.08);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: 0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 4px 12px rgba(255, 79, 216, 0.5)); }
.logo .w1 { color: var(--lime); }
.logo .w2 { background: linear-gradient(90deg, #ff4fd8, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links .cta { color: #160b33; background: var(--lime); box-shadow: 0 6px 24px -6px rgba(184, 255, 60, 0.6); }
.nav-links .cta:hover { color: #160b33; background: #cbff6b; }
@media (max-width: 640px) { .nav-links a:not(.cta) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-hi); background: var(--card); color: var(--text);
  padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { background: var(--card-hi); border-color: rgba(196, 170, 255, 0.5); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: linear-gradient(135deg, #a855f7, #ff4fd8); border-color: transparent; box-shadow: var(--glow); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #b46bff, #ff6be0); }
.btn-lime { background: var(--lime); color: #160b33; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(184, 255, 60, 0.7); }
.btn-lime:hover { background: #cbff6b; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- misc ---------- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.section-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin: 8px 0 10px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); box-shadow: var(--shadow); }

.footer { margin-top: 80px; padding: 36px 0 48px; border-top: 1px solid rgba(196, 170, 255, 0.1); color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .legal { flex-basis: 100%; font-size: 12px; color: var(--dim); }

/* ---------- ads ---------- */
.ad-slot { display: flex; justify-content: center; align-items: center; margin: 28px auto; min-height: 0; }
.ad-slot.is-placeholder { min-height: 90px; width: min(728px, 100%); border: 1px dashed var(--line-hi); border-radius: 12px; color: var(--dim); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.ad-slot.rect.is-placeholder { width: 300px; min-height: 250px; max-width: 100%; }
.ad-slot:empty:not(.is-placeholder) { display: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0;
  background: #24104f; border: 1px solid var(--line-hi); color: var(--text); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- shared tier list look (preview + view pages) ---------- */
.tl { --label-w: 104px; position: relative; border-radius: 20px; overflow: hidden; }
.tl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.tl-title { font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.1; margin: 0; word-break: break-word; }
.tl-mark { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 12px; opacity: .9; white-space: nowrap; }
.tl-mark svg { width: 20px; height: 20px; }
.tl-rows { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 12px; }
.tl-row { display: flex; min-height: 84px; border-radius: 12px; overflow: hidden; }
.tl-label {
  flex: none; width: var(--label-w); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px;
  font-family: var(--font-display); font-weight: 900; font-size: 28px; text-align: center; color: #160b33; word-break: break-word; line-height: 1;
}
.tl-label.long { font-size: 15px; }
.tl-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tl-note { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 8px 10px 0; color: var(--text); opacity: .9; }
.tl-items { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; padding: 8px; min-height: 76px; }
.tl-foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 12px; font-family: var(--font-display); font-weight: 800; font-size: 13px; }

.item {
  position: relative; width: 68px; height: 68px; border-radius: 10px; overflow: hidden; flex: none;
  background: #2a1858; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .6); user-select: none; -webkit-user-select: none; touch-action: none;
}
.item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.item .cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9.5px; font-weight: 800; line-height: 1.15; text-align: center; padding: 2px 1px; background: rgba(10, 4, 30, .8); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .cap b { display: block; color: var(--lime); font-size: 10px; }
.item.text { width: auto; min-width: 68px; max-width: 150px; padding: 5px 9px !important; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5px; font-weight: 800; font-size: 11px; line-height: 1.15; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); word-break: break-word; }

/* themes */
.tl.theme-signature { background: linear-gradient(160deg, #22104a 0%, #120828 60%, #0d0620 100%); box-shadow: inset 0 0 0 1px rgba(196, 170, 255, .2); }
.tl.theme-signature .tl-row { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(196, 170, 255, .1); }
.tl.theme-signature .tl-label { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.tl.theme-signature .tl-foot { color: var(--muted); }
.tl.theme-classic { background: #1a1a1f; }
.tl.theme-classic .tl-rows { gap: 2px; padding: 0 0 2px; }
.tl.theme-classic .tl-row { border-radius: 0; background: #2b2b33; }
.tl.theme-classic .tl-label { color: #1a1a1f; font-family: var(--font); font-weight: 800; }
.tl.theme-classic .item { border-radius: 4px; }
.tl.theme-classic .tl-foot { justify-content: flex-end; font-size: 11px; color: #9a9aa8; padding: 8px 12px; }
.tl.theme-custom { background-color: #120828; background-size: cover; background-position: center; }
.tl.theme-custom::before { content: ''; position: absolute; inset: 0; background: rgba(8, 3, 22, var(--dim-bg, .35)); pointer-events: none; }
.tl.theme-custom > * { position: relative; }
.tl.theme-custom .tl-row { background: rgba(10, 4, 30, .45); backdrop-filter: blur(4px); }
.tl.theme-custom .tl-label { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.tl.theme-custom .tl-foot { margin-top: 4px; background: linear-gradient(90deg, #a855f7, #ff4fd8); color: #fff; letter-spacing: .04em; }

@media (max-width: 560px) {
  .tl { --label-w: 64px; }
  .tl-label { font-size: 22px; }
  .item { width: 54px; height: 54px; }
  .item.text { font-size: 9px; min-width: 54px; max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.tl-by { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 3px; }
