@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }

:root {
    --bg: #08060f;
    --bg-soft: #100c1e;
    --surface: #150f28;
    --surface-2: #1c1436;
    --border: #2e2352;
    --text: #f1eefb;
    --text-dim: #9c93bd;
    --accent: #f97316;
    --accent-2: #fbbf24;
    --danger: #f87171;
    --warning: #fbbf24;
    --success: #4ade80;
    --radius: 14px;
    --shadow: 0 8px 34px rgba(0,0,0,0.5);
    --topbar-h: 64px;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(900px 500px at 15% -5%, rgba(249,115,22,0.20), transparent),
        radial-gradient(900px 500px at 100% 10%, rgba(251,191,36,0.14), transparent),
        radial-gradient(700px 500px at 50% 100%, rgba(249,115,22,0.10), transparent),
        radial-gradient(circle, rgba(249,115,22,0.16) 1px, transparent 1.4px) 0 0/28px 28px,
        var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

h1, h2, h3, .brand, .login-box h1, button {
    font-family: 'Rajdhani', 'Inter', sans-serif;
}

/* ---------- Topbar ---------- */
.topbar {
    height: var(--topbar-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    background: rgba(16,12,30,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}
.brand .dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 14px var(--accent);
    flex-shrink: 0;
    animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--accent); }
    50% { box-shadow: 0 0 18px var(--accent-2); }
}
.topbar nav { display: flex; align-items: center; gap: 6px; }
.topbar nav a {
    position: relative;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
}
.topbar nav a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 4px;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .2s ease, left .2s ease;
    box-shadow: 0 0 8px var(--accent);
}
.topbar nav a:hover { background: var(--surface-2); color: var(--text) !important; }
.topbar nav a:hover::after { width: calc(100% - 24px); left: 12px; }
.topbar nav a.cta {
    position: relative;
    background: linear-gradient(135deg, var(--accent), #c2410c);
    color: #fff !important;
    font-weight: 700;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -2px 0 rgba(0,0,0,0.25),
        0 0 18px rgba(249,115,22,0.35);
}
.topbar nav a.cta::after { display: none; }
.topbar nav a.cta:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -2px 0 rgba(0,0,0,0.25),
        0 0 26px rgba(249,115,22,0.55);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    box-shadow: none;
    cursor: pointer;
}

.container { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }

h1 { font-size: 1.9rem; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 6px 0; text-transform: uppercase; }
h2 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
h2 .icon { font-size: 1.05rem; }

p { line-height: 1.55; }

/* ---------- Cards ---------- */
.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin: 18px 0;
    box-shadow: var(--shadow);
    animation: rise .35s ease both;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
    opacity: 0.7;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}
@media (max-width: 900px) and (min-width: 721px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 28px 20px 70px; }
}

.muted { color: var(--text-dim); }
.small { font-size: 0.85rem; }
.error-text { color: var(--danger); }
.stat-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.stat-row:last-child { border-bottom: none; }
.stat-row .k { color: var(--text-dim); }
.stat-row .v { font-weight: 600; }

/* ---------- Warning banner ---------- */
.warning-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: 12px;
    margin: 16px 0;
    color: var(--warning);
    font-weight: 600;
    font-size: 0.9rem;
}
.warning-banner .icon { font-size: 1.3rem; flex-shrink: 0; }

/* ---------- Table / list ---------- */
.domain-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.domain-row:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 0 20px rgba(249,115,22,0.15); }
.domain-row > div:first-child { min-width: 0; flex: 1 1 auto; }
.domain-row .name { font-weight: 700; font-size: 1rem; word-break: break-all; }
.domain-row .right { flex-shrink: 0; }
.domain-row .meta { color: var(--text-dim); font-size: 0.82rem; margin-top: 3px; }
.domain-row .right { display: flex; align-items: center; gap: 14px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}
.empty-state .big-icon { font-size: 2.4rem; margin-bottom: 10px; }

