/* ============================================================
   F4R3SxDZ SCAN V8 - shared design system
   ============================================================ */

:root {
    --bg: #0a0e14;
    --panel: rgba(26, 31, 43, 0.92);
    --panel-solid: #1a1f2b;
    --input: #0e1219;
    --border: #2a3342;
    --text: #c8d0dc;
    --muted: #8a9bb5;
    --dim: #5a6f8c;
    --blue: #2d8cff;
    --blue-dark: #0066cc;
    --purple: #7b2ff7;
    --green: #00ff41;
    --ok: #4caf50;
    --warn: #ffbb33;
    --high: #ff8800;
    --crit: #ff4444;
}

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

body {
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/static/bg.jpg') center/cover no-repeat;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(45,140,255,0.13), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(123,47,247,0.13), transparent 50%),
        linear-gradient(135deg, rgba(10,14,20,0.92), rgba(10,14,20,0.78));
    z-index: 1;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
}

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

/* ---------- Brand / nav ---------- */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(45, 140, 255, 0.15);
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { font-size: 32px; filter: drop-shadow(0 0 12px var(--blue)); }
.brand-name { font-size: 20px; font-weight: 300; letter-spacing: 1px; }
.brand-name span { font-weight: 700; color: var(--blue); }
.nav-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 24px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.25s;
    font-family: inherit;
}
.btn:hover { color: var(--blue); border-color: var(--blue); background: rgba(45,140,255,0.08); }
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border: none;
    color: #fff;
    box-shadow: 0 5px 20px rgba(45, 140, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 30px rgba(45,140,255,0.55); }
.btn-cta {
    padding: 18px 46px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 17px;
    box-shadow: 0 15px 40px rgba(45, 140, 255, 0.45);
}
.btn-cta:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 20px 50px rgba(123,47,247,0.55); }
.btn-danger { background: var(--crit); border-color: transparent; color: #fff; }
.btn-danger:hover { color: #fff; background: #ff6666; border-color: transparent; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---------- Hero: radar scanner ---------- */
.hero { text-align: center; padding: 40px 20px 30px; }
.hero-scanner {
    display: inline-block;
    position: relative;
    margin-bottom: 18px;
    animation: floatSoft 4s ease-in-out infinite;
}
.radar {
    position: relative;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 65, .35);
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 65, .08), rgba(5, 7, 13, .9) 72%);
    box-shadow: 0 0 45px rgba(0, 255, 65, .18), 0 0 90px rgba(123, 47, 247, .18),
                inset 0 0 40px rgba(45, 140, 255, .12);
}
/* Concentric range rings */
.radar::before, .radar::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 65, .22);
}
.radar::before { inset: 20%; }
.radar::after { inset: 38%; }
.radar-grid-h, .radar-grid-v { position: absolute; background: rgba(0, 255, 65, .16); }
.radar-grid-h { left: 0; right: 0; top: 50%; height: 1px; }
.radar-grid-v { top: 0; bottom: 0; left: 50%; width: 1px; }
.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(0, 255, 65, 0) 0deg,
        rgba(0, 255, 65, .05) 40deg,
        rgba(0, 255, 65, .5) 68deg,
        rgba(0, 255, 65, 0) 76deg);
    animation: radarSpin 3.2s linear infinite;
}
.radar-line {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 140, 255, .95), transparent);
    box-shadow: 0 0 12px rgba(45, 140, 255, .8);
    animation: scanDown 2.6s ease-in-out infinite;
}
.radar-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    filter: drop-shadow(0 0 14px rgba(45, 140, 255, .9));
}
.blip {
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--crit);
    box-shadow: 0 0 10px var(--crit);
    opacity: 0;
    animation: blipPulse 3.2s linear infinite;
}
.blip.b1 { top: 27%; left: 61%; animation-delay: .55s; }
.blip.b2 { top: 67%; left: 33%; animation-delay: 1.45s; }
.blip.b3 { top: 50%; left: 73%; animation-delay: 2.3s; background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }
.scanner-caption {
    margin-top: 14px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: #00ff41;
    text-transform: uppercase;
    animation: captionBlink 2.4s steps(1, end) infinite;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes scanDown {
    0% { top: 6%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 94%; opacity: 0; }
}
@keyframes blipPulse {
    0%, 100% { opacity: 0; transform: scale(.5); }
    6% { opacity: 1; transform: scale(1.35); }
    30% { opacity: .3; transform: scale(1); }
}
@keyframes captionBlink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .35; } }
@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.gradient-text {
    background: linear-gradient(90deg, #2d8cff, #00ff41, #7b2ff7, #2d8cff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s linear infinite;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
.hero h1 { font-size: 54px; font-weight: 300; letter-spacing: 3px; margin-bottom: 12px; }
.hero h1 span { font-weight: 700; }
.hero-tagline { color: #a8b8cc; font-size: 17px; letter-spacing: 1px; margin-bottom: 8px; }
.hero-sub { color: var(--dim); font-size: 13px; margin-bottom: 20px; }

.online-badge {
    display: inline-block;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.5);
    color: var(--green);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 3px;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 15px rgba(0,255,65,0.3); }
    50% { opacity: 0.7; box-shadow: 0 0 25px rgba(0,255,65,0.6); }
}

/* ---------- Cards / grids ---------- */
.stats-counter {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 40px 0;
}
.counter-card {
    background: rgba(26, 31, 43, 0.7);
    border: 1px solid rgba(45, 140, 255, 0.25);
    border-radius: 14px;
    padding: 22px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}
.counter-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.counter-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 15px 40px rgba(45,140,255,0.2); }
.counter-num {
    font-size: 38px;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 15px rgba(0,255,65,0.5);
    line-height: 1;
    font-family: 'Courier New', monospace;
}
.counter-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

