/* ═══════════════════════════════════════════════════════════
   Nawala Checker — Premium Edition v2
   Dark glass UI / Light theme · responsive · accessible
   ═══════════════════════════════════════════════════════════ */

:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --bg: #07080f;
    --bg-soft: #0b0d18;
    --card: rgba(18, 20, 34, 0.72);
    --card-solid: #12141f;
    --card-hover: rgba(26, 28, 46, 0.92);
    --input-bg: rgba(5, 6, 12, 0.55);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f2f5fb;
    --text-2: #9aa3b5;
    --text-3: #5b6478;

    --accent: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #06b6d4;
    --accent-grad: linear-gradient(120deg, #6366f1, #a855f7 55%, #06b6d4);

    --safe: #22c55e;
    --safe-bg: rgba(34, 197, 94, 0.12);
    --danger: #f43f5e;
    --danger-bg: rgba(244, 63, 94, 0.12);
    --warn: #f59e0b;

    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --glow: 0 0 40px rgba(99, 102, 241, 0.28);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    --bg: #eef1f8;
    --bg-soft: #e6eaf4;
    --card: rgba(255, 255, 255, 0.8);
    --card-solid: #ffffff;
    --card-hover: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(226, 231, 243, 0.7);
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.18);

    --text: #10182b;
    --text-2: #45506a;
    --text-3: #7d8aa3;

    --safe: #059669;
    --safe-bg: rgba(5, 150, 105, 0.1);
    --danger: #e11d48;
    --danger-bg: rgba(225, 29, 72, 0.1);

    --shadow: 0 12px 40px rgba(30, 41, 59, 0.12);
    --shadow-card: 0 20px 50px rgba(30, 41, 59, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --glow: 0 0 40px rgba(99, 102, 241, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

/* ═══ BACKGROUND FX ═══ */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.bg-orb {
    position: fixed;
    z-index: -2;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: floatOrb 14s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%); }
.orb-2 { width: 460px; height: 460px; bottom: -140px; right: -120px; background: radial-gradient(circle, rgba(6, 182, 212, 0.13), transparent 70%); animation-delay: -5s; }
.orb-3 { width: 380px; height: 380px; top: 40%; right: 20%; background: radial-gradient(circle, rgba(168, 85, 247, 0.10), transparent 70%); animation-delay: -9s; }
[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(6, 182, 212, 0.10), transparent 70%); }

@keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.75; }
    50%  { transform: translate(34px, 22px) scale(1.15); opacity: 1; }
    100% { transform: translate(-26px, -34px) scale(0.9); opacity: 0.6; }
}

/* ═══ NAVBAR ═══ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: rgba(7, 8, 15, 0.72);
    border-bottom: 1px solid var(--border);
}
[data-theme="light"] .topbar { background: rgba(238, 241, 248, 0.75); }
.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: .8rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-logo { width: auto; height: 44px; object-fit: contain; display: block; filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .68rem; color: var(--text-3); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: .55rem; }

.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text-2);
    cursor: pointer;
    font-size: .9rem;
    transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }

/* ═══ BUTTONS ═══ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: .68rem 1.1rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: .95rem; }
.btn-grow { flex-grow: 1; }

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5); filter: brightness(1.06); }
.btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: var(--card);
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--card-hover); }

/* ═══ LAYOUT ═══ */
.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.2rem 1.25rem 4.5rem;
}

/* ═══ HERO ═══ */
.hero { text-align: center; padding: 1.2rem 0 3rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .42rem 1.05rem;
    font-size: .73rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .02em;
    margin-bottom: 1.4rem;
}
.hero-badge-text strong { color: var(--safe); font-weight: 700; }
.live-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--safe);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 5.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 auto 1.1rem;
    max-width: 820px;
}
.hero-sub {
    max-width: 640px;
    margin: 0 auto 2rem;
    color: var(--text-2);
    font-size: clamp(.95rem, 2.4vw, 1.06rem);
    font-weight: 400;
}

