/* =============================================
   RIVERS STATE JUDICIARY — ECMS PORTAL
   Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --green:        #006B3F;
  --green-dark:   #003828;
  --green-mid:    #004D2C;
  --green-light:  #00A859;
  --gold:         #C9A84C;
  --gold-light:   #E8C87A;
  --gold-pale:    #FDF6E3;
  --cream:        #F5F0E8;
  --white:        #FAFAF8;
  --text:         #1A1A1A;
  --text-muted:   #5A5A5A;
  --border:       rgba(0,0,0,0.09);
  --border-mid:   rgba(0,0,0,0.14);
  --danger:       #C0392B;
  --danger-bg:    #FDECEC;
  --success:      #27AE60;
  --success-bg:   #E8F5EE;
  --info:         #2980B9;
  --info-bg:      #E8F0FE;
  --warning-bg:   #FDF6E3;
  --warning-text: #8B6914;
  --sidebar-w:    260px;
  --topbar-h:     60px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:    0 4px 16px rgba(0,107,63,0.10);
  --shadow-lg:    0 12px 40px rgba(0,107,63,0.14);
  --transition:   all 0.22s ease;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: 'DM Sans', sans-serif; }
input, select, textarea { font-family: 'DM Sans', sans-serif; }

/* ---- UTILITY ---- */
.hidden   { display: none !important; }
.flex     { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.gap-16   { gap: 16px; }
.mt-8     { margin-top: 8px; }
.mt-16    { margin-top: 16px; }
.mt-24    { margin-top: 24px; }
.mb-16    { margin-bottom: 16px; }
.mb-24    { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); font-size: 13px; }
.fw-600   { font-weight: 600; }
.w-100    { width: 100%; }

/* ---- SEAL SVG ---- */
.seal-wrap {
  border-radius: 50%;
  overflow: hidden;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================
   LOADER
   ============================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#loader.fade-out { opacity: 0; visibility: hidden; }

.loader-ring-wrap {
  position: relative; width: 148px; height: 148px;
  display: flex; align-items: center; justify-content: center;
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  animation: spin 1.2s linear infinite;
}
.loader-ring-2 {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--gold-light);
  animation: spin 1.9s linear infinite reverse;
}
.loader-ring-3 {
  position: absolute; inset: 20px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  border-right-color: var(--gold);
  animation: spin 2.6s linear infinite;
}
.loader-seal-core {
  width: 96px; height: 96px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(201,168,76,0.25);
}
.loader-seal-core svg { width: 82px; height: 82px; }

.loader-text {
  margin-top: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 15px; color: white; letter-spacing: 0.5px;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
}
.loader-sub {
  font-size: 10px; letter-spacing: 3px; color: var(--gold);
  text-transform: uppercase; margin-top: 4px;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.loader-bar {
  width: 200px; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden; margin-top: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.5s forwards;
}
.loader-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px; width: 0%;
  animation: loadBar 2.3s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes loadBar { from { width: 0%; } to { width: 100%; } }
@keyframes fadeIn  { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes floatAnim { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes pulseRing  { 0%,100% { transform:scale(1); opacity:0.6; } 50% { transform:scale(1.06); opacity:1; } }
@keyframes shimmer { 0%{background-position:-200% center;} 100%{background-position:200% center;} }

/* ============================================
   PAGE ROUTER — only active page visible
   ============================================ */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ============================================
   NAVIGATION (Landing)
   ============================================ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 66px; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,56,40,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
}
.nav-brand .seal-wrap { width: 40px; height: 40px; padding: 2px; }
.nav-brand .seal-wrap svg { width: 36px; height: 36px; }
.nav-brand-text { line-height: 1.25; }
.nav-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px; color: white; font-weight: 600;
}
.nav-brand-sub {
  font-size: 9px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-nav-ghost {
  padding: 8px 20px; border-radius: var(--radius-sm);
  background: transparent; color: var(--gold);
  border: 1px solid rgba(201,168,76,0.35);
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
}
.btn-nav-ghost:hover { background: rgba(201,168,76,0.1); }
.btn-nav-solid {
  padding: 8px 22px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--green-dark);
  border: none; font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.btn-nav-solid:hover { background: var(--gold-light); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, #001F12 0%, #003828 40%, #006B3F 100%);
  padding: 100px 40px 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg-word {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 18vw, 240px); font-weight: 900;
  color: rgba(255,255,255,0.025);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}
.hero-deco-ring {
  position: absolute; top: -120px; right: -120px;
  width: 550px; height: 550px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  animation: pulseRing 7s ease-in-out infinite;
}
.hero-deco-ring::before {
  content: ''; position: absolute; inset: 50px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,0.06);
}
.hero-deco-ring::after {
  content: ''; position: absolute; inset: 100px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,0.04);
}

.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.hero-content { max-width: 580px; animation: fadeIn 1s 0.2s both; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 50px; padding: 6px 16px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); animation: pulseRing 2s ease-in-out infinite;
}
.hero-badge span { font-size: 11px; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; }

.hero h1 {
  font-size: clamp(36px, 5vw, 54px); color: white;
  line-height: 1.12; margin-bottom: 22px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.68); line-height: 1.75; margin-bottom: 40px; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary {
  padding: 14px 34px; background: var(--gold); color: var(--green-dark);
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.3px; transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }
.btn-hero-outline {
  padding: 14px 34px; background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.28); border-radius: 8px;
  font-size: 14px; font-weight: 500; transition: var(--transition);
}
.btn-hero-outline:hover { border-color: white; background: rgba(255,255,255,0.06); }

/* hero seal */
.hero-seal-wrap {
  flex-shrink: 0;
  animation: floatAnim 6s ease-in-out infinite;
}
.hero-seal-orbit {
  width: 290px; height: 290px; border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.22);
  display: flex; align-items: center; justify-content: center;
}
.hero-seal-orbit-2 {
  width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.14);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
}
.hero-seal-core-wrap {
  width: 170px; height: 170px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(201,168,76,0.2), 0 0 120px rgba(0,107,63,0.15);
}
.hero-seal-core-wrap svg { width: 150px; height: 150px; }

/* hero stats bar */
.hero-stats {
  display: flex; gap: 0; margin-top: 52px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
}
.hero-stat { flex: 1; padding-right: 24px; }
.hero-stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); margin-right: 24px; }
.hero-stat-num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); font-weight: 700; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.section { padding: 90px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 4vw, 38px); color: var(--green-dark); margin-bottom: 14px; }
.section-desc { font-size: 15px; color: var(--text-muted); max-width: 500px; line-height: 1.75; margin-bottom: 52px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feat-card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
  transition: var(--transition);
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feat-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.feat-card h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 8px; }
.feat-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-section { background: white; }
.steps-track {
  display: flex; gap: 0; margin-top: 52px;
  counter-reset: step;
}
.step-item {
  flex: 1; text-align: center; padding: 0 16px;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 28px; right: -12px; left: calc(50% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
}
.step-num {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-dark); color: white;
  font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; border: 3px solid var(--gold);
  position: relative; z-index: 1;
}
.step-item h4 { font-size: 14px; font-weight: 600; color: var(--green-dark); margin-bottom: 6px; }
.step-item p  { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--green-dark); padding: 48px 40px 28px;
  text-align: center;
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 20px; color: white; }
.footer-sub  { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-top: 4px; margin-bottom: 28px; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-layout {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(145deg, #001F12 0%, #006B3F 100%);
  padding: 60px 52px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: ''; position: absolute; bottom: -140px; left: -140px;
  width: 450px; height: 450px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
}
.auth-left::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.05);
}
.auth-left-brand {
  display: flex; align-items: center; gap: 12px; position: relative; z-index: 1;
}
.auth-left-brand .seal-wrap { width: 46px; height: 46px; padding: 3px; }
.auth-left-brand .seal-wrap svg { width: 40px; height: 40px; }
.auth-left-brand-title { font-family: 'Playfair Display', serif; font-size: 14px; color: white; }
.auth-left-brand-sub   { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.auth-left-body { position: relative; z-index: 1; }
.auth-left-body h2 { font-size: 34px; color: white; margin-bottom: 16px; line-height: 1.2; }
.auth-left-body p  { font-size: 15px; color: rgba(255,255,255,0.62); line-height: 1.75; margin-bottom: 32px; }

.auth-checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-checklist li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,0.72);
}
.auth-checklist li::before { content: '✓'; color: var(--gold); font-weight: 700; }

