/* ReconCheck UI (no frameworks). Dark/Light via html.theme-dark / html.theme-light */

:root{
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --border-dark: rgba(148,163,184,.18);
  --border-light: rgba(148,163,184,.45);
  --txt-dark: #e5e7eb;
  --txt-light: #0f172a;
  --muted-dark: rgba(226,232,240,.72);
  --muted-light: rgba(15,23,42,.72);
  --card-dark: rgba(15,23,42,.66);
  --card-light: rgba(255,255,255,.78);
  --bg-dark: #020617;
  --bg-light: #f8fafc;
  --pri: #6366f1;
  --pri2: #22d3ee;
}

*{ box-sizing:border-box; }
body{ margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; }

html.theme-dark body{ color: var(--txt-dark); background: var(--bg-dark); }
html.theme-light body{ color: var(--txt-light); background: var(--bg-light); }

.bg{
  min-height:100vh;
  background:
    radial-gradient(1100px 650px at 15% 20%, rgba(34,211,238,.18) 0%, transparent 60%),
    radial-gradient(1200px 650px at 80% 20%, rgba(99,102,241,.22) 0%, transparent 62%),
    radial-gradient(900px 600px at 70% 85%, rgba(16,185,129,.10) 0%, transparent 55%);
}
html.theme-light .bg{
  background:
    radial-gradient(1100px 650px at 15% 20%, rgba(34,211,238,.20) 0%, transparent 60%),
    radial-gradient(1200px 650px at 80% 20%, rgba(99,102,241,.18) 0%, transparent 62%),
    radial-gradient(900px 600px at 70% 85%, rgba(16,185,129,.10) 0%, transparent 55%),
    #f8fafc;
}

.wrap{ max-width: 1200px; margin: 0 auto; padding: 34px 16px 60px; }

.card{
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--card-dark);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
html.theme-light .card{
  border: 1px solid var(--border-light);
  background: var(--card-light);
  box-shadow: 0 10px 30px rgba(15,23,42,.10);
}

.hero{ display:flex; gap:16px; align-items:flex-start; justify-content:space-between; padding: 18px 18px; }
.brand{ display:flex; gap:12px; align-items:flex-start; }
.logo{
  width:44px; height:44px; border-radius: 14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(34,211,238,.75));
  font-weight:800; letter-spacing:.5px;
  color:white; box-shadow: 0 10px 24px rgba(0,0,0,.20);
}

.logo-img{
  width:44px; height:44px; border-radius: 14px;
  object-fit: contain;
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
}
html.theme-light .logo-img{
  background: rgba(15,23,42,.04);
}

.title{ font-size: 18px; font-weight: 800; }
.subtitle{ margin-top:2px; font-size: 13px; opacity:.85; }
.pill{
  margin-top:10px;
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(2,6,23,.35);
  font-size: 12px;
  opacity:.9;
}
html.theme-light .pill{
  border: 1px solid var(--border-light);
  background: rgba(241,245,249,.65);
}

.toolbar{ display:flex; gap:10px; align-items:center; }
.seg{ display:flex; border:1px solid var(--border-dark); border-radius: 999px; overflow:hidden; }
html.theme-light .seg{ border:1px solid var(--border-light); }
.seg-btn{
  padding: 8px 10px;
  background: transparent;
  color: inherit;
  border:0;
  cursor:pointer;
  font-weight: 700;
  opacity:.85;
}
.seg-btn.active{
  background: rgba(99,102,241,.25);
  opacity:1;
}

.grid{ margin-top:16px; display:grid; gap:16px; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 980px){ .grid{ grid-template-columns: 1fr; } }

.h2{ margin:0 0 6px 0; font-size: 16px; font-weight: 800; }
.h3{ margin: 0 0 10px 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; opacity:.9; }
.mt{ margin-top: 14px; }
.muted{ opacity:.78; }

.form{ margin-top: 14px; display:flex; flex-direction:column; gap: 12px; }
.row{ display:grid; gap: 12px; grid-template-columns: 1fr; }
@media(min-width: 820px){ .row{ grid-template-columns: 1fr 1fr; } .row:nth-child(2){ grid-template-columns: 1fr 1fr 1fr; } }
.field label{ display:block; font-size: 12px; opacity:.8; margin: 0 0 6px; }
.field input, .field select{
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--border-dark);
  background: rgba(2,6,23,.28);
  color: inherit;
  padding: 11px 12px;
  outline:none;
}
html.theme-light .field input, html.theme-light .field select{
  border: 1px solid var(--border-light);
  background: rgba(241,245,249,.65);
}
.field input:focus, .field select:focus{
  border-color: rgba(99,102,241,.7);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}

