/* ─── Variables ─────────────────────────────────────────────── */
:root {
    color-scheme: dark;
    --bg:             #05060a;
    --surface:        rgba(16, 22, 36, 0.96);
    --surface-soft:   rgba(23, 31, 49, 0.96);
    --surface-strong: rgba(10, 14, 23, 0.96);
    --primary:        #5b8cff;
    --primary-dark:   #2d5ec8;
    --accent:         #74d5ff;
    --text:           #edf2ff;
    --muted:          #97a7c5;
    --success:        #3ecf8e;
    --danger:         #ee6f6f;
    --radius-card:    24px;
    --radius-btn:     14px;
    --radius-input:   14px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(91,140,255,.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91,140,255,.55); }

/* ─── Base ───────────────────────────────────────────────────── */
html, body {
    min-height: 100%;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(91,140,255,.15), transparent 30%),
        radial-gradient(circle at 85% 90%, rgba(80,201,255,.08), transparent 30%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 68px;
}

/* ─── Nav ────────────────────────────────────────────────────── */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(5, 6, 12, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 999;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }

.top-nav a {
    flex-shrink: 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid transparent;
    transition: color .2s, background .2s, border-color .2s, transform .2s;
    white-space: nowrap;
}
.top-nav a:hover {
    color: var(--text);
    background: rgba(91,140,255,.14);
    border-color: rgba(91,140,255,.22);
    transform: translateY(-1px);
}
.top-nav a.active {
    color: var(--accent);
    background: rgba(116,213,255,.10);
    border-color: rgba(116,213,255,.22);
}

/* ─── Page Shell ─────────────────────────────────────────────── */
.page-shell {
    width: min(100%, 1040px);
    margin: 24px auto 48px;
    background: linear-gradient(180deg, rgba(18,24,44,.97), rgba(10,13,22,.99));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 32px;
    box-shadow:
        0 40px 100px rgba(0,0,0,.45),
        inset 0 1px 0 rgba(255,255,255,.05);
    overflow: hidden;
}

/* ─── Banner ─────────────────────────────────────────────────── */
.hero-banner {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.banner-panel {
    position: absolute;
    inset: 0;
    background: url('../banner.png') center / cover no-repeat;
}
.banner-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,6,10,.1) 0%, rgba(10,13,22,.85) 100%);
}

/* ─── Hero Intro ─────────────────────────────────────────────── */
.hero-intro {
    display: grid;
    gap: 16px;
    padding: 36px 36px 20px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(91,140,255,.12);
    border: 1px solid rgba(91,140,255,.22);
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    width: fit-content;
}
.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    text-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.hero-sub {
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.85;
    max-width: 720px;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 8px;
    padding: 11px 22px;
    border-radius: 99px;
    background: rgba(116,213,255,.12);
    border: 1px solid rgba(116,213,255,.24);
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.hero-cta:hover {
    background: rgba(116,213,255,.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(116,213,255,.12);
}

/* ─── Panel Grid ─────────────────────────────────────────────── */
.panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
}

/* ─── Panel ──────────────────────────────────────────────────── */
.panel {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-card);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: border-color .25s;
}
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(91,140,255,.09), transparent 40%);
    pointer-events: none;
}

.panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.note {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.8;
}

/* ─── Messages ───────────────────────────────────────────────── */
.message {
    border-radius: 14px;
    padding: 16px 18px;
    font-size: .93rem;
    line-height: 1.65;
}
.error {
    background: rgba(238,111,111,.12);
    color: #ffdede;
    border: 1px solid rgba(238,111,111,.24);
}
.success {
    background: rgba(62,207,142,.12);
    color: #d0fff0;
    border: 1px solid rgba(62,207,142,.26);
}

/* ─── Forms ──────────────────────────────────────────────────── */
.label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: .88rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    padding: 15px 18px;
    border-radius: var(--radius-input);
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: .97rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-field::placeholder { color: rgba(151,167,197,.45); }
.input-field:hover { border-color: rgba(255,255,255,.14); }
.input-field:focus {
    border-color: rgba(91,140,255,.5);
    background: rgba(91,140,255,.05);
    box-shadow: 0 0 0 3px rgba(91,140,255,.12);
}

