:root {
    --bg: #060817;
    --panel: rgba(12, 19, 45, .72);
    --line: rgba(124, 245, 255, .22);
    --cyan: #39f5ff;
    --blue: #5d7cff;
    --purple: #b35cff;
    --green: #47ffb2;
    --text: #edf7ff;
    --muted: #9aa9c5;
}

* { box-sizing: border-box; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: radial-gradient(circle at top left, #172052 0%, var(--bg) 34%, #03040b 100%);
    overflow-x: hidden;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -4;
    opacity: .35;
    background-image:
        linear-gradient(rgba(57,245,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,245,255,.08) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: gridMove 12s linear infinite;
}

.orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(38px);
    opacity: .35;
    z-index: -3;
    animation: floatOrb 10s ease-in-out infinite alternate;
}
.orb-one { width: 260px; height: 260px; background: var(--cyan); top: 8%; left: 8%; }
.orb-two { width: 360px; height: 360px; background: var(--purple); right: 4%; top: 28%; animation-delay: -4s; }
.orb-three { width: 220px; height: 220px; background: var(--green); left: 35%; bottom: 4%; animation-delay: -7s; }

.glass-card {
    background: linear-gradient(145deg, rgba(17, 28, 65, .86), rgba(8, 12, 30, .74));
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
    border-radius: 28px;
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(100%, 460px);
    padding: 36px;
    text-align: center;
    animation: cardIn .8s ease both;
}
.login-card h1,
.hero-card h2,
.search-panel h2,
.scan-panel h2,
.report-panel h2 {
    letter-spacing: -1px;
    font-weight: 800;
}
.brand-mark { display: flex; justify-content: center; }
.scanner-ring {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57,245,255,.18), rgba(93,124,255,.05));
    border: 1px solid rgba(57,245,255,.45);
    box-shadow: 0 0 38px rgba(57,245,255,.32);
    position: relative;
}
.scanner-ring::before,
.scanner-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(57,245,255,.28);
    border-radius: 50%;
    animation: ringPulse 2s infinite;
}
.scanner-ring::after { animation-delay: 1s; }
.scanner-ring i { font-size: 2.35rem; color: var(--cyan); }

.eyebrow {
    color: var(--green);
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: 2.5px;
    font-weight: 800;
    margin-bottom: .6rem;
}
.demo-input {
    background: rgba(255,255,255,.08) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #fff !important;
    border-radius: 16px !important;
}
.demo-input:focus {
    box-shadow: 0 0 0 .25rem rgba(57,245,255,.15) !important;
    border-color: rgba(57,245,255,.65) !important;
}
.form-floating label,
.form-label { color: #b8c7e6; }

.btn-neon {
    border: 0;
    color: #03121b;
    font-weight: 800;
    border-radius: 18px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    box-shadow: 0 0 26px rgba(57,245,255,.28);
    transition: .25s ease;
}
.btn-neon:hover { transform: translateY(-2px); filter: brightness(1.06); }
.demo-hint {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    color: #c8d9ff;
    font-size: .9rem;
}
.demo-hint span { color: var(--green); font-weight: 800; }

.app-navbar {
    background: rgba(5, 8, 20, .68);
    border-bottom: 1px solid rgba(57,245,255,.15);
    backdrop-filter: blur(18px);
}
.app-shell { max-width: 1380px; }
.hero-card { padding: 34px; }
.status-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(71,255,178,.08);
    color: #d8fff0;
    border: 1px solid rgba(71,255,178,.22);
}
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
    animation: dotPulse 1.4s infinite;
}
.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.module-card {
    min-height: 132px;
    text-align: left;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(57,245,255,.18);
    background: linear-gradient(145deg, rgba(18, 27, 61, .82), rgba(9, 12, 28, .72));
    color: #fff;
    box-shadow: 0 20px 45px rgba(0,0,0,.28);
    position: relative;
    overflow: hidden;
    transition: .25s ease;
}
.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(57,245,255,.12), transparent);
    transform: translateX(-110%);
    transition: .6s ease;
}
.module-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(57,245,255,.55);
    box-shadow: 0 25px 70px rgba(57,245,255,.14);
}
.module-card:hover::before { transform: translateX(110%); }
.module-card i { font-size: 2.1rem; color: var(--cyan); display: block; margin-bottom: 18px; }
.module-card span { font-size: 1.05rem; font-weight: 800; position: relative; z-index: 1; }
.module-card b { display: block; color: #9efcff; font-weight: 600; margin-top: 4px; font-size: .88rem; }
.module-card-all { grid-column: 1 / -1; min-height: 112px; background: linear-gradient(110deg, rgba(57,245,255,.18), rgba(179,92,255,.14)); }

.search-panel, .scan-panel, .report-panel { animation: cardIn .45s ease both; }
.neon-progress {
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.progress-bar { background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); color: #02121c; font-weight: 900; }

.radar {
    width: min(72vw, 310px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    border: 1px solid rgba(57,245,255,.35);
    background:
        radial-gradient(circle, transparent 0 20%, rgba(57,245,255,.08) 21% 22%, transparent 23% 45%, rgba(57,245,255,.08) 46% 47%, transparent 48%),
        linear-gradient(rgba(57,245,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,245,255,.08) 1px, transparent 1px);
    background-size: auto, 100% 50%, 50% 100%;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(57,245,255,.1), 0 0 55px rgba(57,245,255,.12);
}
.radar-sweep {
    position: absolute;
    inset: 50% 0 0 50%;
    background: linear-gradient(45deg, rgba(57,245,255,.7), transparent 55%);
    transform-origin: 0 0;
    animation: radarSpin 2.2s linear infinite;
}
.radar-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 18px var(--green);
    animation: blink 1.6s infinite alternate;
}
.d1 { top: 28%; left: 62%; }
.d2 { top: 58%; left: 34%; animation-delay: .5s; }
.d3 { top: 72%; left: 68%; animation-delay: 1s; }

.terminal-card { min-height: 460px; }
.terminal-header {
    color: #c5d7ff;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding-bottom: 14px;
    margin-bottom: 14px;
    font-weight: 700;
}
.terminal-header span {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 6px;
    background: rgba(255,255,255,.3);
}
.terminal-log {
    height: 390px;
    overflow: auto;
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: .92rem;
    color: #aef9ff;
}
.log-line { padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.log-line::before { content: '>'; color: var(--green); margin-right: 8px; }

.report-table-wrap { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.report-table { margin-bottom: 0; }
.summary-card {
    border-radius: 20px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    padding: 18px;
    height: 100%;
}
.summary-card i { color: var(--cyan); font-size: 1.6rem; }
.summary-card strong { display: block; margin-top: 8px; }
.badge-soft {
    color: #061018;
    background: var(--green);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
}

@keyframes gridMove { to { background-position: 42px 42px; } }
@keyframes floatOrb { to { transform: translate(40px, -35px) scale(1.08); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ringPulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes dotPulse { 50% { transform: scale(1.8); opacity: .45; } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes blink { from { opacity: .25; } to { opacity: 1; } }

@media (max-width: 768px) {
    .login-card { padding: 26px; }
    .modules-grid { grid-template-columns: 1fr; }
    .module-card-all { grid-column: auto; }
    .hero-card { padding: 26px; }
}

.device-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(57,245,255,.10), rgba(255,255,255,.04));
    border: 1px solid rgba(57,245,255,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.device-card-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--cyan);
    background: rgba(57,245,255,.10);
    border: 1px solid rgba(57,245,255,.25);
    box-shadow: 0 0 22px rgba(57,245,255,.14);
}
.device-card-icon i { font-size: 1.55rem; }
.device-card-title {
    font-weight: 900;
    color: #effbff;
    letter-spacing: .2px;
}
.device-grid {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 7px 12px;
    font-size: .88rem;
}
.device-grid span { color: #9fb4d8; }
.device-grid strong {
    color: #ffffff;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.device-grid .device-ok { color: var(--green); }
.mini-device-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(57,245,255,.08);
    border: 1px solid rgba(57,245,255,.16);
    color: #dffbff;
    font-size: .9rem;
}
.mini-device-line i { color: var(--cyan); }

@media (max-width: 520px) {
    .device-card { flex-direction: column; }
    .device-grid { grid-template-columns: 1fr; }
    .device-grid span { margin-top: 4px; }
}

.token-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #f7fbff;
    background: linear-gradient(135deg, rgba(57,245,255,.16), rgba(138,92,255,.18));
    border: 1px solid rgba(57,245,255,.28);
    box-shadow: 0 0 18px rgba(57,245,255,.12);
    font-size: .88rem;
}
.token-pill i { color: var(--cyan); }
.token-pill strong { color: var(--green); font-size: 1rem; }

.token-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.token-panel > div,
.billing-preview,
.token-confirm-box > div {
    border: 1px solid rgba(57,245,255,.18);
    background: rgba(9, 18, 36, .72);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.token-label,
.token-confirm-box span {
    display: block;
    color: #9fb4d8;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 5px;
}
.token-panel strong,
.token-confirm-box strong { color: #ffffff; font-size: 1.05rem; }

.billing-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, rgba(25, 195, 125, .10), rgba(57,245,255,.08));
}
.billing-preview i {
    color: var(--green);
    font-size: 1.4rem;
    margin-top: 2px;
}
.billing-preview strong {
    display: block;
    color: #f2fff9;
    margin-bottom: 4px;
}
.billing-preview span { color: #b7c7e8; }

.token-modal {
    color: #f7fbff;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(10,18,38,.98), rgba(18,28,58,.96));
    border: 1px solid rgba(57,245,255,.22);
    box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 45px rgba(57,245,255,.12);
}
.token-confirm-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 620px) {
    .token-panel,
    .token-confirm-box { grid-template-columns: 1fr; }
}

.install-callout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(57,245,255,.28);
    background: linear-gradient(135deg, rgba(57,245,255,.13), rgba(179,92,255,.10));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 45px rgba(57,245,255,.08);
    animation: installGlow 2.8s ease-in-out infinite alternate;
}
.install-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--cyan);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(57,245,255,.25);
    font-size: 1.45rem;
}
.install-callout strong { display: block; color: #fff; font-size: .98rem; }
.install-callout span { display: block; color: #bfd0f4; font-size: .82rem; line-height: 1.3; }
.install-mini-btn { border-radius: 14px; padding-inline: 14px; white-space: nowrap; }
.install-modal,
.token-modal {
    color: var(--text);
    background: linear-gradient(145deg, rgba(15, 25, 58, .98), rgba(7, 11, 29, .98));
    border: 1px solid rgba(57,245,255,.25);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.install-phone-visual {
    height: 150px;
    border-radius: 24px;
    border: 1px solid rgba(57,245,255,.22);
    background:
        radial-gradient(circle at 50% 30%, rgba(57,245,255,.26), transparent 34%),
        linear-gradient(135deg, rgba(57,245,255,.10), rgba(71,255,178,.07));
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}
.install-phone-visual i {
    font-size: 4.4rem;
    color: var(--cyan);
    filter: drop-shadow(0 0 22px rgba(57,245,255,.6));
    animation: phoneFloat 1.8s ease-in-out infinite alternate;
}
.install-phone-visual span {
    position: absolute;
    inset: auto 20% 25px 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    animation: scanLine 1.4s linear infinite;
}
.install-steps {
    padding: 12px 14px;
    border-radius: 16px;
    color: #cbd9ff;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    font-size: .92rem;
}
@keyframes installGlow {
    from { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 12px 35px rgba(57,245,255,.05); }
    to { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 55px rgba(57,245,255,.16); }
}
@keyframes phoneFloat {
    from { transform: translateY(4px) scale(.98); }
    to { transform: translateY(-4px) scale(1.02); }
}
@keyframes scanLine {
    from { transform: translateY(-45px); opacity: .35; }
    to { transform: translateY(45px); opacity: 1; }
}
@media (max-width: 520px) {
    .install-callout { align-items: flex-start; flex-wrap: wrap; }
    .install-mini-btn { width: 100%; }
}
.install-steps-highlight {
    border-color: rgba(71,255,178,.36) !important;
    box-shadow: 0 0 22px rgba(71,255,178,.12);
}

.dev-access-visual {
    min-height: 118px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: radial-gradient(circle at center, rgba(57,245,255,.17), rgba(255,255,255,.04));
    border: 1px solid rgba(57,245,255,.18);
    overflow: hidden;
    position: relative;
}
.dev-access-visual i {
    font-size: 2.4rem;
    color: var(--cyan);
    filter: drop-shadow(0 0 14px rgba(57,245,255,.45));
}
.dev-pulse {
    width: 88px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    box-shadow: 0 0 18px rgba(71,255,178,.7);
    animation: devScan 1.2s ease-in-out infinite alternate;
}
.dev-scope-list {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
}
.dev-scope-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbe8ff;
    font-size: .94rem;
}
.dev-scope-list i { color: var(--green); }
@keyframes devScan { to { transform: scaleX(1.24); opacity: .58; } }
