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

:root {
    --bg: #000;
    --green: #00ff41;
    --green-dim: #00cc33;
    --green-glow: rgba(0, 255, 65, 0.35);
    --red: #ff2d2d;
    --red-glow: rgba(255, 45, 45, 0.4);
    --orange: #ff6b00;
    --text: #e0e0e0;
    --muted: #7a7a7a;
    --card: rgba(0, 20, 0, 0.85);
    --border: rgba(0, 255, 65, 0.25);
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, sans-serif;
    background: #000;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(0, 40, 0, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 25, 0, 0.2) 0%, transparent 50%);
    color: var(--text);
    overflow-x: hidden;
}

/* ==================== STEPS ==================== */
.step {
    display: none;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 16px;
    align-items: center;
    justify-content: center;
}
.step.active { display: flex; }

.step-scan, .step-result {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
    position: relative;
    overflow: hidden;
}
.step-scan.active, .step-result.active { display: flex; }

/* ==================== CARD (alert/input) ==================== */
.card {
    width: 100%;
    max-width: 420px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.12);
    text-align: center;
    animation: fadeUp 0.45s ease;
    margin: auto;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.icon-box {
    width: 70px; height: 70px; margin: 0 auto 18px;
    position: relative; display: flex; align-items: center; justify-content: center;
    color: var(--green);
}
.icon-box svg { width: 42px; height: 42px; position: relative; z-index: 1; }
.icon-pulse {
    position: absolute; inset: 0; border-radius: 50%;
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid rgba(0, 255, 65, 0.4);
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% { transform: scale(0.85); opacity: 1; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { opacity: 0; }
}

.card h1 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.4rem; letter-spacing: 2px; color: var(--green); margin-bottom: 14px;
}
.alert-text { font-size: 0.95rem; line-height: 1.55; color: #ccc; margin-bottom: 10px; }
.alert-text .hl { color: var(--green); font-weight: 700; }
.alert-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 22px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.badge {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
    padding: 7px 12px; border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px; color: var(--green); background: rgba(0, 255, 65, 0.06);
}

.btn {
    width: 100%; padding: 15px 20px;
    background: var(--green); color: #000; border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 800; letter-spacing: 0.8px;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.35);
}
.btn:hover:not(:disabled) { background: #33ff66; transform: translateY(-2px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-wa {
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    text-decoration: none; box-shadow: 0 0 20px rgba(37, 211, 102, 0.35);
}
.btn-wa:hover { background: #20bd5a; }

.logo { font-family: 'Share Tech Mono', monospace; font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.logo span { color: var(--green); }
.card h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.subtitle { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; }
.form { text-align: left; }
.field { margin-bottom: 16px; }
.field label {
    display: block; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px; color: var(--green); margin-bottom: 6px;
}
.field input {
    width: 100%; background: rgba(0,0,0,0.5); border: 1px solid rgba(0,255,65,0.2);
    border-radius: 10px; padding: 13px 14px; color: #fff; font-size: 0.95rem;
    font-family: inherit; outline: none;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,65,0.12); }
.field input::placeholder { color: #555; }
.input-url {
    display: flex; align-items: center; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,255,65,0.2); border-radius: 10px; overflow: hidden;
}
.input-url:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,255,65,0.12); }
.input-url span { padding: 13px 0 13px 14px; color: #555; font-size: 0.9rem; white-space: nowrap; }
.input-url input { border: none; background: transparent; padding-left: 4px; box-shadow: none !important; }
.check {
    display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px;
    cursor: pointer; font-size: 0.82rem; line-height: 1.4; color: #aaa;
}
.check input { display: none; }
.check .box {
    width: 20px; height: 20px; min-width: 20px; border: 2px solid #444;
    border-radius: 5px; margin-top: 1px; position: relative; transition: all 0.2s;
}
.check input:checked + .box { background: var(--green); border-color: var(--green); }
.check input:checked + .box::after {
    content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
    border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ==================== SCAN HUD ==================== */
.scan-hud {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 4px 8px; flex-shrink: 0;
}
.scan-status { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: #ccc; }
.scan-status .dot {
    width: 9px; height: 9px; background: var(--green); border-radius: 50%;
    animation: blink 1s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.scan-pct { font-family: 'Share Tech Mono', monospace; font-size: 1.15rem; color: var(--green); font-weight: 700; }
.progress {
    height: 5px; background: #111; border-radius: 10px; overflow: hidden;
    margin-bottom: 12px; flex-shrink: 0;
}
.progress .bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--green-dim), var(--green));
    border-radius: 10px; transition: width 0.4s ease;
    box-shadow: 0 0 12px var(--green-glow);
}

/* ==================== FLOATING WINDOWS ==================== */
.float-win {
    position: absolute;
    background: rgba(0, 12, 0, 0.92);
    border: 1px solid rgba(0, 255, 65, 0.28);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,65,0.08);
    animation: floatIn 0.5s ease;
}
@keyframes floatIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.win-term {
    top: 70px; left: 3%;
    width: min(420px, 48vw);
    height: 240px;
    animation: float1 8s ease-in-out infinite;
}
.win-recon {
    top: 60px; right: 3%;
    width: min(280px, 40vw);
    height: auto;
    animation: float2 9s ease-in-out infinite;
}
.win-browser {
    bottom: 70px; left: 5%;
    width: min(360px, 50vw);
    animation: float3 7s ease-in-out infinite;
}
.win-tools {
    bottom: 50px; right: 4%;
    width: min(400px, 48vw);
    height: 180px;
    animation: float4 8.5s ease-in-out infinite;
}

@keyframes float1 {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(8px, -6px); }
}
@keyframes float2 {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(-6px, 8px); }
}
@keyframes float3 {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(5px, 7px); }
}
@keyframes float4 {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(-8px, -5px); }
}

.panel-head {
    background: rgba(0, 40, 0, 0.6);
    padding: 8px 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem; color: var(--green);
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(0,255,65,0.15);
}
.panel-head .dots { display: flex; gap: 4px; }
.panel-head .dots i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.panel-head .dots i:nth-child(1) { background: #ff5f56; }
.panel-head .dots i:nth-child(2) { background: #ffbd2e; }
.panel-head .dots i:nth-child(3) { background: #27c93f; }

.panel-body {
    padding: 10px 12px;
    height: calc(100% - 36px);
    overflow-y: auto;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.68rem; line-height: 1.5; color: var(--green);
}
.panel-body .line { margin-bottom: 1px; word-break: break-all; }
.panel-body .line.warn { color: #ffcc00; }
.panel-body .line.err { color: #ff4444; }
.panel-body .line.info { color: #5dade2; }

.recon { display: flex; flex-direction: column; gap: 8px; height: auto; padding: 12px; }
.recon-line { display: flex; flex-direction: column; gap: 1px; }
.recon-line span { font-size: 0.6rem; color: #555; text-transform: uppercase; letter-spacing: 0.4px; }
.recon-line b { font-size: 0.75rem; color: var(--green); font-weight: 500; word-break: break-all; }

.browser-bar {
    background: rgba(0,40,0,0.6); padding: 8px 12px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid rgba(0,255,65,0.15);
}
.browser-bar.danger {
    background: rgba(40,0,0,0.7);
    border-bottom-color: rgba(255,45,45,0.3);
}
.browser-bar .dots { display: flex; gap: 4px; }
.browser-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #333; }
.browser-bar .dots i:nth-child(1) { background: #ff5f56; }
.browser-bar .dots i:nth-child(2) { background: #ffbd2e; }
.browser-bar .dots i:nth-child(3) { background: #27c93f; }
.browser-url {
    flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(0,255,65,0.2);
    border-radius: 6px; padding: 4px 10px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.7rem; color: var(--green);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.browser-bar.danger .browser-url {
    border-color: rgba(255,45,45,0.3); color: #ff8888;
}
.browser-content { padding: 14px; min-height: 140px; }
.browser-content.hacked {
    background: rgba(30,0,0,0.5);
    text-align: center; padding: 20px 14px;
}
.admin-login { max-width: 260px; margin: 0 auto; text-align: center; }
.admin-title { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.admin-field { text-align: left; margin-bottom: 8px; }
.admin-field label { display: block; font-size: 0.68rem; color: #888; margin-bottom: 3px; }
.admin-input {
    background: rgba(0,0,0,0.6); border: 1px solid rgba(0,255,65,0.25);
    border-radius: 6px; padding: 7px 10px;
    font-family: 'Share Tech Mono', monospace; font-size: 0.78rem; color: var(--green);
}
.admin-btn {
    margin-top: 10px; background: var(--green); color: #000;
    font-weight: 700; font-size: 0.78rem; padding: 7px; border-radius: 6px;
}
.bf-log {
    margin-top: 10px; font-family: 'Share Tech Mono', monospace;
    font-size: 0.65rem; color: #ff4444; text-align: left;
    max-height: 60px; overflow: hidden; line-height: 1.4;
}

.hacked-banner {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem; font-weight: 700; color: var(--red);
    letter-spacing: 1px; margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(255,45,45,0.5);
    animation: blink 1.2s infinite;
}
.hacked-msg { font-size: 0.82rem; color: #ffaaaa; line-height: 1.4; margin-bottom: 12px; }
.hacked-code {
    font-family: 'Share Tech Mono', monospace; font-size: 0.65rem;
    color: #ff6666; text-align: left; line-height: 1.4;
    max-height: 80px; overflow: hidden;
}

.scan-target-label {
    position: absolute; bottom: 10px; left: 0; right: 0;
    text-align: center; font-size: 0.78rem; color: #555; z-index: 5;
}
.scan-target-label strong { color: #999; }

/* ==================== RESULT PAGE ==================== */
.step-result {
    background: #0a0000;
}
.result-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,40,0,0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(180,0,0,0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, rgba(60,0,0,0.3) 0%, transparent 70%);
    animation: bgPulse 4s ease-in-out infinite;
}
@keyframes bgPulse {
    0%,100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.result-center {
    position: relative; z-index: 10;
    max-width: 400px; margin: auto; text-align: center;
    padding: 20px 16px;
}
.result-badge {
    display: inline-block;
    background: var(--red); color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 2px;
    padding: 6px 16px; border-radius: 6px; margin-bottom: 12px;
    box-shadow: 0 0 20px var(--red-glow);
    animation: badgePulse 1.5s infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 0 16px var(--red-glow); }
    50% { box-shadow: 0 0 30px rgba(255,45,45,0.7); }
}
.result-center h2 {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem; color: #ff6666; letter-spacing: 1px; margin-bottom: 16px;
}
.danger-stat {
    background: rgba(255,45,45,0.1);
    border: 1px solid rgba(255,45,45,0.35);
    border-radius: 14px; padding: 18px; margin-bottom: 16px;
}
.danger-stat .stat-num {
    font-family: 'Share Tech Mono', monospace;
    font-size: 3rem; font-weight: 700; color: var(--red);
    line-height: 1; text-shadow: 0 0 20px var(--red-glow);
}
.danger-stat .stat-label { font-size: 0.88rem; color: #ccaaaa; margin-top: 4px; }
.result-msg {
    font-size: 0.9rem; color: #bbb; line-height: 1.5; margin-bottom: 20px;
}
.result-msg strong { color: #eee; word-break: break-all; }
.result-footer { margin-top: 16px; font-size: 0.72rem; color: #555; }

.res-term {
    top: 8%; left: 2%;
    width: min(340px, 42vw); height: 200px;
    border-color: rgba(255,80,80,0.3);
    animation: float1 7s ease-in-out infinite;
}
.res-term .panel-head { background: rgba(40,0,0,0.6); color: #ff6666; border-bottom-color: rgba(255,80,80,0.2); }
.res-term .panel-body { color: #ff8888; }

.res-browser {
    top: 12%; right: 2%;
    width: min(320px, 42vw);
    border-color: rgba(255,80,80,0.3);
    animation: float2 8s ease-in-out infinite;
}

.res-alert {
    bottom: 8%; left: 3%;
    width: min(260px, 40vw);
    border-color: rgba(255,100,0,0.35);
    animation: float3 6.5s ease-in-out infinite;
}
.alert-mini { padding: 14px; }
.alert-mini-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem; color: var(--orange); font-weight: 700;
    margin-bottom: 10px; letter-spacing: 1px;
}
#alert-list {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem; color: #ffaa66; line-height: 1.55;
}

/* ==================== MOBILE ==================== */
@media (max-width: 700px) {
    .float-win {
        position: relative !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        width: 100% !important; max-width: 100%;
        margin-bottom: 10px;
        animation: none !important;
        height: auto !important;
    }
    .win-term, .win-tools, .res-term { height: 160px !important; }
    .win-term .panel-body, .win-tools .panel-body, .res-term .panel-body { height: 124px; }
    .step-scan, .step-result {
        overflow-y: auto;
        display: none;
        flex-direction: column;
    }
    .step-scan.active, .step-result.active { display: flex; }
    .result-center { order: -1; margin-bottom: 16px; }
    .scan-target-label { position: relative; bottom: auto; margin-top: 8px; }
}

@media (max-width: 400px) {
    .card { padding: 24px 16px; }
    .card h1 { font-size: 1.2rem; }
}