.check{ display:flex; gap:10px; align-items:flex-start; font-size: 12px; opacity:.9; }
.check input{ margin-top:3px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-dark);
  background: rgba(2,6,23,.18);
  color: inherit;
  cursor:pointer;
  text-decoration:none;
  font-weight: 800;
}
html.theme-light .btn{ border: 1px solid var(--border-light); background: rgba(241,245,249,.75); }
.btn:hover{ transform: translateY(-1px); }
.btn.primary{
  border-color: rgba(99,102,241,.65);
  background: linear-gradient(135deg, rgba(99,102,241,.90), rgba(34,211,238,.55));
  color: #0b1020;
}
.btn.ghost{ background: transparent; }
.btn.danger{
  border-color: rgba(244,63,94,.5);
  background: rgba(244,63,94,.10);
}
.note{ font-size: 12px; opacity:.75; padding: 8px 0; }
.divider{ margin: 16px 0; border-top: 1px solid var(--border-dark); }
html.theme-light .divider{ border-top: 1px solid var(--border-light); }

.mini-grid{ display:grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media(min-width: 860px){ .mini-grid{ grid-template-columns: repeat(4, 1fr); } }
.mini{
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 10px;
  background: rgba(2,6,23,.18);
}
html.theme-light .mini{ border: 1px solid var(--border-light); background: rgba(241,245,249,.65); }
.mini-k{ font-size: 11px; opacity:.75; }
.mini-v{ margin-top:4px; font-weight: 900; }
.mini-v.big{ font-size: 18px; letter-spacing: .02em; }

.findings{ margin: 0; padding-left: 18px; }
.findings li{ margin: 6px 0; }

.downloads{ display:flex; flex-wrap:wrap; gap: 10px; margin: 12px 0 4px; }

.footer-note{ margin-top: 16px; font-size: 12px; opacity: .72; }

.block{ margin-top: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--border-dark); background: rgba(2,6,23,.18); }
html.theme-light .block{ border: 1px solid var(--border-light); background: rgba(241,245,249,.65); }
.block-title{ font-size: 12px; font-weight: 900; letter-spacing:.08em; opacity:.9; }
.block-text{ margin-top: 8px; font-size: 13px; opacity:.85; line-height: 1.4; }
.aside-foot{ margin-top: 16px; font-size: 12px; }

.modal{ position: fixed; inset: 0; display:none; place-items:center; background: rgba(0,0,0,.45); padding: 18px; }
.modal[aria-hidden="false"]{ display:grid; }
.modal-card{ width:min(980px, 96vw); max-height: 85vh; overflow:hidden; border-radius: 18px; border: 1px solid var(--border-dark); background: rgba(15,23,42,.92); box-shadow: var(--shadow); }
html.theme-light .modal-card{ border: 1px solid var(--border-light); background: rgba(255,255,255,.95); }
.modal-head{ display:flex; align-items:center; justify-content:space-between; padding: 12px 14px; border-bottom: 1px solid var(--border-dark); }
html.theme-light .modal-head{ border-bottom: 1px solid var(--border-light); }
.modal-title{ font-weight: 900; }
.jsonpre{ margin:0; padding: 14px; overflow:auto; max-height: calc(85vh - 56px); font-size: 12px; line-height: 1.4; }

.table{ width:100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td{ border-bottom: 1px solid var(--border-dark); padding: 10px 10px; text-align:left; vertical-align:top; }
html.theme-light .table th, html.theme-light .table td{ border-bottom: 1px solid var(--border-light); }
.table th{ font-size: 12px; opacity:.8; }
.nowrap{ white-space: nowrap; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }


/* --- Admin UI helpers --- */
body.admin .wrap{ max-width: 1120px; margin: 0 auto; padding: 22px; }
body.admin .topbar{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom: 14px; }
body.admin .brand .title{ font-weight: 900; font-size: 18px; }
body.admin .brand .tagline{ opacity:.78; margin-top: 4px; font-size: 12px; }
body.admin .actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
body.admin .card{ border: 1px solid var(--border-dark); border-radius: 18px; background: rgba(2,6,23,.18); padding: 16px; margin: 12px 0; }
html.theme-light body.admin .card{ border: 1px solid var(--border-light); background: rgba(241,245,249,.75); }
body.admin .grid2{ display:grid; gap: 10px; grid-template-columns: 1fr; }
@media(min-width: 900px){ body.admin .grid2{ grid-template-columns: 1fr 1fr; } }
body.admin .pre{ margin:0; padding: 12px; border-radius: 14px; border: 1px solid var(--border-dark); background: rgba(2,6,23,.28); overflow:auto; max-height: 55vh; font-size: 12px; }
html.theme-light body.admin .pre{ border: 1px solid var(--border-light); background: rgba(241,245,249,.65); }
body.admin label{ display:block; font-size:12px; opacity:.78; margin-bottom:6px; }
body.admin .input, body.admin .textarea{ width:100%; border-radius: 14px; border: 1px solid var(--border-dark); background: rgba(2,6,23,.28); color: inherit; padding: 10px 12px; outline:none; }
html.theme-light body.admin .input, html.theme-light body.admin .textarea{ border: 1px solid var(--border-light); background: rgba(241,245,249,.65); }
body.admin .textarea{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.35; }

