/* =========================================================
   EVILSMP – Tebex template stylesheet
   Upload as asset "evilsmp.css" in the template editor.
   ========================================================= */

:root {
    --bg: #09080d;
    --bg-2: #0f0d15;
    --surface: #15121d;
    --surface-2: #1c1827;
    --surface-3: #241f33;
    --border: #2a2438;
    --border-strong: #3a3150;

    --text: #ece9f3;
    --muted: #aaaaaa;      /* Minecraft &7 */
    --dim: #7a7586;

    --p-light: #E0AAFF;
    --p-mid: #9D4EDD;
    --p-dark: #7B2CBF;
    --grad: linear-gradient(135deg, #E0AAFF 0%, #9D4EDD 50%, #7B2CBF 100%);
    --grad-soft: linear-gradient(135deg, rgba(224, 170, 255, .16), rgba(123, 44, 191, .16));

    --good: #55ff88;
    --bad: #ff5f6d;
    --discord: #5865F2;

    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 12px 40px rgba(0, 0, 0, .45);
    --glow: 0 0 0 1px rgba(224, 170, 255, .25), 0 10px 30px rgba(123, 44, 191, .35);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Montserrat", var(--font);

    /* Tebex legal footer (must stay visible) */
    --tebex-legal-footer-background-color: #0f0d15;
    --tebex-legal-footer-text-color: #aaaaaa;
    --tebex-legal-footer-border-color: #2a2438;
    --tebex-legal-footer-logo-color: #E0AAFF;
    --tebex-legal-footer-max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(123, 44, 191, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(224, 170, 255, .07), transparent 60%),
        var(--bg);
    color: var(--text);
    font: 400 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--p-light); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--p-dark); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding: 28px 0 56px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.t-center { text-align: center; }
