/* Soujanya Global portal — screenshot dashboard chrome */
.portal-body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

.portal-topbar {
  background: #fff;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.topbar-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.topbar-brand strong {
  display: block;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}

.topbar-brand small {
  display: block;
  font-size: 0.62rem;
  color: var(--brand-green);
  letter-spacing: 0.04em;
}

.topbar-search {
  display: flex;
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}

.topbar-search .form-select {
  max-width: 140px;
  border: 0;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.82rem;
  border-radius: 0;
}

.topbar-search .form-control {
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.86rem;
}

.btn-search {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 0 1.1rem;
  font-weight: 600;
}

.btn-search:hover { background: #1d4ed8; color: #fff; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.topbar-wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-green);
}

.topbar-wallet .label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.topbar-wallet strong {
  font-size: 0.95rem;
}

.icon-btn {
  position: relative;
  border: 0;
  background: var(--bg-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--brand-blue);
}

.icon-btn .badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-btn {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-btn .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.user-btn .user-meta {
  text-align: left;
  line-height: 1.15;
}

.user-btn .user-meta small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.sidebar-toggle {
  border: 0;
  background: var(--bg-light);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--brand-blue);
  display: none;
}

.portal-shell {
  display: flex;
  min-height: calc(100vh - 68px);
}

.portal-sidebar {
  width: 250px;
  background: #fff;
  color: var(--brand-blue);
  flex-shrink: 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  z-index: 30;
  border-right: 1px solid #e8edf5;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.7rem 1rem;
}

.sidebar-nav .menu-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.85rem 0.75rem 0.35rem;
}

.sidebar-nav .sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  background: transparent;
}

.sidebar-nav .sidebar-link i {
  width: 18px;
  text-align: center;
  color: #64748b;
}

.sidebar-nav .sidebar-link:hover {
  background: #f4f7fb;
  color: var(--brand-blue);
}

.sidebar-nav .sidebar-link.active {
  background: #2563eb;
  color: #fff;
}

.sidebar-nav .sidebar-link.active i {
  color: #fff;
}

