:root {
  --bg1: #071018;
  --bg2: #0d1824;
  --panel: #101c2a;
  --panel-2: #152538;
  --panel-3: #0b1521;
  --border: rgba(255,255,255,0.08);
  --text: #eef6ff;
  --muted: #99aec7;
  --primary: #22c55e;
  --primary-2: #14b8a6;
  --secondary: #38bdf8;
  --green: #22c55e;
  --red: #fb7185;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(0, 0, 0, .28);
  --radius: 24px;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 24%),
    radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 26%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}
.wrap { width:min(1280px, calc(100% - 32px)); margin:0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(16,28,42,.96), rgba(11,21,33,.96));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.site-header { padding: 18px 0 10px; }
.header-inner { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.brand-row { display:flex; align-items:center; gap:14px; }
.brand-row h1, .brand-row h2, .brand-row p { margin:0; }
.brand-row p { color: var(--muted); }
.brand-badge {
  width:52px; height:52px; border-radius:18px;
  display:block;
  background:
    linear-gradient(135deg, rgba(82,255,122,.08), rgba(0,255,198,.04)),
    url('favicon-wa-id.png') center/78% no-repeat,
    linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 30px rgba(34,197,94,.22);
  border:1px solid rgba(255,255,255,.08);
}
.brand-row.small .brand-badge { width:44px; height:44px; border-radius:15px; }
.top-actions { display:flex; gap:12px; align-items:center; }
.user-chip {
  background: var(--panel-3); border:1px solid var(--border);
  border-radius: 999px; padding:10px 14px; color:var(--muted); font-size:14px;
}
.app-shell { padding-bottom:32px; }
.hero-panel {
  padding:26px 28px;
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:22px;
  margin-bottom:24px;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.3px;
  color:#d7fff1; background:rgba(34,197,94,.14); border:1px solid rgba(34,197,94,.18);
  margin-bottom:12px;
}
.hero-panel h1 { margin:0 0 12px; font-size: clamp(30px, 4vw, 46px); line-height:1.08; }
.hero-panel p { margin:0; color:var(--muted); line-height:1.75; max-width: 760px; }
.hero-badges { display:grid; grid-template-columns:1fr; gap:14px; }
.hero-badges article, .result-summary article {
  background: var(--panel-2); border:1px solid var(--border); border-radius:18px; padding:16px 18px;
}
.hero-badges span, .result-summary span { color:var(--muted); display:block; margin-bottom:6px; }
.hero-badges strong, .result-summary strong { font-size:26px; }
.dashboard-grid {
  display:grid; grid-template-columns: .92fr 1.08fr; gap:24px;
}
.span-2 { grid-column: 1 / -1; }
.form-card, .results-card, .history-card { padding:24px; }
.section-head { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:18px; }
.section-head h3 { margin:0 0 6px; font-size:22px; }
.section-head p { margin:0; color:var(--muted); line-height:1.7; }
.section-head.compact { margin-bottom:14px; }
.stack-md { display:grid; gap:14px; }
label { display:grid; gap:8px; color:var(--muted); font-size:14px; }
select, textarea, input[type="text"], input[type="password"] {
  width:100%; background:rgba(4,11,20,.88); color:var(--text); border:1px solid var(--border);
  border-radius:18px; padding:14px 16px; outline:none; font:inherit;
}
textarea { min-height:360px; resize:vertical; line-height:1.65; }
select { appearance:none; }

.country-search-input {
  font-weight: 600;
  letter-spacing: .1px;
}
.country-search-input::placeholder {
  color: #7f97b3;
  font-weight: 500;
}
.field-grid { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.field-grid.single { grid-template-columns:1fr; }
.button-row { display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; text-decoration:none; cursor:pointer; padding:12px 18px;
  border-radius:15px; font-weight:700; transition:.18s ease transform, .18s ease opacity, .18s ease background;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#072415; }
.btn.ghost { background: rgba(255,255,255,.03); color: var(--text); border:1px solid var(--border); }
.btn.mini { padding:10px 12px; font-size:13px; }
.btn.disabled, .btn:disabled {
  pointer-events:none; opacity:.45; cursor:not-allowed;
}
.warning-box {
  padding:14px 16px; border-radius:16px; background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.22); color:#ffe2a8; line-height:1.6; font-size:14px;
}
.alert {
  margin-top:14px; padding:14px 16px; border-radius:16px; line-height:1.6; font-size:14px;
}
.alert.info { background: rgba(56,189,248,.12); border:1px solid rgba(56,189,248,.24); }
.alert.success { background: rgba(34,197,94,.13); border:1px solid rgba(34,197,94,.24); }
.alert.error { background: rgba(251,113,133,.13); border:1px solid rgba(251,113,133,.24); }
.progress-shell { margin-top:18px; }
.progress-shell.hidden { display:none; }
.progress-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; }
.progress-bar {
  position:relative;
  height:14px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--border);
  overflow:hidden;
}
#progress-fill, #processing-progress-fill {
  height:100%;
  width:0%;
  display:block;
  border-radius:999px;
  background: linear-gradient(90deg, #22c55e 0%, #14b8a6 45%, #38bdf8 100%);
  box-shadow: 0 0 18px rgba(20,184,166,.35), inset 0 0 8px rgba(255,255,255,.18);
  transition: width .35s ease;
}