.gradient-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .85rem 1.5rem;
    min-width: 150px;
    transition: all .25s var(--ease);
}
.hero-stat:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.hero-stat-num { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat-label { font-size: .72rem; color: var(--text-3); font-weight: 600; margin-top: .15rem; }

.hero-cta { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }

/* ═══ SCANNER CARD ═══ */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: background .35s var(--ease), border-color .35s var(--ease);
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.card-head-left { display: flex; align-items: center; gap: .9rem; }
.card-icon {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--accent);
    font-size: 1.05rem;
}
.card-title { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.card-sub { font-size: .78rem; color: var(--text-3); margin-top: .1rem; }

.clock { text-align: right; font-size: .8rem; color: var(--text-2); }
.clock-date { font-weight: 600; }
.clock-time { margin-top: .15rem; font-family: var(--font-mono); font-size: .88rem; color: var(--text); }
.clock-time small { color: var(--text-3); font-family: var(--font-sans); font-size: .66rem; font-weight: 600; }

/* ═══ FORM ═══ */
.field-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .55rem;
}
.textarea-wrap {
    position: relative;
}
#domain-input {
    width: 100%;
    min-height: 190px;
    resize: vertical;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem 2.6rem;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: .88rem;
    line-height: 1.7;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    outline: none;
}
#domain-input::placeholder { color: var(--text-3); font-family: var(--font-sans); font-size: .82rem; }
#domain-input:focus { border-color: rgba(99, 102, 241, 0.6); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12); }

.textarea-footer {
    position: absolute;
    left: .6rem; right: .6rem; bottom: .6rem;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .3rem .6rem;
    font-size: .73rem;
    color: var(--text-3);
    background: rgba(18, 20, 31, 0.85);
    border-radius: 8px;
    border: 1px solid var(--border);
}
[data-theme="light"] .textarea-footer { background: rgba(255, 255, 255, 0.85); }
.input-hint { display: inline-flex; align-items: center; white-space: nowrap; }

.actions {
    display: flex;
    gap: .6rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

/* scanning spinner */
.spinner {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ PROGRESS ═══ */
.progress-area { margin-top: 1.4rem; }
.progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: var(--accent-grad);
    background-size: 200% 100%;
    animation: gradMove 1.4s linear infinite;
    transition: width .18s var(--ease);
}
@keyframes gradMove { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.progress-note { margin-top: .55rem; font-size: .78rem; color: var(--text-3); font-weight: 500; }

/* ═══ RESULTS ═══ */
.results-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
    margin: 1.7rem 0 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .8rem;
    margin-bottom: 1.4rem;
}
.stat-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    transition: all .2s var(--ease);
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); display: flex; align-items: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.stat-total .stat-value { color: var(--text); }
.stat-safe .stat-value { color: var(--safe); }
.stat-blocked .stat-value { color: var(--danger); }

.table-wrap {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: visible;
}
.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
    min-width: 760px;
}
.result-table thead th {
    white-space: nowrap;
    background: var(--card-solid);
    color: var(--text-3);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 700;
    text-align: left;
    padding: .8rem 1.1rem;
    border-bottom: 1px solid var(--border);
}
.result-table tbody tr {
    border-bottom: 1px solid var(--border);
    animation: rowIn .35s var(--ease-out) both;
}
.result-table tbody tr:last-child { border-bottom: none; }
.result-table tbody tr:hover { background: var(--card-hover); }
.td-num { padding: .78rem 1.1rem; color: var(--text-3); font-family: var(--font-mono); font-size: .74rem; width: 44px; }
.td-domain { padding: .78rem 1.1rem; }
.td-domain .mono { font-family: var(--font-mono); font-size: .82rem; word-break: break-all; }
.td-status { padding: .78rem 1.1rem; text-align: left; white-space: nowrap; }