/* ---------- Badges / pills ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--surface-2);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-new, .badge-baru { color: #a1a8b3; }
.badge-checked, .badge-dicek { color: var(--accent-2); background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.badge-reported, .badge-dilaporkan { color: var(--success); background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.25); }
.badge-followed_up, .badge-ditindaklanjuti { color: var(--accent); background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.3); }
.badge-domain_down { color: var(--warning); background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); }
.badge-closed, .badge-ditutup { color: var(--danger); background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.25); }

.pill-metric {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface-2);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border);
}
.pill-metric.danger { color: var(--danger); border-color: rgba(248,113,113,0.35); }
.pill-metric.ok { color: var(--success); border-color: rgba(74,222,128,0.35); }
.pill-metric.neutral { color: var(--text-dim); }

/* ---------- Forms ---------- */
input[type=text], input[type=password], select, textarea {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0 16px 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=text]:focus, input[type=password]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}
textarea { min-height: 80px; resize: vertical; }
label { display: block; margin: 6px 0; font-size: 0.92rem; }

.field-wrap { position: relative; display: block; }
.field-wrap::before {
    content: '';
    position: absolute;
    top: 8px; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    opacity: 0.7;
    pointer-events: none;
}
.field-wrap::after {
    content: '';
    position: absolute;
    bottom: 24px; right: 0;
    width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    opacity: 0.7;
    pointer-events: none;
}

.check-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 4px 6px 4px 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer;
    font-size: 0.88rem;
    transition: border-color .15s ease, background .15s ease;
}
.check-chip:hover { border-color: var(--accent); }
.check-chip input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.check-chip.disabled { opacity: 0.45; cursor: not-allowed; }

button {
    position: relative;
    background: linear-gradient(135deg, var(--accent), #c2410c);
    color: #fff;
    border: none;
    padding: 13px 26px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -3px 0 rgba(0,0,0,0.25),
        0 4px 20px rgba(249,115,22,0.4);
}
button::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 2px solid rgba(255,255,255,0.85);
    border-left: 2px solid rgba(255,255,255,0.85);
    opacity: 0.6;
    pointer-events: none;
}
button::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    border-bottom: 2px solid rgba(255,255,255,0.85);
    border-right: 2px solid rgba(255,255,255,0.85);
    opacity: 0.6;
    pointer-events: none;
}
button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -3px 0 rgba(0,0,0,0.25),
        0 8px 30px rgba(249,115,22,0.6), 0 0 24px rgba(251,191,36,0.25);
}
button:active {
    transform: translateY(1px);
    filter: brightness(0.96);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 2px 6px rgba(0,0,0,0.35),
        0 2px 10px rgba(249,115,22,0.3);
}
button.secondary {
    background: linear-gradient(180deg, var(--surface-2), var(--bg-soft));
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 -3px 0 rgba(0,0,0,0.3),
        0 4px 14px rgba(0,0,0,0.3);
}
button.secondary::before, button.secondary::after { border-color: rgba(249,115,22,0.5); opacity: 0.8; }
button.secondary:hover {
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        inset 0 -3px 0 rgba(0,0,0,0.3),
        0 0 20px rgba(249,115,22,0.25);
}