.sidebar-nav .has-submenu > .submenu-toggle {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav .submenu-caret {
  margin-left: auto;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.sidebar-nav .has-submenu.open > .submenu-toggle .submenu-caret {
  transform: rotate(180deg);
}

.sidebar-submenu {
  list-style: none;
  margin: 0.15rem 0 0.35rem;
  padding: 0 0 0 1.85rem;
}

.sidebar-sublink {
  display: block;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 500;
}

.sidebar-sublink:hover {
  background: #f4f7fb;
  color: var(--brand-blue);
}

.sidebar-sublink.active {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 600;
}

.sidebar-secure {
  margin: 0.5rem 0.85rem 1.4rem;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: var(--brand-blue);
}

.sidebar-secure .secure-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.4rem;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-secure p {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0.7rem;
}

.btn-learn {
  background: #2563eb;
  color: #fff;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
}

.btn-learn:hover { color: #fff; background: #1d4ed8; }

.portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-content { padding: 1.15rem 1.25rem 1.5rem; }

.portal-pageheader h4 {
  color: var(--brand-blue);
  font-family: Montserrat, sans-serif;
  margin-bottom: 1rem;
}

.dash-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
}

.dash-hero {
  border-radius: 16px;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 1.6rem 1.7rem;
  display: flex;
  align-items: center;
}

.dash-hero h1 {
  font-family: Montserrat, sans-serif;
  font-size: 1.55rem;
  margin: 0 0 0.35rem;
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.2rem;
}

.hero-sub { margin: 0; opacity: 0.9; }

.dash-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 0.9rem 0 1rem;
}

.dash-stat {
  background: #fff;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
}

.dash-stat i {
  color: #2563eb;
  font-size: 1.15rem;
}

.dash-stat strong {
  display: block;
  font-family: Montserrat, sans-serif;
  color: var(--brand-blue);
  font-size: 0.95rem;
}

.dash-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.dash-title {
  font-family: Montserrat, sans-serif;
  font-size: 1.05rem;
  color: var(--brand-blue);
  font-weight: 700;
}

.view-all { color: #2563eb; font-size: 0.84rem; font-weight: 600; }

.service-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  margin-bottom: 0.5rem;
}

.service-tabs button {
  border: 0;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.service-tabs button.active {
  background: #2563eb;
  color: #fff;
}

.gov-service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.gov-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 0.75rem 0.3rem;
  border-radius: 12px;
  color: var(--text-dark);
  font-size: 0.74rem;
  font-weight: 600;
}

.gov-tile:hover { background: #f8fafc; }

.gov-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.btn-view-all {
  background: #2563eb;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
}

.btn-view-all:hover { color: #fff; background: #1d4ed8; }

.wallet-amount {
  font-family: Montserrat, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-green);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

.wallet-label { font-size: 0.78rem; color: var(--text-muted); }

.mini-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-icon.green { background: var(--brand-green-soft); color: var(--brand-green); }

.btn-add-money {
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-add-money:hover { color: #fff; }

.btn-txns {
  border: 1px solid #dbe3ef;
  color: var(--brand-blue);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.wallet-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.wallet-mini-grid div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}

.wallet-mini-grid span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.wallet-mini-grid strong { font-size: 0.82rem; color: var(--brand-blue); }

.list-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: inherit;
}

.list-row:last-child { border-bottom: 0; }

.list-row strong { display: block; font-size: 0.82rem; }

.list-row small { display: block; font-size: 0.7rem; color: var(--text-muted); }

.list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-apply {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
  white-space: nowrap;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.trust-bar > div {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.trust-bar i { color: #2563eb; margin-top: 3px; }

.trust-bar strong { display: block; font-size: 0.78rem; color: var(--brand-blue); }

.trust-bar span { display: block; font-size: 0.68rem; color: var(--text-muted); }

.mm-section-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.mm-section-card .section-title,
.stat-label { font-size: 0.78rem; color: var(--text-muted); }

.auth-bg { min-height: 100vh; background: var(--bg-light); }

@media (max-width: 1199px) {
  .dash-layout { grid-template-columns: 1fr; }
  .gov-service-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-stat-row, .trust-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-search { display: none; }
  .portal-sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    height: 100vh;
    transition: left 0.25s ease;
  }
  .portal-sidebar.open { left: 0; }
}

@media (max-width: 575px) {
  .gov-service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== States & UT Services ===== */
.states-kicker {
  color: var(--brand-green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.states-heading {
  font-family: Montserrat, sans-serif;
  color: var(--brand-blue);
  font-size: 1.6rem;
  margin: 0.2rem 0 0.35rem;
}

.states-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mini-stat {
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}

.mini-stat i { color: #2563eb; }
.mini-stat strong { display: block; font-size: 0.9rem; color: var(--brand-blue); }
.mini-stat span { display: block; font-size: 0.68rem; color: var(--text-muted); }

.states-search {
  position: relative;
  max-width: 520px;
  margin: 0 auto 1rem;
}

.states-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.states-search .form-control {
  padding-left: 2.4rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.state-card {
  position: relative;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  display: block;
  box-shadow: var(--shadow-sm);
}

.state-card-bg {
  position: absolute;
  inset: 0;
  background: var(--state-color, #0a1f4d) center/cover no-repeat;
}

.state-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--state-color, #0a1f4d) 75%, transparent), rgba(10,31,77,.55));
}

.state-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.state-map {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(10);
}

.state-map-fallback {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.state-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}

.state-card-footer strong { font-size: 0.95rem; }
.view-services { font-size: 0.72rem; opacity: 0.95; white-space: nowrap; }

.state-hero {
  border-radius: 16px;
  min-height: 180px;
  background: var(--brand-blue) center/cover no-repeat;
  color: #fff;
  padding: 1.5rem;
}

.state-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.state-hero h1 {
  font-family: Montserrat, sans-serif;
  font-size: 1.7rem;
  margin: 0 0 0.35rem;
}

.state-breadcrumb { font-size: 0.78rem; opacity: 0.85; margin-top: 0.75rem; }

.state-hero-map {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: brightness(10);
  opacity: 0.9;
}

.state-detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 1rem;
}

.state-cats .cat-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--brand-blue);
  font-size: 0.84rem;
  margin-bottom: 0.25rem;
}

.state-cats .cat-link.active,
.state-cats .cat-link:hover {
  background: #e8f0fe;
  color: #2563eb;
  font-weight: 600;
}

.state-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.state-service-tile {
  border: 1px solid #e8edf5;
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.state-service-tile:hover { border-color: #2563eb; box-shadow: var(--shadow-sm); }

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #2563eb;
}

.svc-icon img { width: 100%; height: 100%; object-fit: cover; }

.state-service-tile strong { font-size: 0.78rem; }
.apply-online { font-size: 0.7rem; color: #2563eb; font-weight: 600; }

.about-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

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

.about-stats > div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
}

.about-stats i { color: #2563eb; display: block; margin-bottom: 0.2rem; }
.about-stats strong { display: block; font-size: 0.85rem; color: var(--brand-blue); }
.about-stats span { display: block; font-size: 0.68rem; color: var(--text-muted); }

@media (max-width: 1199px) {
  .state-detail-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Profile ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.profile-side {
  text-align: center;
  position: sticky;
  top: 1rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  margin: 0.25rem auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), #1a3a7a 55%, var(--brand-green));
  box-shadow: 0 10px 24px rgba(10, 31, 77, 0.22);
}

.profile-name {
  font-family: Montserrat, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: 0 0 0.15rem;
}

.profile-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.profile-meta {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: #334155;
  text-align: left;
}

.profile-meta span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f4f7fb;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
}

.profile-meta i { color: var(--brand-green); width: 1rem; text-align: center; }

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: #eef2f7;
  color: #475569;
}

.badge-pill.ok { background: rgba(26, 143, 74, 0.12); color: #147a3d; }
.badge-pill.warn { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.badge-pill.bad { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.badge-pill.muted { background: #f1f5f9; color: #64748b; }

.profile-nav {
  gap: 0.3rem;
  text-align: left;
}

.profile-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 10px;
  color: #334155;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.55rem 0.7rem;
}

.profile-nav .nav-link i {
  width: 1.1rem;
  text-align: center;
  color: var(--brand-blue);
  opacity: 0.75;
}

.profile-nav .nav-link.active {
  background: rgba(10, 31, 77, 0.08);
  color: var(--brand-blue);
  font-weight: 600;
}

.profile-nav .nav-link.active i { opacity: 1; color: var(--brand-green); }

.profile-nav .nav-link:hover { background: #f4f7fb; }

.profile-qr {
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: inline-block;
}

.profile-secret {
  background: #f4f7fb;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  word-break: break-all;
}

@media (max-width: 991px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
}