.buttons { margin-top: 16px; display: grid; gap: 10px; }

button {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(45,94,200,.28), inset 0 1px 0 rgba(255,255,255,.12);
    transition: transform .22s, box-shadow .22s, filter .22s;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(45,94,200,.38), inset 0 1px 0 rgba(255,255,255,.12);
    filter: brightness(1.06);
}
button:active { transform: translateY(0); }
button:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── DFG Activation Card ────────────────────────────────────── */
.dfg-activation-wrap {
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

.dfg-logo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.dfg-logo-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,140,255,.18), rgba(5,6,10,.9));
    border: 1px solid rgba(91,140,255,.28);
    box-shadow:
        0 0 0 6px rgba(91,140,255,.06),
        0 16px 40px rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.dfg-logo-ring img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}
.dfg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(116,213,255,.08);
    border: 1px solid rgba(116,213,255,.18);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dfg-header { text-align: center; }
.dfg-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}
.dfg-header p {
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.75;
}

.dfg-form { display: grid; gap: 14px; }

.input-wrapper {
    position: relative;
}
.input-wrapper .input-field {
    padding-left: 18px;
    padding-right: 18px;
    font-size: .9rem;
    letter-spacing: .04em;
}

.btn-dfg-activate {
    background: linear-gradient(135deg, #5b8cff 0%, #2d5ec8 60%, #1a3fa8 100%);
    box-shadow:
        0 8px 28px rgba(45,94,200,.35),
        inset 0 1px 0 rgba(255,255,255,.15);
    font-size: 1rem;
    letter-spacing: .03em;
}
.btn-dfg-activate:hover {
    box-shadow:
        0 14px 36px rgba(45,94,200,.48),
        inset 0 1px 0 rgba(255,255,255,.15);
}

/* ─── Activated State ────────────────────────────────────────── */
.activated-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 99px;
    background: rgba(62,207,142,.12);
    border: 1px solid rgba(62,207,142,.28);
    color: #3ecf8e;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 4px;
}
.activated-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #3ecf8e;
    box-shadow: 0 0 6px #3ecf8e;
}

/* ─── Download Card ──────────────────────────────────────────── */
.download-card {
    padding: 20px 22px;
    border-radius: var(--radius-card);
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    position: relative;
    overflow: hidden;
}
.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(91,140,255,.07), transparent 40%);
    pointer-events: none;
}
.download-card h2 {
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.download-card p {
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.65;
}

/* ─── Status Chips ───────────────────────────────────────────── */
.status-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
.status-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    color: var(--muted);
    font-size: .88rem;
}
.status-chip::before {
    content: '•';
    color: var(--primary);
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ─── Feature Section ────────────────────────────────────────── */
.feature-section { display: grid; gap: 24px; }
.feature-header { padding-bottom: 4px; }
.feature-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    background: linear-gradient(160deg, rgba(15,22,35,.98), rgba(11,16,28,.98));
    border: 1px solid rgba(116,213,255,.12);
    padding: 22px;
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(116,213,255,.1), transparent 40%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(116,213,255,.3);
    box-shadow: 0 20px 44px rgba(116,213,255,.1);
}
.feature-card:hover::before { opacity: 1; }
.feature-card h3 {
    font-size: .95rem;
    color: #e8f6ff;
    margin-bottom: 14px;
}
.feature-card ul {
    list-style: none;
    display: grid;
    gap: 9px;
}
.feature-card li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .88rem;
}
.feature-card li::before {
    content: '›';
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* ─── Purchase CTA ───────────────────────────────────────────── */
.purchase-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(145deg, rgba(11,16,30,.96), rgba(21,29,49,.97));
    border-radius: var(--radius-card);
    border: 1px solid rgba(116,213,255,.16);
    overflow: hidden;
}
.purchase-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(116,213,255,.12), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(91,140,255,.08), transparent 30%);
    pointer-events: none;
}
.purchase-cta-content { position: relative; z-index: 1; max-width: 680px; }
.purchase-cta-title { font-size: 1.2rem; margin-bottom: 8px; }
.purchase-cta-copy { color: var(--muted); line-height: 1.85; font-size: .93rem; }
.cta-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 14px 26px;
    color: #0b1436;
    background: linear-gradient(135deg, #74d5ff, #5b8cff);
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 800;
    font-size: .93rem;
    white-space: nowrap;
    box-shadow: 0 12px 32px rgba(116,213,255,.22);
    transition: transform .22s, filter .22s, box-shadow .22s;
}
.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 18px 40px rgba(116,213,255,.3);
}