.section-header { text-align: center; margin: 50px 0 30px; }
.section-header h2 {
    color: var(--text);
    font-size: 24px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.section-header .accent { color: var(--blue); font-weight: 700; }
.section-header .sub { color: var(--dim); font-size: 13px; margin-top: 8px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 50px;
}
.feature-card {
    background: rgba(26, 31, 43, 0.75);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 60px; height: 60px;
    background: radial-gradient(circle, rgba(45,140,255,0.15), transparent 70%);
    border-radius: 50%;
    transform: translate(30%, 30%);
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--blue); box-shadow: 0 15px 40px rgba(45,140,255,0.2); }
.feature-card .icon { font-size: 34px; margin-bottom: 12px; display: block; }
.feature-card .name { color: var(--text); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card .desc { color: var(--muted); font-size: 12px; line-height: 1.5; }

.panel {
    background: rgba(26, 31, 43, 0.75);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

/* ---------- Get-a-key / pricing ---------- */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 25px 0;
}
.plan {
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: 0.25s;
}
.plan:hover { border-color: var(--blue); transform: translateY(-4px); }
.plan.featured { border-color: var(--purple); box-shadow: 0 0 30px rgba(123,47,247,0.2); }
.plan-name { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.plan-scans { font-size: 34px; font-weight: 700; color: var(--blue); font-family: 'Courier New', monospace; margin: 8px 0; }
.plan-note { font-size: 12px; color: var(--dim); }

.contact-box {
    background: linear-gradient(135deg, rgba(45,140,255,0.12), rgba(123,47,247,0.12));
    border: 1px solid rgba(45, 140, 255, 0.4);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 40px;
}
.contact-box h3 { color: var(--text); font-size: 20px; font-weight: 300; letter-spacing: 2px; margin-bottom: 10px; }
.contact-box h3 .accent { color: var(--blue); font-weight: 700; }
.contact-box p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.contact-channels { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.auth-box {
    position: relative;
    z-index: 2;
    background: var(--panel);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,0.8);
    backdrop-filter: blur(15px);
}
.auth-box .icon {
    font-size: 50px;
    animation: floatSoft 3s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 0 15px var(--blue));
}
.auth-box h1 { color: var(--blue); font-weight: 300; font-size: 26px; margin: 10px 0; }
.auth-box h1 span { font-weight: 700; }
.auth-box .subtitle { color: var(--muted); margin-bottom: 26px; font-size: 14px; }

.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.form-group .hint { color: var(--dim); font-size: 11px; margin-top: 5px; }
input, select, textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: 'Courier New', monospace;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 15px rgba(45,140,255,0.3); }
select { cursor: pointer; }

