:root {
  --primary: #0d1e3a;
  --primary-accent: #00d2d3;
  --secondary: #1e293b;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --accent-red: #f43f5e;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f1f5f9;
  --card-bg: #ffffff;
  --border-color: #cbd5e1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
body { background: var(--bg-light); color: var(--text-main); line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }

/* NAVBAR */
.navbar {
  background: var(--primary);
  color: #ffffff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 12px;
}
.brand-section { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { font-size: 20px; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: 8px; }
.brand-logo span { color: var(--primary-accent); }
.domain-tag { font-size: 11px; color: #94a3b8; font-weight: 500; }

.search-wrapper { flex: 0 1 340px; position: relative; }
.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  outline: none;
  color: #334155;
}
.search-input:focus { border-color: var(--primary-accent); box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.2); }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.lang-selector-box {
  background: var(--secondary);
  border: 1.5px solid #475569;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-icon { color: var(--primary-accent); font-size: 14px; }
.lang-select { background: transparent; border: none; color: #ffffff; font-size: 12px; font-weight: 700; outline: none; cursor: pointer; }
.lang-select option { background: #1e293b; color: #ffffff; }

.wallet-widget {
  background: var(--secondary);
  border: 1.5px solid var(--accent-gold);
  border-radius: 8px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-info { display: flex; flex-direction: column; }
.wallet-title { font-size: 10px; color: #cbd5e1; font-weight: 600; }
.wallet-bal { font-size: 14px; font-weight: 800; color: var(--accent-green); }
.btn-add-funds {
  background: var(--accent-gold);
  color: #000000;
  font-weight: 800;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-auth-login {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-auth-signup {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-profile-badge {
  display: none;
  background: var(--secondary);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  padding: 4px 10px;
  align-items: center;
  gap: 8px;
}

/* RUNNING MARQUEE TICKER */
.notice-ticker {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.notice-badge {
  background: #b45309;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  z-index: 2;
}
.marquee-wrapper { flex: 1; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  color: #92400e;
  animation: smoothScroll 25s linear infinite;
}
.notice-ticker:hover .marquee-content { animation-play-state: paused; }
@keyframes smoothScroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.main-container { max-width: 1320px; margin: 25px auto; padding: 0 20px; flex: 1; width: 100%; }
.dashboard-header { margin-bottom: 20px; }
.dash-title { font-size: 22px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; }
.dash-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  text-decoration: none;
  color: inherit;
}
.stat-box.blue { border-left: 4px solid var(--accent-blue); }
.stat-box.green { border-left: 4px solid var(--accent-green); }
.stat-box.gold { border-left: 4px solid var(--accent-gold); background: #fffdf5; }
.stat-box.whatsapp-card { border-left: 4px solid #25d366; background: #f0fdf4; cursor: pointer; transition: transform 0.2s; }
.stat-box.whatsapp-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.2); }

.stat-content h4 { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-content .stat-number { font-size: 19px; font-weight: 800; color: #0f172a; margin-top: 4px; }
.stat-icon { font-size: 26px; opacity: 0.85; }

.category-title { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-bottom: 40px; }

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title-group { display: flex; align-items: center; gap: 10px; }
.card-icon-bubble { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.card-title-group h3 { font-size: 16.5px; font-weight: 800; color: #0f172a; }
.status-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; flex-shrink: 0; }
.status-badge.live { background: #dcfce7; color: #15803d; }
.status-badge.soon { background: #fef3c7; color: #b45309; }

.card-price-tag { font-size: 12px; font-weight: 700; color: #b45309; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.card-description { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; }

.btn-launch-tool {
  width: 100%;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.theme-pvc-manager { background: #e0f2fe; color: #0369a1; }
.btn-pvc-manager { background: #0284c7; }

.theme-ration { background: #e0f2f1; color: #00796b; }
.btn-ration { background: #00796b; }
.theme-voter { background: #e3f2fd; color: #1565c0; }
.btn-voter { background: #1565c0; }
.theme-ayushman { background: #fff3e0; color: #e65100; }
.btn-ayushman { background: #e65100; }
.theme-abha { background: #f3e5f5; color: #7b1fa2; }
.btn-abha { background: #7b1fa2; }
.theme-order { background: #e2e8f0; color: #334155; }
.btn-order { background: #475569; }
.theme-biodata { background: #fce4ec; color: #c2185b; }
.btn-biodata { background: #c2185b; }

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  backdrop-filter: blur(4px);
}
.modal-box { background: #ffffff; border-radius: 14px; max-width: 480px; width: 100%; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.btn-close-modal { background: none; border: none; font-size: 20px; color: #64748b; cursor: pointer; }

.form-group { margin-bottom: 12px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text-main); display: block; margin-bottom: 4px; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--border-color); border-radius: 7px; font-size: 13px; outline: none; }
.form-control:focus { border-color: var(--accent-blue); }

.qr-container { text-align: center; background: #f8fafc; border: 2px dashed var(--border-color); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.qr-img { width: 180px; height: 180px; margin: 0 auto; background: #fff; padding: 4px; border-radius: 8px; border: 1px solid var(--border-color); object-fit: contain; }

.bonus-pill { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; margin-top: 6px; text-align: center; }

.success-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-top: 10px;
}

footer { background: var(--primary); color: #94a3b8; padding: 20px 24px; font-size: 12px; border-top: 1px solid #1e293b; }
.footer-content { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }