/* ==========================================================================
   SANATAN SAMRUDDHI — Enterprise Design System (Phase 2)
   Shared across homepage, header, user dashboards and admin console.
   Palette mirrors home_v4.css: deep maroon / bhagwa / temple gold / warm ivory
   ========================================================================== */

:root {
  --ss4-maroon-deep: #4a0a10;
  --ss4-maroon: #6e1018;
  --ss4-maroon-mid: #8c1a22;
  --ss4-bhagwa: #e8750f;
  --ss4-bhagwa-bright: #f2933b;
  --ss4-gold: #c9a227;
  --ss4-gold-light: #e8cf8a;
  --ss4-ivory: #faf3e4;
  --ss4-ivory-deep: #f4e9d2;
  --ss4-ink: #2b2b2b;
  --ss4-ink-soft: #6b6560;
  --ss4-ink-faint: #9a938a;
  --ss4-green: #1f7a3d;
  --ss4-red: #b3271d;
  --ss4-blue: #24558f;

  --ss5-bg: #faf6ec;
  --ss5-bg-soft: #f3ecdc;
  --ss5-surface: #ffffff;
  --ss5-surface-soft: #fdfaf3;
  --ss5-border: rgba(74, 10, 16, 0.12);
  --ss5-border-strong: rgba(74, 10, 16, 0.22);
  --ss5-shadow-sm: 0 2px 10px rgba(74, 10, 16, 0.06);
  --ss5-shadow: 0 10px 30px rgba(74, 10, 16, 0.1);
  --ss5-shadow-lg: 0 24px 60px rgba(74, 10, 16, 0.16);
  --ss5-radius: 18px;
  --ss5-radius-sm: 12px;
  --ss5-font: "Nunito", "Noto Sans Devanagari", system-ui, sans-serif;
  --ss5-font-display: "Playfair Display", "Noto Serif Telugu", Georgia, serif;
  --ss5-header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ss5-font);
  color: var(--ss4-ink);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(242, 147, 59, 0.12), transparent 60%),
    radial-gradient(800px 420px at -5% 5%, rgba(201, 162, 39, 0.1), transparent 55%),
    linear-gradient(180deg, var(--ss5-bg), var(--ss5-bg-soft));
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--ss5-font-display);
  color: var(--ss4-maroon-deep);
  letter-spacing: 0.01em;
}

a {
  color: var(--ss4-maroon-mid);
  text-decoration: none;
}

a:hover {
  color: var(--ss4-bhagwa);
}

main {
  min-height: 60vh;
}

::selection {
  background: rgba(232, 117, 15, 0.25);
}

:focus-visible {
  outline: 3px solid rgba(232, 117, 15, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Premium global header (overrides ss_ui.css .ss-header family)
   -------------------------------------------------------------------------- */

.ss-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(120deg, var(--ss4-maroon-deep) 0%, #5c0d14 45%, var(--ss4-maroon) 100%);
  box-shadow: 0 8px 30px rgba(38, 5, 9, 0.35);
  transition: transform 0.3s ease;
}

.ss-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ss4-gold) 30%, var(--ss4-bhagwa) 70%, transparent);
}

.ss-header__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 22px;
}

.ss-header--hidden {
  transform: translateY(-100%);
}

.ss-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.ss-brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ss4-ivory);
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.ss-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ss-brand__name {
  font-family: var(--ss5-font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  color: var(--ss4-ivory);
}

.ss-brand__tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ss4-gold-light);
}

/* Desktop nav */