@keyframes rowIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.stat-mini {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: .5rem 1rem .5rem .55rem;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.stat-mini:hover { transform: translateY(-2px); }
.sm-ic {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: .68rem;
    flex-shrink: 0;
}
.sm-txt { font-size: .8rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }

.sm-safe { border-color: rgba(34, 197, 94, 0.3); }
.sm-safe .sm-ic { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.sm-danger { border-color: rgba(244, 63, 94, 0.3); }
.sm-danger .sm-ic { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.sm-warn { border-color: rgba(245, 158, 11, 0.3); }
.sm-warn .sm-ic { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.sm-off { border-color: rgba(220, 38, 38, 0.3); }
.sm-off .sm-ic { background: rgba(220, 38, 38, 0.15); color: #fca5a5; }
[data-theme="light"] .sm-safe  .sm-ic { color: #15803d; }
[data-theme="light"] .sm-danger .sm-ic { color: #be123c; }
[data-theme="light"] .sm-warn   .sm-ic { color: #b45309; }
[data-theme="light"] .sm-off    .sm-ic { color: #b91c1c; }

.td-network { padding: .78rem 1.1rem; white-space: nowrap; }
.td-lat { padding: .78rem 1.1rem; text-align: left; color: var(--text-2); white-space: nowrap; }
.td-lat .mono { font-size: .78rem; }
.td-lat-empty { color: var(--text-3); font-size: .78rem; }

.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}
.results-note { font-size: .73rem; color: var(--text-3); font-weight: 500; }
.results-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ═══ FEATURES ═══ */
.features { margin-top: 4rem; }
.section-title {
    text-align: center;
    font-size: clamp(1.4rem, 3.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.6rem 1.5rem;
    transition: all .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); background: var(--card-hover); }
.feature-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 13px;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.feature:nth-child(2) .feature-icon { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 6px 18px rgba(6, 182, 212, 0.35); }
.feature:nth-child(3) .feature-icon { background: linear-gradient(135deg, #a855f7, #d946ef); box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35); }
.feature h3 { font-size: 1rem; font-weight: 800; margin-bottom: .45rem; letter-spacing: -0.01em; }
.feature p { font-size: .85rem; color: var(--text-2); }

/* ═══ FAQ ═══ */
.faq { margin-top: 4rem; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq-item[open] { border-color: rgba(99, 102, 241, 0.4); background: var(--card-hover); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    font-weight: 700;
    font-size: .92rem;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--text-3); font-size: .75rem; transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 1.3rem 1.2rem; font-size: .86rem; color: var(--text-2); }
.faq-body p { margin: 0; }

/* ═══ FOOTER ═══ */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 2.6rem 1.25rem 3rem;
    text-align: center;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer-logo { width: auto; height: 56px; object-fit: contain; margin-bottom: .8rem; filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.45)); }
.footer-brand { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.footer-copy { font-size: .82rem; color: var(--text-2); margin-top: .35rem; }
.footer-copy .heart { color: #f43f5e; }
.footer-sub { font-size: .75rem; color: var(--text-3); margin-top: .2rem; }
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    padding: .45rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    transition: all .2s var(--ease);
}
.footer-link:hover { color: var(--accent); border-color: rgba(99, 102, 241, 0.45); transform: translateY(-2px); }
.footer-sep { color: var(--text-3); font-size: .7rem; }

/* ═══ PRIVACY MODAL ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(4, 5, 10, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .3s var(--ease);
}
.modal-overlay.show { display: flex; opacity: 1; }
[data-theme="light"] .modal-overlay { background: rgba(15, 23, 42, 0.4); }
.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    padding: 1.8rem;
    box-shadow: var(--shadow-card);
    transform: translateY(16px) scale(0.98);
    transition: transform .3s var(--ease-out);
}
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-2);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.3rem; }
.modal-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: var(--accent);
}
.modal-head h3 { font-size: 1.15rem; font-weight: 800; }
.modal-body { font-size: .87rem; color: var(--text-2); }
.modal-body p { margin-bottom: .8rem; }
.modal-body ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; margin-bottom: .8rem; }
.modal-foot { display: flex; justify-content: flex-end; margin-top: 1.6rem; }

/* ═══ TOAST ═══ */
.toast-stack {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: min(360px, calc(100vw - 2.5rem));
}
.toast {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: .85rem 1.1rem;
    box-shadow: var(--shadow-card);
    font-size: .84rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; font-size: .7rem; }
.toast-success .toast-icon { background: var(--safe-bg); color: var(--safe); }
.toast-danger .toast-icon { background: var(--danger-bg); color: var(--danger); }

/* ═══ PILLS ═══ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}
.pill-success { background: var(--safe-bg); color: var(--safe); border: 1px solid rgba(34, 197, 94, 0.25); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 640px) {
    .page { padding: 2rem 1rem 3.5rem; }
    .glass-card { padding: 1.4rem; border-radius: var(--r-lg); }
    .hero { padding: 0.5rem 0 2.4rem; }
    .hero-stats { gap: .6rem; }
    .hero-stat { min-width: 44%; padding: .7rem 1rem; }
    .hero-cta .btn { width: 100%; }
    .actions { flex-direction: row; }
    .actions .btn { flex: 1; }
    .textarea-footer { flex-direction: column; gap: .15rem; align-items: flex-start; }
    .clock { text-align: left; margin-top: .2rem; }
    .card-head { flex-direction: column; }
    .results-note { width: 100%; }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ IP META ═══ */
.results-note { font-size: .72rem; }
.ip-toggle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: .22rem .5rem;
    font-size: .66rem;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.ip-toggle:hover { color: var(--accent); border-color: rgba(99, 102, 241, 0.4); }
.meta-sep { color: var(--text-3); margin: 0 .35rem; font-size: .7rem; }
.results-note .mono { font-family: var(--font-mono); font-size: .72rem; }
.results-note .flag { font-size: .8rem; }

/* ═══ CLIENT BAR (di atas form) ═══ */
.client-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .45rem 1rem;
    margin-bottom: 1.2rem;
    font-size: .74rem;
    color: var(--text-2);
}
.client-bar-item { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.client-bar .mono { font-family: var(--font-mono); font-size: .73rem; }

.flag-img {
    width: 19px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    display: inline-block;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    .client-bar { width: 100%; border-radius: var(--r-md); }
}

/* ═══════════════════════════════════════════════════════════
   UI/UX ENHANCEMENTS — v2
   ═══════════════════════════════════════════════════════════ */

/* ═══ HERO GRID (2 kolom) ═══ */
.hero { text-align: left; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
    max-width: 1060px;
    margin: 0 auto;
}
.hero-left { max-width: 540px; }
.hero h1 { margin-top: 1.2rem; }

/* hero stats upgrade */
.hero-stat-num { display: inline-flex; align-items: center; gap: .45rem; }
.stat-ic { font-size: .95rem; border-radius: 9px; padding: .38rem .5rem; }
.ic-1 { background: rgba(34, 197, 94, 0.14); color: #34d399; }
.ic-2 { background: rgba(99, 102, 241, 0.16); color: #818cf8; }
.ic-3 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* ═══ DEMO CARD ═══ */
.hero-right { position: relative; }
.demo-card {
    background: var(--card);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: var(--r-lg);
    padding: 1.15rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(99, 102, 241, 0.18);
    animation: demoFloat 7s ease-in-out infinite;
}
[data-theme="light"] .demo-card { box-shadow: 0 24px 60px rgba(30, 41, 59, 0.2), 0 0 40px rgba(99, 102, 241, 0.14); }
@keyframes demoFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.demo-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding-bottom: .85rem;
    margin-bottom: .8rem;
    border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 5px; }
.demo-dots span { width: 9px; height: 9px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #f87171; }
.demo-dots span:nth-child(2) { background: #fbbf24; }
.demo-dots span:nth-child(3) { background: #34d399; }
.demo-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    font-weight: 800;
    color: var(--text-2);
}
.demo-title i { color: var(--accent); }
.demo-live {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .62rem;
    font-weight: 700;
    color: var(--safe);
    background: var(--safe-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 999px;
    padding: .18rem .5rem;
}
.demo-live .live-dot { width: 6px; height: 6px; }
.demo-rows { display: flex; flex-direction: column; gap: .5rem; }
.demo-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .6rem .75rem;
    animation: rowIn .4s var(--ease-out) both;
}
.demo-row:nth-child(1) { animation-delay: .15s; }
.demo-row:nth-child(2) { animation-delay: .3s; }
.demo-row:nth-child(3) { animation-delay: .45s; }
.demo-row:nth-child(4) { animation-delay: .6s; }
.demo-domain { flex: 1; font-size: .76rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row .stat-mini { padding: .3rem .75rem .3rem .35rem; box-shadow: none; }
.demo-row .sm-ic { width: 20px; height: 20px; border-radius: 7px; font-size: .55rem; }
.demo-row .sm-txt { font-size: .68rem; }
.demo-lat { font-size: .68rem; color: var(--text-3); width: 46px; text-align: right; }
.demo-float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--card-solid);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: .5rem .9rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-2);
    box-shadow: var(--shadow);
    animation: chipFloat 5.5s ease-in-out infinite;
    white-space: nowrap;
    z-index: 3;
}
.demo-float-chip i { color: var(--accent-3); }
.demo-float-chip strong { color: var(--text); }
.chip-1 { top: -22px; right: 12px; }
.chip-2 { bottom: -20px; left: -8px; animation-delay: -2.8s; }
@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* ═══ HOW IT WORKS ═══ */
.how { margin-top: 4rem; }
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.how-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.7rem 1.5rem;
    text-align: center;
    transition: all .28s var(--ease-out);
    overflow: hidden;
}
.how-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.45); box-shadow: var(--shadow), var(--glow); }
.how-num {
    position: absolute;
    top: .7rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 800;
    opacity: .5;
}
.how-icon {
    width: 54px; height: 54px;
    margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: 16px;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 10px 26px rgba(99, 102, 241, 0.4);
}
.how-card:nth-child(2) .how-icon { background: linear-gradient(135deg, #06b6d4, #0ea5e9); box-shadow: 0 10px 26px rgba(6, 182, 212, 0.4); }
.how-card:nth-child(3) .how-icon { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 10px 26px rgba(245, 158, 11, 0.4); }
.how-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; }
.how-card p { font-size: .84rem; color: var(--text-2); }

/* ═══ REVEAL ANIMATION ═══ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.hero-right.reveal.in { transition-delay: .12s; }

/* ═══ RESPONSIVE HERO ═══ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { text-align: center; }
    .hero-left { max-width: 100%; }
    .hero-stats { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-right { max-width: 460px; margin: 0 auto; width: 100%; }
}

/* ═══ FILTER TOOLBAR + SORT ═══ */
.r-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .9rem;
}
.r-toolbar-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: all .18s var(--ease);
}
.chip-btn:hover { color: var(--text); border-color: var(--border-strong); }
.chip-btn.act {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.r-toolbar-hint {
    margin-left: auto;
    font-size: .7rem;
    color: var(--text-3);
    font-weight: 600;
}

.th-sort {
    cursor: pointer;
    user-select: none;
    transition: color .15s var(--ease);
}
.th-sort:hover { color: var(--text); }
.sort-ind {
    display: inline-block;
    width: 0; height: 0;
    margin-left: .25rem;
    vertical-align: middle;
    opacity: .35;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid currentColor;
}
.sort-ind.asc { opacity: 1; border-bottom: none; border-top: 5px solid currentColor; }
.sort-ind.desc { opacity: 1; border-bottom: 5px solid currentColor; }

@media (max-width: 640px) {
    .r-toolbar-hint { width: 100%; margin-left: 0; }
}

/* ═══ ARTIKEL / PRIVACY ═══ */
.article-page { max-width: 820px; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--text-3);
    margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.article-head { margin-bottom: 1.6rem; }
.article-head h1 {
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 1rem;
}
.article-sub { color: var(--text-2); font-size: 1rem; max-width: 640px; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: .78rem;
    color: var(--text-3);
}
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.article-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 2.4rem 0 1rem;
    padding-left: .8rem;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #6366f1, #a855f7) 1;
}
.article-body h3 { font-size: 1.1rem; font-weight: 800; margin: 1.6rem 0 .6rem; }
.article-body p { color: var(--text-2); margin-bottom: 1rem; line-height: 1.85; }
.article-body ul, .article-body ol { padding-left: 1.4rem; color: var(--text-2); margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; line-height: 1.8; }
.article-body li strong { color: var(--text); }
.article-body a { color: var(--accent-3); }
