/* ============================================================
   Zain KSA — Postpaid Number Registry
   ============================================================ */
:root {
  --violet-950: #1d0d26;
  --violet-900: #2a1136;
  --violet-800: #3b1749;
  --violet-700: #55205f;
  --brand: #7b1fa2;
  --brand-2: #b3168b;
  --accent: #e0007a;

  --ink: #1b1723;
  --ink-2: #3d3549;
  --muted: #6b6478;
  --muted-2: #8d84a0;
  --line: #e8e4ef;
  --line-2: #f2eef7;
  --bg: #f7f6fa;
  --card: #fff;

  --green: #0f7a4d;
  --green-bg: #e7f7ef;
  --amber: #8f5d00;
  --amber-bg: #fdf3dd;
  --red: #b3261e;
  --red-bg: #fdeceb;
  --blue: #155ec4;
  --blue-bg: #eaf2fe;
  --gray-bg: #f0edf5;

  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(24, 16, 40, .05);
  --shadow: 0 1px 2px rgba(24, 16, 40, .06), 0 10px 26px -14px rgba(24, 16, 40, .22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.bi { line-height: 1; }

.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; letter-spacing: -.2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }

/* ---------------------------- app shell ---------------------------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px 16px;
  background: linear-gradient(180deg, var(--violet-950), var(--violet-900) 42%, var(--violet-800));
  color: #ece3f2;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.5px;
  box-shadow: 0 8px 18px -8px rgba(224, 0, 122, .9);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.35; }
.brand-copy strong { font-size: 14.5px; font-weight: 600; }
.brand-copy span { font-size: 10.5px; letter-spacing: .12em; color: #b7a3c6; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #9b86ab; font-weight: 600; padding: 12px 10px 5px;
}
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: #d5c7e0; font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-link i { font-size: 16px; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.is-active {
  background: linear-gradient(90deg, rgba(224,0,122,.26), rgba(123,31,162,.1));
  color: #fff; box-shadow: inset 2.5px 0 0 var(--accent);
}
.nav-link.is-active .bi { opacity: 1; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11.5px; color: #a793b5; }
.foot-row { display: flex; align-items: center; gap: 7px; }
.foot-meta { margin-top: 3px; color: #8c7799; font-size: 11px; }

/* ---------------------------- main ---------------------------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-title h1 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; }
.topbar-title p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.content { padding: 24px 28px 64px; width: 100%; max-width: 1340px; }

/* ---------------------------- page head ---------------------------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 19px; font-weight: 600; }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------------------------- cards ---------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.card-head-actions { display: flex; gap: 8px; align-items: center; }
.card-body { padding: 18px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }

/* ---------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .16s, border-color .16s, transform .08s, box-shadow .16s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 8px 18px -10px rgba(123, 31, 162, .9);
}
.btn-primary:hover { box-shadow: 0 10px 22px -10px rgba(224, 0, 122, .9); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: #faf8fd; border-color: #d9d1e5; }
.btn-soft { background: #f4eef9; color: var(--brand); }
.btn-soft:hover { background: #ece2f5; }
.btn-danger { background: var(--red-bg); color: var(--red); border-color: #f6d3d0; }
.btn-danger:hover { background: #fbdedb; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }

.btn-icon {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--muted); cursor: pointer; font-size: 13.5px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-icon:hover { background: #f7f3fb; color: var(--brand); border-color: #ddd3ea; }
.btn-icon-danger:hover { background: var(--red-bg); color: var(--red); border-color: #f3cdc9; }

/* ---------------------------- forms ---------------------------- */
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label { font-size: 12.5px; font-weight: 600; color: #4b4458; }
.fld-grow { flex: 1 1 240px; }
.fld-sm { flex: 0 0 116px; }
.fld-hint { font-size: 11.5px; color: var(--muted-2); }

input[type=text], input[type=tel], input[type=search], input[type=number],
input[type=password], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 14px;
  padding: 9px 12px; border-radius: 9px;
  border: 1px solid #ded7e9; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(179, 22, 139, .12);
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; background-image: none; cursor: pointer; }

.filter-bar { padding: 14px 16px; }
.filter-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }

/* ---------------------------- stat cards -------------------------------------------------- */
.stat-card { padding: 16px 18px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.stat-value { font-size: 27px; font-weight: 700; letter-spacing: -.8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 12px; color: var(--muted); margin-top: 1px; }

.stat-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-stat {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 5px 11px; font-size: 12.5px; color: var(--muted);
}
.chip-stat strong { color: var(--ink); font-weight: 600; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.dot-green { background: #18a06b; }
.dot-amber { background: #d99400; }
.dot-blue { background: #2f7de0; }
.dot-red { background: #d9463c; }

/* ---------------------------- badge / pill ---------------------------- */
.badge, .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11.8px; font-weight: 600; white-space: nowrap;
  background: var(--gray-bg); color: var(--muted);
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-green, .badge-green { background: var(--green-bg); color: var(--green); }
.pill-amber, .badge-amber { background: var(--amber-bg); color: var(--amber); }
.pill-red, .badge-red { background: var(--red-bg); color: var(--red); }
.pill-blue, .badge-blue { background: var(--blue-bg); color: var(--blue); }
.pill-brand { background: #f8e8f4; color: #a3127a; }
.badge-type { background: #f8e8f4; color: #a3127a; }
.chip {
  background: #f3eef8; color: #5d4a6e; border-radius: 6px;
  padding: 1px 6px; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace;
  direction: ltr; unicode-bidi: isolate;
}

/* ---------------------------- tables ---------------------------- */
.table-wrap { overflow-x: auto; }
.data-table, table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th, table thead th {
  text-align: left; font-size: 11.3px; letter-spacing: .05em; text-transform: uppercase;
  color: #7a7189; font-weight: 600; padding: 10px 14px;
  background: #faf9fc; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table tbody td, table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tbody tr:last-child td, table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover, table tbody tr:hover { background: #fcfaff; }
.col-serial { width: 62px; }
.col-actions { width: 92px; text-align: center; }
.col-actions > div, .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.agent-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.page-btn:hover { background: #f7f3fb; border-color: #ddd3ea; }
.page-btn.current { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.page-btn.disabled { opacity: .42; pointer-events: none; }

/* ---------------------------- empty ---------------------------- */
.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state .bi { font-size: 30px; color: #c9bfd8; display: block; margin-bottom: 10px; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.empty-action { margin-top: 12px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------------------------- verify hero ---------------------------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 28px;
  color: #fff;
  background:
    radial-gradient(900px 320px at 88% -30%, rgba(224, 0, 122, .55), transparent 62%),
    radial-gradient(700px 300px at 8% 130%, rgba(123, 31, 162, .6), transparent 60%),
    linear-gradient(135deg, var(--violet-950), var(--violet-700));
  box-shadow: 0 22px 50px -30px rgba(42, 17, 54, .75);
}
.hero h2 { font-size: 21px; font-weight: 600; }
.hero > p { margin-top: 5px; color: #d3c1e0; font-size: 13.5px; max-width: 660px; }

.hero-form { display: flex; gap: 10px; margin-top: 20px; max-width: 640px; flex-wrap: wrap; }
.hero-input {
  flex: 1 1 250px; min-width: 0;
  padding: 13px 16px !important;
  font-family: ui-monospace, Menlo, monospace !important;
  font-size: 17px !important; font-weight: 600 !important; letter-spacing: 1.8px;
  direction: ltr; text-align: left;
  border: none !important; border-radius: 11px !important;
  background: rgba(255,255,255,.97) !important; color: #2a1136 !important;
}
.hero-input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.3) !important; }
.hero-submit { padding: 13px 22px !important; font-size: 15px !important; font-weight: 700 !important; background: #fff !important; color: var(--violet-800) !important; border: none !important; }
.hero-submit:hover { background: #f7edf8 !important; }
.hero-chips { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 13px; }
.hero-chips > span { font-size: 11.5px; color: #bfa8ce; }
.hero-chip {
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 8px; padding: 3px 10px;
  font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; cursor: pointer;
  direction: ltr;
}
.hero-chip:hover { background: rgba(255,255,255,.22); }

/* result panel */
.vres { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; border-radius: 13px; padding: 15px 17px; }
.vres.ok { background: rgba(17, 160, 107, .18); border: 1px solid rgba(46, 219, 156, .45); }
.vr-bad { background: rgba(179, 38, 30, .22); border: 1px solid rgba(255, 122, 112, .45); }
.vr-warn { background: rgba(154, 100, 0, .22); border: 1px solid rgba(255, 196, 87, .45); }
.vr-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.hero .ok .vr-icon, .vres.ok .vr-icon { background: #1fd694; color: #06301e; }
.vr-bad .vr-icon { background: #ff7a70; color: #3d0a07; }
.vr-warn .vr-icon { background: #ffc457; color: #3a2600; }
.vres h3 { font-size: 15.5px; font-weight: 600; }
.vres p { font-size: 13px; color: #ece2f2; margin-top: 2px; }
.vres-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.vres-meta > span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 2px 9px; font-size: 11.8px; }
.vres-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vres-btn-light { background: #fff; color: #0b5c3a; font-weight: 700; }
.vres-btn-dark { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.26); }

/* ---------------------------- notices ---------------------------- */
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 11px; padding: 12px 15px; font-size: 13px; }
.notice .bi { font-size: 15px; margin-top: 2px; flex: 0 0 auto; }
.notice-info { background: var(--blue-bg); color: #12488f; border: 1px solid #cfe1fb; }
.notice-ok { background: var(--green-bg); color: #0b5c3a; border: 1px solid #c8ecd9; }
.notice-warn { background: var(--amber-bg); color: #7a4f00; border: 1px solid #f2e0b5; }
.notice-err { background: var(--red-bg); color: #8d1d17; border: 1px solid #f6d4d1; }

/* ---------------------------- misc ---------------------------- */
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-weight: 600; }

.bar-row { margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 5px; }
.bar-track { height: 7px; background: #efeaf6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.steps { margin: 0; padding-inline-start: 18px; display: grid; gap: 11px; font-size: 13.5px; color: var(--ink-2); }
.steps strong { color: var(--ink); }

.step-track { display: flex; gap: 6px; margin-bottom: 14px; }
.step-track > div { flex: 1; height: 5px; border-radius: 99px; background: #efeaf6; }
.step-track > div.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.upload-zone {
  border: 2px dashed #ddd3ea; border-radius: 13px; padding: 34px 20px;
  text-align: center; background: #fcfaff; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--brand-2); background: #f9f2fb; }
.upload-zone .bi { font-size: 30px; color: #b9a8cc; display: block; margin-bottom: 8px; }

textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; direction: ltr; text-align: left; line-height: 1.7; }

/* toast */
#toast-host { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--violet-950); color: #fff;
  padding: 10px 17px; border-radius: 11px; font-size: 13.5px;
  box-shadow: 0 16px 40px -14px rgba(0,0,0,.55);
  display: flex; align-items: center; gap: 9px; animation: toastIn .22s ease;
  max-width: min(90vw, 460px);
}
.toast.err { background: #7f1d18; }
.toast-ok-dot { width: 8px; height: 8px; border-radius: 50%; background: #2edb9c; flex: 0 0 8px; }
.toast.err .toast-dot { background: #ff9a92; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* dialog */
dialog.modal { border: none; border-radius: 16px; padding: 0; width: min(460px, calc(100vw - 28px)); box-shadow: 0 34px 80px -24px rgba(20,10,35,.55); }
dialog.modal::backdrop { background: rgba(24, 16, 40, .45); backdrop-filter: blur(2px); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 18px 20px; display: grid; gap: 13px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #fbfafd; border-radius: 0 0 16px 16px; }

/* ---------------------------- responsive ---------------------------- */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 12px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden;
  }
  .brand { border: none; padding: 0; flex: 0 0 auto; }
  .brand-copy span { display: none; }
  .nav { flex-direction: row; gap: 1px; }
  .nav-group, .sidebar-foot { display: none; }
  .nav-link { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
  .nav-link span { display: none; }
  .nav-link i { font-size: 17px; }
  .nav-link.is-active { box-shadow: inset 0 -2.5px 0 var(--accent); }
  .content { padding: 16px 14px 56px; }
  .topbar { padding: 12px 14px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 20px; border-radius: 14px; }
  .hero h2 { font-size: 18px; }
}
@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .stat-value { font-size: 23px; }
}

@media print {
  .sidebar, .topbar-actions, .page-actions, .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
}

/* ---------------------------- extract by serial ---------------------------- */
.hero-field { display: flex; flex-direction: column; gap: 5px; flex: 0 1 150px; min-width: 0; }
.hero-field > label { font-size: 11.5px; font-weight: 600; color: #bfa8ce; letter-spacing: .04em; text-transform: uppercase; }
.hero-field .hero-input { flex: 1 1 auto; width: 100%; }
.extract-result:not(:empty) { margin-top: 18px; }

.extract-card { padding: 0; overflow: hidden; background: #fff; border-color: #e8e4ef; }
.extract-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 15px 18px; border-bottom: 1px solid var(--line);
  background: #faf9fc;
}
.extract-head h3 { font-size: 15px; font-weight: 600; color: var(--ink); }
.extract-head p { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.extract-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.extract-table { max-height: 520px; overflow-y: auto; }
.extract-table thead th { position: sticky; top: 0; z-index: 1; }
.extract-card .notice { margin: 12px 16px 0; }

@media (max-width: 640px) {
  .hero-field { flex: 1 1 100%; }
  .extract-actions { width: 100%; }
  .extract-actions .btn { flex: 1 1 auto; }
}

/* the verify result block lives inside the dark hero; keep light result cards readable */
.verify-result {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 18px;
  border-radius: 13px; padding: 15px 17px;
}
.verify-result.ok { background: rgba(17,160,107,.18); border: 1px solid rgba(46,219,156,.45); }
.verify-result.bad { background: rgba(179,38,30,.22); border: 1px solid rgba(255,122,112,.45); }
.verify-result.warn { background: rgba(154,100,0,.22); border: 1px solid rgba(255,196,87,.45); }
.verify-result h3 { font-size: 15.5px; font-weight: 600; color: #fff; }
.verify-result p { font-size: 13px; color: #ece2f2; margin-top: 2px; }
.verify-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.verify-meta > span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 2px 9px; font-size: 11.8px; color: #f2eafa; }
.verify-result.ok .vr-icon { background: #1fd694; color: #06301e; }
.verify-result.bad .vr-icon { background: #ff7a70; color: #3d0a07; }
.verify-result.warn .vr-icon { background: #ffc457; color: #3a2600; }

/* modal form fields (agent / campaign dialogs) */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12.5px; font-weight: 600; color: #4b4458; }
