:root {
    --bg: #09090b;
    --surface: #111113;
    --surface2: #18181b;
    --border: #27272a;
    --border2: #3f3f46;
    --text: #fafafa;
    --muted: #71717a;
    --accent: #e4ff1a;
    --accent2: #a3e635;
    --live: #4ade80;
    --live-bg: rgba(74,222,128,.08);
    --verify: #fbbf24;
    --verify-bg: rgba(251,191,36,.08);
    --disabled: #f87171;
    --disabled-bg: rgba(248,113,113,.08);
    --notexist: #fb7185;
    --notexist-bg: rgba(251,113,133,.08);
    --wrong: #60a5fa;
    --wrong-bg: rgba(96,165,250,.08);
    --unknown: #a1a1aa;
    --unknown-bg: rgba(161,161,170,.08);
    --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); font-family: 'Syne', sans-serif; min-height: 100vh; }
body { min-height: 100vh; background: var(--bg); }
.app { display: flex; flex-direction: column; min-height: calc(100vh - 48px); max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--accent); }
.header-badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 20px; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 4px; margin-bottom: 24px; width: fit-content; }
.tab-btn { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 7px; border: none; cursor: pointer; background: transparent; color: var(--muted); transition: all .2s; letter-spacing: .3px; }
.tab-btn.active { background: var(--accent); color: #000; }
.tab-btn:hover:not(.active) { color: var(--text); background: var(--surface2); }
.panel { display: none; animation: fadeIn .2s ease; }
.panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; display: block; margin-bottom: 8px; }
textarea, select, input[type=text] {
    width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 13px;
    padding: 12px 14px; resize: vertical; transition: border .2s; outline: none;
}
textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(228,255,26,.07); }
select { height: 40px; cursor: pointer; }
.btn { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .3px; padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer; transition: all .15s; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #d4ef00; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-danger { background: var(--disabled-bg); color: var(--disabled); border: 1px solid rgba(248,113,113,.2); }
.btn-danger:hover { background: rgba(248,113,113,.15); }
.btn-danger:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.checker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:768px) { .checker-grid { grid-template-columns: 1fr; } }
.textarea-wrap { position: relative; }
.textarea-wrap textarea { height: 320px; }
.textarea-counter { position: absolute; bottom: 10px; right: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); pointer-events: none; }
.textarea-copy { position: absolute; bottom: 8px; right: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 11px; color: var(--muted); cursor: pointer; }
.textarea-copy:hover { color: var(--text); }
.channel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.channel-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.channel-select { width: auto; flex-shrink: 0; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.progress-wrap { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 12px 0; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s ease; }
.stats-row { display: flex; align-items: center; gap: 20px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); padding: 10px 0; }
.stats-row .stat { display: flex; gap: 6px; align-items: center; }
.stats-row .stat strong { color: var(--text); }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.status-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.status-box { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: all .2s; min-width: 130px; }
.status-box:hover { transform: translateY(-2px); }
.status-box .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-box .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.status-box .count { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; }
.status-box.live     { background: var(--live-bg);     border-color: rgba(74,222,128,.15);   color: var(--live); }
.status-box.verify   { background: var(--verify-bg);   border-color: rgba(251,191,36,.15);   color: var(--verify); }
.status-box.disabled { background: var(--disabled-bg); border-color: rgba(248,113,113,.15);  color: var(--disabled); }
.status-box.notexist { background: var(--notexist-bg); border-color: rgba(251,113,133,.15);  color: var(--notexist); }
.status-box.wrong    { background: var(--wrong-bg);    border-color: rgba(96,165,250,.15);   color: var(--wrong); }
.status-box.unknown  { background: var(--unknown-bg);  border-color: rgba(161,161,170,.15);  color: var(--unknown); }
.status-box.live .dot     { background: var(--live); }
.status-box.verify .dot   { background: var(--verify); }
.status-box.disabled .dot { background: var(--disabled); }
.status-box.notexist .dot { background: var(--notexist); }
.status-box.wrong .dot    { background: var(--wrong); }
.status-box.unknown .dot  { background: var(--unknown); }
.detail-drawer { display: none; margin-top: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.detail-drawer.show { display: block; animation: fadeIn .15s ease; }
.detail-drawer textarea { height: 120px; margin-bottom: 10px; }
.detail-actions { display: flex; gap: 8px; }
.donut-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 160px; }
.donut-wrap { position: relative; width: 130px; height: 130px; }
.donut { width: 130px; height: 130px; transform: rotate(-90deg); }
.donut .track { fill: none; stroke: var(--border); stroke-width: 10; }
.donut .seg { fill: none; stroke-width: 10; transition: stroke-dashoffset .4s ease; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.donut-center .d-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.donut-center .d-value { font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; color: var(--text); }
.donut-time { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.bottom-row { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; }
.bottom-row .status-section { flex: 1; }
.sms-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.sms-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.sms-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; }
.sms-table .code-cell { color: var(--accent); cursor: pointer; font-weight: 600; }
.sms-table .code-cell:hover { background: rgba(228,255,26,.05); border-radius: 4px; }
.sms-table .url-cell { color: var(--muted); max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loading-overlay { display: none; padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.otp-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13px; }
.otp-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.otp-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; }
.otp-cell { color: var(--accent); cursor: pointer; font-weight: 700; font-size: 16px; letter-spacing: 2px; }
.otp-cell:hover { background: rgba(228,255,26,.05); border-radius: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--surface2); color: var(--text); border: 1px solid var(--border); padding: 10px 20px; border-radius: 8px; font-size: 13px; font-family: 'JetBrains Mono', monospace; z-index: 9999; transition: transform .25s ease, opacity .25s ease; opacity: 0; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.hint { font-size: 11px; color: var(--muted); margin-top: 6px; font-family: 'JetBrains Mono', monospace; }
@keyframes pulseGlow { from { box-shadow: 0 0 10px rgba(255,0,0,0.5), 0 0 20px rgba(255,0,0,0.3); } to { box-shadow: 0 0 25px rgba(255,0,0,1), 0 0 60px rgba(255,0,0,0.8); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hint-retry { font-size: 11px; color: var(--disabled); margin-top: 4px; font-family: 'JetBrains Mono', monospace; display: none; cursor: pointer; }
.hint-retry:hover { opacity: .8; }
.hint-retry.show { display: block; }