:root{
  --blue:#0b3d7a; --blue2:#1559a8; --yellow:#ffcc00;
  --ink:#1a2330; --muted:#5b6676; --line:#e3e8ef; --bg:#eef2f7;
  --ok:#1a7f4b; --err:#c0392b; --radius:14px;
}
*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif;
  line-height:1.7; padding:16px;
}
.card{
  max-width:560px; margin:0 auto; background:#fff; border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(11,61,122,.12); overflow:hidden;
}
.head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 18px; background:#fff; border-bottom:1px solid var(--line);
}
.head .logo{height:54px; width:auto; object-fit:contain}
.title-bar{background:linear-gradient(135deg,var(--blue),var(--blue2)); color:#fff; padding:18px; text-align:center}
.title-bar h1{
  margin:0; font-size:1.5rem; font-weight:700;
  font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif; line-height:2.1;
}
.title-bar p{margin:6px 0 0; opacity:.9; font-size:.95rem}
.info{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  padding:12px 14px; background:#f7faff; border-bottom:1px solid var(--line); font-size:.86rem;
}
.info span{background:#fff; border:1px solid var(--line); border-radius:999px; padding:4px 12px}
form{padding:18px}
label{display:block; margin:0 0 14px; font-weight:700; font-size:.92rem; font-family:"Noto Nastaliq Urdu","Noto Naskh Arabic",serif; line-height:1.85}
label .lh{display:flex; justify-content:space-between; align-items:baseline; gap:10px}
label .lh .en{font-family:"Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif; font-size:.74rem; font-weight:600; color:var(--muted); white-space:nowrap}
.req{color:var(--err)}
input,select,textarea{
  width:100%; margin-top:6px; padding:11px 12px; color:var(--ink);
  font-family:"Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif; font-size:1rem;
  background:#fff; border:1.5px solid var(--line); border-radius:10px; outline:none;
}
input:focus,select:focus,textarea:focus{border-color:var(--blue2); box-shadow:0 0 0 3px rgba(21,89,168,.15)}
small{display:block; margin-top:5px; color:var(--muted); font-weight:400; font-size:.82rem}
.row{display:flex; gap:12px}
.row label{flex:1}
.hp{position:absolute; left:-9999px; opacity:0; height:0; width:0}
button[type=submit]{
  width:100%; margin-top:6px; padding:14px; font:inherit; font-weight:700; font-size:1.05rem;
  color:var(--blue); background:var(--yellow); border:none; border-radius:12px; cursor:pointer;
  transition:filter .15s;
}
button[type=submit]:hover{filter:brightness(.96)}
button[type=submit]:disabled{opacity:.6; cursor:not-allowed}
.msg{margin:12px 0 0; text-align:center; font-weight:600; min-height:1.2em}
.msg.err{color:var(--err)}
.done{padding:26px 22px; text-align:center}
.done .tick{
  width:64px; height:64px; margin:0 auto 10px; border-radius:50%;
  background:var(--ok); color:#fff; font-size:2rem; line-height:64px;
}
.done h2{margin:.2em 0; font-size:1.25rem; color:var(--ok)}
.wa{
  display:inline-block; margin:10px 0; padding:11px 22px; background:#25d366; color:#fff;
  text-decoration:none; border-radius:10px; font-weight:700;
}
.small{color:var(--muted); font-size:.9rem}
.link{background:none; border:none; color:var(--blue2); cursor:pointer; font:inherit; text-decoration:underline}
.foot{padding:12px; text-align:center; color:var(--muted); font-size:.82rem; border-top:1px solid var(--line)}

/* ---------- Admin ---------- */
.admin{max-width:1100px; margin:0 auto; background:#fff; border-radius:var(--radius); padding:18px; box-shadow:0 10px 30px rgba(11,61,122,.12)}
.admin h1{font-family:"Noto Naskh Arabic","Segoe UI",Tahoma,sans-serif; color:var(--blue); font-size:1.5rem; margin:.2em 0 .6em}
#login{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
#login input{max-width:260px}
.btn{
  display:inline-block; padding:9px 16px; background:var(--blue); color:#fff; border:none;
  border-radius:9px; cursor:pointer; font:inherit; font-weight:600; text-decoration:none;
}
.btn:hover{filter:brightness(1.08)}
.bar{display:flex; align-items:center; gap:10px; margin:6px 0 14px}
.bar .spacer{flex:1}
#count{font-weight:700; color:var(--blue)}
.tablewrap{overflow:auto; border:1px solid var(--line); border-radius:10px}
table{border-collapse:collapse; width:100%; font-size:.86rem; white-space:nowrap}
th,td{border-bottom:1px solid var(--line); padding:8px 10px; text-align:start}
th{background:var(--blue); color:#fff; position:sticky; top:0}
tr:nth-child(even) td{background:#f7faff}
@media(max-width:480px){.row{flex-direction:column; gap:0} .head .logo{height:44px}}
