/* ============================================================
   DRAGAN BLOCKER — Professional Dark Security Theme
   ============================================================ */

:root {
    --bg-0: #08090d;
    --bg-1: #0d0f16;
    --bg-2: #131722;
    --bg-3: #1a1f2e;
    --border: #232a3d;
    --border-hi: #2f3852;

    --text-0: #f4f6fb;
    --text-1: #b8c0d4;
    --text-2: #7c869e;
    --text-3: #4d5670;

    --accent: #3b82f6;
    --accent-hi: #60a5fa;
    --accent-dim: #1e3a8a;

    --green: #10b981;
    --green-dim: #064e3b;
    --red: #ef4444;
    --red-dim: #7f1d1d;
    --amber: #f59e0b;
    --purple: #8b5cf6;

    --radius: 14px;
    --radius-sm: 9px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-0);
    color: var(--text-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-hi); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }

::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3d4d6b; }

/* ============================ LAYOUT ============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ============================ NAVBAR ============================ */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 9, 13, .82);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand {
    display: flex; align-items: center; gap: 11px;
    font-weight: 800; font-size: 19px; letter-spacing: -.4px; color: var(--text-0);
}
.brand:hover { color: var(--text-0); }
.brand-logo {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: grid; place-items: center;
    box-shadow: 0 4px 14px rgba(59,130,246,.4);
}
.brand-logo svg { width: 19px; height: 19px; }
.brand .accent { color: var(--accent-hi); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    color: var(--text-1); font-size: 14.5px; font-weight: 500;
    padding: 8px 15px; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { color: var(--text-0); background: var(--bg-2); }

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--radius-sm);
    font-size: 14.5px; font-weight: 600; font-family: var(--font);
    border: 1px solid transparent; cursor: pointer;
    transition: all .18s; white-space: nowrap; text-decoration: none;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    color: #fff; box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 7px 22px rgba(59,130,246,.5); }
