/* ============================================================
   OFFICIAL THEME — Government/Service Portal Style
   ============================================================ */
:root{
  --primary:#0a3d62;
  --primary-2:#1e5b8c;
  --primary-3:#052540;
  --accent:#b8860b;
  --accent-2:#d4a017;
  --bg:#eef2f7;
  --bg-2:#f8fafc;
  --card:#ffffff;
  --text:#0f172a;
  --text-2:#334155;
  --muted:#64748b;
  --border:#dbe3ec;
  --border-2:#c1cbd8;
  --success:#047857;
  --success-bg:#ecfdf5;
  --danger:#b91c1c;
  --danger-bg:#fef2f2;
  --warning:#b45309;
  --warning-bg:#fffbeb;
  --r:10px;
  --r-lg:14px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow:0 2px 8px rgba(15,23,42,.07), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md:0 6px 18px rgba(15,23,42,.09);
  --shadow-lg:0 14px 40px rgba(10,61,98,.15);
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:'Hind Siliguri','Inter',system-ui,-apple-system,sans-serif;
  color:var(--text); background:var(--bg);
  display:flex; justify-content:center; overflow-x:hidden;
  font-size:15px; line-height:1.6;
}

/* ============ FIXED MOBILE FRAME ============ */
.app{
  width:100%; max-width:430px; min-height:100vh;
  background:var(--bg);
  position:relative; overflow-x:hidden;
  border-left:1px solid var(--border);
  border-right:1px solid var(--border);
}