.auth-left-seal { position: relative; z-index: 1; display: flex; justify-content: center; }
.auth-left-seal svg { width: 130px; height: 130px; filter: drop-shadow(0 0 30px rgba(201,168,76,0.2)); }

.auth-right {
  background: white; padding: 60px 52px;
  display: flex; align-items: center; justify-content: center;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-title { font-size: 28px; color: var(--green-dark); margin-bottom: 6px; }
.auth-form-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text); margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border-mid); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 3px rgba(0,107,63,0.07); }
.form-control::placeholder { color: #AEACA6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}

.btn-submit {
  width: 100%; padding: 13px; margin-top: 8px;
  background: var(--green); color: white; border: none;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; transition: var(--transition);
}
.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.auth-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-switch a { color: var(--green); font-weight: 500; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

.form-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--text-muted); font-size: 12px;
}
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-mid); }

/* ============================================
   ALERTS / NOTIFICATIONS
   ============================================ */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 18px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-icon { flex-shrink: 0; font-size: 15px; }
.alert-success { background: var(--success-bg); color: #1B6B3A; border: 1px solid rgba(39,174,96,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); border: 1px solid rgba(201,168,76,0.3); }
.alert-danger  { background: var(--danger-bg); color: #8B1C1C; border: 1px solid rgba(192,57,43,0.2); }
.alert-info    { background: var(--info-bg); color: #1A56B0; border: 1px solid rgba(41,128,185,0.2); }

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrap { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w); min-height: 100vh;
  background: var(--green-dark);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar-header {
  padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sidebar-brand-row { display: flex; align-items: center; gap: 10px; }
.sidebar-brand-row .seal-wrap { width: 36px; height: 36px; padding: 2px; }
.sidebar-brand-row .seal-wrap svg { width: 32px; height: 32px; }
.sidebar-brand-name { font-family: 'Playfair Display', serif; font-size: 12.5px; color: white; line-height: 1.3; }
.sidebar-brand-tag  { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.sidebar-section-label {
  padding: 18px 20px 6px;
  font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; margin: 2px 10px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.6);
  border: 1px solid transparent;
}
.sidebar-nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
.sidebar-nav-item.active {
  background: rgba(201,168,76,0.14); color: var(--gold);
  border-color: rgba(201,168,76,0.22);
}
.sidebar-nav-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto; padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.sidebar-user-row { display: flex; align-items: center; gap: 10px; }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--green-dark); flex-shrink: 0;
}
.sidebar-user-name { font-size: 13px; color: white; font-weight: 500; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.38); }
.btn-logout {
  margin-left: auto; padding: 6px 10px;
  background: rgba(255,255,255,0.06); border: none;
  border-radius: var(--radius-sm); color: rgba(255,255,255,0.45);
  font-size: 11px; transition: var(--transition);
}
.btn-logout:hover { background: rgba(255,255,255,0.12); color: white; }

/* MAIN AREA */
.main-area { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h); padding: 0 32px;
  background: white; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-title { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--green-dark); }
.topbar-right  { display: flex; align-items: center; gap: 14px; }
.topbar-badge {
  padding: 4px 12px; border-radius: 50px;
  background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.28);
  font-size: 11px; color: var(--gold); font-weight: 500;
}
.topbar-icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: var(--transition);
}
.topbar-icon-btn:hover { background: var(--cream); }
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white; cursor: pointer;
}

