:root {
    --bg:#070a12;
    --panel:#0d1321;
    --panel-light:#111b2d;
    --border:#263651;
    --muted:#8495b3;
    --text:#f1f5ff;
    --blue:#48a5ff;
    --purple:#9471ff;
    --green:#42e5ad;
    --red:#ff687f;
    --amber:#ffcc75;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth}
body {
    margin:0;
    min-height:100vh;
    overflow-x:hidden;
    color:var(--text);
    background:
    radial-gradient(ellipse at 50% -15%,#26366a55,transparent 55%),
    radial-gradient(ellipse at 0% 65%,#173d7330,transparent 35%),
    var(--bg);
    font-family:"Inter",sans-serif;
    -webkit-font-smoothing:antialiased;
}
button,input {font:inherit}
button {cursor:pointer}
::selection {background:#586cff55}

/* Ambient animated background */
#particles {
position:fixed;
inset:0;
width:100%;
height:100%;
z-index:-1;
pointer-events:none;
}
.ambient {
    position:fixed;
    width:360px;
    height:360px;
    border-radius:50%;
    filter:blur(110px);
    opacity:.13;
    pointer-events:none;
    z-index:-1;
    animation:drift 14s ease-in-out infinite alternate;
}
.ambient.one {background:#236dff;top:8%;left:-220px}
.ambient.two {background:#7442ff;right:-240px;bottom:0;animation-delay:-7s}
@keyframes drift {
    to {transform:translate(65px,45px) scale(1.15)}
}
.grid-overlay {
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    opacity:.13;
    background-image:
    linear-gradient(#5777ad18 1px,transparent 1px),
    linear-gradient(90deg,#5777ad18 1px,transparent 1px);
    background-size:48px 48px;
    mask-image:linear-gradient(to bottom,black,transparent 85%);
}

/* Page */
.container {
    width:min(100% - 36px,1040px);
    margin:auto;
    padding:36px 0 30px;
}

/* Top bar */
.topbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-bottom:46px;
}
.brand {
    display:flex;
    align-items:center;
    gap:12px;
    font:700 17px "Space Grotesk",sans-serif;
    letter-spacing:-.5px;
}
.brand-symbol {
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    border:1px solid #547aff77;
    border-radius:13px;
    background:linear-gradient(145deg,#318cff30,#815bff30);
    box-shadow:inset 0 0 18px #528bff13,0 0 25px #3d65ff0c;
}
.brand-symbol svg {width:25px;color:#80b8ff}
.brand span {color:#82aaff}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: #9fadc6;
    border: 1px solid #293951;
    border-radius: 30px;
    background: #101827aa;
    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e88;
}

.status-pill.offline {
    color: #f87171;
    border-color: #713b42;
    background: #27151aaa;
}

.status-pill.offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px #ef444488;
}

@keyframes pulse {
    50% {box-shadow:0 0 3px #42e5ad;opacity:.55}
}

/* Hero */
.hero {
    position:relative;
    text-align:center;
    margin:0 auto 35px;
}
.hero-orbit {
    position:relative;
    width:104px;
    height:104px;
    margin:0 auto 23px;
    display:grid;
    place-items:center;
}
.orbit-ring {
    position:absolute;
    inset:0;
    border:1px solid #698dff35;
    border-radius:50%;
    animation:rotate 18s linear infinite;
}
.orbit-ring:before {
    content:"";
    position:absolute;
    top:10px;left:15px;
    width:7px;height:7px;
    border-radius:50%;
    background:#6caeff;
    box-shadow:0 0 14px #6caeff;
}
.orbit-ring.r2 {
    inset:11px;
    border-style:dashed;
    border-color:#9b76ff40;
    animation-direction:reverse;
    animation-duration:28s;
}
.orbit-core {
    width:65px;height:65px;
    display:grid;place-items:center;
    border-radius:22px;
    background:linear-gradient(145deg,#1e4d91,#3e2c85);
    border:1px solid #8ab3ff65;
    box-shadow:0 0 50px #367bff2c,inset 0 1px #ffffff22;
}
.orbit-core svg {width:36px;height:36px}
@keyframes rotate {to{transform:rotate(360deg)}}

.hero h1 {
    margin:0;
    font:700 clamp(35px,6vw,53px)/1.08 "Space Grotesk",sans-serif;
    letter-spacing:-2.4px;
}
.hero h1 span {
    color:transparent;
    background:linear-gradient(100deg,#65b7ff 10%,#9280ff 80%);
    background-clip:text;
    -webkit-background-clip:text;
}
.hero p {
    max-width:460px;
    margin:15px auto 0;
    color:#8c9bb7;
    font-size:14px;
    line-height:1.8;
}
.hero-tag {
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:19px;
    color:#a9b9d5;
    font-size:10px;
    font-weight:600;
    letter-spacing:2px;
}
.hero-tag:before,.hero-tag:after {
    content:"";
    width:22px;height:1px;
    background:linear-gradient(90deg,transparent,#536d9b);
}
.hero-tag:after {transform:rotate(180deg)}

/* Stats */
.stats {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:13px;
    margin-bottom:35px;
}
.stat {
    position:relative;
    min-width:0;
    padding:20px 19px;
    overflow:hidden;
    border:1px solid #25344e;
    border-radius:17px;
    background:linear-gradient(145deg,#111a2bdf,#0b111edb);
    box-shadow:inset 0 1px #ffffff05;
    transition:transform .25s,border-color .25s;
}
.stat:hover {transform:translateY(-3px);border-color:#47618b}
.stat:after {
    content:"";
    position:absolute;
    width:110px;height:110px;
    right:-55px;top:-65px;
    border-radius:50%;
    background:var(--glow,#398cff);
    opacity:.11;
    filter:blur(25px);
}
.stat-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:19px;
}
.stat-icon {
    width:38px;height:38px;
    display:grid;place-items:center;
    border:1px solid var(--icon-border);
    border-radius:12px;
    background:var(--icon-bg);
    color:var(--icon-color);
}
.stat-icon svg {width:19px;height:19px}
.stat-trend {
    color:#7e94b6;
    font-size:10px;
    white-space:nowrap;
}
.stat-label {
    color:#8e9fbc;
    font-size:11px;
    font-weight:500;
}
.stat-value {
    margin-top:7px;
    font:700 clamp(20px,3vw,28px)/1.2 "Space Grotesk",sans-serif;
    letter-spacing:-1px;
    white-space:nowrap;
}
.stat-foot {
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:11px;
    color:#8394b0;
    font-size:10px;
}
.mini-line {width:6px;height:6px;border-radius:50%;background:var(--green)}

/* Workspace */
.workspace {
    display:grid;
    grid-template-columns:minmax(0,1fr) 230px;
    gap:17px;
    align-items:stretch;
}
.form-card,.side-card {
    position:relative;
    min-width:0;
    overflow:hidden;
    border:1px solid #2a3a58;
    border-radius:21px;
    background:linear-gradient(145deg,#101a2bfa,#0b111efc);
    box-shadow:0 25px 70px #00000022,inset 0 1px #ffffff06;
}
.form-card {padding:29px}
.form-card:before {
    content:"";
    position:absolute;
    left:12%;right:12%;top:0;
    height:1px;
    background:linear-gradient(90deg,transparent,#6d8bff88,transparent);
}
.card-heading {
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:26px;
}
.heading-icon {
    flex-shrink:0;
    width:51px;height:51px;
    display:grid;place-items:center;
    color:#8cc8ff;
    border:1px solid #438bff38;
    border-radius:16px;
    background:linear-gradient(145deg,#1b3d68,#25214d);
    box-shadow:0 0 30px #3c83ff0b;
}
.heading-icon svg {width:25px;height:25px}
.card-heading h2 {
    margin:0 0 6px;
    font:600 23px "Space Grotesk",sans-serif;
    letter-spacing:-.6px;
}
.card-heading p {margin:0;color:#8798b6;font-size:12px}
.step-label {
    margin-left: auto;
    align-self: flex-start;
    padding: 6px 9px;
    border: 1px solid #30435f;
    border-radius: 7px;
    color: #91a8cb;
    font-size: 10px;
    letter-spacing: 1px;

    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.step-separator {
    margin: 0 5px;
    opacity: .35;
}

.step-unit {
    font-size: 9px;
    opacity: .55;
    letter-spacing: .5px;
}


/* =========================
 I NPUT* FIELDS — DARK + LIGHT
 ========================= */

.field {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0 0 13px;
    box-sizing: border-box;

    --field-bg: #0c1423;
    --field-bg-focus: #0f192a;
    --field-icon-bg: #131e31;
    --field-border: #263752;
    --field-icon-border: #202d43;
    --field-text: #f1f5ff;
    --field-label: #b3c3dc;
    --field-placeholder: #607491;
    --field-icon-color: #8bbdff;
    --field-focus: #4c92ff;
    --field-caret: #65b7ff;
    --field-focus-ring: #398bff20;
}

.field-box {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    min-height: 73px;
    box-sizing: border-box;

    border: 1px solid var(--field-border);
    border-radius: 14px;
    background: var(--field-bg);

    cursor: text;
    pointer-events: auto;
    transition: border-color .15s ease, background .15s ease,
    box-shadow .15s ease;
    animation: none !important;
}

.field-box:focus-within {
    border-color: var(--field-focus);
    background: var(--field-bg-focus);
    box-shadow: 0 0 0 3px var(--field-focus-ring);
}

/* Icon column */
.field-icon {
    display: grid;
    place-items: center;
    flex: 0 0 60px;
    width: 60px;
    align-self: stretch;
    box-sizing: border-box;

    color: var(--field-icon-color);
    border-right: 1px solid var(--field-icon-border);
    border-radius: 13px 0 0 13px;
    background: var(--field-icon-bg);

    pointer-events: none;
    user-select: none;
}

.field-icon svg {
    display: block;
    width: 21px;
    height: 21px;
    pointer-events: none;
}

/* Content column */
.field-content {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 11px 15px;
    box-sizing: border-box;

    cursor: text;
    pointer-events: auto;
}

/* Label */
.field-content label {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 7px;

    color: var(--field-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    line-height: 1.3;

    cursor: text;
    user-select: none;
}

/* Input */
.field-content input {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 24px;
    box-sizing: border-box;

    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;

    color: var(--field-text);
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;

    cursor: text;
    pointer-events: auto;
    touch-action: manipulation;
    caret-color: var(--field-caret);

    transition: none !important;
    animation: none !important;
    appearance: auto;
    -webkit-appearance: auto;
}

/* Placeholder */
.field-content input::placeholder {
    color: var(--field-placeholder);
    opacity: 1;
}

/* Keep browser focus immediate and clean */
.field-content input:focus,
.field-content input:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
}

/* Number input controls */
.field-content input[type="number"] {
    appearance: auto;
    -webkit-appearance: auto;
}

.field-content input[type="number"]::-webkit-inner-spin-button,
.field-content input[type="number"]::-webkit-outer-spin-button {
    opacity: .8;
}

/* Prevent autofill from making the input unreadable */
.field-content input:-webkit-autofill,
.field-content input:-webkit-autofill:hover,
.field-content input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--field-text);
    caret-color: var(--field-caret);
    transition: background-color 999999s ease-out;
}

/* =========================
 L IGHT* THEME
 ========================= */

html[data-theme="light"] .field,
body[data-theme="light"] .field,
html.light .field,
body.light .field,
.light-theme .field,
[data-theme="light"] .field {
    --field-bg: #ffffff;
    --field-bg-focus: #ffffff;
    --field-icon-bg: #f1f5f9;
    --field-border: #d7deea;
    --field-icon-border: #e2e8f0;
    --field-text: #172033;
    --field-label: #526179;
    --field-placeholder: #94a3b8;
    --field-icon-color: #526fe5;
    --field-focus: #6366f1;
    --field-caret: #4f46e5;
    --field-focus-ring: rgba(99, 102, 241, .13);
}

/* =========================
 M OBIL*E
 ========================= */

@media (max-width: 480px) {
    .field-box {
        min-height: 70px;
    }

    .field-icon {
        flex-basis: 50px;
        width: 50px;
    }

    .field-content {
        padding: 10px 12px;
    }

    .field-content input {
        font-size: 16px;
    }
}




/* Captcha */
.captcha-panel {
    margin:22px 0 19px;
    padding:16px;
    border:1px solid #293a57;
    border-radius:15px;
    background:linear-gradient(120deg,#111c2e,#0c1422);
}
.captcha-top {
    display:flex;
    align-items:center;
    gap:11px;
    margin-bottom:14px;
}
.captcha-shield {
    display:grid;place-items:center;
    width:38px;height:38px;
    color:#a89aff;
    border-radius:11px;
    background:#29214a;
    border:1px solid #6d5ab644;
}
.captcha-shield svg {width:21px}
.captcha-description {flex:1;min-width:0}
.captcha-description strong {
    display:block;
    margin-bottom:5px;
    font-size:12px;
    font-weight:600;
}
.captcha-description small {color:#8295b4;font-size:10px}
.captcha-code {
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:104px;
    height:43px;
    padding:0 8px;
    color:#d2caff;
    border:1px solid #625bb0;
    border-radius:8px;
    background:
    repeating-linear-gradient(135deg,transparent 0 8px,#8a83ff13 9px 10px),
    #211e43;
    font:700 italic 20px "Space Grotesk",sans-serif;
    letter-spacing:4px;
    text-shadow:0 0 14px #9884ff80;
    user-select:none;
}
.icon-button {
    display:grid;place-items:center;
    width:37px;height:37px;flex-shrink:0;
    border:1px solid #30415d;
    border-radius:11px;
    color:#b5c8e6;
    background:#172238;
    transition:background .2s,transform .3s;
}
.icon-button:hover {background:#253653}
.icon-button svg {width:17px}
.icon-button:hover svg {transform:rotate(45deg)}
.captcha-input {
    width:100%;
    height:47px;
    padding:0 13px;
    color:var(--text);
    border:1px solid #2b3b56;
    border-radius:10px;
    outline:0;
    background:#080f1b;
    font-size:13px;
}
.captcha-input:focus {border-color:#6b70f7;box-shadow:0 0 0 3px #7262ff12}

/* Submit */
.submit-btn {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    width:100%;
    min-height:59px;
    overflow:hidden;
    color:white;
    border:1px solid #8c8aff;
    border-radius:13px;
    background:linear-gradient(105deg,#6549f5,#377dff 65%,#328fff);
    box-shadow:0 10px 30px #4c53ff25,inset 0 1px #ffffff40;
    font-size:14px;
    font-weight:700;
    transition:filter .2s,transform .2s,box-shadow .2s;
}
.submit-btn:before {
    content:"";
    position:absolute;
    top:0;bottom:0;left:-100%;
    width:65%;
    background:linear-gradient(90deg,transparent,#ffffff20,transparent);
    transform:skewX(-22deg);
    transition:left .65s;
}
.submit-btn:hover:before {left:150%}
.submit-btn:hover {filter:brightness(1.1);transform:translateY(-1px);box-shadow:0 13px 35px #4c53ff38}
.submit-btn:disabled {opacity:.65;cursor:wait;transform:none}
.submit-btn svg {width:19px;height:19px}
.security-note {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    margin:14px 0 0;
    color:#788ba9;
    font-size:10px;
    line-height:1.6;
}
.security-note svg {width:13px;height:13px;color:#5fbd9f}

/* Side panel */
.side-card {padding:23px 19px}
.side-label {
    color:#8297b8;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.7px;
}
.signal-graphic {
    position:relative;
    display:grid;
    place-items:center;
    height:166px;
    margin:14px 0;
    overflow:hidden;
    border:1px solid #293b5b;
    border-radius:14px;
    background:
    radial-gradient(ellipse at center,#273a7355,transparent 65%),
    #0a1221;
}
.signal-graphic:before,.signal-graphic:after {
    content:"";
    position:absolute;
    width:118px;height:118px;
    border:1px solid #5788ff33;
    border-radius:50%;
    animation:sonar 4s ease-out infinite;
}
.signal-graphic:after {animation-delay:2s}
@keyframes sonar {
    0% {transform:scale(.45);opacity:.7}
    100% {transform:scale(1.4);opacity:0}
}
.signal-core {
    position:relative;z-index:1;
    width:67px;height:67px;
    display:grid;place-items:center;
    color:#94caff;
    border:1px solid #528fff75;
    border-radius:21px;
    background:linear-gradient(145deg,#1a4577,#282252);
    box-shadow:0 0 35px #438bff24;
}
.signal-core svg {width:31px}
.signal-line {
    position:absolute;
    height:1px;
    width:80%;
    background:linear-gradient(90deg,transparent,#5386ff55,transparent);
}
.signal-line.l1 {top:32%}
.signal-line.l2 {top:68%}
.side-title {
    margin:20px 0 7px;
    font:600 17px "Space Grotesk",sans-serif;
}
.side-copy {
    margin:0;
    color:#8294b1;
    font-size:11px;
    line-height:1.8;
}
.feature-list {
    display:grid;
    gap:13px;
    margin-top:19px;
}
.feature {
    display:flex;
    align-items:center;
    gap:10px;
    color:#a7b8d3;
    font-size:11px;
}
.feature-check {
    width:24px;height:24px;
    display:grid;place-items:center;
    color:#64ddb1;
    border:1px solid #2c6557;
    border-radius:8px;
    background:#14362f;
}
.feature-check svg {width:13px}

/* Footer */
.footer {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    margin-top:35px;
    color:#7386a8;
    font-size:10px;
    font-weight:600;
    letter-spacing:2.5px;
}
.footer-line {height:1px;width:70px;background:linear-gradient(90deg,transparent,#34476a)}
.footer-mark {color:#9d86ff;font-size:18px}

/* ALERTS ABOVE FORM HUB */
.alerts {
    position: relative;
    z-index: 10;
    top: auto;
    right: auto;
    width: 100%;
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid;
    border-radius: 12px;
    background: #101827;
    box-shadow: 0 8px 24px #0004;
    animation: toastIn .25s ease-out;
}

.alert.success {
    border-color: #277c60;
    background: linear-gradient(110deg, #12352d, #101827);
}

.alert.error {
    border-color: #c94c60;
    background: linear-gradient(110deg, #3b1925, #101827);
}

.alert.warning {
    border-color: #a47b32;
    background: linear-gradient(110deg, #382b18, #101827);
}

.alert-body strong {
    display: block;
    margin: 3px 0 5px;
    color: #f1f5ff;
    font-size: 13px;
}

.alert-body p {
    margin: 0;
    color: #c0cce0;
    font-size: 12px;
    line-height: 1.6;
}

.alert-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #c0cce0;
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .alerts {
        margin-bottom: 16px;
    }

    .alert {
        padding: 12px;
    }
}

/* Full-screen translucent overlay */
#challenge_modal.modal-overlay {
position: fixed !important;
inset: 0 !important;
width: 100% !important;
height: 100% !important;
z-index: 99999 !important;

display: none;
align-items: center !important;
justify-content: center !important;

padding: 20px;
box-sizing: border-box;
background: rgba(3, 6, 17, 0.45);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}

#challenge_modal.modal-overlay.open {
display: flex !important;
}

/* Challenge dialog — avoid Bootstrap's .modal class */
#challenge_modal .modal {
position: relative !important;
inset: auto !important;
margin: auto !important;
transform: none;

width: min(430px, 100%);
max-height: calc(100vh - 40px);
overflow-y: auto;
box-sizing: border-box;

padding: 30px;
text-align: center;
color: #e8efff;
border: 1px solid #3a4d75;
border-radius: 22px;
background:
radial-gradient(ellipse at 50% 0, #34386c55, transparent 60%),
#0d1525;
box-shadow: 0 30px 100px #0008;
animation: challengeModalIn .25s ease-out;
}

@keyframes challengeModalIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media(max-width:800px) {
    .workspace {grid-template-columns:1fr}
    .side-card {display:grid;grid-template-columns:1fr 1fr;gap:12px 22px}
    .side-label {grid-column:1/-1}
    .signal-graphic {grid-row:2/5;margin:0;height:175px}
    .side-title {align-self:end;margin:0}
    .side-copy {align-self:start}
    .feature-list {grid-column:1/-1;grid-template-columns:repeat(3,1fr)}
}
@media(max-width:600px) {
    .container {width:calc(100% - 24px);padding-top:22px}
    .topbar {margin-bottom:34px}
    .brand {font-size:15px}
    .brand-symbol {width:37px;height:37px}
    .status-pill {font-size:10px;padding:8px 10px}
    .hero {margin-bottom:29px}
    .hero-orbit {width:85px;height:85px}
    .orbit-core {width:56px;height:56px;border-radius:18px}
    .hero h1 {letter-spacing:-1.7px}
    .hero p {font-size:12px;max-width:320px}
    .stats {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:23px}
    .stat {padding:15px}
    .stat-top {margin-bottom:12px}
    .stat-value {font-size:25px}
    .form-card {padding:21px 15px}
    .card-heading h2 {font-size:21px}
    .card-heading p {font-size:11px}
    .step-label {font-size:9px;padding:5px 6px}
    .field-icon {width:51px}
    .field-content {padding:11px 12px}
    .captcha-panel {padding:12px}
    .captcha-top {gap:7px}
    .captcha-code {min-width:87px;height:40px;font-size:18px;letter-spacing:3px}
    .captcha-description small {font-size:9px}
    .icon-button {width:34px;height:34px}
    .side-card {padding:17px;grid-template-columns:1fr}
    .side-label,.feature-list {grid-column:auto}
    .signal-graphic {grid-row:auto;height:140px}
    .side-title {margin-top:3px}
    .feature-list {grid-template-columns:1fr}
    .footer {font-size:9px;letter-spacing:1.7px}
    .footer-line {width:36px}
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        scroll-behavior:auto!important;
        transition-duration:.01ms!important;
    }
}

/* Bottom information sections */
.info-section {
    margin-top: 30px;
    padding: 27px;
    border: 1px solid #263651;
    border-radius: 20px;
    background: linear-gradient(145deg, #101a2bdf, #0b111eeb);
    box-shadow: inset 0 1px #ffffff05;
}

.info-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.info-heading-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    color: #91baff;
    border: 1px solid #477aff44;
    border-radius: 12px;
    background: #192b49;
    font-size: 19px;
}

.info-heading h2 {
    margin: 0 0 5px;
    color: #f1f5ff;
    font: 600 21px "Space Grotesk", sans-serif;
}

.info-heading p {
    margin: 0;
    color: #8495b3;
    font-size: 12px;
    line-height: 1.7;
}

.info-copy {
    color: #9aaac4;
    font-size: 13px;
    line-height: 1.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.info-item {
    padding: 17px;
    border: 1px solid #263651;
    border-radius: 14px;
    background: #0a1220;
}

.info-item h3 {
    margin: 12px 0 7px;
    color: #e5edff;
    font-size: 13px;
}

.info-item p {
    margin: 0;
    color: #8495b3;
    font-size: 12px;
    line-height: 1.8;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid #3a5276;
    border-radius: 7px;
    color: #a9caff;
    background: #172740;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
}

.info-badge.green {
    color: #7ce8c2;
    border-color: #2b6656;
    background: #102b27;
}

.info-badge.purple {
    color: #c0adff;
    border-color: #51447f;
    background: #211b3b;
}

.info-badge.amber {
    color: #ffd58c;
    border-color: #6a5434;
    background: #2a2114;
}

.info-badge.blue {
    color: #93c5fd;
    border-color: #315b85;
    background: #17283d;
}

.info-badge.cyan {
    color: #8be9f5;
    border-color: #286575;
    background: #142b33;
}

.info-badge.red {
    color: #fca5a5;
    border-color: #713d46;
    background: #321c23;
}

.info-badge.orange {
    color: #ffb38a;
    border-color: #75452e;
    background: #332117;
}

.info-badge.pink {
    color: #f9a8d4;
    border-color: #713e60;
    background: #321b2c;
}

.info-badge.teal {
    color: #80e5dc;
    border-color: #2b6863;
    background: #142c2a;
}

.info-badge.indigo {
    color: #a5b4fc;
    border-color: #454d85;
    background: #1d203b;
}

.info-badge.rose {
    color: #fda4af;
    border-color: #753d4b;
    background: #321b24;
}

.info-badge.lime {
    color: #bef264;
    border-color: #526b30;
    background: #242d18;
}

.info-badge.gray {
    color: #cbd5e1;
    border-color: #475569;
    background: #1e293b;
}

.info-badge.mint {
    color: #a7f3d0;
    border-color: #36745e;
    background: #183229;
}

.info-badge.violet {
    color: #d8b4fe;
    border-color: #69458a;
    background: #2b1d3b;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    padding: 17px 18px;
    border: 1px solid #263651;
    border-radius: 13px;
    background: #0b1321;
}

.faq-item h3 {
    margin: 0 0 8px;
    color: #e6edff;
    font-size: 13px;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: #8d9fbb;
    font-size: 12px;
    line-height: 1.8;
}

.info-note {
    margin-top: 16px;
    padding: 13px 15px;
    border-left: 3px solid #568fff;
    border-radius: 0 9px 9px 0;
    color: #9eafca;
    background: #13213a;
    font-size: 11px;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .info-section {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-heading h2 {
        font-size: 19px;
    }
}

/* Theme toggle */
.topbar {
    flex-wrap: wrap;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 13px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s, background .2s;
}

.theme-toggle:hover {
    border-color: var(--blue);
}

.theme-icon {
    font-size: 17px;
    line-height: 1;
}

/* Light theme */
html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f5fb;
    --panel: #ffffff;
    --panel-light: #e9eef8;
    --border: #d6deec;
    --muted: #66758e;
    --text: #172238;
    --blue: #246fe5;
    --purple: #7052d9;
    --green: #128b69;
    --red: #d9435e;
    --amber: #9a650b;
}

html[data-theme="light"] body {
    color: var(--text);
    background:
    radial-gradient(ellipse at 50% -15%, #cbdcff 0%, transparent 55%),
    radial-gradient(ellipse at 0% 65%, #dce9ff 0%, transparent 35%),
    var(--bg);
}

html[data-theme="light"] .grid-overlay {
    opacity: .18;
    background-image:
    linear-gradient(#8ba1c51c 1px, transparent 1px),
    linear-gradient(90deg, #8ba1c51c 1px, transparent 1px);
}

html[data-theme="light"] .status-pill,
html[data-theme="light"] .theme-toggle {
    color: #465570;
    border-color: #d4deed;
    background: #ffffffc9;
}

html[data-theme="light"] .stat,
html[data-theme="light"] .form-card,
html[data-theme="light"] .side-card,
html[data-theme="light"] .info-section {
    color: #172238;
    border-color: #d6deec;
    background: linear-gradient(145deg, #ffffff, #f8faff);
    box-shadow: 0 12px 35px #31476b0c;
}

html[data-theme="light"] .stat-label,
html[data-theme="light"] .stat-trend,
html[data-theme="light"] .stat-foot,
html[data-theme="light"] .card-heading p,
html[data-theme="light"] .side-copy,
html[data-theme="light"] .info-heading p,
html[data-theme="light"] .info-copy,
html[data-theme="light"] .info-item p,
html[data-theme="light"] .faq-item p {
    color: #66758e;
}

html[data-theme="light"] .field-box,
html[data-theme="light"] .info-item,
html[data-theme="light"] .faq-item {
    border-color: #d5deed;
    background: #f6f8fd;
}

html[data-theme="light"] .field-box:focus-within {
    border-color: #4386ef;
    background: #ffffff;
    box-shadow: 0 0 0 3px #4386ef20;
}

html[data-theme="light"] .field-icon {
    color: #326dc8;
    border-color: #dbe3f0;
    background: #eaf0fb;
}

html[data-theme="light"] .field-content label {
    color: #53627b;
}

html[data-theme="light"] .field-content input,
html[data-theme="light"] .captcha-input {
    color: #172238;
}

html[data-theme="light"] input::placeholder {
    color: #8a97ac;
}

html[data-theme="light"] .captcha-panel {
    border-color: #d6deec;
    background: linear-gradient(120deg, #f4f7fd, #ffffff);
}

html[data-theme="light"] .captcha-description strong,
html[data-theme="light"] .info-heading h2,
html[data-theme="light"] .info-item h3,
html[data-theme="light"] .faq-item h3,
html[data-theme="light"] .card-heading h2,
html[data-theme="light"] .side-title {
    color: #172238;
}

html[data-theme="light"] .captcha-description small {
    color: #66758e;
}

html[data-theme="light"] .captcha-input {
    border-color: #d3ddec;
    background: #ffffff;
}

html[data-theme="light"] .signal-graphic {
    border-color: #d6deec;
    background:
    radial-gradient(ellipse at center, #dbe7ff, transparent 65%),
    #f4f7fd;
}

html[data-theme="light"] .info-badge {
    color: #245eae;
    border-color: #c6d8f4;
    background: #eaf2ff;
}

html[data-theme="light"] .info-badge.green {
    color: #147555;
    border-color: #b9e5d5;
    background: #e6f7f0;
}

html[data-theme="light"] .info-badge.purple {
    color: #6243b4;
    border-color: #d7cafa;
    background: #f0ebff;
}

html[data-theme="light"] .info-badge.amber {
    color: #87560a;
    border-color: #ead6ae;
    background: #fff5df;
}

html[data-theme="light"] .info-note {
    color: #405878;
    border-color: #4d87ed;
    background: #eaf2ff;
}

html[data-theme="light"] .modal {
    color: #172238;
    border-color: #d6deec;
    background: #ffffff;
}

html[data-theme="light"] .modal h2 {
    color: #172238;
}

html[data-theme="light"] .modal p {
    color: #66758e;
}

html[data-theme="light"] .modal-close,
html[data-theme="light"] .ad-dismiss {
    color: #465570;
    border-color: #d6deec;
    background: #f3f6fc;
}

html[data-theme="light"] .footer {
    color: #71809a;
}

@media (max-width: 600px) {
    .theme-toggle {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }
}

/* COMPACT TOP WEBSITES LIST */
.top-websites {
    margin: 20px 0;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.websites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.websites-title {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
}

.websites-subtitle {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.websites-label {
    color: var(--amber);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.websites-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.website-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 11px;
    transition: border-color .2s ease;
}

.website-card:hover {
    border-color: var(--blue);
}

.website-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    height: 38px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 20px;
}

.website-info {
    flex: 1;
    min-width: 0;
}

.website-name {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.website-url {
    margin-top: 2px;
    color: var(--blue);
    font-size: 11px;
}

.website-description {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.website-visit {
    flex-shrink: 0;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.website-visit:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .top-websites {
        padding: 13px;
    }

    .website-card {
        gap: 9px;
        padding: 10px;
    }

    .website-visit {
        font-size: 10px;
    }
}

.website-logo {
    font-family: "Apple Color Emoji", "Segoe UI Emoji",
    "Noto Color Emoji", sans-serif !important;
    font-size: 22px;
    line-height: 1;
    font-style: normal;
    font-weight: normal;
}

.website-name {
    font-family: inherit;
}

.website-card {
    display: flex;
    align-items: center;
}

.website-logo,
.websites-title-icon {
    flex-shrink: 0;
}


.history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    color: var(--text, #e7edf7);
    background: var(--surface, #111827);
    border: 1px solid var(--border, #263247);
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.history-toggle:hover {
    border-color: var(--accent, #6c7cff);
}

.history-title {
    color: var(--text, #e7edf7);
}

.history-subtitle {
    display: block;
    margin-top: 3px;
    color: var(--muted, #98a8c2);
    font-size: 11px;
}

.history-count {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 7px;
    background: var(--border, #263247);
    color: var(--text, #e7edf7);
    font-size: 11px;
}

.history-arrow {
    color: var(--muted, #8493ad);
    transition: transform .2s;
}

.history-toggle.is-open .history-arrow {
    transform: rotate(180deg);
}

.history-menu {
    margin-top: 8px;
    padding: 12px;
    background: var(--surface, #111827);
    color: var(--text, #e7edf7);
    border: 1px solid var(--border, #263247);
    border-radius: 12px;
}

.history-menu[hidden] {
    display: none !important;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted, #98a8c2);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.history-clear {
    border: 0;
    background: transparent;
    color: var(--danger, #ff8798);
    font: inherit;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.history-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px;
    margin-top: 7px;
    border: 1px solid var(--border, #263247);
    border-radius: 9px;
    background: var(--input-bg, var(--surface, #111827));
    color: var(--text, #e7edf7);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.history-list-item:hover {
    border-color: var(--accent, #6677ff);
}

.history-details {
    min-width: 0;
}

.history-ip {
    display: block;
    color: var(--text, #e7edf7);
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.history-meta {
    display: block;
    margin-top: 5px;
    color: var(--muted, #8c9bb4);
    font-size: 11px;
}

.history-restore {
    flex-shrink: 0;
    color: var(--accent, #aab7ff);
    font-size: 11px;
}

.history-empty {
    padding: 18px 8px;
    color: var(--muted, #8190a8);
    font-size: 12px;
    text-align: center;
}

/* Light theme overrides */
[data-theme="light"] .history-toggle,
[data-theme="light"] .history-menu,
[data-theme="light"] .history-list-item {
    color: #202b3c;
    background: #ffffff;
    border-color: #d8deea;
}

[data-theme="light"] .history-title,
[data-theme="light"] .history-ip {
    color: #202b3c;
}

[data-theme="light"] .history-subtitle,
[data-theme="light"] .history-header,
[data-theme="light"] .history-meta,
[data-theme="light"] .history-empty,
[data-theme="light"] .history-arrow {
    color: #68758a;
}

[data-theme="light"] .history-count {
    color: #34415a;
    background: #edf1f8;
}

[data-theme="light"] .history-list-item:hover {
    background: #f3f6fc;
    border-color: var(--accent, #6677ff);
}

[data-theme="light"] .history-restore {
    color: #4f5fd5;
}

[data-theme="light"] .history-clear {
    color: #c43250;
}


.history-panel {
    position: relative;
    width: 100%;
    margin: 0 0 18px;
}

.geoip-panel {
    margin-top: 12px;
    padding: 16px;
    color: var(--text, #e7edf7);
    background: var(--surface, #111827);
    border: 1px solid var(--border, #263247);
    border-radius: 14px;
    animation: geoipFadeIn .2s ease;
}

.geoip-panel[hidden] {
    display: none !important;
}

.geoip-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.geoip-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--geoip-accent-bg, #202b48);
    color: var(--accent, #8b9aff);
    font-size: 26px;
}

.geoip-heading {
    flex: 1;
    min-width: 0;
}

.geoip-label {
    margin-bottom: 4px;
    color: var(--muted, #98a8c2);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
}

.geoip-location {
    color: var(--text, #e7edf7);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.geoip-address {
    margin-top: 4px;
    color: var(--muted, #98a8c2);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.geoip-status {
    padding: 5px 8px;
    border: 1px solid var(--border, #263247);
    border-radius: 7px;
    color: var(--accent, #8b9aff);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
}

.geoip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.geoip-item {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--border, #263247);
    border-radius: 9px;
    background: var(--input-bg, transparent);
}

.geoip-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted, #98a8c2);
    font-size: 10px;
}

.geoip-item strong {
    display: block;
    color: var(--text, #e7edf7);
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.geoip-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--input-bg, transparent);
    color: var(--muted, #98a8c2);
    font-size: 12px;
}

.geoip-map {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--accent, #8b9aff);
    font-size: 12px;
    text-decoration: none;
}

.geoip-map:hover {
    text-decoration: underline;
}

.geoip-disclaimer {
    margin-top: 13px;
    color: var(--muted, #98a8c2);
    font-size: 10px;
    line-height: 1.5;
}

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

@media (max-width: 420px) {
    .geoip-panel {
        padding: 12px;
    }

    .geoip-grid {
        gap: 6px;
    }

    .geoip-item {
        padding: 9px;
    }
}

/* Adapt to your light theme */
[data-theme="light"] .geoip-panel {
    --geoip-accent-bg: #edf1ff;
    background: #fff;
    color: #202b3c;
    border-color: #d8deea;
}

[data-theme="light"] .geoip-location,
[data-theme="light"] .geoip-item strong {
    color: #202b3c;
}

[data-theme="light"] .geoip-item {
    background: #f7f9fc;
    border-color: #e1e6ef;
}

[data-theme="light"] .geoip-message {
    background: #f1f4f9;
}

.clear-all-history {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.clear-all-history:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.55);
}

.clear-all-history:active {
    transform: scale(0.99);
}

.geoip-toggle {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    margin: 10px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    user-select: none;
}

.geoip-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.geoip-checkmark {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--muted);
    border-radius: 5px;
    display: grid;
    place-items: center;
    transition: background 0.2s, border-color 0.2s;
}

.geoip-toggle input:checked + .geoip-checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.geoip-toggle input:checked + .geoip-checkmark::after {
    content: "✓";
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.geoip-toggle input:focus-visible + .geoip-checkmark {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.geoip-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text);
    font-size: 12px;
}

.geoip-toggle-text small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

/* =========================================
 M ETHO*D SELECTOR
 ========================================= */

.method-selector {
    position: relative;
    z-index: 100;
    width: 100%;
    min-width: 0;
    font-family: inherit;

    --method-bg: var(--surface, #171a25);
    --method-text: var(--text, #edf0f8);
    --method-muted: var(--muted, #9299ad);
    --method-border: var(--border, #303548);
    --method-accent: var(--accent, #818cf8);
    --method-shadow: rgba(0, 0, 0, .22);
    --method-hover: color-mix(in srgb, var(--method-border) 45%, transparent);
    --method-selected-bg: color-mix(in srgb, var(--method-accent) 9%, transparent);
    --method-selected-border: color-mix(in srgb, var(--method-accent) 35%, transparent);

    overflow: visible;
}

.method-label {
    display: block;
    margin-bottom: 8px;
    color: var(--method-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.3px;
}

.method-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--method-border);
    border-radius: 12px;
    background: var(--method-bg);
    color: var(--method-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.method-trigger:hover,
.method-trigger[aria-expanded="true"] {
    border-color: var(--method-accent);
}

.method-trigger[aria-expanded="true"] {
    box-shadow: 0 0 0 3px color-mix(
        in srgb, var(--method-accent) 12%, transparent
    );
}

.method-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.method-icon svg {
    width: 22px;
    height: 22px;
}

.udp-icon {
    color: #818cf8;
    background: rgba(129, 140, 248, .13);
}

.ntp-icon {
    color: #34d399;
    background: rgba(52, 211, 153, .12);
}

.method-selected-text,
.method-option-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.method-selected-text strong,
.method-option-text strong {
    color: var(--method-text);
    font-size: 13px;
    font-weight: 700;
}

.method-selected-text small,
.method-option-text small {
    overflow: hidden;
    color: var(--method-muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.method-chevron {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: var(--method-muted);
    transition: transform .2s;
}

.method-trigger[aria-expanded="true"] .method-chevron {
    transform: rotate(180deg);
}

/* =========================================
 D ROPD*OWN MENU
 JavaScript moves #methodOptions to body.
 ========================================= */

.method-options {
    position: fixed !important;
    z-index: 999999 !important;

    top: 0;
    left: 0;
    right: auto;

    display: flex;
    flex-direction: column;
    gap: 5px;

    box-sizing: border-box;
    width: 100%;
    max-height: 300px;

    padding: 8px;
    border: 1px solid var(--method-border);
    border-radius: 13px;

    background: var(--method-bg);
    color: var(--method-text);

    box-shadow: 0 16px 40px var(--method-shadow);

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: var(--method-border) transparent;

    animation: methodDropIn .16s ease-out;
}

.method-options[hidden] {
    display: none !important;
}

.method-options::-webkit-scrollbar {
    width: 5px;
}

.method-options::-webkit-scrollbar-track {
    background: transparent;
}

.method-options::-webkit-scrollbar-thumb {
    background: var(--method-border);
    border-radius: 10px;
}

.method-options-heading {
    padding: 5px 8px 7px;
    color: var(--method-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

/* =========================================
 M ETHO*D OPTIONS
 ========================================= */

.method-option {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-width: 0;
    flex-shrink: 0;

    padding: 10px;
    border: 1px solid transparent;
    border-radius: 9px;

    background: transparent;
    color: var(--method-text);

    text-align: left;
    cursor: pointer;

    transition: background .15s, border-color .15s;
}

.method-option:hover {
    background: var(--method-hover);
}

.method-option.selected {
    border-color: var(--method-selected-border);
    background: var(--method-selected-bg);
}

.method-check {
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--method-border);
    color: transparent;
    font-size: 12px;
}

.method-option.selected .method-check {
    background: var(--method-accent);
    color: #fff;
}

/* =========================================
 L IGHT* THEME
 ========================================= */

html[data-theme="light"] .method-selector,
body[data-theme="light"] .method-selector,
html.light .method-selector,
body.light .method-selector,
.light-theme .method-selector,
[data-theme="light"] .method-selector {
    --method-bg: var(--surface, #ffffff);
    --method-text: var(--text, #1e293b);
    --method-muted: var(--muted, #64748b);
    --method-border: var(--border, #e2e8f0);
    --method-accent: var(--accent, #7c3aed);
    --method-shadow: rgba(15, 23, 42, .12);
    --method-hover: #f1f5f9;
    --method-selected-bg: #f5f3ff;
    --method-selected-border: #c4b5fd;
}

/* =========================================
 A NIMA*TION
 ========================================= */

@keyframes methodDropIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
 M OBIL*E
 ========================================= */

@media (max-width: 480px) {
    .method-trigger {
        padding: 10px;
    }

    .method-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .method-option {
        padding: 9px;
    }

    .method-options {
        max-height: 260px;
    }
}


#challenge_modal .ad-art {
width: 64px;
height: 64px;
margin: 18px auto;
display: grid;
place-items: center;
box-sizing: border-box;
}

#challenge_modal .ad-art svg {
display: block;
width: 28px !important;
height: 28px !important;
max-width: 28px;
max-height: 28px;
flex: none;
}

/* Overlay: center against the viewport */
#challenge_modal.modal-overlay {
position: fixed !important;
inset: 0 !important;
z-index: 99999 !important;

display: none;
align-items: center !important;
justify-content: center !important;

width: 100vw !important;
height: 100vh !important;
height: 100dvh !important;
padding: 20px !important;
box-sizing: border-box !important;

background: rgba(3, 7, 18, 0.52) !important;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}

#challenge_modal.modal-overlay.open {
display: flex !important;
}

/* Dialog */
#challenge_modal .challenge-dialog {
position: relative !important;
inset: auto !important;
float: none !important;
flex: 0 1 430px !important;

width: 430px !important;
max-width: 100% !important;
max-height: calc(100vh - 40px);
max-height: calc(100dvh - 40px);
overflow-y: auto;

margin: 0 !important;
padding: 30px !important;
box-sizing: border-box !important;

color: #e8efff;
text-align: center;
border: 1px solid #34496d;
border-radius: 22px;

background:
radial-gradient(ellipse at 50% 0%, #4543a833, transparent 65%),
#0d1525;

box-shadow: 0 25px 80px rgba(0, 0, 0, .48);
animation: challenge-dialog-in .22s ease-out;
}

@keyframes challenge-dialog-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */
#challenge_modal .modal-close {
position: absolute;
top: 12px;
right: 12px;
width: 34px;
height: 34px;
padding: 0;

display: grid;
place-items: center;

color: #cbd7ed;
background: #1b2940;
border: 1px solid #34445f;
border-radius: 10px;
font-size: 23px;
line-height: 1;
cursor: pointer;
}

#challenge_modal .modal-close:hover {
background: #293954;
color: #fff;
}

/* Label */
#challenge_modal .ad-label {
display: inline-block;
padding: 7px 11px;
color: #aebfff;
border: 1px solid #3c4d78;
border-radius: 7px;
font-size: 10px;
font-weight: 700;
letter-spacing: 1.5px;
}

/* Small star icon */
#challenge_modal .ad-art {
display: grid;
place-items: center;
width: 64px;
height: 64px;
margin: 20px auto;
color: #fff;
border: 1px solid #7773ff;
border-radius: 19px;
background: linear-gradient(145deg, #398bff, #8051ff);
box-shadow: 0 0 32px #5c58ff2b;
}

#challenge_modal .ad-art svg {
display: block;
width: 27px !important;
height: 27px !important;
}

/* Heading and description */
#challenge_modal h2 {
margin: 0 0 9px;
color: #edf2ff;
font-size: 25px;
font-weight: 700;
line-height: 1.25;
letter-spacing: -.6px;
}

#challenge_modal .challenge-description {
margin: 0 0 22px;
color: #94a6c4;
font-size: 13px;
line-height: 1.6;
}

/* CAPTCHA image and input */
#challenge_modal .captcha-row {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
align-items: stretch;
gap: 12px;
margin-bottom: 16px;
}

#challenge_modal .captcha-image-wrap {
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 56px;
overflow: hidden;
border: 1px solid #344866;
border-radius: 10px;
background: #f1f4fa;
}

#challenge_modal #challenge_image {
display: block;
width: 100%;
max-width: 100%;
height: 54px;
object-fit: contain;
}

#challenge_modal .captcha-input {
width: 100%;
min-width: 0;
height: 56px;
padding: 0 14px;
box-sizing: border-box;

color: #eef3ff;
background: #141f32;
border: 1px solid #344866;
border-radius: 10px;
outline: none;

font: inherit;
font-size: 14px;
transition: border-color .2s, box-shadow .2s;
}

#challenge_modal .captcha-input::placeholder {
color: #7f91ad;
}

#challenge_modal .captcha-input:focus {
border-color: #7184ff;
box-shadow: 0 0 0 3px #6d70ff26;
}

/* Buttons */
#challenge_modal .challenge-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}

#challenge_modal .challenge-btn {
display: flex;
align-items: center;
justify-content: center;

min-height: 48px;
padding: 12px 10px;
box-sizing: border-box;

border-radius: 10px;
font: inherit;
font-size: 12px;
font-weight: 700;
line-height: 1.4;
cursor: pointer;
transition: background .2s, border-color .2s, transform .2s;
}

#challenge_modal .challenge-btn:hover {
transform: translateY(-1px);
}

#challenge_modal .challenge-btn.secondary {
color: #d2def5;
background: #172338;
border: 1px solid #354968;
}

#challenge_modal .challenge-btn.secondary:hover {
background: #202f49;
border-color: #536b96;
}

#challenge_modal .challenge-btn.primary {
color: #fff;
background: linear-gradient(100deg, #674af6, #327fff);
border: 1px solid transparent;
}

#challenge_modal .challenge-btn.primary:hover {
background: linear-gradient(100deg, #765cff, #468dff);
}

/* Narrow screens */
@media (max-width: 480px) {
    #challenge_modal.modal-overlay {
    padding: 12px !important;
    }

    #challenge_modal .challenge-dialog {
    padding: 25px 18px !important;
    }

    #challenge_modal h2 {
    font-size: 22px;
    }

    #challenge_modal .captcha-row {
    grid-template-columns: minmax(0, 1fr);
    }

    #challenge_modal .captcha-image-wrap {
    min-height: 52px;
    }

    #challenge_modal .challenge-actions {
    grid-template-columns: 1fr;
    }
}

.method-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.method-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.method-option .method-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
}

.method-option:hover .method-icon {
    filter: brightness(1.2);
}

.method-option.selected {
    border-color: rgba(129, 140, 248, 0.4);
}

.promo-ticker {
    --promo-accent: #7C3AED;
    --promo-bg: #101426;
    --promo-text: #E9D5FF;
    --promo-label: #C4B5FD;
    --promo-cta: #A78BFA;
    --promo-border: #312454;
    --promo-button-bg: #1B1930;
    --promo-button-border: #3B315B;

    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 30px;
    min-height: 30px;
    box-sizing: border-box;
    padding: 0 8px;

    /* Hide scrollbar without changing ticker behavior */
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    background: var(--promo-bg);
    border-bottom: 1px solid var(--promo-border);
    color: var(--promo-text);
    font: 500 11px/1.2 system-ui, sans-serif;
}

.promo-ticker::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.promo-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
    color: var(--promo-label);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.promo-label-icon {
    font-size: 12px;
}

.promo-window {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    position: relative;

    /* Hide scrollbars */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    mask-image: linear-gradient(
        to right, transparent, #000 3%, #000 97%, transparent
    );
}

.promo-window::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.promo-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    animation: promo-scroll 60s linear infinite;
}

.promo-group {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.promo-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    color: var(--promo-text);
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}

.promo-item:hover {
    color: var(--promo-label);
}

.promo-item .promo-emoji {
    font-size: 12px;
}

.promo-item .promo-description {
    opacity: .92;
}

.promo-item .promo-cta {
    color: var(--promo-cta);
    font-weight: 700;
}

.promo-pause {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--promo-button-border);
    border-radius: 5px;
    background: var(--promo-button-bg);
    color: var(--promo-label);
    font-size: 10px;
    cursor: pointer;
}

.promo-pause:hover {
    background: var(--promo-accent);
    color: #FFFFFF;
}

.promo-ticker.is-paused .promo-track {
    animation-play-state: paused;
}

.promo-ticker:hover .promo-track,
.promo-ticker:focus-within .promo-track {
    animation-play-state: paused;
}

@keyframes promo-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Light theme */

html[data-theme="light"] .promo-ticker,
body[data-theme="light"] .promo-ticker,
html.light .promo-ticker,
body.light .promo-ticker,
.light-theme .promo-ticker {
    --promo-bg: #F8FAFC;
    --promo-text: #334155;
    --promo-label: #6D28D9;
    --promo-cta: #6D28D9;
    --promo-border: #E2E8F0;
    --promo-button-bg: #FFFFFF;
    --promo-button-border: #DDD6FE;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    .promo-track {
        animation: none;
    }

    .promo-window {
        overflow: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        mask-image: none;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .promo-ticker {
        gap: 6px;
        padding: 0 6px;
    }

    .promo-label {
        font-size: 8px;
    }

    .promo-item {
        padding: 0 10px;
    }
}

/* Additional Windows / RDP scrollbar protection */

.promo-ticker *,
.promo-ticker *::before,
.promo-ticker *::after {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.promo-ticker *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.geoip-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border, #303548);
    border-radius: 9px;
    background: var(--surface, #171a25);
    color: var(--text, #edf0f8);
    font-size: 12px;
}

.geoip-result[hidden] {
    display: none;
}

.geoip-flag {
    font-size: 20px;
    line-height: 1;
}

#geoip-country {
font-weight: 650;
}

#geoip-status {
margin-left: auto;
color: var(--muted, #9299ad);
font-size: 11px;
}

.geoip-result.is-loading #geoip-status {
    color: var(--accent, #818cf8);
}

.geoip-result.is-error #geoip-status {
    color: #f87171;
}

.geoip-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

#geoip-country {
color: var(--text, #edf0f8);
font-size: 12px;
font-weight: 700;
}

#geoip-isp {
overflow-wrap: anywhere;
color: var(--text, #edf0f8);
font-size: 11px;
}

#geoip-asn {
color: var(--muted, #9299ad);
font-size: 10px;
}

.geoip-result.is-error #geoip-isp,
.geoip-result.is-error #geoip-asn {
    display: none;
}

#promoTicker[hidden] {
display: none !important;
}
.ip-input-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 46px;
    padding: 7px 9px;
    background: #101827;
    border: 1px solid #293951;
    border-radius: 9px;
}

.ip-tags {
    display: contents;
}

.ip-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border: 1px solid #34445d;
    border-radius: 6px;
    background: #1c2a3e;
    color: #cbd5e1;
    font-size: 12px;
}

.ip-tag button {
    border: 0;
    padding: 0;
    background: none;
    color: #8293aa;
    cursor: pointer;
    font-size: 15px;
}

.ip-tag button:hover {
    color: #f87171;
}

#ipEntry {
flex: 1;
min-width: 130px;
padding: 5px 2px;
border: 0;
outline: none;
background: transparent;
color: #e2e8f0;
font-size: 13px;
}

#ipEntry::placeholder {
color: #64748b;
}

.ip-clear {
    border: 0;
    background: transparent;
    color: #8293aa;
    font-size: 11px;
    cursor: pointer;
}

.ip-clear:hover {
    color: #f87171;
}

.port-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.ip-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.port-builder {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

#portEntry {
flex: 1;
min-width: 130px;
padding: 5px 2px;
border: 0;
outline: none;
background: transparent;
color: #e2e8f0;
font-size: 13px;
}

#addPort {
width: 34px;
height: 34px;
border: 1px solid #34445d;
border-radius: 6px;
background: #1c2a3e;
color: #cbd5e1;
cursor: pointer;
}
.challenge-ads {
    margin: 18px 0;
    padding: 12px;
    border: 1px solid #293951;
    border-radius: 11px;
    background: linear-gradient(135deg, #111c2d, #101827);
    text-align: left;
}

.challenge-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #9fadc6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.challenge-ads-label {
    padding: 4px 7px;
    border-radius: 5px;
    background: #1d3047;
    color: #7da9e8;
    font-size: 9px;
}

.challenge-ads-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.challenge-ad {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid #263750;
    border-radius: 8px;
    background: #172438;
    color: #dbe5f5;
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.challenge-ad:hover {
    border-color: #527db6;
    background: #1c2d45;
}

.challenge-ad-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #263851;
    font-size: 17px;
}

.challenge-ad-info {
    flex: 1;
    min-width: 0;
}

.challenge-ad-name {
    overflow: hidden;
    color: #e2eaf6;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-ad-url {
    overflow: hidden;
    margin-top: 3px;
    color: #8293aa;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-ad-arrow {
    color: #7da9e8;
    font-size: 15px;
}

.promo-ticker {
    margin-bottom: 6px;
    padding-bottom: 5px;
    position: relative;
}

.promo-ticker::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(120, 145, 180, 0.25),
                                transparent
    );
}

.section-divider {
    width: 100%;
    height: 1px;
    margin: 14px 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(120, 145, 180, 0.25),
                                transparent
    );
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background, #0b1020);
    transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: min(280px, 85%);
    text-align: center;
}

.loader-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 20px;
    border: 3px solid rgba(129, 140, 248, .15);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: loaderSpin .8s linear infinite;
}

.loader-title {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.loader-subtitle {
    margin-top: 8px;
    color: #8490a8;
    font-size: 11px;
}

.loader-progress {
    height: 3px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(129, 140, 248, .12);
}

.loader-progress-bar {
    width: 35%;
    height: 100%;
    border-radius: inherit;
    background: #818cf8;
    animation: loaderProgress 1.4s ease-in-out infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderProgress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

.active-tests {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.active-test-item {
    padding: 13px;
    border: 1px solid var(--border, #303548);
    border-radius: 11px;
    background: var(--surface, #171a25);
}

.active-test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.active-test-method {
    color: var(--text, #edf0f8);
    font-size: 12px;
    font-weight: 750;
}

.active-test-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #34d399;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.active-test-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: runningPulse 1.4s infinite;
}

.active-test-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 13px;
}

.active-test-count {
    color: var(--muted, #9299ad);
    font-size: 10px;
}

.active-test-time {
    color: var(--text, #edf0f8);
    font-size: 21px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.active-test-progress {
    height: 3px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(129, 140, 248, .15);
}

.active-test-progress-bar {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: #818cf8;
}

.active-test-stop {
    width: 100%;
    margin-top: 11px;
    padding: 8px;
    border: 1px solid rgba(248, 113, 113, .25);
    border-radius: 8px;
    background: rgba(248, 113, 113, .08);
    color: #f87171;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.active-test-stop:hover {
    background: rgba(248, 113, 113, .17);
}

.active-test-stop:disabled {
    opacity: .5;
    cursor: wait;
}

.no-active-tests {
    padding: 22px 10px;
    color: var(--muted, #9299ad);
    font-size: 12px;
    text-align: center;
}

@keyframes runningPulse {
    50% {
        opacity: .35;
        transform: scale(.8);
    }
}

.active-test-target {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted, #9299ad);
    font-family: monospace;
    font-size: 11px;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

.website-card,
.website-card:visited,
.website-card:hover,
.website-card:active {
    color: inherit;
    text-decoration: none !important;
}

.website-card * {
    text-decoration: none !important;
}

.website-card {
    cursor: pointer;
}

.system-visual {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 22px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 22px;
    color: #8292ad;
    background:
    radial-gradient(circle at 50% 50%,
                    rgba(74, 105, 155, .16),
                    transparent 65%),
                    linear-gradient(145deg,
                                    rgba(30, 40, 60, .9),
                                    rgba(13, 19, 31, .95));
                    border: 1px solid rgba(130, 155, 195, .18);
                    box-shadow:
                    inset 0 0 30px rgba(100, 130, 180, .06),
                    0 10px 30px rgba(0, 0, 0, .15);
}

.system-visual::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(130, 155, 195, .08);
    border-radius: 16px;
    pointer-events: none;
}

.visual-idle,
.visual-running {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .45s ease, transform .45s ease;
}

.visual-idle {
    opacity: 1;
    transform: scale(1);
}

.visual-idle svg {
    width: 88px;
    height: 88px;
    z-index: 2;
}

.visual-running {
    color: #34d399;
    opacity: 0;
    transform: scale(.85);
    pointer-events: none;
}

/* Switch visual states */

.system-visual.is-running .visual-idle {
    opacity: 0;
    transform: scale(1.15);
}

.system-visual.is-running .visual-running {
    opacity: 1;
    transform: scale(1);
}

/* =========================================
 *   IDLE ANIMATION
 * ========================================= */

.idle-glow {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(100, 145, 210, .13);
    filter: blur(22px);
    animation: idleGlow 3s ease-in-out infinite;
}

@keyframes idleGlow {
    0%, 100% {
        opacity: .35;
        transform: scale(.8);
    }
    50% {
        opacity: .8;
        transform: scale(1.25);
    }
}

/* =========================================
 *   CROSSHAIR ANIMATION
 * ========================================= */

.crosshair-rings {
    position: absolute;
    width: 108px;
    height: 108px;
    border: 1px dashed rgba(52, 211, 153, .35);
    border-radius: 50%;
    animation: crosshairRotate 12s linear infinite;
}

.crosshair-rings::before,
.crosshair-rings::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 9px rgba(52, 211, 153, .8);
}

.crosshair-rings::before {
    top: 10px;
    left: 20px;
}

.crosshair-rings::after {
    right: 10px;
    bottom: 25px;
}

.ring-two {
    width: 80px;
    height: 80px;
    border-style: solid;
    border-color: rgba(52, 211, 153, .18);
    animation-direction: reverse;
    animation-duration: 8s;
}

.crosshair-horizontal,
.crosshair-vertical {
    position: absolute;
    background: rgba(52, 211, 153, .13);
}

.crosshair-horizontal {
    width: 130px;
    height: 1px;
}

.crosshair-vertical {
    width: 1px;
    height: 130px;
}

.crosshair-target {
    position: absolute;
    width: 90px;
    height: 90px;
    animation: targetPulse 2.5s ease-in-out infinite;
}

.crosshair-target svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, .35));
}

.crosshair-scan {
    position: absolute;
    width: 100%;
    height: 2px;
    top: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(52, 211, 153, .05),
                                rgba(52, 211, 153, .8),
                                rgba(52, 211, 153, .05),
                                transparent
    );
    box-shadow: 0 0 12px rgba(52, 211, 153, .35);
    animation: crosshairScan 3s ease-in-out infinite;
}

.crosshair-pulse {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(52, 211, 153, .55);
    border-radius: 50%;
    animation: crosshairPulse 2s ease-out infinite;
}

@keyframes crosshairRotate {
    to { transform: rotate(360deg); }
}

@keyframes targetPulse {
    0%, 100% { transform: scale(.96); opacity: .75; }
    50% { transform: scale(1.04); opacity: 1; }
}

@keyframes crosshairScan {
    0% { transform: translateY(15px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(135px); opacity: 0; }
}

@keyframes crosshairPulse {
    0% {
        transform: scale(.6);
        opacity: .8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* =========================================
 *   STATUS TEXT
 * ========================================= */

.active-test-status {
    text-align: center;
    padding: 0 10px 10px;
}

.side-title {
    margin: 0 0 7px;
    color: var(--text, #edf2fa);
    font-size: 15px;
    font-weight: 650;
}

.side-copy {
    margin: 0;
    color: var(--muted, #9299ad);
    font-size: 12px;
    line-height: 1.6;
}

.running-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #34d399;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

.running-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, .65);
    animation: runningBlink 1.5s ease-in-out infinite;
}

@keyframes runningBlink {
    50% { opacity: .35; }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .system-visual *,
    .system-visual *::before,
    .system-visual *::after {
        animation: none !important;
        transition: none !important;
    }
}

.pps-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.pps-top label {
    margin: 0;
}

#ppsValue {
font-size: 12px;
font-weight: 750;
color: var(--accent, #8b7cff);
white-space: nowrap;
}

.pps-slider {
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    background: rgba(255,255,255,.13);
}

.pps-slider::-webkit-slider-thumb {
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent, #8b7cff);
    border: 2px solid #fff;
    cursor: pointer;
}

.pps-slider::-moz-range-thumb {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent, #8b7cff);
    border: 2px solid #fff;
    cursor: pointer;
}
.online-users {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    margin: 12px 0;
    border: 1px solid rgba(46, 220, 145, .18);
    border-radius: 9px;
    background: rgba(30, 190, 120, .055);
    box-shadow: inset 0 0 15px rgba(30, 220, 140, .025);
}

.online-indicator {
    position: relative;
    display: flex;
    width: 9px;
    height: 9px;
    align-items: center;
    justify-content: center;
}

.online-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36e69b;
    box-shadow: 0 0 8px rgba(54, 230, 155, .8);
    animation: onlinePulse 1.8s infinite;
}

.online-label {
    color: #8fa99d;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .8px;
}

.online-count {
    color: #48e8a4;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.online-status {
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(54, 230, 155, .1);
    color: #48e8a4;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .7px;
}

@keyframes onlinePulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(54, 230, 155, .8);
    }
    50% {
        opacity: .45;
        box-shadow: 0 0 3px rgba(54, 230, 155, .3);
    }
}

/* Host tags only */
#ipTags .ip-tag {
display: inline-flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
min-width: 150px;
max-width: 260px;
padding: 7px 9px;
border: 1px solid #34445d;
border-radius: 6px;
background: #1c2a3e;
color: #cbd5e1;
font-size: 12px;
box-sizing: border-box;
}

#ipTags .ip-tag-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}

#ipTags .ip-tag-address {
color: #cbd5e1;
font-size: 12px;
font-weight: 600;
overflow-wrap: anywhere;
}

#ipTags .ip-tag-top button {
border: 0;
padding: 0;
background: none;
color: #8293aa;
cursor: pointer;
font-size: 15px;
}

#ipTags .ip-tag-top button:hover {
color: #f87171;
}

#ipTags .ip-tag-geo {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
padding-top: 5px;
border-top: 1px solid #34445d;
}

#ipTags .ip-tag-flag {
flex-shrink: 0;
font-size: 12px;
}

#ipTags .ip-tag-country {
flex-shrink: 0;
color: #cbd5e1;
font-size: 11px;
font-weight: 600;
}

#ipTags .ip-tag-isp {
flex: 1;
min-width: 0;
color: #8293aa;
font-size: 10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

#ipTags .ip-tag-city {
color: #8293aa;
font-size: 10px;
white-space: nowrap;
flex-shrink: 0;
}

#ipTags .ip-tag-city:not(:empty)::before {
content: "·";
margin-right: 6px;
color: #526782;
}

#ipTags .ip-geo-loading {
display: flex;
align-items: center;
gap: 8px;
padding-top: 5px;
border-top: 1px solid #34445d;
color: #8293aa;
font-size: 10px;
}

#ipTags .ip-geo-spinner {
width: 11px;
height: 11px;
flex-shrink: 0;
border: 2px solid #34445d;
border-top-color: #60a5fa;
border-radius: 50%;
animation: geoip-spin 0.7s linear infinite;
}

#ipTags .ip-geo-loading-text {
color: #8293aa;
font-size: 10px;
letter-spacing: 0.2px;
}

@keyframes geoip-spin {
    to {
        transform: rotate(360deg);
    }
}

.ip-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.geoip-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8293aa;
    font-size: 10px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.geoip-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.geoip-check {
    width: 12px;
    height: 12px;
    border: 1px solid #526782;
    border-radius: 3px;
    background: #1c2a3e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.geoip-toggle input:checked + .geoip-check {
    background: #2563a6;
    border-color: #3b82c4;
}

.geoip-toggle input:checked + .geoip-check::after {
    content: "✓";
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.geoip-toggle:hover {
    color: #cbd5e1;
}
.submit-buttons {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.submit-buttons #send_l4 {
    flex: 1;
    min-width: 0;
}

.submit-buttons #stop_all {
    flex: 0 0 auto;
    width: 115px;
    padding-left: 12px;
    padding-right: 12px;
}

.stop-btn {
    background: #7f1d1d;
    border: 1px solid #991b1b;
    color: #fecaca;
}

.stop-btn:hover {
    background: #991b1b;
}