/* ============ INTRO SPLASH ============ */
#intro{
  position:fixed; inset:0; z-index:9999;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:linear-gradient(180deg,#f8fafc 0%,#e8eef5 100%);
  transition:opacity .5s ease, visibility .5s ease;
}
#intro.hide{opacity:0;visibility:hidden}
.intro-logo{
  width:120px;height:120px;object-fit:contain;
  padding:14px; background:#fff; border-radius:20px;
  border:1px solid var(--border);
  box-shadow:0 12px 32px rgba(10,61,98,.16);
  animation:logoIn .8s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes logoIn{
  0%{transform:scale(.7);opacity:0}
  100%{transform:scale(1);opacity:1}
}
.intro-title{
  margin-top:22px; font-size:15px; font-weight:600; color:var(--primary);
  letter-spacing:.6px; text-transform:uppercase;
  opacity:0; animation:fadeUp .6s ease .35s forwards;
}
.intro-sub{
  margin-top:4px; font-size:12px; color:var(--muted); letter-spacing:.3px;
  opacity:0; animation:fadeUp .6s ease .5s forwards;
}
@keyframes fadeUp{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
.intro-bar{
  margin-top:32px; width:120px; height:3px;
  background:#dbe3ec; border-radius:99px; overflow:hidden;
}
.intro-bar span{
  display:block; height:100%; width:45%;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
  border-radius:99px; animation:barLoad 1.4s ease-in-out infinite;
}
@keyframes barLoad{0%{transform:translateX(-130%)}100%{transform:translateX(280%)}}

/* ============ BRAND BAR (every page) ============ */
.brandbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 18px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.brandbar .logo-box{
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.brandbar .logo-box img{
  width:42px; height:42px; object-fit:contain;
  padding:3px; background:#fff;
  border-radius:10px; border:1px solid var(--border);
}
.brandbar .logo-box .mini-title{
  display:flex; flex-direction:column; line-height:1.15;
}
.brandbar .logo-box .mini-title b{
  font-size:12.5px; font-weight:700; color:var(--primary);
  letter-spacing:.2px;
}
.brandbar .logo-box .mini-title small{
  font-size:10px; color:var(--muted); letter-spacing:.4px;
  text-transform:uppercase;
}
.btn-mini{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600;
  padding:8px 14px; border-radius:8px;
  background:var(--primary); color:#fff; text-decoration:none;
  box-shadow:0 3px 8px rgba(10,61,98,.24);
  transition:transform .15s ease, background .2s;
}
.btn-mini:hover{background:var(--primary-2)}
.btn-mini:active{transform:scale(.95)}
.btn-mini.ghost{
  background:#fff; color:var(--primary);
  border:1.5px solid var(--primary);
  box-shadow:none;
}
.btn-mini.ghost:hover{background:#f0f6fc}

/* ============ CONTENT ============ */
.content{padding:20px 18px 40px}

/* ============ OFFICIAL HERO ============ */
.hero{
  position:relative; overflow:hidden;
  border-radius:var(--r-lg);
  padding:26px 22px 24px;
  margin-bottom:20px;
  background:linear-gradient(135deg,#0a3d62 0%,#1e5b8c 100%);
  color:#fff;
  box-shadow:var(--shadow-md);
  animation:slideIn .55s ease both;
}
.hero::before{
  content:""; position:absolute; right:-40px; top:-40px;
  width:160px; height:160px; border-radius:50%;
  background:radial-gradient(circle,rgba(212,160,23,.35),transparent 70%);
}
.hero::after{
  content:""; position:absolute; left:-30px; bottom:-50px;
  width:130px; height:130px; border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.08),transparent 70%);
}
.hero .eyebrow{
  font-size:11px; font-weight:600; letter-spacing:1.4px;
  text-transform:uppercase; color:#fde68a;
  opacity:.9; margin-bottom:8px;
}
.hero h1{
  font-size:22px; font-weight:700; line-height:1.35;
  margin-bottom:8px; position:relative; z-index:1;
}
.hero p{
  font-size:13.5px; line-height:1.65; color:#dbe9f5;
  max-width:300px; position:relative; z-index:1;
}
.hero .cta{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:18px; padding:11px 20px; border-radius:9px;
  font-size:13px; font-weight:600;
  background:#fff; color:var(--primary);
  text-decoration:none; position:relative; z-index:1;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  transition:transform .15s ease;
}
.hero .cta:active{transform:scale(.95)}

/* ============ INFO STRIP ============ */
.info-strip{
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; margin-bottom:20px;
  background:#fff; border:1px solid var(--border);
  border-left:4px solid var(--accent);
  border-radius:var(--r);
  font-size:12.5px; color:var(--text-2);
  box-shadow:var(--shadow-sm);
}
.info-strip svg{flex-shrink:0; color:var(--accent); width:18px; height:18px}

/* ============ SECTION HEAD ============ */
.sec-head{
  display:flex; align-items:center; justify-content:space-between;
  margin:24px 0 12px;
  padding-bottom:8px;
  border-bottom:2px solid var(--border);
}
.sec-head h2{
  font-size:14px; font-weight:700; color:var(--primary);
  letter-spacing:.4px; text-transform:uppercase;
  display:flex; align-items:center; gap:8px;
}
.sec-head h2::before{
  content:""; width:3px; height:16px; border-radius:2px;
  background:var(--accent);
}
.sec-head .count{
  font-size:11.5px; color:var(--muted); font-weight:600;
}

/* ============ SERVICE GRID ============ */
.svc-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.svc-card{
  position:relative; overflow:hidden;
  border-radius:var(--r);
  background:#fff; border:1px solid var(--border);
  padding:14px 13px 15px; cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .22s ease, border-color .18s;
  animation:slideIn .5s ease both;
}
.svc-card:hover{box-shadow:var(--shadow-md); border-color:var(--border-2)}
.svc-card:active{transform:scale(.97); border-color:var(--primary)}
.svc-card .thumb{
  width:100%; height:76px;
  border-radius:8px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f1f5f9,#e2e8f0);
  border:1px solid var(--border);
  margin-bottom:10px;
}
.svc-card .thumb img{width:100%; height:100%; object-fit:cover}
.svc-card .thumb .emoji{
  font-size:30px;
  filter:drop-shadow(0 2px 4px rgba(15,23,42,.15));
}
.svc-card h3{
  font-size:13.5px; font-weight:700; color:var(--text);
  margin-bottom:3px; line-height:1.35;
}
.svc-card p{
  font-size:11.5px; color:var(--muted); line-height:1.5;
  height:34px; overflow:hidden;
}
.svc-card .price{
  display:inline-block; margin-top:9px;
  font-size:12px; font-weight:700; color:var(--success);
  padding:4px 10px; border-radius:6px;
  background:var(--success-bg);
  border:1px solid rgba(4,120,87,.18);
}
.svc-card .tag{
  position:absolute; top:10px; right:10px;
  font-size:9.5px; font-weight:700; letter-spacing:.5px;
  text-transform:uppercase; color:#fff;
  padding:3px 8px; border-radius:4px;
  background:var(--accent);
  box-shadow:0 3px 8px rgba(184,134,11,.35);
}

/* ============ FORM CARD ============ */
.form-wrap{padding:26px 18px 40px; animation:slideIn .5s ease both}
.form-card{
  background:#fff; border:1px solid var(--border);
  border-radius:var(--r-lg); padding:26px 22px;
  box-shadow:var(--shadow);
}
.form-head{text-align:center; margin-bottom:22px}
.form-head .logo-lg{
  width:86px; height:86px; object-fit:contain;
  padding:10px; background:#fff;
  border-radius:18px; border:1px solid var(--border);
  margin-bottom:14px;
  box-shadow:0 6px 20px rgba(10,61,98,.12);
}
.form-head h1{
  font-size:20px; font-weight:700; color:var(--primary);
  margin-bottom:4px; letter-spacing:.2px;
}
.form-head p{font-size:13px; color:var(--muted)}
.form-head .divider-line{
  display:flex; align-items:center; justify-content:center;
  gap:10px; margin-top:12px;
}
.form-head .divider-line::before,
.form-head .divider-line::after{
  content:""; flex:1; height:1px; background:var(--border);
}
.form-head .divider-line span{
  font-size:10.5px; font-weight:700; letter-spacing:1.4px;
  color:var(--accent); text-transform:uppercase;
}

/* ============ FIELDS ============ */
.field{margin-bottom:15px}
.field label{
  display:block; font-size:12.5px; font-weight:600;
  color:var(--text-2); margin-bottom:6px;
}
.field .hint{
  font-size:11px; color:var(--muted); margin-top:5px;
}
.input-wrap{position:relative; display:flex; align-items:center}
.input-wrap .icon{
  position:absolute; left:13px;
  width:17px; height:17px; color:var(--muted);
  pointer-events:none;
}
.input-wrap input,
.input-wrap select{
  width:100%; padding:12px 14px 12px 40px;
  font-size:14px; font-family:inherit; color:var(--text);
  background:#f8fafc;
  border:1.5px solid var(--border);
  border-radius:var(--r);
  outline:none;
  transition:border-color .18s, background .18s, box-shadow .18s;
  -webkit-appearance:none; appearance:none;
}
.input-wrap input::placeholder{color:#94a3b8}
.input-wrap input:focus,
.input-wrap select:focus{
  border-color:var(--primary);
  background:#fff;
  box-shadow:0 0 0 3px rgba(10,61,98,.12);
}
.eye-btn{
  position:absolute; right:8px;
  width:34px; height:34px; border-radius:8px; border:none;
  display:flex; align-items:center; justify-content:center;
  background:transparent; color:var(--muted); cursor:pointer;
  transition:background .15s, color .15s;
}
.eye-btn:hover{background:#eef2f7; color:var(--primary)}

/* ============ GENDER RADIO ============ */
.gender-row{display:flex; gap:8px}
.gender-row input{display:none}
.gender-row label{
  flex:1; margin:0; padding:11px 6px; text-align:center;
  font-size:12.5px; font-weight:600; color:var(--text-2);
  background:#f8fafc; border:1.5px solid var(--border);
  border-radius:var(--r); cursor:pointer;
  transition:all .18s ease;
  display:flex; flex-direction:column; align-items:center; gap:3px;
}
.gender-row label .em{font-size:16px; line-height:1}
.gender-row input:checked + label{
  background:#f0f6fc;
  border-color:var(--primary);
  color:var(--primary);
  box-shadow:0 0 0 3px rgba(10,61,98,.1);
}

/* ============ STRENGTH METER ============ */
.strength{margin-top:8px; display:flex; gap:4px}
.strength i{
  flex:1; height:4px; border-radius:99px;
  background:#e2e8f0; transition:background .25s;
}
.strength.s1 i:nth-child(1){background:#dc2626}
.strength.s2 i:nth-child(-n+2){background:#d97706}
.strength.s3 i:nth-child(-n+3){background:#ca8a04}
.strength.s4 i{background:#059669}
.strength-text{
  font-size:11px; color:var(--muted); margin-top:6px;
  display:flex; justify-content:space-between;
}
.strength-text b{font-weight:600; color:var(--text-2)}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  width:100%; padding:14px 16px;
  border:none; border-radius:var(--r);
  font-family:inherit; font-size:14.5px; font-weight:700;
  letter-spacing:.2px; color:#fff; cursor:pointer;
  text-decoration:none; text-align:center;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  box-shadow:0 6px 16px rgba(10,61,98,.28);
  transition:transform .15s ease, box-shadow .2s;
  margin-top:4px;
}
.btn:hover{box-shadow:0 8px 22px rgba(10,61,98,.35)}
.btn:active{transform:scale(.97); box-shadow:0 3px 10px rgba(10,61,98,.3)}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn-ghost{
  background:#fff; color:var(--primary);
  border:1.5px solid var(--primary);
  box-shadow:none;
}
.btn-ghost:hover{background:#f0f6fc}
.btn-gold{
  background:linear-gradient(135deg,#b8860b,#d4a017);
  box-shadow:0 6px 16px rgba(184,134,11,.35);
}

/* ============ ALERTS ============ */
.alert{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px 14px; border-radius:var(--r);
  font-size:12.5px; line-height:1.65;
  margin-bottom:16px;
  animation:slideDown .35s ease both;
}
.alert svg{flex-shrink:0; margin-top:2px; width:16px; height:16px}
.alert.err{background:var(--danger-bg); border:1px solid #fecaca; color:#991b1b}
.alert.ok{background:var(--success-bg); border:1px solid #a7f3d0; color:#065f46}
.alert.warn{background:var(--warning-bg); border:1px solid #fde68a; color:#78350f}
.alert b{font-weight:700}
@keyframes slideDown{0%{opacity:0;transform:translateY(-6px)}100%{opacity:1;transform:none}}

/* ============ PROFILE ============ */
.profile-header{
  background:linear-gradient(135deg,#0a3d62,#1e5b8c);
  color:#fff; padding:24px 20px 26px;
  border-radius:0 0 24px 24px;
  position:relative; overflow:hidden;
  margin:-20px -18px 20px;
  animation:slideIn .5s ease both;
}
.profile-header::before{
  content:""; position:absolute; right:-60px; top:-60px;
  width:200px; height:200px; border-radius:50%;
  background:radial-gradient(circle,rgba(212,160,23,.28),transparent 70%);
}
.profile-header .pfp{
  width:78px; height:78px; border-radius:50%;
  overflow:hidden; background:#fff;
  border:3px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  font-size:30px; font-weight:700; color:var(--primary);
  box-shadow:0 8px 24px rgba(0,0,0,.25);
  position:relative; z-index:1;
  margin-bottom:14px;
}
.profile-header .pfp img{width:100%; height:100%; object-fit:cover}
.profile-header h2{
  font-size:19px; font-weight:700; letter-spacing:.3px;
  position:relative; z-index:1;
}
.profile-header .email{
  font-size:12.5px; color:#dbe9f5; margin-top:2px;
  position:relative; z-index:1;
}
.badge-pill{
  display:inline-flex; align-items:center; gap:5px;
  margin-top:10px; font-size:10.5px; font-weight:700;
  letter-spacing:.6px; text-transform:uppercase;
  padding:4px 10px; border-radius:99px;
  position:relative; z-index:1;
}
.badge-pill.premium{background:linear-gradient(135deg,#facc15,#eab308); color:#422006}
.badge-pill.normal{background:rgba(255,255,255,.2); color:#fff}

.stat-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px}
.stat{
  background:#fff; border:1px solid var(--border);
  border-radius:var(--r); padding:15px;
  box-shadow:var(--shadow-sm);
  animation:slideIn .5s ease both;
}
.stat small{
  font-size:11px; color:var(--muted); display:block;
  margin-bottom:6px; font-weight:600;
  letter-spacing:.3px; text-transform:uppercase;
}
.stat b{
  font-size:17px; font-weight:700; color:var(--primary);
}

.panel{
  background:#fff; border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow-sm);
  margin-bottom:16px;
}
.panel-head{
  padding:12px 16px; background:#f8fafc;
  border-bottom:1px solid var(--border);
  font-size:12px; font-weight:700; letter-spacing:.4px;
  text-transform:uppercase; color:var(--primary);
}
.info-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 16px; font-size:13px;
  border-bottom:1px solid #f1f5f9;
}
.info-row:last-child{border-bottom:none}
.info-row span{color:var(--muted); font-size:12.5px}
.info-row b{
  font-weight:600; color:var(--text-2);
  max-width:62%; text-align:right; word-break:break-word;
  font-size:12.5px;
}

/* ============ UPLOAD BOX ============ */
.upload-box{
  display:flex; align-items:center; gap:14px;
  padding:14px; background:#fff;
  border:1.5px dashed var(--border-2);
  border-radius:var(--r);
  margin-bottom:12px;
}
.upload-box .preview{
  width:56px; height:56px; border-radius:50%;
  overflow:hidden; flex-shrink:0;
  background:#f1f5f9;
  border:2px solid #fff;
  box-shadow:0 3px 10px rgba(15,23,42,.1);
  display:flex; align-items:center; justify-content:center;
  font-size:22px; color:var(--muted);
}
.upload-box .preview img{width:100%; height:100%; object-fit:cover}
.upload-box .info{flex:1; min-width:0}
.upload-box .info h4{
  font-size:13.5px; font-weight:700; color:var(--text);
  margin-bottom:2px;
}
.upload-box .info p{font-size:11.5px; color:var(--muted)}
.file-input{display:none}
.file-label{
  font-size:12px; font-weight:700;
  padding:9px 14px; border-radius:8px;
  background:var(--primary); color:#fff;
  cursor:pointer; white-space:nowrap;
  box-shadow:0 3px 8px rgba(10,61,98,.24);
  transition:transform .15s ease;
}
.file-label:active{transform:scale(.95)}

/* ============ MODAL ============ */
.modal-bg{
  position:fixed; inset:0; z-index:998;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  display:none; align-items:flex-end; justify-content:center;
}
.modal-bg.show{display:flex; animation:fadeIn .22s ease}
.modal{
  width:100%; max-width:430px;
  background:#fff;
  border-top-left-radius:22px; border-top-right-radius:22px;
  padding:24px 22px calc(26px + env(safe-area-inset-bottom));
  animation:sheetUp .32s cubic-bezier(.2,.9,.3,1.05);
}
.modal .drag{
  width:44px; height:4px; border-radius:99px;
  background:var(--border-2);
  margin:0 auto 18px;
}
.modal h3{
  font-size:17px; font-weight:700; color:var(--primary);
  margin-bottom:6px;
}
.modal p{
  font-size:13px; color:var(--text-2); line-height:1.65;
  margin-bottom:16px;
}
.modal .price-box{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-radius:var(--r);
  background:var(--success-bg);
  border:1px solid #a7f3d0;
  margin-bottom:16px;
}
.modal .price-box small{
  font-size:12px; color:var(--text-2); font-weight:600;
}
.modal .price-box b{
  font-size:19px; font-weight:800; color:var(--success);
}
@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}
@keyframes sheetUp{0%{transform:translateY(100%)}100%{transform:none}}

/* ============ TOAST ============ */
.toast{
  position:fixed; left:50%; bottom:32px;
  transform:translate(-50%,20px);
  max-width:340px;
  padding:12px 18px;
  background:#0f172a; color:#fff;
  font-size:13px; font-weight:500; text-align:center;
  border-radius:10px;
  box-shadow:0 14px 40px rgba(0,0,0,.35);
  opacity:0; pointer-events:none;
  transition:all .3s ease; z-index:999;
}
.toast.show{opacity:1; transform:translate(-50%,0)}

/* ============ LINKS / FOOT ============ */
.foot-link{
  text-align:center; font-size:13px;
  color:var(--muted); margin-top:20px;
}
.foot-link a{
  color:var(--primary); font-weight:700;
  text-decoration:none; border-bottom:1px dashed var(--primary);
}
.foot-link a:hover{color:var(--primary-2)}

.legal-line{
  text-align:center; font-size:11px; color:var(--muted);
  margin-top:22px; line-height:1.7;
}

.divider{
  display:flex; align-items:center; gap:12px;
  margin:18px 0; font-size:11px; color:var(--muted);
  font-weight:600; letter-spacing:.6px; text-transform:uppercase;
}
.divider::before,.divider::after{
  content:""; flex:1; height:1px; background:var(--border);
}

.empty-state{
  text-align:center; padding:40px 20px;
  color:var(--muted); font-size:13px;
}
.empty-state .em{font-size:36px; display:block; margin-bottom:10px; opacity:.6}

/* ============ ANIMATIONS ============ */
@keyframes slideIn{
  0%{opacity:0; transform:translateY(10px)}
  100%{opacity:1; transform:none}
}
.field:nth-child(1){animation:slideIn .45s ease both}
.field:nth-child(2){animation:slideIn .45s ease .05s both}
.field:nth-child(3){animation:slideIn .45s ease .1s both}
.field:nth-child(4){animation:slideIn .45s ease .15s both}
.field:nth-child(5){animation:slideIn .45s ease .2s both}
.field:nth-child(6){animation:slideIn .45s ease .25s both}

/* ============ MOBILE POLISH ============ */
@media(max-width:380px){
  .content{padding:16px 14px 32px}
  .form-wrap{padding:22px 14px 32px}
  .hero{padding:22px 18px}
  .hero h1{font-size:20px}
  .svc-card{padding:12px 11px 13px}
}