.ss-nav-desktop {
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.ss-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.ss-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  color: rgba(255, 246, 229, 0.92);
  font-family: var(--ss5-font);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.ss-nav-btn:hover,
.ss-nav-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ss-nav-btn .ss-nav-chev {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.ss-nav-btn[aria-expanded="true"] .ss-nav-chev {
  transform: rotate(225deg);
}

.ss-nav-btn.is-active,
.ss-nav-btn[aria-current="page"] {
  color: var(--ss4-gold-light);
  box-shadow: inset 0 -2px 0 var(--ss4-gold);
}

.ss-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  color: rgba(255, 246, 229, 0.92);
  font-family: var(--ss5-font);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.ss-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ss-nav-link.is-active,
.ss-nav-link[aria-current="page"] {
  color: var(--ss4-gold-light);
  box-shadow: inset 0 -2px 0 var(--ss4-gold);
}

/* Dropdown / mega panel */

.ss-drop {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 10px;
  background: var(--ss5-surface);
  border: 1px solid var(--ss5-border);
  border-radius: 16px;
  box-shadow: var(--ss5-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}

.ss-nav-item:hover .ss-drop,
.ss-nav-btn[aria-expanded="true"] + .ss-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ss-drop[data-open],
.ss-profile-btn[aria-expanded="true"] + .ss-drop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ss-drop--mega {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px;
}

.ss-drop--right {
  left: auto;
  right: 0;
  transform: translateY(8px);
}

.ss-nav-item:hover .ss-drop--right,
.ss-nav-btn[aria-expanded="true"] + .ss-drop--right {
  transform: translateY(0);
}

.ss-drop--right[data-open],
.ss-profile-btn[aria-expanded="true"] + .ss-drop--right {
  transform: translateY(0);
}

.ss-drop__head {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss4-ink-faint);
  padding: 2px 10px 6px;
}

.ss-drop a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ss4-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.ss-drop a:hover,
.ss-drop a.is-active {
  background: rgba(232, 117, 15, 0.1);
  color: var(--ss4-maroon);
}

.ss-drop a small {
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--ss4-ink-faint);
}

.ss-drop a:hover small {
  color: var(--ss4-ink-soft);
}

/* Header actions: search / bell / profile / hamburger */

.ss-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ss-header__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 246, 229, 0.25);
  border-radius: 999px;
  padding: 2px 4px 2px 14px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ss-header__search:focus-within {
  background: #fff;
  border-color: var(--ss4-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.ss-header__search input {
  width: 190px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-family: var(--ss5-font);
  font-size: 0.85rem;
  padding: 8px 0;
}

.ss-header__search:focus-within input {
  color: var(--ss4-ink);
}

.ss-header__search input::placeholder {
  color: rgba(255, 246, 229, 0.7);
}

.ss-header__search:focus-within input::placeholder {
  color: var(--ss4-ink-faint);
}

.ss-header__search button {
  border: 0;
  background: var(--ss4-bhagwa);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: var(--ss5-font);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ss-header__search button:hover {
  background: var(--ss4-bhagwa-bright);
}

.ss-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.ss-icon-btn:hover,
.ss-icon-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.ss-icon-btn .ss-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--ss4-bhagwa-bright);
  border: 2px solid var(--ss4-maroon-deep);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ss-profile-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-header__login,
.ss-header__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ss-header__login {
  border: 1px solid rgba(255, 246, 229, 0.45);
  color: #fff;
}

.ss-header__login:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.ss-header__cta {
  background: linear-gradient(135deg, var(--ss4-gold-light), var(--ss4-gold));
  color: var(--ss4-maroon-deep);
  box-shadow: 0 6px 18px rgba(201, 162, 39, 0.35);
}

.ss-header__cta:hover {
  color: var(--ss4-maroon-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.45);
}

/* Bell panel */

.ss-bell-panel {
  width: 320px;
  padding: 8px;
}

.ss-bell-panel .ss-drop__head {
  padding: 6px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ss-bell-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ss4-ink);
  text-decoration: none;
}

.ss-bell-item:hover {
  background: rgba(232, 117, 15, 0.1);
  color: var(--ss4-ink);
}

.ss-bell-item .ss-bell-ico {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232, 117, 15, 0.14);
  color: var(--ss4-bhagwa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.ss-bell-item strong {
  display: block;
  font-size: 0.84rem;
  line-height: 1.25;
}

.ss-bell-item small {
  color: var(--ss4-ink-faint);
  font-size: 0.72rem;
}

/* Profile menu */

.ss-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--ss5-font);
  font-weight: 700;
  font-size: 0.82rem;
  transition: background 0.18s ease;
}

.ss-profile-btn:hover,
.ss-profile-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.2);
}

.ss-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ss4-gold), var(--ss4-bhagwa));
  color: var(--ss4-maroon-deep);
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ss-avatar--lg {
  width: 84px;
  height: 84px;
  font-size: 1.9rem;
  border: 4px solid var(--ss4-ivory);
  box-shadow: 0 10px 26px rgba(74, 10, 16, 0.22);
}

.ss-drop__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ss4-ivory);
  margin-bottom: 6px;
}

.ss-drop__user strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ss4-maroon-deep);
}

.ss-drop__user small {
  color: var(--ss4-ink-soft);
  font-size: 0.74rem;
}

.ss-drop__sep {
  height: 1px;
  background: var(--ss5-border);
  margin: 6px 8px;
}

.ss-drop a.ss-drop--danger {
  color: var(--ss4-red);
}

/* Mobile toggle */

.ss-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Slokas marquee */

.ss-slokas {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 246, 229, 0.14);
}

.ss-slokas__track {
  font-size: 0.7rem;
  color: var(--ss4-gold-light);
  opacity: 0.85;
}

/* Mobile drawer */

.ss-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: linear-gradient(160deg, var(--ss4-maroon-deep), #3a070c);
  color: #fff;
  z-index: 1100;
  padding: 20px 18px 30px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.4);
}

.ss-drawer.is-open {
  transform: translateX(0);
}

.ss-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ss-drawer__head strong {
  font-family: var(--ss5-font-display);
  letter-spacing: 0.12em;
  color: var(--ss4-gold-light);
}

.ss-drawer__close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.ss-drawer__search {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.ss-drawer__search input {
  flex: 1;
  border: 1px solid rgba(255, 246, 229, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 12px;
  font-family: var(--ss5-font);
  outline: 0;
}

.ss-drawer__search button {
  border: 0;
  background: var(--ss4-bhagwa);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
}

.ss-drawer__sec {
  margin: 16px 0 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 207, 138, 0.7);
}

.ss-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 246, 229, 0.92);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ss-drawer__nav a:hover,
.ss-drawer__nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ss4-gold-light);
}

.ss-drawer__nav a .ss-drawer-arrow {
  opacity: 0.5;
  font-size: 0.8rem;
}

.ss-drawer__cta {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.ss-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 2, 4, 0.55);
  z-index: 1050;
  backdrop-filter: blur(2px);
}

.ss-drawer-backdrop[hidden] {
  display: none;
}

.ss-drawer-backdrop.is-open {
  display: block;
}

body.ss-nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ss5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--ss5-font);
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ss5-btn:hover {
  transform: translateY(-1px);
}

.ss5-btn:active {
  transform: translateY(0);
}

.ss5-btn--primary {
  background: linear-gradient(135deg, var(--ss4-bhagwa-bright), var(--ss4-bhagwa));
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 117, 15, 0.35);
}

.ss5-btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(232, 117, 15, 0.45);
}

.ss5-btn--secondary {
  background: var(--ss4-maroon);
  color: #fff;
  box-shadow: 0 8px 22px rgba(110, 16, 24, 0.3);
}

.ss5-btn--secondary:hover {
  color: #fff;
  box-shadow: 0 12px 28px rgba(110, 16, 24, 0.4);
}

.ss5-btn--ghost {
  background: var(--ss5-surface);
  color: var(--ss4-ink);
  border-color: var(--ss5-border-strong);
}

.ss5-btn--ghost:hover {
  border-color: var(--ss4-bhagwa);
  color: var(--ss4-maroon);
}

.ss5-btn--gold {
  background: linear-gradient(135deg, var(--ss4-gold-light), var(--ss4-gold));
  color: var(--ss4-maroon-deep);
  box-shadow: 0 8px 22px rgba(201, 162, 39, 0.35);
}

.ss5-btn--danger {
  background: var(--ss4-red);
  color: #fff;
}

.ss5-btn--sm {
  padding: 7px 13px;
  font-size: 0.78rem;
  border-radius: 10px;
}

.ss5-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Upgrade legacy .ss-btn */

