/* Premium advanced layer — Gondia Police Dashboard */
.landing-page, .dashboard-page, .login-page {
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 35%, #fff7ed 100%);
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(99, 102, 241, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(251, 191, 36, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(6, 182, 212, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.landing-page > * { position: relative; z-index: 1; }

.dashboard-page {
  background: #f3f6fb;
}

.dashboard-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.03), transparent 280px),
    radial-gradient(circle at 8% 10%, rgba(37, 99, 235, 0.12), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(251, 191, 36, 0.12), transparent 22%);
  pointer-events: none;
}

.dashboard-page .app-header,
.dashboard-page .meta-bar,
.dashboard-page .sticky-nav,
.dashboard-page .citizen-command-hero,
.dashboard-page .dashboard-content,
.dashboard-page .app-footer {
  position: relative;
  z-index: 1;
}

.citizen-command-hero {
  max-width: 1400px;
  width: 100%;
  margin: 1.1rem auto 0;
  padding: 0 1.5rem;
}

.command-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(30, 58, 138, 0.94)),
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.3), transparent 30%);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  position: relative;
}

.command-hero-card::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 36px solid rgba(255, 255, 255, 0.06);
}

.command-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.command-hero-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.command-hero-card p {
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  font-size: 0.86rem;
  margin: 0;
}

.command-hero-actions {
  min-width: 260px;
  display: grid;
  gap: 0.55rem;
  z-index: 1;
}

.command-action {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
}

