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

:root {
    --bg: #12100e;
    --bg-alt: #17130e;
    --surface: #1e1811;
    --surface-hover: #261f15;
    --border: #33291b;
    --text: #f7f1e6;
    --text-dim: #c3b59c;
    --muted: #8c7f68;
    --accent: #ff9d2e;
    --accent-dark: #d97e14;
    --accent-contrast: #1a1006;
    --success: #4ade80;
    --danger: #f87171;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    background-image: radial-gradient(circle at 15% 0%, rgba(255,157,46,.08), transparent 45%);
    color: var(--text);
    font-family: 'Manrope', -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.5;
}

h1, h2, h3, .display {
    font-family: 'Sora', 'Manrope', sans-serif;
    letter-spacing: -0.01em;
}

a { color: var(--accent); }

/* ── Header ────────────────────────────────────────────── */
header.site-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(18,16,14,.88);
    backdrop-filter: blur(10px);
    z-index: 20;
}
.wordmark { display: flex; align-items: center; gap: 10px; }
.wordmark .mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif; font-weight: 800; color: var(--accent-contrast); font-size: 1.05rem;
}
.wordmark .name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; }
.wordmark .tag { font-size: .72rem; color: var(--muted); margin-top: -2px; }
.header-admin-link { font-size: .78rem; color: var(--muted); text-decoration: none; }
.header-admin-link:hover { color: var(--text-dim); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { text-align: center; padding: 56px 20px 40px; max-width: 640px; margin: 0 auto; }
.hero h1 { font-size: 2.1rem; font-weight: 800; margin: 0 0 12px; line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--text-dim); font-size: .96rem; margin: 0 0 22px; }
.trust-row { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row i { color: var(--accent); }

/* ── Network filter ────────────────────────────────────── */
.filters { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 20px 32px; max-width: 900px; margin: 0 auto; }
.filter-pill {
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-dim); font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }

/* ── Bundle grid ───────────────────────────────────────── */
main { max-width: 980px; margin: 0 auto; padding: 0 20px 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.bundle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    transition: transform .15s, border-color .15s, background .15s;
    position: relative;
    overflow: hidden;
}
.bundle-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,157,46,.10), transparent 55%);
    opacity: 0; transition: opacity .15s;
}
.bundle-card:hover { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-hover); }
.bundle-card:hover::before { opacity: 1; }
.bundle-net {
    display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent); background: rgba(255,157,46,.12); padding: 3px 9px; border-radius: 6px; margin-bottom: 12px;
}
.bundle-data { font-family: 'Sora', sans-serif; font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; position: relative; }
.bundle-validity { font-size: .74rem; color: var(--muted); margin-bottom: 14px; }
.bundle-price { font-family: 'Sora', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--accent); position: relative; }
.bundle-price small { font-size: .68rem; color: var(--muted); font-weight: 500; font-family: 'Manrope', sans-serif; }
.empty-state, .error-state { grid-column: 1/-1; text-align: center; padding: 40px 0; color: var(--muted); }
.error-state { color: var(--danger); }

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(10,8,6,.7); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    width: 100%; max-width: 380px; padding: 26px;
}
.modal h2 { font-size: 1.05rem; margin: 0 0 4px; }
.modal .modal-close { position: absolute; }
.modal-summary {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
    padding: 14px 16px; margin: 16px 0 20px;
}
.modal-summary .msum-data { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem; }
.modal-summary .msum-net { font-size: .74rem; color: var(--muted); }
.modal-summary .msum-price { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--accent); font-size: 1.2rem; }
label { display: block; font-size: .8rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
input {
    width: 100%; padding: 12px 14px; background: var(--bg-alt); border: 1.5px solid var(--border);
    border-radius: 10px; color: var(--text); font-size: .92rem; font-family: inherit; outline: none;
    margin-bottom: 16px; transition: border-color .15s;
}
input:focus { border-color: var(--accent); }
button {
    background: var(--accent); color: var(--accent-contrast); border: none;
    padding: 13px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: .9rem;
    font-family: 'Manrope', sans-serif; width: 100%; transition: background .15s;
}
button:hover { background: var(--accent-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); width: auto; }
button.text-btn { background: none; color: var(--muted); font-weight: 600; padding: 10px; margin-top: 8px; }
button.text-btn:hover { background: none; color: var(--text-dim); }
.msg { font-size: .82rem; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.msg.error { background: rgba(248,113,113,.1); color: var(--danger); border: 1px solid rgba(248,113,113,.3); }
.msg.info { background: rgba(74,222,128,.1); color: var(--success); border: 1px solid rgba(74,222,128,.3); }

/* ── Admin shell ───────────────────────────────────────── */
.balance { font-size: .85rem; color: var(--muted); }
.balance strong { color: var(--accent); }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; margin-bottom: 20px;
}
.card h2 { font-size: .95rem; margin: 0 0 4px; }
.card .card-sub { font-size: .78rem; color: var(--muted); margin: 0 0 16px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
td.num { font-family: 'Sora', sans-serif; font-weight: 600; }
.table-wrap { overflow-x: auto; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; flex-shrink: 0; background: var(--bg-alt); border-right: 1px solid var(--border);
    padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.admin-sidebar .wordmark { padding: 6px 8px 22px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
    color: var(--text-dim); font-size: .87rem; font-weight: 600; cursor: pointer; transition: all .15s;
    border: none; background: none; text-align: left; width: 100%; font-family: inherit;
}
.admin-nav-item i { width: 16px; text-align: center; color: var(--muted); }
.admin-nav-item:hover { background: var(--surface); color: var(--text); }
.admin-nav-item.active { background: var(--accent); color: var(--accent-contrast); }
.admin-nav-item.active i { color: var(--accent-contrast); }
.admin-content { flex: 1; padding: 32px; max-width: 880px; }
.admin-content h1 { font-size: 1.3rem; margin: 0 0 4px; }
.admin-content .page-sub { color: var(--muted); font-size: .85rem; margin: 0 0 26px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
}
.stat-card .stat-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .stat-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; }
.stat-card .stat-value.accent { color: var(--accent); }

.pricing-summary {
    display: flex; align-items: center; gap: 16px; background: rgba(255,157,46,.08);
    border: 1px solid rgba(255,157,46,.25); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px;
}
.pricing-summary .psum-value { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.pricing-summary .psum-label { font-size: .78rem; color: var(--text-dim); }