.ss-btn {
  border-radius: 12px;
  font-weight: 800;
  font-family: var(--ss5-font);
}

/* --------------------------------------------------------------------------
   Cards / panels
   -------------------------------------------------------------------------- */

.ss5-card {
  background: var(--ss5-surface);
  border: 1px solid var(--ss5-border);
  border-radius: var(--ss5-radius);
  box-shadow: var(--ss5-shadow-sm);
  padding: 22px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ss5-card--hover:hover {
  box-shadow: var(--ss5-shadow);
  transform: translateY(-2px);
}

.ss5-card--dark {
  background: linear-gradient(135deg, var(--ss4-maroon-deep), var(--ss4-maroon));
  color: #fff;
  border: 0;
}

.ss5-card--gold {
  background: linear-gradient(135deg, var(--ss4-ivory), var(--ss4-ivory-deep));
  border-color: rgba(201, 162, 39, 0.4);
}

.ss5-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ss5-card__title {
  margin: 0;
  font-size: 1.06rem;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ss5-card__title .ss5-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(232, 117, 15, 0.12);
  color: var(--ss4-bhagwa);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ss5-card__title .ss5-ico svg {
  width: 18px;
  height: 18px;
}

.ss5-card__link {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ss4-bhagwa);
  white-space: nowrap;
}

.ss5-card__link:hover {
  color: var(--ss4-maroon);
}

/* KPI cards */

.ss5-kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--ss5-surface);
  border: 1px solid var(--ss5-border);
  border-radius: var(--ss5-radius);
  box-shadow: var(--ss5-shadow-sm);
  padding: 18px 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ss5-kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 14px solid rgba(232, 117, 15, 0.07);
}

.ss5-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--ss5-shadow);
}

.ss5-kpi__ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss5-kpi__ico svg {
  width: 22px;
  height: 22px;
}

.ss5-kpi__ico--bhagwa { background: rgba(232, 117, 15, 0.14); color: var(--ss4-bhagwa); }
.ss5-kpi__ico--maroon { background: rgba(110, 16, 24, 0.1); color: var(--ss4-maroon); }
.ss5-kpi__ico--gold { background: rgba(201, 162, 39, 0.16); color: #9a7a13; }
.ss5-kpi__ico--green { background: rgba(31, 122, 61, 0.12); color: var(--ss4-green); }
.ss5-kpi__ico--blue { background: rgba(36, 85, 143, 0.1); color: var(--ss4-blue); }
.ss5-kpi__ico--red { background: rgba(179, 39, 29, 0.1); color: var(--ss4-red); }

.ss5-kpi__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ss4-ink-faint);
}

.ss5-kpi__value {
  font-family: var(--ss5-font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ss4-maroon-deep);
  line-height: 1.1;
  margin: 2px 0 4px;
}

.ss5-kpi__meta {
  font-size: 0.74rem;
  color: var(--ss4-ink-soft);
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.ss5-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}

.ss5-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.ss5-head h1 {
  margin: 0;
  font-size: 1.9rem;
}

.ss5-head__sub {
  color: var(--ss4-ink-soft);
  font-size: 0.92rem;
  margin-top: 4px;
}

.ss5-head__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ss5-grid {
  display: grid;
  gap: 18px;
}

.ss5-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ss5-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss5-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss5-grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ss5-grid--kpi { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.ss5-section {
  margin: 34px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ss5-section h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ss5-section .ss5-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.5), transparent);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.ss5-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ss5-border);
  border-radius: 14px;
  background: var(--ss5-surface);
}

.ss5-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 560px;
}

.ss5-table th {
  background: var(--ss4-maroon-deep);
  color: var(--ss4-ivory);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}

.ss5-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ss5-border);
  color: var(--ss4-ink);
  vertical-align: middle;
}

.ss5-table tbody tr:last-child td {
  border-bottom: 0;
}

.ss5-table tbody tr {
  transition: background 0.12s ease;
}

.ss5-table tbody tr:hover {
  background: rgba(232, 117, 15, 0.05);
}

/* --------------------------------------------------------------------------
   Pills / badges / chips / status
   -------------------------------------------------------------------------- */