.command-action:hover { color: white; background: rgba(255,255,255,0.18); }
.command-action.primary { background: #fbbf24; color: #422006; border-color: #fbbf24; }
.command-action.primary:hover { color: #422006; background: #fcd34d; }

.cm-style-dashboard {
  padding-top: 1rem;
}

.cm-style-dashboard .dashboard-section {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.cm-style-dashboard #overview {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.cm-style-dashboard .kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.cm-style-dashboard .kpi-card {
  min-height: 126px;
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.cm-style-dashboard .kpi-card::before {
  width: 100%;
  height: 4px;
}

.cm-style-dashboard .kpi-value {
  font-size: 2rem;
  color: #0f172a;
}

.cm-style-dashboard .portal-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.cm-style-dashboard .portal-card {
  min-height: 280px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.cm-style-dashboard .chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-style-dashboard .chart-card {
  min-height: 0;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.dashboard-page .meta-bar {
  max-width: 1400px;
  width: calc(100% - 3rem);
  margin: 0.9rem auto 0;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.dashboard-page .meta-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #1d4ed8;
}

.dashboard-page .sticky-nav {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
}

.dashboard-page .search-bar input {
  background: #f8fafc;
  border-radius: 12px;
}

.cm-style-dashboard .section-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.cm-style-dashboard .section-header h2,
.cm-style-dashboard .section-title-main {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.landing-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem;
  width: 100%;
}

.hero-inner {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff, #fff);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: #3730a3;
}

.hero-pill i { color: #6366f1; font-size: 0.75rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.hero-stat {
  text-align: center;
  padding: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
  color: #1e1b4b;
}

.hero-stat span {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

.access-intro {
  text-align: center;
  font-size: 0.78rem;
  color: #64748b;
  margin: -0.35rem 0 1rem;
  line-height: 1.5;
}

.bento-grid { gap: 1rem; }

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
}

.access-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.citizen-card .access-card-glow { background: linear-gradient(135deg, rgba(56, 176, 0, 0.08), transparent 60%); }
.internal-card .access-card-glow { background: linear-gradient(135deg, rgba(0, 119, 182, 0.08), transparent 60%); }
.cm-card .access-card-glow { background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 60%); }
.data-card .access-card-glow { background: linear-gradient(135deg, rgba(244, 140, 6, 0.1), transparent 60%); }

.bento-card:hover .access-card-glow { opacity: 1; }

.access-card-body { flex: 1; }

.access-tag {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.citizen-card .access-tag { background: rgba(56, 176, 0, 0.12); color: #166534; }
.internal-card .access-tag { background: rgba(0, 119, 182, 0.12); color: #0369a1; }
.cm-card .access-tag { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.data-card .access-tag { background: rgba(244, 140, 6, 0.15); color: #c2410c; }

.leader-rank {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: #fde68a;
  color: #78350f;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.leader-card.featured .leader-info { position: relative; }


.app-header {
  background: linear-gradient(135deg, #020617 0%, #1e1b4b 35%, #312e81 70%, #4338ca 100%);
  box-shadow: 0 8px 32px rgba(49, 46, 129, 0.35);
}

.app-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.15), transparent 40%),
              radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.12), transparent 35%);
  pointer-events: none;
}

.landing-main {
  gap: 1.25rem;
  padding: 1.25rem;
}

.landing-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.landing-panel.access {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(238,242,255,0.85));
}

.leader-card {
  width: 168px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: visible;
}

.leader-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #6366f1, #06b6d4);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}

.leader-card:hover::before { opacity: 1; }
.leader-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(49, 46, 129, 0.18); }

.leader-avatar {
  width: 88px;
  height: 88px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.2);
}

.leader-card.featured .leader-avatar {
  width: 98px;
  height: 98px;
  border-color: #fde68a;
}

.leader-info {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
}

.access-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(99,102,241,0.1);
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}

.access-card:hover {
  transform: translateX(8px);
  border-color: #818cf8;
  box-shadow: 0 12px 30px rgba(67, 56, 202, 0.12);
}

.kpi-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  transition: all 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.portal-card {
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, #fff, #fafbff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.portal-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.chart-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.section-title-main {
  background: linear-gradient(90deg, #1e1b4b, #4338ca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.station-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.login-card {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.ps-login-hint {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.72rem;
  color: #1e40af;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.chart-upload-title {
  margin: 0.75rem 0 0.5rem;
  color: #1e3a8a;
  font-size: 0.95rem;
}

.upload-panel {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.upload-help {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}

.upload-btn {
  cursor: pointer;
  margin: 0;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}

.data-table th {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
}

.table-input {
  min-width: 120px;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.hidden { display: none !important; }

/* Landing page v2 */
.landing-header-v2 .header-inner { padding-bottom: 0.5rem; }

.brand-icon-lg {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain;
  background: white;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.brand-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.landing-lead {
  max-width: 720px;
  margin: 0.5rem auto 0;
  text-align: center;
  line-height: 1.55;
}

.landing-hero-v2 { padding-top: 0.25rem; }

.hero-pill-accent {
  background: linear-gradient(135deg, #ede9fe, #fff);
  border-color: rgba(124, 58, 237, 0.25);
  color: #5b21b6;
}

.hero-pill-accent i { color: #7c3aed; }

.hero-stat-accent strong {
  background: linear-gradient(135deg, #059669, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-main-v2 {
  align-items: stretch;
  gap: 1.25rem;
}

.landing-panel.leadership-v2 {
  flex: 1.35;
  background: rgba(255,255,255,0.92);
}

.landing-panel.access-v2 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-sub {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin: 0.35rem 0 0;
  font-weight: 500;
}

.leader-org {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.5rem 0 0.25rem;
}

.leader-tier {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

.leader-connector {
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, #6366f1, #a5b4fc);
  border-radius: 2px;
  margin: 0.15rem 0;
}

.leader-connector-gold {
  height: 22px;
  background: linear-gradient(180deg, #f59e0b, #6366f1);
}

.leader-card-v2 {
  width: 158px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(49, 46, 129, 0.15);
}

.leader-card-v2.featured { width: 172px; }

.leader-photo-wrap {
  position: relative;
  padding: 1rem 1rem 0.35rem;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.leader-card-v2 .leader-avatar {
  margin: 0 auto;
}

.leader-card-v2 .leader-rank {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.leader-info-sp {
  background: linear-gradient(135deg, #1e1b4b, #4338ca, #6366f1) !important;
}

.leader-sp .leader-avatar {
  width: 98px;
  height: 98px;
  border: 3px solid #fde68a;
}

/* Leadership v3 — clean grid layout */
.landing-main-v3 { align-items: stretch; gap: 1.25rem; }

.landing-panel.leadership-v3 {
  flex: 1.35;
  background: #fff;
  padding: 1.5rem 1.35rem;
}

.section-head { text-align: center; margin-bottom: 1.25rem; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 0; }
.section-head p { margin: 0.35rem 0 0; font-size: 0.78rem; color: #64748b; }

.leader-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6366f1;
  margin: 0 0 0.65rem;
}

.leader-grid-v3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.leader-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.leader-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.leader-grid-cm-only {
  grid-template-columns: 1fr;
  margin-bottom: 0.65rem;
}

.leader-grid-dcm {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leader-tile-cm {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-color: rgba(99, 102, 241, 0.25);
}

.leader-tile-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #e2e8f0;
}

.leader-tile-cm .leader-tile-photo {
  aspect-ratio: auto;
  min-height: 110px;
  height: 100%;
}

.leader-tile-body { padding: 0.75rem 0.85rem; text-align: center; }
.leader-tile-cm .leader-tile-body { text-align: left; padding: 1rem 1.15rem; }
.leader-tile-body h3 { margin: 0; font-size: 0.78rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.leader-tile-cm .leader-tile-body h3 { font-size: 0.95rem; }
.leader-tile-body p { margin: 0.25rem 0 0; font-size: 0.65rem; color: #64748b; line-height: 1.4; }
.leader-tile-cm .leader-tile-body p { font-size: 0.72rem; }

.leader-sp-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(49, 46, 129, 0.25);
}

.leader-sp-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fde68a;
  flex-shrink: 0;
}

.leader-sp-text h3 { margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 700; }
.leader-sp-text p { margin: 0.2rem 0 0; font-size: 0.72rem; opacity: 0.9; }

.leader-sp-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(253, 230, 138, 0.2);
  color: #fde68a;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.access-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 1;
}

.access-card-v2 {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  min-height: 168px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.access-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px rgba(49, 46, 129, 0.12);
}

.access-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.access-card-v2 h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.access-card-v2 p {
  font-size: 0.78rem;
  line-height: 1.45;
}

.access-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
}

.access-card-v2 .arrow { display: none; }

.citizen-card.access-card-v2 .access-card-cta { color: #166534; }
.cm-card.access-card-v2 .access-card-cta { color: #1d4ed8; }
.data-card.access-card-v2 .access-card-cta { color: #c2410c; }

.chatbot-promo {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef2ff, #faf5ff);
  border: 1px dashed rgba(99, 102, 241, 0.25);
  font-size: 0.74rem;
  color: #4338ca;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.5;
}

.chatbot-promo i {
  margin-top: 2px;
  font-size: 1rem;
  color: #6366f1;
}

.landing-footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* Chatbot */
.chatbot-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  color: white;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(67, 56, 202, 0.45);
  z-index: 500;
  transition: transform 0.25s;
}

.chatbot-fab:hover { transform: scale(1.08); }

.chatbot-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: min(380px, calc(100vw - 2rem));
  height: 480px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 501;
  border: 1px solid rgba(99, 102, 241, 0.15);
  overflow: hidden;
}

.chatbot-panel.hidden { display: none; }

.chatbot-header {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
  color: white;
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.chatbot-header small { opacity: 0.85; font-size: 0.72rem; }

.chatbot-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f8fafc;
}

.chatbot-msg {
  max-width: 88%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.chatbot-msg.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  color: white;
}

.chatbot-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.chatbot-input-row input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.chatbot-input-row input:focus { outline: none; border-color: #6366f1; }

.chatbot-input-row button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #4338ca;
  color: white;
  cursor: pointer;
}

@media (min-width: 900px) {
  .landing-main-v2, .landing-main-v3 { flex-direction: row; }
  .access-grid-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .citizen-command-hero { padding: 0 1rem; }
  .command-hero-card { flex-direction: column; align-items: stretch; }
  .command-hero-actions { min-width: 0; }
  .dashboard-page .meta-bar { width: calc(100% - 2rem); }
  .cm-style-dashboard .chart-grid { grid-template-columns: 1fr; }
  .chatbot-panel { right: 1rem; bottom: 5rem; height: 420px; }
  .chatbot-fab { right: 1rem; }
  .landing-main-v2, .landing-main-v3 { flex-direction: column; }
  .leader-grid-v3,
  .leader-grid-v3-sm,
  .leader-grid-dcm { grid-template-columns: 1fr; }
  .leader-tile-cm { grid-template-columns: 90px 1fr; }
  .leader-sp-banner { flex-direction: column; text-align: center; }
}
