/* ==========================================================================
   AccessGate — shared styles
   ========================================================================== */

:root {
    --bg: #060a0f;
    --bg-2: #0a1119;
    --panel: #0d1621;
    --panel-2: #111c29;
    --panel-3: #152233;
    --line: #1d2b3b;
    --line-2: #2a3c50;
    --text: #eaf2fb;
    --muted: #93a5b9;
    --dim: #62748a;
    --accent: #22d3a6;
    --accent-2: #5eead4;
    --accent-ink: #04231a;
    --accent-soft: rgba(34, 211, 166, .11);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, .1);
    --red: #fb5a76;
    --red-soft: rgba(251, 90, 118, .1);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, .1);
    --blue: #60a5fa;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    background-image:
        radial-gradient(900px 500px at 15% -10%, rgba(34, 211, 166, .1), transparent 65%),
        radial-gradient(700px 420px at 95% 0%, rgba(96, 165, 250, .07), transparent 65%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

::selection { background: rgba(34, 211, 166, .3); color: #fff; }

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 10, 15, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.2px;
    color: var(--text);
}
.brand:hover { color: var(--text); }

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--accent), #0ea5a0);
    box-shadow: 0 6px 20px rgba(34, 211, 166, .25);
}
.brand-mark svg { width: 19px; height: 19px; stroke: #04110d; }

.topnav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
}
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--text); }

.reset-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .8px;
    color: var(--dim);
    white-space: nowrap;
}
.reset-chip b { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.reset-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(34, 211, 166, .12);
    animation: pulse 2s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

main { padding-bottom: 72px; }

.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Hero + buy card
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 56px;
    align-items: start;
    padding: 64px 0 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent);
    opacity: .6;
}

.hero h1 {
    font-size: clamp(38px, 5.6vw, 64px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    font-weight: 850;
}
.grad {
    background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    max-width: 520px;
    margin-top: 22px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--muted);
}
.lede strong { color: var(--text); font-weight: 600; }

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 28px;
    font-size: 13.5px;
    color: var(--muted);
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; }
.feature-list .tick {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.price-tease {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: linear-gradient(120deg, rgba(34, 211, 166, .09), rgba(13, 22, 33, .8));
    font-size: 12.5px;
    color: var(--muted);
}
.price-tease b { font-size: 24px; letter-spacing: -.8px; color: var(--text); }
.price-tease .sep { color: var(--line-2); }

.card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.buy-card { padding: 26px; }

/* --------------------------------------------------------------------------
   Checkout mode: "ACCESS DENIED" + payment form only
   -------------------------------------------------------------------------- */

.checkout-container { max-width: 560px; }

.hero-denied {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
    padding-top: 48px;
}
.hero-denied .buy-card { max-width: none; }

.denied-head {
    text-align: center;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.deny-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    border: 1px solid rgba(251, 90, 118, .35);
}
.deny-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--red);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
}
.deny-kicker { color: var(--red); letter-spacing: 2px; margin-bottom: 8px; }
.deny-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1.05;
    color: var(--red);
}
.deny-sub {
    max-width: 390px;
    margin: 10px auto 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}
.deny-sub strong { color: var(--text); font-weight: 600; }

.input-wrap input[readonly] { color: var(--muted); cursor: default; }

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}
.kicker {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--dim);
    margin-bottom: 7px;
}
.card-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--panel-3);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--muted);
    white-space: nowrap;
}
.badge-live { color: var(--accent); border-color: rgba(34, 211, 166, .35); background: var(--accent-soft); }
.badge-live::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: block; margin-bottom: 18px; }

.field-label {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 9px;
}

.input-wrap {
    display: flex;
    align-items: stretch;
    height: 48px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--bg-2);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 166, .13);
}
.input-wrap .prefix {
    display: grid;
    place-items: center;
    padding: 0 13px;
    border-right: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--dim);
    background: rgba(255, 255, 255, .015);
    user-select: none;
}
.input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 0 14px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .2px;
}
.input-wrap input::placeholder { color: var(--dim); }
.input-wrap.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(251, 90, 118, .1); }

.hint {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--dim);
    line-height: 1.6;
}
.hint strong { color: var(--muted); font-weight: 600; }

.error-text {
    display: none;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--red);
}
.error-text.show { display: block; }

.day-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.day-option { cursor: pointer; }
.day-option input { position: absolute; opacity: 0; pointer-events: none; }
.day-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 6px 10px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--bg-2);
    transition: .15s;
}
.day-box b { font-size: 18px; letter-spacing: -.4px; }
.day-box small {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dim);
}
.day-box em {
    font-style: normal;
    font-family: var(--mono);
    font-size: 9.5px;
    color: var(--muted);
    margin-top: 2px;
    white-space: nowrap;
}
.day-option:hover .day-box { border-color: var(--line-2); background: var(--panel-3); }
.day-option input:checked + .day-box {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 166, .25);
}
.day-option input:checked + .day-box b { color: var(--accent-2); }

.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.channel-option { cursor: pointer; }
.channel-option input { position: absolute; opacity: 0; pointer-events: none; }
.channel-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--bg-2);
    font-size: 12px;
    font-weight: 600;
    transition: .15s;
}
.channel-option input:checked + .channel-box {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.ch {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    font-style: normal;
    color: #fff;
}
.ch-gcash { background: #0a74da; }
.ch-maya { background: #16b979; }
.ch-gotyme { background: #ffc800; color: #221a00; }

.summary {
    padding: 15px 16px;
    border: 1px dashed var(--line-2);
    border-radius: 10px;
    background: rgba(0, 0, 0, .18);
    margin-bottom: 18px;
}
.sum-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    color: var(--muted);
    padding: 3px 0;
}
.sum-row strong { color: var(--text); font-weight: 600; }
.sum-row.total {
    margin-top: 8px;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--text);
}
.sum-row.total strong { font-size: 19px; letter-spacing: -.5px; color: var(--accent-2); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, filter .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
    background: linear-gradient(100deg, var(--accent-2), var(--accent) 55%, #14b8a6);
    color: var(--accent-ink);
    box-shadow: 0 10px 30px rgba(34, 211, 166, .24);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(34, 211, 166, .3); filter: brightness(1.04); }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--line-2);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-danger {
    background: var(--red-soft);
    border: 1px solid rgba(251, 90, 118, .35);
    color: var(--red);
}
.btn-danger:hover { background: rgba(251, 90, 118, .16); }
.btn-small { width: auto; height: 36px; padding: 0 14px; font-size: 12px; border-radius: 8px; }

.form-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--dim);
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(4, 35, 26, .25);
    border-top-color: var(--accent-ink);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.spinner.light { border-color: rgba(255, 255, 255, .2); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Access status under domain input
   -------------------------------------------------------------------------- */

.access-status {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -6px 0 18px;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--muted);
}
.access-status[hidden] { display: none; }
.access-status .as-icon { flex: 0 0 auto; font-size: 12px; line-height: 1.3; }
.access-status.active { border-color: rgba(34, 197, 94, .35); background: var(--green-soft); color: #b7f7cf; }
.access-status.inactive { border-color: rgba(251, 191, 36, .25); background: var(--amber-soft); color: #ffe9b3; }
.access-status.error { border-color: rgba(251, 90, 118, .3); background: var(--red-soft); color: #ffc3ce; }
.access-status strong { color: #fff; }

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
    display: flex;
    gap: 11px;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel-3);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 20px;
}
.alert .ic { flex: 0 0 auto; }
.alert b, .alert strong { color: var(--text); }
.alert-error { border-color: rgba(251, 90, 118, .35); background: var(--red-soft); color: #ffc9d3; }
.alert-warn { border-color: rgba(251, 191, 36, .3); background: var(--amber-soft); color: #ffe8ae; }
.alert-ok { border-color: rgba(34, 197, 94, .35); background: var(--green-soft); color: #b9f7cf; }

/* --------------------------------------------------------------------------
   Embed section
   -------------------------------------------------------------------------- */

.embed-wrap {
    margin: 26px 0 0;
    padding: 34px;
    scroll-margin-top: 96px;
}
.embed-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 40px;
    align-items: center;
}
.embed-grid h2 { font-size: 28px; letter-spacing: -.8px; line-height: 1.15; }
.embed-grid p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin-top: 12px; }
.embed-grid .eyebrow { margin-bottom: 12px; }

.install-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    counter-reset: install;
}
.install-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--muted);
}
.install-list li::before {
    counter-increment: install;
    content: counter(install);
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 9px;
    color: var(--accent);
    background: var(--accent-soft);
}
.install-list code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent-2);
    background: rgba(34, 211, 166, .08);
    border: 1px solid rgba(34, 211, 166, .18);
    border-radius: 4px;
    padding: 1px 5px;
}

.code-card {
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--bg);
    overflow: hidden;
}
.code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--dim);
}
.copy-btn {
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--muted);
    padding: 5px 10px;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .15s;
}
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.code-card pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.75;
    color: #b9cde4;
    white-space: pre-wrap;
    word-break: break-word;
}
.code-foot {
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .012);
    font-size: 10.5px;
    color: var(--dim);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}
.step-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(13, 22, 33, .6);
}
.step-num {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}
.step-card h3 { font-size: 14.5px; margin-bottom: 7px; }
.step-card p { font-size: 12px; line-height: 1.65; color: var(--dim); }

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

.footer {
    border-top: 1px solid var(--line);
    padding: 26px 24px;
    text-align: center;
    font-size: 11.5px;
    color: var(--dim);
}
.footer .inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.footer b { color: var(--muted); font-weight: 600; }
.footer a { color: var(--dim); }
.footer a:hover { color: var(--accent); }

.mono { font-family: var(--mono); font-size: 11px; }

/* --------------------------------------------------------------------------
   Success / result page
   -------------------------------------------------------------------------- */

.result-wrap { padding: 56px 0; }

.result-card { padding: 38px; }