.ss5-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ss5-pill--success { background: rgba(31, 122, 61, 0.12); color: #16602f; }
.ss5-pill--warn { background: rgba(232, 117, 15, 0.13); color: #a3510a; }
.ss5-pill--danger { background: rgba(179, 39, 29, 0.1); color: #a02118; }
.ss5-pill--info { background: rgba(36, 85, 143, 0.1); color: #1c4679; }
.ss5-pill--gold { background: rgba(201, 162, 39, 0.16); color: #7d6410; }
.ss5-pill--dark { background: var(--ss4-maroon-deep); color: var(--ss4-gold-light); }

/* Semantic status mapping (kept for legacy template classes) */

.ss5-pill.APPROVED,
.ss5-pill.ACTIVE { background: rgba(31, 122, 61, 0.12); color: #16602f; }

.ss5-pill.PENDING,
.ss5-pill.SELFIE_SUBMITTED,
.ss5-pill.VERIFYING { background: rgba(232, 117, 15, 0.13); color: #a3510a; }

.ss5-pill.REJECTED,
.ss5-pill.BANNED,
.ss5-pill.RESTRICTED { background: rgba(179, 39, 29, 0.1); color: #a02118; }

.ss5-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ss4-ivory);
  border: 1px solid var(--ss5-border-strong);
  color: var(--ss4-ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.ss5-chip--gold {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.4);
  color: #7d6410;
}

.ss5-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(232, 117, 15, 0.12);
  color: var(--ss4-bhagwa);
  font-size: 0.72rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.ss5-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ss5-field label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ss4-ink-soft);
}

.ss5-input,
.ss5-select,
.ss5-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ss5-border-strong);
  border-radius: 12px;
  background: var(--ss5-surface);
  color: var(--ss4-ink);
  font-family: var(--ss5-font);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ss5-input:focus,
.ss5-select:focus,
.ss5-textarea:focus {
  outline: 0;
  border-color: var(--ss4-bhagwa);
  box-shadow: 0 0 0 4px rgba(232, 117, 15, 0.12);
}

.ss5-textarea {
  min-height: 96px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Alerts / flash / empty
   -------------------------------------------------------------------------- */

.ss5-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid;
  font-size: 0.88rem;
}

.ss5-alert--success { background: rgba(31, 122, 61, 0.08); border-color: rgba(31, 122, 61, 0.3); color: #14552b; }
.ss5-alert--error { background: rgba(179, 39, 29, 0.07); border-color: rgba(179, 39, 29, 0.3); color: #8f1c15; }
.ss5-alert--info { background: rgba(36, 85, 143, 0.07); border-color: rgba(36, 85, 143, 0.28); color: #1c4679; }
.ss5-alert--gold { background: rgba(201, 162, 39, 0.1); border-color: rgba(201, 162, 39, 0.38); color: #7d6410; }

.ss5-flash-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.ss5-empty {
  text-align: center;
  padding: 34px 20px;
  border: 1.5px dashed var(--ss5-border-strong);
  border-radius: 16px;
  color: var(--ss4-ink-faint);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.ss5-empty strong {
  display: block;
  color: var(--ss4-ink-soft);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Quick action cards (admin / user)
   -------------------------------------------------------------------------- */

.ss5-quick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--ss5-surface-soft);
  border: 1px solid var(--ss5-border);
  color: var(--ss4-ink);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.ss5-quick:hover {
  transform: translateY(-2px);
  box-shadow: var(--ss5-shadow);
  border-color: rgba(232, 117, 15, 0.4);
  color: var(--ss4-ink);
}

.ss5-quick__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 117, 15, 0.12);
  color: var(--ss4-bhagwa);
}

.ss5-quick__ico svg {
  width: 20px;
  height: 20px;
}

.ss5-quick strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ss4-maroon-deep);
}

.ss5-quick small {
  color: var(--ss4-ink-soft);
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   Admin console shell (standalone /control/dashboard/)
   -------------------------------------------------------------------------- */

.ss5-admin {
  display: flex;
  min-height: 100vh;
}

.ss5-admin__side {
  width: 258px;
  flex-shrink: 0;
  background: linear-gradient(170deg, var(--ss4-maroon-deep) 0%, #3d080e 100%);
  color: #fff;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.ss5-admin__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 20px;
  border-bottom: 1px solid rgba(255, 246, 229, 0.14);
  margin-bottom: 16px;
}

.ss5-admin__brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ss4-ivory);
}

.ss5-admin__brand strong {
  font-family: var(--ss5-font-display);
  letter-spacing: 0.1em;
  color: var(--ss4-gold-light);
  font-size: 0.92rem;
  line-height: 1.2;
}

.ss5-admin__brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 246, 229, 0.55);
}

.ss5-admin__nav {
  display: grid;
  gap: 3px;
}

.ss5-admin__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 11px;
  color: rgba(255, 246, 229, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.ss5-admin__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ss5-admin__link.is-active {
  background: linear-gradient(135deg, var(--ss4-bhagwa), var(--ss4-bhagwa-bright));
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 117, 15, 0.35);
}

.ss5-admin__link .ss5-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

.ss5-admin__main {
  flex: 1;
  min-width: 0;
  padding: 30px 34px 60px;
}

.ss5-admin__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--ss4-maroon-deep), var(--ss4-maroon));
  border-radius: var(--ss5-radius);
  padding: 22px 26px;
  box-shadow: var(--ss5-shadow);
  margin-bottom: 26px;
}