/* ---------- Mascot & reusable panel container ---------- */
.panel-frame {
    position: relative;
    margin: 4px 0 28px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
    box-shadow: 0 0 24px rgba(249,115,22,0.4), 0 0 50px rgba(249,115,22,0.15);
}
.panel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 36px 48px;
    background: linear-gradient(160deg, rgba(24,17,46,0.97), rgba(8,6,15,0.99));
    clip-path: polygon(23px 0, 100% 0, 100% calc(100% - 23px), calc(100% - 23px) 100%, 0 100%, 0 23px);
    animation: rise .35s ease both;
}
.panel-content { flex: 1 1 auto; min-width: 0; }
.panel-content h1 { margin-bottom: 10px; }
.panel-content p { margin-bottom: 18px; }
.panel-mascot-img {
    flex: 0 0 auto;
    width: 260px;
    max-width: 34vw;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(249,115,22,0.35)) drop-shadow(0 16px 24px rgba(0,0,0,0.5));
    animation: mascot-float 3.6s ease-in-out infinite;
}
.inline-form label { margin-top: 0; }
.inline-form input[type=text] { max-width: 460px; }
.mascot-processing-img {
    width: 190px;
    max-width: 55vw;
    height: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 30px rgba(251,191,36,0.35)) drop-shadow(0 16px 24px rgba(0,0,0,0.5));
    animation: mascot-bob 1.8s ease-in-out infinite;
}
@keyframes mascot-bob {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}
.mascot-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
    margin: 16px 0;
    background: linear-gradient(135deg, rgba(74,222,128,0.12), rgba(251,191,36,0.08));
    border: 1px solid rgba(74,222,128,0.35);
    border-radius: var(--radius);
    animation: rise .35s ease both;
}
.mascot-banner img {
    width: 84px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.mascot-banner h3 { margin: 0 0 4px 0; font-size: 1.05rem; color: var(--success); }
.mascot-banner p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

@media (max-width: 720px) {
    .panel-container { flex-direction: column-reverse; align-items: center; text-align: center; padding: 28px 22px; }
    .panel-mascot-img { width: 130px; max-width: 45vw; }
    .mascot-banner { flex-direction: column; text-align: center; }
}
.login-wrap {
    min-height: calc(100vh - var(--topbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

/* ---------- Hero container (landing/login) ---------- */
.hero-wrap {
    min-height: calc(100vh - var(--topbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}
.hero-frame {
    position: relative;
    width: 100%;
    max-width: 980px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
    box-shadow: 0 0 26px rgba(249,115,22,0.45), 0 0 60px rgba(249,115,22,0.18);
}
.hero-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 56px 64px 56px 56px;
    background: linear-gradient(160deg, rgba(24,17,46,0.97), rgba(8,6,15,0.99));
    clip-path: polygon(27px 0, 100% 0, 100% calc(100% - 27px), calc(100% - 27px) 100%, 0 100%, 0 27px);
    backdrop-filter: blur(10px);
}
.hero-badge {
    position: absolute;
    top: -22px; left: 40px;
    transform: none;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(160deg, var(--surface), var(--bg-soft));
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(249,115,22,0.35);
    z-index: 5;
}
.hero-content { flex: 1 1 auto; min-width: 0; max-width: 460px; position: relative; z-index: 2; }
.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0 0 16px 0;
    color: var(--text);
}
.hero-title span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-desc { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; margin: 0 0 26px 0; }
.hero-form input { margin: 0 0 12px 0; }
.hero-form button { width: 100%; }
.hero-mascot-img {
    position: absolute;
    top: 40px;
    right: 56px;
    width: 300px;
    max-width: 38vw;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(249,115,22,0.4)) drop-shadow(0 20px 30px rgba(0,0,0,0.55));
    animation: mascot-float 3.6s ease-in-out infinite;
    z-index: 3;
}
.hero-mascot-sleepy {
    top: 70px;
    right: 46px;
    width: 340px;
    max-width: 44vw;
}
.hero-outer { position: relative; width: 100%; max-width: 980px; }
.hero-tagline {
    position: absolute;
    bottom: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    padding: 4px 18px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
    z-index: 4;
}
@keyframes mascot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@media (max-width: 760px) {
    .hero-container { padding: 100px 24px 32px; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-mascot-img {
        left: 0; right: 0; margin: 0 auto; top: -70px;
        width: 150px; max-width: 55vw;
    }
    .hero-title { font-size: 2rem; }
    .hero-mascot-sleepy { top: -50px; width: 190px; max-width: 60vw; }
    .hero-badge { display: none; }
}
.login-box {
    width: 100%;
    max-width: 380px;
    text-align: center;
    padding: 48px 34px 40px;
}
.login-box .logo-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 18px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 30px rgba(249,115,22,0.5);
    animation: ring-glow 2.6s ease-in-out infinite;
}
@keyframes ring-glow {
    0%, 100% { box-shadow: 0 0 24px rgba(249,115,22,0.45); }
    50% { box-shadow: 0 0 40px rgba(251,191,36,0.55); }
}
.login-box .logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--bg-soft);
}
.login-box h1 { margin-bottom: 4px; font-size: 1.5rem; }
.login-box p.subtitle { color: var(--text-dim); margin-bottom: 22px; font-size: 0.9rem; }

/* ---------- Flash / toast ---------- */
.toast-container {
    position: fixed;
    top: calc(var(--topbar-h) + 14px);
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(360px, calc(100vw - 40px));
}
.flash {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: slide-in .3s ease both;
    border: 1px solid transparent;
    word-break: break-word;
}
@keyframes slide-in {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}
.flash-success { background: rgba(74,222,128,0.14); color: var(--success); border-color: rgba(74,222,128,0.3); backdrop-filter: blur(8px); }
.flash-error { background: rgba(248,113,113,0.14); color: var(--danger); border-color: rgba(248,113,113,0.3); backdrop-filter: blur(8px); }
.flash-info { background: rgba(251,191,36,0.14); color: var(--accent-2); border-color: rgba(251,191,36,0.3); backdrop-filter: blur(8px); }

/* ---------- Screenshot ---------- */
.screenshot-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}
.screenshot-frame img { display: block; width: 100%; }
.screenshot-frame .bar {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    background: #0a0714;
    border-bottom: 1px solid var(--border);
}
.screenshot-frame .bar span { width: 9px; height: 9px; border-radius: 50%; background: #333; }

/* ---------- Processing / spinner ---------- */
.processing-wrap {
    min-height: calc(100vh - var(--topbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}
.spinner {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-right-color: var(--accent-2);
    animation: spin 0.8s linear infinite;
    margin-bottom: 22px;
    box-shadow: 0 0 24px rgba(249,115,22,0.3);
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-wrap h1 { margin-bottom: 6px; }
.processing-domain {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-2);
    font-size: 1.05rem;
    word-break: break-all;
}
.processing-steps {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.processing-steps span { opacity: 0.5; animation: pulse-step 2.4s ease-in-out infinite; }
.processing-steps span:nth-child(2) { animation-delay: .3s; }
.processing-steps span:nth-child(3) { animation-delay: .6s; }
.processing-steps span:nth-child(4) { animation-delay: .9s; }
.processing-steps span:nth-child(5) { animation-delay: 1.2s; }
.processing-steps span:nth-child(6) { animation-delay: 1.5s; }
@keyframes pulse-step { 0%, 100% { opacity: 0.62; } 50% { opacity: 1; } }

/* ---------- Detail header ---------- */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}
.detail-header .title-block h1 { display: flex; align-items: center; gap: 10px; word-break: break-all; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 0.88rem; color: var(--text-dim); }
.back-link:hover { color: var(--text); }

hr.sep { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .topbar nav {
        position: fixed;
        top: var(--topbar-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(12,9,22,0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px 16px;
        gap: 4px;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform .18s ease, opacity .18s ease;
    }
    .topbar nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .topbar nav a { width: 100%; text-align: center; padding: 12px 16px; }
    .container { padding: 24px 16px 60px; }
    h1 { font-size: 1.5rem; }
    .toast-container { left: 16px; right: 16px; max-width: none; }
    .domain-row { flex-wrap: wrap; }
    .domain-row .right { width: 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
    .topbar { padding: 0 14px; }
    .brand { font-size: 0.98rem; gap: 7px; }
    .brand .dot { width: 9px; height: 9px; }
}
