/* No Limit website. Brand red matches the bot and the ox_lib theme (#FF0038). */

@font-face {
    font-family: 'Bebas Neue';
    src: url('/fonts/bebas-neue.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ink: #0a0709;
    --ink-2: #110c11;
    --panel: #17111a;
    --panel-2: #1f1722;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f4f1ec;
    --muted: rgba(244, 241, 236, 0.66);
    --faint: rgba(244, 241, 236, 0.42);
    --red: #ff0038;
    --red-2: #d1002e;
    --red-glow: rgba(255, 0, 56, 0.35);
    --orange: #ff7a1a;
    --magenta: #c2185b;
    --gold: #f5b301;
    --blue: #2f6bff;
    --ok: #2ecc71;

    --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
    --body: 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;

    --wrap: 1160px;
    --radius: 14px;
    --radius-sm: 9px;
    color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ink);
    color: var(--text);
    font: 400 16px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

a { color: inherit; }

::selection { background: var(--red-glow); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0 0 0.4em;
}

h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 56px); }
h3 { font-size: 28px; }

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--red); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
    display: inline-block;
    font: 600 12px/1 var(--body);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }

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

/* ---------- Buttons ---------- */

.btn {
    --bg: var(--red);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 999px;
    background: var(--bg); color: #fff;
    font: 600 15px/1 var(--body); letter-spacing: 0.01em; text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 8px 28px -10px var(--red-glow);
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; border-color: var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.link-btn {
    background: none; border: 0; padding: 0; color: var(--muted);
    font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--text); }

/* ---------- Top bar ---------- */

.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 7, 9, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font: 400 28px/1 var(--display); letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
    padding: 8px 12px; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
}
.nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current='page'] { color: var(--text); background: rgba(255, 0, 56, 0.14); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-2); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; margin: auto; background: var(--text); border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px 16px 18px;
        background: rgba(10, 7, 9, 0.97);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a:not(.btn) { padding: 12px 14px; font-size: 16px; }
    .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 120px);
    text-align: center;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(90% 60% at 50% 115%, #ff8a1f 0%, #f0442a 16%, var(--magenta) 34%, #4a0b3f 54%, transparent 76%),
        linear-gradient(to bottom, #050206 0%, #12051a 60%, #2a0a2c 100%);
}

.hero::after {
    content: '';
    position: absolute; inset: auto 0 0; height: 140px; z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--ink));
}

.hero__logo {
    width: min(440px, 82vw);
    margin: 0 auto 8px;
    mix-blend-mode: lighten;
    filter: drop-shadow(0 20px 60px rgba(255, 0, 56, 0.25));
}

.hero__tagline {
    font: 400 clamp(30px, 5vw, 52px)/1 var(--display);
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

.hero .lead { margin: 0 auto 28px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.status {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 26px; padding: 8px 14px;
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 14px; color: var(--muted);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.status[data-state='online'] .status__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18); }
.status[data-state='offline'] .status__dot { background: var(--red); }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 36px; }

.page-head {
    padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
    background: radial-gradient(70% 120% at 0% 0%, rgba(255, 0, 56, 0.16), transparent 60%);
    border-bottom: 1px solid var(--line);
}

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.card__icon {
    width: 44px; height: 44px; margin-bottom: 16px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 0, 56, 0.12);
    color: var(--red);
    font: 400 24px/1 var(--display);
}

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 64px; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute; top: 18px; left: 24px;
    font: 400 40px/1 var(--display); color: var(--red);
}

.split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; }