/* ─── Access Link ────────────────────────────────────────────── */
.access-link-card {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius-card);
    background: rgba(116,213,255,.05);
    border: 1px solid rgba(116,213,255,.16);
    display: grid;
    gap: 14px;
}
.access-link-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.access-link-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.access-link-header strong {
    display: block;
    font-size: .93rem;
    color: var(--accent);
    margin-bottom: 4px;
}
.access-link-header p {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.6;
}
.access-link-box {
    display: flex;
    gap: 10px;
}
.access-link-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: var(--muted);
    font-size: .82rem;
    font-family: 'Courier New', monospace;
    outline: none;
    cursor: text;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-copy {
    flex-shrink: 0;
    width: auto;
    padding: 11px 18px;
    border-radius: 11px;
    font-size: .85rem;
    font-weight: 700;
    background: rgba(116,213,255,.14);
    border: 1px solid rgba(116,213,255,.24);
    color: var(--accent);
    box-shadow: none;
    transition: background .2s, transform .2s;
}
.btn-copy:hover {
    background: rgba(116,213,255,.24);
    transform: translateY(-1px);
    box-shadow: none;
    filter: none;
}

/* ─── Video ──────────────────────────────────────────────────── */
.video-wrapper {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    display: grid;
    gap: 14px;
}
.video-section-title {
    font-size: .97rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -.01em;
}
.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 340px;
    border: none;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

/* ─── Animations ─────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeInUp .65s ease forwards;
}
.fade-in:nth-child(2)  { animation-delay: .08s; }
.fade-in:nth-child(3)  { animation-delay: .14s; }
.fade-in:nth-child(4)  { animation-delay: .20s; }
.fade-in:nth-child(5)  { animation-delay: .26s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Admin ──────────────────────────────────────────────────── */
.admin-wrapper { width: min(100%, 980px); margin: 40px auto; padding: 24px; }
.admin-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    padding: 28px;
}
.admin-card h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.admin-card > p { color: var(--muted); margin-bottom: 20px; }
.admin-card label { display: block; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.admin-card input[type=text] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: var(--text);
    font-size: .97rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.admin-card input[type=text]:focus {
    border-color: rgba(91,140,255,.5);
    box-shadow: 0 0 0 3px rgba(91,140,255,.12);
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.delete-button {
    background: rgba(238,107,107,.14);
    color: #ffd0d0;
    border: 1px solid rgba(238,107,107,.24);
    padding: 9px 14px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    font-size: .88rem;
    width: auto;
    transition: background .2s;
}
.delete-button:hover { background: rgba(238,107,107,.26); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.admin-table th,
.admin-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
.admin-table th { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .83rem; }
.admin-table td { color: var(--text); font-size: .9rem; }
.table-card { margin-top: 24px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .purchase-cta { flex-direction: column; align-items: flex-start; }
    .cta-button { width: 100%; justify-content: center; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    body { padding-top: 60px; }

    .page-shell {
        width: 100%;
        margin: 12px auto 32px;
        border-radius: 20px;
    }

    .hero-banner { height: 220px; }

    .hero-intro { padding: 24px 20px 16px; gap: 12px; }
    .hero-title { font-size: 1.65rem; }
    .hero-sub { font-size: .9rem; }

    .panel-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .panel { padding: 20px 18px; }

    .status-grid { grid-template-columns: 1fr; }

    .feature-grid { grid-template-columns: 1fr; }

    .video-wrapper iframe { min-height: 180px; }

    .top-nav { justify-content: flex-start; padding: 10px 16px; gap: 6px; }
    .top-nav a { padding: 7px 13px; font-size: .82rem; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 1.4rem; }
    .dfg-header h2 { font-size: 1.25rem; }
}