/* ============================================
   PAGE CONTENT AREA
   ============================================ */
.page-body { padding: 28px 32px; flex: 1; background: #F2F3EF; }
.page-head { margin-bottom: 26px; }
.page-head-title { font-size: 22px; color: var(--green-dark); }
.page-head-sub   { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   STAT CARDS
   ============================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: white; border-radius: var(--radius-md);
  padding: 20px 20px 16px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--green), var(--gold));
}
.stat-icon-badge {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; float: right; margin: -4px -4px 8px 8px;
}
.stat-icon-badge.green  { background: var(--success-bg); }
.stat-icon-badge.gold   { background: var(--gold-pale); }
.stat-icon-badge.blue   { background: var(--info-bg); }
.stat-icon-badge.red    { background: var(--danger-bg); }
.stat-label { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--green-dark); }
.stat-sub   { font-size: 12px; color: var(--success); margin-top: 5px; }

/* ============================================
   CARD / TABLE COMPONENTS
   ============================================ */
.card {
  background: white; border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--green-dark); }
.card-body  { padding: 20px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 11px 16px; text-align: left;
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
  background: #FAFAF8; border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 13px 16px; font-size: 13px; color: var(--text);
  border-bottom: 1px solid #F2F2EE;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #FAFAF8; }
.data-table .cell-name  { font-weight: 600; }
.data-table .cell-email { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.badge {
  display: inline-block; padding: 3px 11px;
  border-radius: 50px; font-size: 11px; font-weight: 600;
}
.badge-green  { background: var(--success-bg); color: #1B6B3A; }
.badge-gold   { background: var(--gold-pale); color: #8B6914; }
.badge-red    { background: var(--danger-bg); color: #8B1C1C; }
.badge-blue   { background: var(--info-bg); color: #1A56B0; }
.badge-gray   { background: #F0F0EC; color: var(--text-muted); }

.btn-action {
  padding: 5px 13px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; border: 1px solid var(--border);
  background: white; color: var(--text); transition: var(--transition);
}
.btn-action:hover { background: var(--green); color: white; border-color: var(--green); }
.btn-action.approve { background: var(--green); color: white; border-color: var(--green); }
.btn-action.reject  { background: var(--danger); color: white; border-color: var(--danger); }

/* ============================================
   SEARCH / FILTER ROW
   ============================================ */
.filter-row {
  display: flex; gap: 12px; align-items: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.search-box {
  position: relative; flex: 1; min-width: 200px; max-width: 280px;
}
.search-box svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; stroke: var(--text-muted);
}
.search-box input {
  width: 100%; padding: 9px 14px 9px 34px;
  border: 1px solid var(--border-mid); border-radius: var(--radius-sm);
  font-size: 13px; outline: none; background: white; transition: var(--transition);
}
.search-box input:focus { border-color: var(--green); }
.filter-select {
  padding: 9px 32px 9px 12px; border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm); font-size: 13px; font-family: 'DM Sans', sans-serif;
  outline: none; background: white; min-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: var(--transition); cursor: pointer;
}
.filter-select:focus { border-color: var(--green); }
.btn-primary-sm {
  padding: 9px 20px; background: var(--green); color: white;
  border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary-sm:hover { background: var(--green-mid); }
.ml-auto { margin-left: auto; }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-layout {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
}
.profile-sidebar-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px; text-align: center;
}
.profile-avatar-lg {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--green); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-family: 'Playfair Display', serif; font-weight: 700; color: white;
  margin: 0 auto 16px; border: 3px solid var(--gold);
  letter-spacing: -1px;
}
.profile-name  { font-size: 17px; color: var(--green-dark); margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }

.progress-block { background: var(--success-bg); border-radius: var(--radius-sm); padding: 14px; }
.progress-label { font-size: 11px; color: var(--success); font-weight: 600; margin-bottom: 8px; }
.progress-bar { height: 6px; background: #C8E6C9; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--success); border-radius: 3px; transition: width 0.5s ease; }

.profile-form-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
}
.profile-form-card h3 { font-size: 20px; color: var(--green-dark); margin-bottom: 5px; }
.profile-form-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }

.note-callout {
  background: var(--warning-bg); border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 13px; color: var(--warning-text); line-height: 1.6; margin-top: 18px;
}
.btn-save {
  padding: 12px 30px; background: var(--green); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; transition: var(--transition); margin-top: 8px;
}
.btn-save:hover { background: var(--green-mid); }
.btn-save-gold  { background: var(--gold); color: var(--green-dark); }
.btn-save-gold:hover { background: var(--gold-light); }

/* ============================================
   PAYMENT PAGE
   ============================================ */
.payment-center { display: flex; justify-content: center; }
.payment-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 36px 40px;
  width: 100%; max-width: 480px;
}
.payment-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--success-bg); display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 22px;
}
.payment-card h2 { font-size: 22px; color: var(--green-dark); text-align: center; margin-bottom: 8px; }
.payment-card .sub { font-size: 14px; color: var(--text-muted); text-align: center; line-height: 1.65; margin-bottom: 28px; }
.payment-breakdown { background: #F5F5F0; border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px; }
.pay-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pay-row:last-child { border-bottom: none; font-weight: 700; color: var(--green-dark); font-size: 15px; }
.paystack-btn {
  width: 100%; padding: 15px; background: #00C3F7; color: white;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
  font-family: 'DM Sans', sans-serif; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.paystack-btn:hover { background: #00A8D5; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,195,247,0.3); }
.paystack-btn:disabled { opacity: 0.7; transform: none; cursor: not-allowed; }
.pay-security { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.pay-cancel { text-align: center; margin-top: 10px; }
.pay-cancel a { font-size: 13px; color: var(--text-muted); cursor: pointer; }
.pay-cancel a:hover { color: var(--green); }

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-list { list-style: none; }
.activity-item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.dot-green { background: var(--green-light); }
.dot-gold  { background: var(--gold); }
.dot-red   { background: var(--danger); }
.dot-blue  { background: var(--info); }
.activity-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ============================================
   MINI CHART (Admin)
   ============================================ */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.mini-bar {
  flex: 1; border-radius: 3px 3px 0 0;
  min-width: 8px; transition: opacity 0.2s;
  background: var(--green-light); opacity: 0.7;
}
.mini-bar:hover { opacity: 1; }
.mini-bar.highlight { background: var(--gold); opacity: 1; }
.chart-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted); margin-top: 4px; }

/* ============================================
   TWO / THREE COL GRIDS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon  { font-size: 44px; opacity: 0.35; margin-bottom: 12px; }
.empty-text  { font-size: 14px; color: var(--text-muted); }

/* ============================================
   REPORT EXPORT CARDS
   ============================================ */
.export-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; cursor: pointer; transition: var(--transition); background: white;
}
.export-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.export-icon  { font-size: 28px; margin-bottom: 10px; }
.export-title { font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }
.export-desc  { font-size: 12px; color: var(--text-muted); }

/* ============================================
   SETTINGS TOGGLE
   ============================================ */
.setting-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--border); }
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 13px; }

/* ============================================
   PROGRESS BAR INLINE
   ============================================ */
.inline-progress { height: 5px; background: #E0E0D8; border-radius: 3px; overflow: hidden; width: 80px; }
.inline-progress-fill { height: 100%; background: var(--green-light); border-radius: 3px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .hero-seal-wrap { display: none; }
  .hero h1 { font-size: 34px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps-track { flex-direction: column; gap: 24px; }
  .step-item::after { display: none; }
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .main-nav { padding: 0 20px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 20px; }
  .hero { padding: 90px 20px 60px; }
  .page-body { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