.tag {
    display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0;
    border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 13px; color: var(--muted);
}
.tag--red { border-color: rgba(255, 0, 56, 0.5); color: #ff6b8a; }
.tag--blue { border-color: rgba(47, 107, 255, 0.55); color: #8fb0ff; }
.tag--gold { border-color: rgba(245, 179, 1, 0.5); color: var(--gold); }

.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ladder li {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.ladder b { font: 400 24px/1 var(--display); color: var(--red); min-width: 36px; }

.cta {
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 120%, rgba(255, 0, 56, 0.35), transparent 70%),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(36px, 6vw, 64px) 24px;
}
.cta .lead { margin-inline: auto; }
.cta .hero__actions { margin-top: 8px; }

/* ---------- Prose (rules, guide, legal) ---------- */

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: #ff6b8a; }

.rules { list-style: none; padding: 0; margin: 0; counter-reset: rule; display: grid; gap: 14px; }
.rules li {
    counter-increment: rule;
    position: relative;
    padding: 20px 20px 20px 76px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.rules li::before {
    content: counter(rule);
    position: absolute; left: 22px; top: 16px;
    font: 400 40px/1 var(--display); color: var(--red);
}
.rules strong { display: block; font-size: 17px; margin-bottom: 4px; }
.rules p { margin: 0; color: var(--muted); }

.note {
    padding: 16px 18px;
    border-left: 3px solid var(--red);
    background: rgba(255, 0, 56, 0.07);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
}

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 40px 0 28px; margin-top: auto; }
.footer__in { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 12px; }
.footer__brand strong { font: 400 26px/1 var(--display); letter-spacing: 0.04em; }
.footer__brand p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer__nav a:hover { color: var(--text); }
.fine { margin: 0; color: var(--faint); font-size: 13px; max-width: 80ch; }

/* ---------- Store ---------- */

.store { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding: 32px 0 80px; }

.account {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
    padding: 16px 20px; margin-bottom: 22px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.account p { margin: 0; color: var(--muted); font-size: 15px; }
.account strong { color: var(--text); }

.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.tab {
    flex: none;
    padding: 9px 16px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line); color: var(--muted);
    font: 500 14px/1 var(--body); cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected='true'] { background: var(--red); border-color: var(--red); color: #fff; }

.category-intro { margin-bottom: 18px; color: var(--muted); }

.packages { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.pkg {
    display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.pkg:hover { border-color: rgba(255, 0, 56, 0.45); transform: translateY(-2px); }
.pkg__img {
    aspect-ratio: 16 / 10; width: 100%; object-fit: cover;
    background: linear-gradient(135deg, #2a0a2c, #12051a);
}
.pkg__img--empty { display: grid; place-items: center; color: rgba(255, 255, 255, 0.18); font: 400 40px/1 var(--display); }
.pkg__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.pkg__name { font: 400 26px/1 var(--display); letter-spacing: 0.02em; margin: 0; }
.pkg__price { font-weight: 700; font-size: 18px; }
.pkg__sub { color: var(--faint); font-size: 13px; font-weight: 500; }
.pkg__actions { display: flex; gap: 8px; margin-top: auto; }
.pkg__actions .btn { flex: 1; min-height: 40px; padding: 0 12px; font-size: 14px; }

.basket {
    position: sticky; top: 88px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px;
}
.basket h2 { font-size: 34px; margin-bottom: 14px; }
.basket__empty { color: var(--muted); font-size: 15px; }
.basket__items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.basket__item {
    display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
    padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.basket__item-name { font-weight: 600; font-size: 15px; }
.basket__item-price { font-weight: 600; font-size: 15px; text-align: right; }
.basket__item-controls { display: flex; align-items: center; gap: 6px; }
.qty {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
    font: 600 16px/1 var(--body); cursor: pointer;
}
.qty:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-value { min-width: 22px; text-align: center; font-size: 14px; }
.basket__totals { display: grid; gap: 6px; margin: 0 0 16px; font-size: 15px; }
.basket__totals div { display: flex; justify-content: space-between; color: var(--muted); }
.basket__totals .total { color: var(--text); font-weight: 700; font-size: 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.basket__codes { display: grid; gap: 8px; margin-bottom: 16px; }
.basket__fine { margin: 12px 0 0; color: var(--faint); font-size: 12px; }

.code-form { display: flex; gap: 6px; }
.code-form input, .code-form select {
    min-width: 0; height: 40px; padding: 0 12px;
    background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    color: var(--text); font: 400 14px var(--body);
}
.code-form input { flex: 1; }
.code-form .btn { min-height: 40px; padding: 0 14px; box-shadow: none; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 6px 4px 10px; border-radius: 999px;
    background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.35);
    font-size: 13px;
}
.chip button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }

.basket-fab {
    display: none;
    position: fixed; right: 16px; bottom: 16px; z-index: 40;
}
.basket-fab .count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
    background: #fff; color: var(--red); border-radius: 999px; font-size: 13px; font-weight: 700;
}

.store-message { padding: 48px 24px; text-align: center; color: var(--muted); }

.spinner {
    width: 28px; height: 28px; margin: 0 auto 12px;
    border: 3px solid var(--line-2); border-top-color: var(--red); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
    .store { grid-template-columns: 1fr; }
    .basket {
        position: fixed; inset: auto 0 0; top: auto; z-index: 60;
        max-height: 85vh; overflow-y: auto;
        border-radius: 20px 20px 0 0;
        transform: translateY(105%);
        transition: transform 0.25s ease;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    }
    .basket.is-open { transform: none; }
    .basket-fab { display: inline-flex; }
    .basket__close { display: block !important; }
}
.basket__close { display: none; position: absolute; top: 14px; right: 14px; }

/* ---------- Package dialog ---------- */

.dialog {
    width: min(640px, 100% - 32px);
    max-height: calc(100vh - 48px);
    padding: 0;
    background: var(--panel); color: var(--text);
    border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.dialog::backdrop { background: rgba(5, 2, 6, 0.75); backdrop-filter: blur(4px); }
.dialog__img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.dialog__body { padding: 24px; }
.dialog__body h2 { font-size: 44px; margin-bottom: 6px; }
.dialog__desc { margin: 16px 0 20px; color: var(--muted); }
.dialog__desc h3 { color: var(--text); font-size: 24px; margin: 1em 0 0.3em; }
.dialog__desc ul { padding-left: 1.2em; margin: 0 0 1em; }
.dialog__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dialog__close { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.55); }

/* ---------- Toasts ---------- */

.toasts {
    position: fixed; left: 50%; bottom: 20px; z-index: 80;
    transform: translateX(-50%);
    display: grid; gap: 8px; width: min(420px, 100% - 32px);
    pointer-events: none;
}
.toast {
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--panel-2); border: 1px solid var(--line-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    animation: toast-in 0.2s ease;
}
.toast--error { border-color: rgba(255, 0, 56, 0.6); }
.toast--ok { border-color: rgba(46, 204, 113, 0.5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