.btn-ghost {
    background: var(--bg-2); color: var(--text-0); border-color: var(--border-hi);
}
.btn-ghost:hover { color: #fff; background: var(--bg-3); border-color: #3d4d6b; }
.btn-green { background: linear-gradient(180deg, #34d399, var(--green)); color: #04140e; }
.btn-green:hover { color: #04140e; transform: translateY(-1px); }
.btn-red { background: var(--red-dim); color: #fecaca; border-color: #991b1b; }
.btn-red:hover { background: #991b1b; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ============================ HERO ============================ */
.hero {
    position: relative; padding: 100px 0 90px; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 700px 450px at 50% -10%, rgba(59,130,246,.16), transparent 65%),
        radial-gradient(ellipse 500px 400px at 85% 20%, rgba(139,92,246,.10), transparent 60%);
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0; opacity: .35; pointer-events: none;
    background-image:
        linear-gradient(rgba(35,42,61,.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35,42,61,.5) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 800px 500px at 50% 0%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 0%, #000, transparent 75%);
}
.hero-content { position: relative; text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 15px 6px 11px; border-radius: 100px;
    background: var(--bg-2); border: 1px solid var(--border-hi);
    font-size: 13px; font-weight: 500; color: var(--text-1); margin-bottom: 26px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 9px var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.hero h1 {
    font-size: clamp(34px, 5.4vw, 62px); line-height: 1.07; font-weight: 800;
    letter-spacing: -1.6px; margin-bottom: 22px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent-hi), var(--purple) 60%, #ec4899);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: clamp(16px, 2vw, 19px); color: var(--text-1); max-width: 660px;
    margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
    margin-top: 60px; padding-top: 38px; border-top: 1px solid var(--border);
}
.hero-stat .num {
    font-size: 30px; font-weight: 800; letter-spacing: -1px;
    background: linear-gradient(120deg, #fff, var(--accent-hi));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat .lbl { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ============================ SECTIONS ============================ */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--accent-hi); margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1px;
    line-height: 1.15; margin-bottom: 14px;
}
.section-head p { font-size: 16.5px; color: var(--text-1); }

/* ============================ CARDS ============================ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all .22s;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.card-icon {
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    margin-bottom: 18px; background: var(--bg-3); border: 1px solid var(--border-hi);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.blue { background: rgba(59,130,246,.13); border-color: rgba(59,130,246,.3); color: var(--accent-hi); }
.card-icon.green { background: rgba(16,185,129,.13); border-color: rgba(16,185,129,.3); color: var(--green); }
.card-icon.red { background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.3); color: var(--red); }
.card-icon.purple { background: rgba(139,92,246,.13); border-color: rgba(139,92,246,.3); color: var(--purple); }
.card-icon.amber { background: rgba(245,158,11,.13); border-color: rgba(245,158,11,.3); color: var(--amber); }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.3px; }
.card p { font-size: 14.5px; color: var(--text-1); }

/* ============================ PRICING ============================ */
.price-card {
    position: relative; background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border); border-radius: 18px; padding: 34px 30px;
    transition: all .22s;
}
.price-card.featured {
    border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 22px 60px -18px rgba(59,130,246,.5);
}
.price-card:hover { transform: translateY(-4px); }
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(180deg, var(--accent-hi), var(--accent));
    color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; padding: 5px 15px; border-radius: 100px;
    box-shadow: 0 5px 16px rgba(59,130,246,.5);
}
.price-card h3 { font-size: 15px; font-weight: 700; color: var(--text-1); text-transform: uppercase; letter-spacing: 1px; }
.price-amount { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price-amount .val { font-size: 44px; font-weight: 800; letter-spacing: -2px; }
.price-amount .per { font-size: 15px; color: var(--text-2); }
.price-desc { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px;
    color: var(--text-1); padding: 7px 0;
}
.price-features li svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-features li.no { color: var(--text-3); }
.price-features li.no svg { color: var(--text-3); }

/* ============================ HOW IT WORKS ============================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
    width: 34px; height: 34px; border-radius: 9px; background: var(--bg-3);
    border: 1px solid var(--border-hi); display: grid; place-items: center;
    font-weight: 800; font-size: 14px; color: var(--accent-hi); margin-bottom: 15px;
}
.step h4 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--text-2); }

/* ============================ TABLE ============================ */
.table-wrap {
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data thead th {
    text-align: left; padding: 13px 18px; background: var(--bg-2);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
    color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data tbody td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-1); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(35,42,61,.4); }
.mono { font-family: var(--mono); font-size: 13px; }

/* ============================ BADGES ============================ */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.badge-green { background: rgba(16,185,129,.14); color: #34d399; }
.badge-red { background: rgba(239,68,68,.14); color: #f87171; }
.badge-amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.badge-blue { background: rgba(59,130,246,.14); color: #60a5fa; }
.badge-gray { background: var(--bg-3); color: var(--text-2); }

/* ============================ FORMS ============================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13.5px; font-weight: 600; color: var(--text-1);
    margin-bottom: 8px;
}
.input, .select, textarea.input {
    width: 100%; padding: 12px 15px; background: var(--bg-0);
    border: 1px solid var(--border-hi); border-radius: var(--radius-sm);
    color: var(--text-0); font-size: 14.5px; font-family: var(--font);
    transition: all .15s;
}
.input:focus, .select:focus, textarea.input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.input::placeholder { color: var(--text-3); }
textarea.input { resize: vertical; min-height: 100px; }
.input-hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* ============================ AUTH PAGES ============================ */
.auth-wrap {
    min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 48px 24px;
    background: radial-gradient(ellipse 600px 400px at 50% 0%, rgba(59,130,246,.10), transparent 60%);
}
.auth-card {
    width: 100%; max-width: 430px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-hi); border-radius: 18px; padding: 38px 34px;
    box-shadow: 0 24px 70px -20px rgba(0,0,0,.7);
}
.auth-card h2 { font-size: 24px; font-weight: 800; letter-spacing: -.6px; margin-bottom: 6px; }
.auth-card .sub { font-size: 14.5px; color: var(--text-2); margin-bottom: 26px; }

/* ============================ ALERTS ============================ */
.alert {
    padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
    margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-info { background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }
.alert-warn { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }

/* ============================ DASHBOARD ============================ */
.dash { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 68px); }
.sidebar {
    background: var(--bg-1); border-right: 1px solid var(--border); padding: 26px 16px;
}
.sidebar .user-box { padding: 0 10px 22px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.sidebar .user-box .name { font-weight: 700; font-size: 15.5px; }
.sidebar .user-box .role { font-size: 12.5px; color: var(--text-3); }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a {
    display: flex; align-items: center; gap: 11px; padding: 11px 13px;
    border-radius: var(--radius-sm); color: var(--text-1); font-size: 14.5px; font-weight: 500;
}
.side-nav a svg { width: 18px; height: 18px; }
.side-nav a:hover { background: var(--bg-2); color: var(--text-0); }
.side-nav a.active { background: rgba(59,130,246,.13); color: var(--accent-hi); }

.dash-main { padding: 30px 34px 60px; background: var(--bg-0); min-width: 0; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.dash-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.7px; }
.dash-head .sub { font-size: 14px; color: var(--text-2); margin-top: 3px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .lbl { font-size: 12.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.stat-card .val { font-size: 30px; font-weight: 800; letter-spacing: -1px; margin-top: 7px; }
.stat-card .val.green { color: #34d399; }
.stat-card .val.red { color: #f87171; }
.stat-card .val.blue { color: #60a5fa; }

.panel {
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 24px; overflow: hidden;
}
.panel-head {
    padding: 17px 22px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-head h3 { font-size: 16.5px; font-weight: 700; }
.panel-head .sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.panel-body { padding: 22px; }

/* Country selector */
.country-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.country-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 7px; max-height: 420px; overflow-y: auto; padding: 4px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-0);
}
.country-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 11px;
    border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--text-1);
    border: 1px solid transparent; transition: all .12s; user-select: none;
}
.country-item:hover { background: var(--bg-2); }
.country-item input { accent-color: var(--accent); cursor: pointer; }
.country-item.checked { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); color: var(--text-0); }
.country-item .flag { font-size: 15px; }

/* Toggle switch */
.toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tr-label { font-size: 14.5px; font-weight: 600; }
.toggle-row .tr-desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; inset: 0; background: var(--bg-3); border: 1px solid var(--border-hi);
    border-radius: 100px; cursor: pointer; transition: .22s;
}
.slider::before {
    content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
    background: var(--text-2); border-radius: 50%; transition: .22s;
}
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); background: #fff; }

/* Key display */
.key-box {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: var(--bg-0); border: 1px dashed var(--border-hi); border-radius: var(--radius-sm);
}
.key-box .key {
    font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: 2px;
    color: var(--accent-hi); flex: 1; word-break: break-all;
}

/* Code block */
.code-block {
    background: var(--bg-0); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--text-1);
    overflow-x: auto; line-height: 1.7; position: relative;
}
.code-block .tok-c { color: var(--text-3); }
.code-block .tok-k { color: var(--purple); }
.code-block .tok-s { color: var(--green); }
.code-block .tok-v { color: var(--amber); }

/* ============================ FOOTER ============================ */
.footer { padding: 50px 0 34px; background: var(--bg-1); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.footer h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--text-2); margin-bottom: 15px; }
.footer a { display: block; color: var(--text-1); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--accent-hi); }
.footer .about { font-size: 14px; color: var(--text-2); max-width: 340px; margin-top: 13px; }
.footer-bottom {
    padding-top: 26px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--text-3);
}

/* ============================ UTIL ============================ */
.text-center { text-align: center; }
.text-green { color: #34d399; }
.text-red { color: #f87171; }
.text-muted { color: var(--text-2); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 10px; } .mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 30px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 10px; } .gap-2 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
    .grid-4, .stat-cards, .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .dash { grid-template-columns: 1fr; }
    .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
    .side-nav { flex-direction: row; overflow-x: auto; }
    .side-nav a { white-space: nowrap; }
    .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .grid-2, .grid-3, .grid-4, .stat-cards, .steps, .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 66px 0 60px; }
    .section { padding: 60px 0; }
    .hero-stats { gap: 28px; }
    .dash-main { padding: 22px 18px 50px; }
    .auth-card { padding: 30px 22px; }
}
