:root{
  --ink:#0b2340; --muted:#5a6b7b;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
  --radius: 16px;
  --good:#1a7f37; --bad:#b42318;
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: radial-gradient(1200px 600px at 20% 10%, #243b55 0%, #141e30 55%, #0b1020 100%);
  min-height:100vh;
}
.wrap{ max-width:980px; margin:0 auto; padding:22px 16px 48px; position:relative; }
.top{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.backLink{ color:rgba(255,255,255,.9); text-decoration:none; font-weight:900; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.08); }
.langToggle{ display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:999px; background:#fff; box-shadow:0 4px 14px rgba(0,0,0,.06); }
.muted{ color:var(--muted); font-size:13px; }
.switch{ width:48px;height:28px;border-radius:20px;background:#d7dde5; position:relative; cursor:pointer; }
.knob{ width:22px;height:22px;border-radius:50%; background:#fff; position:absolute; top:3px; left:3px; transition:all .2s ease; box-shadow:0 4px 10px rgba(0,0,0,.15); }
.switch.on{ background:#0b2340; } .switch.on .knob{ left:23px; }

.heroCard{ background:rgba(255,255,255,.92); border-radius:18px; box-shadow:0 16px 36px rgba(0,0,0,.18); padding:16px; }
.heroCard h1{ margin:0; font-size:22px; }
.ctaRow{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.btnLink{ display:inline-flex; align-items:center; padding:12px 14px; border-radius:14px; border:1px solid #dfe6ef; background:#fff; font-weight:900; color:#0b2340; text-decoration:none; }

.card{ margin-top:14px; background:rgba(255,255,255,.93); border-radius:18px; box-shadow:0 16px 36px rgba(0,0,0,.18); padding:18px; }
.disclaimer{ padding:12px; border-radius:14px; background:#f6f8fc; border:1px solid #e7edf6; font-size:13px; color:var(--muted); }
.section{ margin-top:14px; }
.section h2{ margin:0 0 10px; font-size:18px; }
.divider{ height:1px; background:#eef2f7; margin:16px 0; }

.grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media(max-width:820px){ .grid{ grid-template-columns:1fr; } }

label{ display:block; font-size:13px; color:var(--muted); margin:10px 0 6px; }
input,select,textarea{ width:100%; padding:12px 12px; border-radius:12px; border:1px solid #dfe6ef; background:#fff; outline:none; font-size:14px; }
textarea{ min-height:110px; resize:vertical; }

.drop{ border:2px dashed #cfd9e6; border-radius:14px; padding:14px; background:#fff; }
.drop.dragover{ border-color:#0b2340; background:#f1f5ff; }
.dropTop{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dropActions{ display:flex; gap:10px; align-items:center; }
.fileList{ margin-top:10px; font-size:13px; color:var(--muted); }
.fileItem{ display:flex; justify-content:space-between; gap:10px; padding:6px 0; border-bottom:1px solid #eef2f7; }
.fileItem:last-child{ border-bottom:none; }

.smallBtn{ border:1px solid #dfe6ef; background:#fff; padding:10px 12px; border-radius:12px; cursor:pointer; font-weight:900; }
.actions{ margin-top:16px; display:flex; justify-content:flex-end; }
.btn{ border:none; padding:12px 16px; border-radius:14px; cursor:pointer; font-weight:900; background:#0b2340; color:#fff; box-shadow:0 10px 24px rgba(11,35,64,.18); }
.footer{ margin-top:18px; text-align:center; color:var(--muted); font-size:13px; }

.overlay{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:999; align-items:center; justify-content:center; }
.overlay.show{ display:flex; }
.modal{ width:min(560px,92vw); background:#fff; border-radius:18px; box-shadow:0 18px 40px rgba(0,0,0,.22); padding:18px; }
.modalTop{ display:flex; gap:12px; align-items:center; }
.spin{ width:40px;height:40px; border:4px solid rgba(11,35,64,.18); border-top-color:#0b2340; border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.modalTitle{ margin:0; font-size:16px; }
.modalMsg{ margin:10px 0 0; color:#0b2340; white-space:pre-wrap; }
.modalMsg.good{ color:var(--good); }
.modalMsg.bad{ color:var(--bad); }
.modalActions{ display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.modalBtn{ border:1px solid #dfe6ef; background:#fff; padding:10px 12px; border-radius:12px; cursor:pointer; }
.modalBtn.primary{ border:none; background:#0b2340; color:#fff; font-weight:900; }