.alert { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px; text-align: left; line-height: 1.6; }
.alert-error { color: #ff8080; background: rgba(255,68,68,0.1); border: 1px solid rgba(255,68,68,0.3); }
.alert-ok { color: #7dffa0; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.35); }
.alert-info { color: #8ac4ff; background: rgba(45,140,255,0.1); border: 1px solid rgba(45,140,255,0.3); }

.switch-line { margin-top: 18px; color: var(--dim); font-size: 13px; }
.switch-line a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 28px 0 15px;
    border-top: 1px solid rgba(45, 140, 255, 0.15);
    color: var(--dim);
    font-size: 13px;
}
.footer .dev { color: var(--blue); font-weight: 700; }
.footer .links { margin-top: 15px; }
.footer a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 6px 8px;
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 12px;
    display: inline-block;
    transition: 0.3s;
}
.footer a:hover { color: var(--blue); border-color: var(--blue); background: rgba(45,140,255,0.08); }
.footer .legal { margin-top: 14px; font-size: 11px; color: #3a4a5f; line-height: 1.7; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------- Tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
    text-align: left;
    padding: 11px 13px;
    border-bottom: 2px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.data-table td { padding: 11px 13px; border-bottom: 1px solid #1e2633; color: var(--text); vertical-align: top; }
.data-table tr:hover { background: #232a38; }
.table-scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }

.badge {
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    white-space: nowrap;
}
.badge-trial { background: #3a4a5f; color: #cfe0f5; }
.badge-basic { background: var(--blue); color: #fff; }
.badge-pro { background: var(--purple); color: #fff; }
.badge-elite { background: linear-gradient(90deg, #ffbb33, #ff8800); color: #000; }
.badge-paid { background: var(--blue-dark); color: #fff; }
.badge-admin { background: var(--crit); color: #fff; }
.badge-on { background: rgba(76,175,80,0.18); color: #7dffa0; border: 1px solid rgba(76,175,80,0.4); }
.badge-off { background: rgba(255,68,68,0.15); color: #ff9a9a; border: 1px solid rgba(255,68,68,0.35); }

.severity-badge { padding: 4px 14px; border-radius: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: inline-block; }
.sev-critical { background: var(--crit); color: #fff; }
.sev-high { background: var(--high); color: #fff; }
.sev-medium { background: var(--warn); color: #000; }
.sev-low { background: var(--ok); color: #fff; }
.sev-info { background: #64b5f6; color: #fff; }
.sev-unknown { background: #3a4a5f; color: #cfe0f5; }

code.snippet {
    background: var(--panel-solid);
    padding: 2px 6px;
    border-radius: 4px;
    word-break: break-all;
    font-size: 12px;
    border: 1px solid var(--border);
    display: inline-block;
    margin-top: 3px;
    color: var(--warn);
}
.mono { font-family: 'Courier New', monospace; }

/* ---------- Utility ---------- */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row-end { justify-content: flex-end; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 30px; }
.mb { margin-bottom: 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.h3-blue { color: var(--blue); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 640px) {
    .hero h1 { font-size: 34px; letter-spacing: 1px; }
    .radar { width: 140px; height: 140px; }
    .radar-core { font-size: 34px; }
    .counter-num { font-size: 28px; }
    .auth-box { padding: 28px 20px; }
    .content { padding: 20px 14px; }
}