.ss5-admin__top h1 {
  margin: 0;
  color: var(--ss4-ivory);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
}

.ss5-admin__top p {
  margin: 4px 0 0;
  color: rgba(255, 246, 229, 0.8);
  font-size: 0.86rem;
}

.ss5-admin__burger {
  display: none;
}

/* --------------------------------------------------------------------------
   Progress bar / trust meter
   -------------------------------------------------------------------------- */

.ss5-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--ss4-ivory-deep);
  overflow: hidden;
}

.ss5-meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ss4-bhagwa-bright), var(--ss4-bhagwa));
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.ss5-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ss5-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .ss-nav-desktop .ss-nav-btn {
    padding: 9px 9px;
    font-size: 0.83rem;
  }

  .ss-header__search input {
    width: 130px;
  }
}

@media (max-width: 980px) {
  .ss-nav-desktop,
  .ss-header__search,
  .ss-profile-btn .ss-profile-name {
    display: none;
  }

  .ss-header__actions {
    margin-left: auto;
  }

  .ss-nav-toggle {
    display: inline-flex;
  }

  .ss5-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss5-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ss5-admin {
    flex-direction: column;
  }

  .ss5-admin__side {
    width: 100%;
    height: auto;
    position: relative;
    padding: 14px;
  }

  .ss5-admin__nav {
    display: none;
  }

  .ss5-admin__nav.is-open {
    display: grid;
  }

  .ss5-admin__brand {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .ss5-admin__burger {
    display: inline-flex;
    margin-left: auto;
  }

  .ss5-admin__main {
    padding: 22px 16px 50px;
  }
}

@media (max-width: 640px) {
  .ss-header__bar {
    padding: 9px 14px;
    gap: 10px;
  }

  .ss-brand__tag {
    display: none;
  }

  .ss-brand__name {
    font-size: 0.86rem;
  }

  .ss-brand__logo {
    width: 38px;
    height: 38px;
  }

  .ss5-page {
    padding: 22px 14px 60px;
  }

  .ss5-head h1 {
    font-size: 1.45rem;
  }

  .ss5-grid--2,
  .ss5-grid--3,
  .ss5-grid--4 {
    grid-template-columns: 1fr;
  }

  .ss5-admin__top {
    padding: 18px;
  }

  .ss5-admin__top h1 {
    font-size: 1.3rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ss-header,
  .ss-drawer,
  .ss-drop,
  .ss5-kpi,
  .ss5-quick,
  .ss5-card,
  .ss5-reveal {
    transition: none !important;
  }

  .ss5-reveal {
    opacity: 1;
    transform: none;
  }

  .ss-slokas__track {
    animation: none;
    padding-left: 1rem;
    white-space: normal;
  }
}