.result-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    border: 1px solid var(--line-2);
    background: var(--panel-3);
}
.result-icon.pending { color: var(--amber); border-color: rgba(251, 191, 36, .3); background: var(--amber-soft); }
.result-icon.success { color: var(--green); border-color: rgba(34, 197, 94, .35); background: var(--green-soft); }
.result-icon.failed { color: var(--red); border-color: rgba(251, 90, 118, .35); background: var(--red-soft); }

.result-card h1 { text-align: center; font-size: 27px; letter-spacing: -.8px; }
.result-sub {
    text-align: center;
    max-width: 520px;
    margin: 10px auto 26px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--line);
    margin-bottom: 24px;
}
.detail {
    background: var(--bg-2);
    padding: 13px 16px;
}
.detail span {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 5px;
}
.detail strong { font-size: 13px; font-weight: 600; word-break: break-word; }
.detail strong.mono { font-family: var(--mono); font-size: 12px; }

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions .btn { flex: 1; min-width: 170px; }

.result-extra {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.result-extra h2 { font-size: 16px; margin-bottom: 8px; }
.result-extra p { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }

.snippet-box {
    position: relative;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: var(--bg);
}
.snippet-box pre {
    margin: 0;
    padding: 14px 46px 14px 14px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.7;
    color: #b9cde4;
    white-space: pre-wrap;
    word-break: break-word;
}
.snippet-box .copy-btn { position: absolute; top: 9px; right: 9px; }

.pending-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--dim);
}

.auto-return { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--dim); }
.auto-return a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Admin
   -------------------------------------------------------------------------- */

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 30px 0 22px;
}
.admin-top h1 { font-size: 25px; letter-spacing: -.7px; }
.admin-top p { font-size: 12px; color: var(--dim); margin-top: 4px; }
.admin-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stat {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.stat span {
    display: block;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 9px;
}
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.stat b.small { font-size: 18px; }
.stat .sub { display: block; margin-top: 4px; font-size: 10.5px; color: var(--dim); }

.panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
    margin-bottom: 22px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.panel-head h2 { font-size: 14.5px; letter-spacing: -.2px; }
.panel-head .sub { font-size: 11px; color: var(--dim); }

.search-form { display: flex; gap: 7px; }
.search-form input {
    height: 34px;
    width: 210px;
    border: 1px solid var(--line-2);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text);
    padding: 0 11px;
    font-size: 12px;
    outline: none;
}
.search-form input:focus { border-color: var(--accent); }

.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 720px;
}
table.data th {
    text-align: left;
    padding: 10px 16px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .012);
    white-space: nowrap;
}
table.data td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .014); }
table.data td strong { color: var(--text); font-weight: 600; }
table.data .mono { font-family: var(--mono); font-size: 10.5px; }
table.data .nowrap { white-space: nowrap; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-active { color: var(--green); border-color: rgba(34, 197, 94, .3); background: var(--green-soft); }
.pill-pending { color: var(--amber); border-color: rgba(251, 191, 36, .3); background: var(--amber-soft); }
.pill-failed, .pill-expired { color: var(--red); border-color: rgba(251, 90, 118, .3); background: var(--red-soft); }
.pill-success { color: var(--green); border-color: rgba(34, 197, 94, .3); background: var(--green-soft); }

.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.mini-btn {
    border: 1px solid var(--line-2);
    border-radius: 6px;
    background: var(--panel-2);
    color: var(--muted);
    padding: 4px 8px;
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    white-space: nowrap;
}
.mini-btn:hover { color: var(--text); border-color: var(--accent); }
.mini-btn.danger:hover { color: var(--red); border-color: var(--red); }

.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--dim);
    font-size: 12.5px;
}

/* Login */
.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: 100%;
    max-width: 360px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    box-shadow: var(--shadow);
}
.login-card .brand { justify-content: center; width: 100%; margin-bottom: 8px; }
.login-card h1 { text-align: center; font-size: 18px; margin-bottom: 6px; }
.login-card p { text-align: center; font-size: 11.5px; color: var(--dim); margin-bottom: 22px; }
.login-card input[type="password"] {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    padding: 0 13px;
    font-size: 13px;
    outline: none;
    margin-bottom: 12px;
}
.login-card input[type="password"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 166, .12); }
.login-foot { margin-top: 18px; text-align: center; font-size: 10.5px; color: var(--dim); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; }
    .hero-copy { max-width: 640px; }
    .buy-card { max-width: 560px; }
    .embed-grid { grid-template-columns: 1fr; gap: 26px; }
    .steps { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .topbar { height: 62px; padding: 0 16px; }
    .topnav a:not(.reset-chip) { display: none; }
    .container, .narrow { padding: 0 16px; }
    .hero { padding: 34px 0 38px; }
    .hero h1 { letter-spacing: -1.4px; }
    .buy-card, .embed-wrap { padding: 20px; }
    .day-box em { font-size: 8.5px; }
    .channel-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .result-card { padding: 24px 20px; }
    .admin-top { padding-top: 22px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .search-form input { width: 140px; }
    footer .inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