.t-right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.show-sm { display: none; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__img { max-height: 40px; width: auto; }
.brand__word {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1;
}
.brand__word span {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand__word--sm { font-size: 20px; display: inline-block; margin-bottom: 12px; }
.brand__word--xl { font-size: clamp(48px, 11vw, 112px); letter-spacing: .02em; text-shadow: 0 10px 60px rgba(157, 78, 221, .35); }

/* ---------- Announcement ---------- */
.announce { background: var(--grad); color: #160a24; font-weight: 600; font-size: 14px; }
.announce__inner { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce a { color: #160a24; text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(9, 8, 13, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav__link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 500; font-size: 14px;
    background: none; border: 0;
    transition: color .15s, background .15s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; background: var(--surface-2); }
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--p-mid); }
.nav__drop { position: relative; }
.nav__menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
    display: none; flex-direction: column; padding: 6px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); z-index: 50;
}
.nav__drop--right .nav__menu { left: auto; right: 0; min-width: 120px; }
.nav__drop.is-open .nav__menu { display: flex; }
.nav__menu a { padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.nav__menu a:hover, .nav__menu a.is-active { background: var(--surface-3); color: #fff; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
}
.chip:hover { color: #fff; border-color: var(--border-strong); }

.player {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 14px 5px 5px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border);
    transition: border-color .15s, box-shadow .15s;
}
.player:hover { border-color: var(--p-dark); box-shadow: var(--glow); }
.player__head { width: 32px; height: 32px; border-radius: 8px; image-rendering: pixelated; }
.player__meta { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.player__name { font-weight: 600; font-size: 14px; }
.player__sub { font-size: 12px; color: var(--muted); }
.player__badge {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: var(--grad); color: #160a24;
    font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

.burger { display: none; width: 40px; height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: var(--radius-sm);
    border: 1px solid transparent; font-weight: 600; font-size: 14px; line-height: 1;
    white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad); color: #160a24; box-shadow: 0 6px 20px rgba(123, 44, 191, .35); }
.btn--primary:hover { color: #160a24; box-shadow: 0 8px 28px rgba(157, 78, 221, .55); filter: brightness(1.06); }
.btn--ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--p-dark); color: #fff; }
.btn--danger { background: rgba(255, 95, 109, .12); border-color: rgba(255, 95, 109, .35); color: #ffb3ba; }
.btn--danger:hover { background: rgba(255, 95, 109, .22); color: #fff; }
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { color: #fff; filter: brightness(1.1); }
.btn--disabled { background: var(--surface-2); color: var(--dim); border-color: var(--border); cursor: not-allowed; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Forms ---------- */
.input {
    width: 100%; height: 42px; padding: 0 14px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; font-size: 14px; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { border-color: var(--p-mid); box-shadow: 0 0 0 3px rgba(157, 78, 221, .25); }
.input::placeholder { color: var(--dim); }
.input--lg { height: 50px; font-size: 16px; }
.input--qty { width: 72px; text-align: center; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; }
.inline-form .input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 14px 0; }
.check input { margin-top: 3px; accent-color: var(--p-mid); width: 16px; height: 16px; flex: none; }

/* ---------- Cards ---------- */
.card {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(21, 18, 29, .92) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.card__title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 800; font-size: 13px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--p-light);
    margin-bottom: 14px;
}
.card__title--spaced { margin-top: 22px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--p-light); }
.eyebrow--pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--grad-soft); border: 1px solid rgba(224, 170, 255, .25); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; color: var(--p-light); }
.tag--sale { background: rgba(224, 170, 255, .15); }
.tag--good { color: var(--good); border-color: rgba(85, 255, 136, .3); background: rgba(85, 255, 136, .08); }
.tag--bad { color: var(--bad); border-color: rgba(255, 95, 109, .3); background: rgba(255, 95, 109, .08); }
.link-muted { color: var(--muted); font-size: 13px; }
.link-muted:hover { color: var(--p-light); }
.empty { text-align: center; padding: 36px 20px; color: var(--muted); }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.layout__sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 92px; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section__head { margin-bottom: 18px; }
.section__title { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.page-head { margin-bottom: 24px; }
.page-head__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.page-head__desc { color: var(--muted); max-width: 70ch; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; margin: -28px 0 36px; border-bottom: 1px solid var(--border); }
.hero__glow {
    position: absolute; inset: -40% -10% auto; height: 140%;
    background: radial-gradient(closest-side, rgba(157, 78, 221, .35), transparent 70%);
    filter: blur(20px); pointer-events: none;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: linear-gradient(var(--p-light) 1px, transparent 1px), linear-gradient(90deg, var(--p-light) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title { margin: 18px 0 10px; }
.hero__sub { color: var(--muted); font-size: clamp(15px, 2vw, 18px); max-width: 56ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 10px 0 28px; }
.hero__stats { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.stat { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.stat strong { color: #fff; }

.ip-copy {
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 9px 14px; border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px dashed var(--border-strong);
    text-align: left; transition: border-color .15s;
    width: 100%;
}
.ip-copy:hover { border-color: var(--p-mid); }
.ip-copy__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.ip-copy__value { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-weight: 700; color: var(--p-light); }
.ip-copy--lg { width: auto; height: 54px; justify-content: center; padding: 0 20px; border-radius: var(--radius); }
.ip-copy.is-copied { border-color: var(--good); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot--online { background: var(--good); box-shadow: 0 0 0 4px rgba(85, 255, 136, .15); }
.dot--offline { background: var(--bad); box-shadow: 0 0 0 4px rgba(255, 95, 109, .15); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cat {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 18px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    color: var(--text); overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.cat::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .2s; }
.cat:hover { transform: translateY(-3px); border-color: var(--p-dark); box-shadow: var(--glow); color: #fff; }
.cat:hover::before { opacity: 1; }
.cat > * { position: relative; }
.cat__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); margin-bottom: 8px; }
.cat__icon svg { width: 24px; height: 24px; fill: none; stroke: #160a24; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cat__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.cat__meta { font-size: 13px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step h3 { font-size: 16px; }
.step p { margin: 0; font-size: 14px; }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--grad); color: #160a24; font-weight: 800; margin-bottom: 12px; }

/* ---------- Package cards ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pkg {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s;
}
.pkg:hover { transform: translateY(-3px); border-color: var(--p-dark); box-shadow: var(--glow); }
.pkg--in-basket { border-color: var(--p-mid); }
.pkg__ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: var(--grad); color: #160a24; font-size: 12px; font-weight: 800; }
.pkg__media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 18px; border: 0; background: radial-gradient(circle at 50% 40%, rgba(157, 78, 221, .22), transparent 70%), var(--bg-2); }
.pkg__media img { max-height: 100%; object-fit: contain; transition: transform .2s; }
.pkg:hover .pkg__media img { transform: scale(1.05); }
.pkg__placeholder {
    font-family: var(--font-display); font-weight: 900; font-size: 56px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkg__placeholder--lg { font-size: 96px; }
.pkg__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.pkg__name { font-size: 16px; margin: 0; }
.pkg__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pkg__now { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff; }
.pkg__now small { font-size: 12px; color: var(--muted); font-family: var(--font); font-weight: 600; }
.pkg__was { color: var(--dim); font-size: 14px; }
.pkg__period { font-size: 12px; color: var(--muted); }
.pkg__actions { display: flex; gap: 8px; margin-top: auto; }
.pkg__actions .btn { flex: 1; }
.pkg__reason { margin: 0; font-size: 12px; color: var(--bad); }

.pkg-grid--list { grid-template-columns: 1fr; }
.pkg-grid--list .pkg { flex-direction: row; }
.pkg-grid--list .pkg__media { width: 160px; aspect-ratio: 1; flex: none; }
.pkg-grid--list .pkg__body { flex-direction: row; align-items: center; flex-wrap: wrap; }
.pkg-grid--list .pkg__name { flex: 1 1 200px; }
.pkg-grid--list .pkg__actions { margin-top: 0; }

.module--featured .pkg { border: 0; background: none; }
.module--featured .pkg:hover { transform: none; box-shadow: none; }
.module--featured .pkg__media { border-radius: var(--radius-sm); }
.module--featured .pkg__body { padding: 14px 0 0; }

/* ---------- Package detail (modal content) ---------- */
.pd { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
.pd__media { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: flex-start; padding: 16px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, rgba(157, 78, 221, .25), transparent 70%), var(--bg-2); }
.pd__img { border-radius: var(--radius-sm); }
.pd__video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.pd__title { font-family: var(--font-display); font-size: 26px; font-weight: 800; padding-right: 30px; }
.pd__price { margin-bottom: 14px; }
.pd__desc { color: var(--muted); max-height: 46vh; overflow: auto; padding-right: 6px; }
.pd__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.gift { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }

/* ---------- Prose (CMS / descriptions) ---------- */
.prose { color: var(--muted); }
.prose h1, .prose h2, .prose h3 { color: #fff; font-family: var(--font-display); }
.prose h2 { font-size: 20px; margin-top: 1.6em; }
.prose h3 { font-size: 16px; margin-top: 1.3em; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.prose th { color: var(--p-light); font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 1.6em 0; }
.prose details { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0; }
.prose summary { cursor: pointer; font-weight: 600; color: var(--text); }
.prose--page { padding: 28px; }
.prose > :last-child { margin-bottom: 0; }
.card--welcome { margin-bottom: 8px; }

/* ---------- Basket drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
    display: flex; flex-direction: column;
    background: var(--surface); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .25s ease;
}
.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__title { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.drawer__close, .modal__close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); font-size: 22px; line-height: 1; }
.drawer__player { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.drawer__player img { border-radius: 8px; image-rendering: pixelated; }
.drawer__player-name { font-weight: 700; }
.drawer__items { flex: 1; overflow: auto; padding: 10px 20px; }
.drawer__coupons { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 10px; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__total strong { font-family: var(--font-display); font-size: 20px; }

.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line__info { flex: 1; min-width: 0; }
.line__name { font-weight: 600; }
.line__qty { color: var(--p-light); margin-left: 6px; font-size: 13px; }
.line__price { font-size: 13px; color: var(--muted); }
.line__remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); font-size: 18px; line-height: 1; }
.line__remove:hover { color: #fff; border-color: var(--bad); background: rgba(255, 95, 109, .15); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal__loading { display: grid; place-items: center; min-height: 200px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* ---------- Checkout ---------- */
.table-card { padding: 0; overflow: hidden; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 12px 18px; text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-card__foot { display: flex; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.coupon-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.coupon-list li { display: flex; align-items: center; gap: 10px; }
.coupon-list .line__remove { margin-left: auto; }
.summary { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.summary div { display: flex; justify-content: space-between; color: var(--muted); }
.summary dt, .summary dd { margin: 0; }
.summary dd { color: var(--text); font-weight: 600; }
.summary__total { padding-top: 10px; border-top: 1px solid var(--border); }
.summary__total dd { font-family: var(--font-display); font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card--summary .btn--block { margin: 6px 0 10px; }
.check.is-error { color: var(--bad); }

/* ---------- Login ---------- */
.login { display: flex; justify-content: center; }
.login__card { display: flex; gap: 28px; align-items: center; width: 100%; max-width: 640px; padding: 32px; }
.login__skin { height: 150px; width: auto; filter: drop-shadow(0 14px 30px rgba(123, 44, 191, .45)); flex: none; }
.login__form { flex: 1; min-width: 0; }
.hint-list { list-style: none; margin: 16px 0 0; padding: 0; font-size: 13px; color: var(--dim); display: flex; flex-direction: column; gap: 4px; }
.hint-list li::before { content: "› "; color: var(--p-light); }

/* ---------- Sidebar modules ---------- */
.card--profile { display: flex; gap: 16px; align-items: center; }
.profile__body { height: 96px; width: auto; flex: none; }
.profile__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.top { display: flex; gap: 14px; align-items: center; }
.top__skin { height: 110px; width: auto; flex: none; filter: drop-shadow(0 8px 20px rgba(123, 44, 191, .45)); }
.top__crown { color: #ffd54a; font-size: 20px; line-height: 1; }
.top__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.payments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.payments__row { display: flex; align-items: center; gap: 10px; }
.payments__row img { border-radius: 6px; image-rendering: pixelated; flex: none; }
.payments__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; flex: 1; }
.payments__name { font-weight: 600; font-size: 14px; }
.payments__time { white-space: nowrap; }
.goal { display: flex; flex-direction: column; gap: 8px; }
.goal__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.goal__row strong { color: #fff; }
.goal__pct { color: var(--p-light) !important; }
.goal p { margin: 0; }
.bar { height: 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.bar__fill { height: 100%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px rgba(224, 170, 255, .5); transition: width .6s ease; }
.bar--striped .bar__fill { background-image: linear-gradient(45deg, rgba(255, 255, 255, .18) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .18) 50%, rgba(255, 255, 255, .18) 75%, transparent 75%), var(--grad); background-size: 18px 18px, auto; }
.bar--animated .bar__fill { animation: bar-move 1s linear infinite; }
@keyframes bar-move { to { background-position: 18px 0, 0 0; } }
.cgoal__img { border-radius: var(--radius-sm); margin-bottom: 12px; }
.status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); }
.status strong { color: #fff; }
.giftcard__result { margin-top: 12px; }
.card--discord { background: linear-gradient(180deg, rgba(88, 101, 242, .14), var(--surface) 70%); border-color: rgba(88, 101, 242, .35); }
.card--discord .card__title { color: #c9cdfb; }
.discord__stats { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.discord__iframe { width: 100%; height: 300px; border: 0; border-radius: var(--radius-sm); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__grid .ip-copy { max-width: 260px; }
.site-footer__title { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-light); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__links a { color: var(--muted); font-size: 14px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; margin-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 4px solid var(--p-mid); box-shadow: var(--shadow); font-size: 14px; animation: toast-in .25s ease; }
.toast--success { border-left-color: var(--good); }
.toast--error, .toast--danger { border-left-color: var(--bad); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .layout { grid-template-columns: 1fr; }
    .layout__sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 1100px) {
    .burger { display: flex; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px 16px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 68px); overflow: auto;
    }
    .nav.is-open { display: flex; }
    .nav__link { width: 100%; justify-content: space-between; }
    .nav__menu { position: static; box-shadow: none; margin: 2px 0 6px 12px; }
}
@media (max-width: 860px) {
    .player__meta { display: none; }
    .player { padding: 5px; }
    .steps { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .pd { grid-template-columns: 1fr; }
    .pd__media { max-height: 260px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    body { font-size: 14px; }
    .hero { padding: 48px 0 44px; }
    .hero__cta .btn, .hero__stats > * { width: 100%; }
    .pkg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pkg__body { padding: 12px; }
    .pkg__actions { flex-direction: column; }
    .pkg__now { font-size: 17px; }
    .pkg-grid--list { grid-template-columns: 1fr; }
    .pkg-grid--list .pkg__media { width: 96px; }
    .hide-sm { display: none; }
    .show-sm { display: block; }
    .table th, .table td { padding: 12px; }
    .login__card { flex-direction: column; text-align: center; padding: 24px 18px; }
    .login__skin { height: 110px; }
    .hint-list { text-align: left; }
    .inline-form { flex-direction: column; }
    .inline-form .input { flex: none; }
    .modal__dialog { padding: 20px 16px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