.progress-bar::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  pointer-events:none;
}
.tiny { font-size:12px; }
.muted { color:var(--muted); }
.result-summary { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; margin-bottom:18px; }
.columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.column {
  border-radius:20px; overflow:hidden; border:1px solid var(--border); background:rgba(255,255,255,.03);
}
.column-head {
  padding:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; font-weight:700;
}
.column-head > div { display:grid; gap:6px; }
.column-head > div span { color:var(--muted); font-size:13px; }
.column-head > div strong { font-size:24px; }
.column-green .column-head { background: rgba(34,197,94,.12); border-bottom:1px solid rgba(34,197,94,.18); }
.column-red .column-head { background: rgba(251,113,133,.12); border-bottom:1px solid rgba(251,113,133,.18); }
.list-body { padding:12px; max-height:460px; overflow:auto; }
.list-body.empty { color:var(--muted); }
.list-item {
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:10px 12px; border-radius:14px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); margin-bottom:10px;
}
.tag { font-size:11px; padding:6px 8px; border-radius:999px; font-weight:800; letter-spacing:.2px; }
.tag.ok { background: rgba(34,197,94,.15); color:#bbf7d0; }
.tag.bad { background: rgba(251,113,133,.15); color:#fecdd3; }
.history-table { width:100%; border-collapse:collapse; }
.history-table th, .history-table td { padding:14px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; }
.history-table th { color:var(--muted); font-size:13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.status {
  display:inline-flex; padding:7px 10px; border-radius:999px; font-size:12px; font-weight:800; text-transform:capitalize;
}
.status.pending { background: rgba(245,158,11,.15); color:#ffd27a; }
.status.processing { background: rgba(56,189,248,.15); color:#bae6fd; }
.status.exported { background: rgba(34,197,94,.15); color:#bbf7d0; }
.empty-center { text-align:center; color:var(--muted); }
.login-shell { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(460px, 100%); padding:30px; }
.login-card h1, .brand-row h2 { letter-spacing:.4px; }
@media (max-width: 1100px) {
  .hero-panel, .dashboard-grid, .columns, .result-summary { grid-template-columns:1fr; }
  .span-2 { grid-column:auto; }
}
@media (max-width: 980px) {
  .header-inner, .section-head, .column-head { flex-direction:column; align-items:stretch; }
  .field-grid { grid-template-columns:1fr; }
  .wrap { width:min(100%, calc(100% - 20px)); }
}

:root {
  --bg1: #05080c;
  --bg2: #0a0f15;
  --panel: #0b1118;
  --panel-2: #121b26;
  --panel-3: #081018;
  --border: rgba(77, 255, 154, 0.12);
  --text: #f2f7f3;
  --muted: #8ea89a;
  --primary: #52ff7a;
  --primary-2: #13d66a;
  --secondary: #00ffc6;
  --green: #52ff7a;
  --red: #ff5470;
  --amber: #ffb020;
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
body {
  background:
    radial-gradient(circle at top left, rgba(82,255,122,.13), transparent 18%),
    radial-gradient(circle at 80% 0%, rgba(0,255,198,.08), transparent 22%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}
.glass {
  background: linear-gradient(180deg, rgba(9,16,24,.97), rgba(6,12,18,.98));
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), inset 0 0 30px rgba(82,255,122,.03);
}
.hero-panel { display:none !important; }
.site-header { padding-bottom: 18px; }
.app-shell { padding-bottom: 20px; }
.section-kicker {
  display:inline-flex; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:800;
  letter-spacing:.16em; text-transform:uppercase; color:#b7ffd2; background:rgba(82,255,122,.09);
  border:1px solid rgba(82,255,122,.14); margin-bottom:10px;
}
.brand-row p { display:none; }
.country-search-input, textarea, input[type="text"], input[type="password"] { border-color: rgba(82,255,122,.14); }
.country-search-input:focus, textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
  border-color: rgba(82,255,122,.4); box-shadow: 0 0 0 3px rgba(82,255,122,.08);
}
textarea { min-height:300px; box-shadow: inset 0 0 30px rgba(0,0,0,.35); }
.form-card, .results-card, .history-card { overflow:hidden; }
.warning-box { background:rgba(255,176,32,.08); border:1px solid rgba(255,176,32,.2); color:#ffd892; }
.live-audit {
  padding:16px; border-radius:20px; background:linear-gradient(180deg, rgba(10,18,25,.95), rgba(9,15,22,.95));
  border:1px solid rgba(82,255,122,.12);
}
.audit-head, .duplicate-head { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.audit-head { margin-bottom:14px; }
.audit-status { padding:7px 10px; border-radius:999px; font-size:12px; font-weight:800; letter-spacing:.02em; }
.audit-status.idle { background:rgba(255,255,255,.05); color:var(--muted); }
.audit-status.ok { background:rgba(82,255,122,.12); color:#c2ffd4; }
.audit-status.warn { background:rgba(255,84,112,.12); color:#ffc6d0; }
.audit-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-bottom:14px; }
.audit-stats article { background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05); border-radius:16px; padding:14px; }
.audit-stats span { display:block; color:var(--muted); margin-bottom:8px; font-size:12px; }
.audit-stats strong { font-size:28px; line-height:1; }
.duplicate-box { border:1px solid rgba(255,84,112,.12); background:rgba(255,84,112,.04); border-radius:16px; padding:14px; }
.duplicate-head { margin-bottom:10px; }
.duplicate-head span { color:#ffc8d0; font-weight:700; }
.duplicate-list { max-height:180px; overflow:auto; display:grid; gap:10px; }
.duplicate-item {
  display:flex; justify-content:space-between; gap:12px; align-items:center; padding:10px 12px;
  border-radius:12px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.05);
}
.dup-times { display:inline-flex; min-width:42px; justify-content:center; padding:5px 8px; border-radius:999px; background:rgba(255,84,112,.14); color:#ffd3db; font-weight:800; font-size:12px; }
.hacker-progress {
  padding:16px; border-radius:20px; border:1px solid rgba(0,255,198,.12);
  background:linear-gradient(180deg, rgba(4,16,16,.58), rgba(6,18,17,.18));
}
.progress-meta strong { color:#baffef; }
.progress-bar { height:16px; background:rgba(255,255,255,.04); border:1px solid rgba(0,255,198,.1); }
#progress-fill, #processing-progress-fill { background: linear-gradient(90deg, var(--primary), var(--secondary)); box-shadow: 0 0 18px rgba(0,255,198,.25); }
.btn.primary { color:#04120a; box-shadow: 0 10px 24px rgba(82,255,122,.18); }
.btn.ghost { background: rgba(255,255,255,.025); }
.column { background:rgba(255,255,255,.02); }
.column-green .column-head { background: linear-gradient(90deg, rgba(82,255,122,.12), rgba(19,214,106,.05)); }
.column-red .column-head { background: linear-gradient(90deg, rgba(255,84,112,.12), rgba(255,84,112,.05)); }
.list-item { background:rgba(255,255,255,.03); }
.footer-ak47 {
  width:min(1280px, calc(100% - 32px)); margin:0 auto 24px; text-align:center; padding:18px; color:#8aa48f;
  font-size:13px; border-top:1px solid rgba(82,255,122,.08); letter-spacing:.08em; text-transform:uppercase;
}
@media (max-width: 1100px) {
  .audit-stats { grid-template-columns:1fr; }
}

.duplicate-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.duplicate-actions .btn.mini { white-space:nowrap; }
.row-actions{display:flex;gap:8px;flex-wrap:wrap}.btn.danger{border-color:rgba(255,84,112,.2);color:#ffc6d0}.btn.danger:hover{background:rgba(255,84,112,.08)}
.modal-open{overflow:hidden}.modal-shell{position:fixed;inset:0;z-index:90;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,10,.72)}.modal-shell.hidden{display:none}.modal-card{width:min(1100px,100%);max-height:90vh;overflow:auto;border-radius:24px;padding:20px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.compact-summary{margin-bottom:16px}.modal-columns .column{min-height:420px}.top-actions{display:flex;gap:12px;align-items:center}.list-body{max-height:410px;overflow:auto}.history-table th:last-child,.history-table td:last-child{text-align:right}.history-table .row-actions{justify-content:flex-end}

.toast-shell{position:fixed;right:20px;bottom:20px;z-index:120;display:flex;align-items:flex-end;justify-content:flex-end;pointer-events:none}.toast-shell.hidden{display:none}.toast-card{width:min(460px,calc(100vw - 32px));border-radius:24px;padding:20px;position:relative;pointer-events:auto}.processing-card{border:1px solid rgba(82,255,122,.14);box-shadow:0 18px 45px rgba(0,0,0,.28)}
.processing-icon{width:58px;height:58px;border-radius:50%;margin:0 auto 14px;border:4px solid rgba(82,255,122,.14);border-top-color:var(--secondary);border-right-color:var(--primary);animation:spin-ak47 1s linear infinite;box-shadow:0 0 25px rgba(0,255,198,.15)}
.processing-text{margin:0 0 16px;color:#d9fff0;font-weight:600;line-height:1.6}
.processing-meta{margin:0 0 10px;text-align:left}.toast-close{position:absolute;top:12px;right:12px}
@keyframes spin-ak47{to{transform:rotate(360deg)}}

.login-card .alert.error { margin-bottom: 14px; }
.login-card .btn.primary { width: 100%; }


html { overflow-y: auto; }
body { overflow-x: hidden; overflow-y: auto; }
body.modal-open { overflow: hidden; }
.modal-shell { overscroll-behavior: contain; }
.toast-shell.processing-toast {
  left: auto !important;
  top: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}
.toast-shell.processing-toast .toast-card {
  max-height: calc(100vh - 40px);
  overflow: auto;
}
@media (max-width: 768px) {
  .toast-shell.processing-toast {
    right: 12px !important;
    bottom: 12px !important;
  }
}
