/* ========== FLUID ISLAND HEADER ========== */
.app-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header); padding-top: 0.75rem;
  display: flex; justify-content: center; pointer-events: none;
}
.header-inner { pointer-events: auto; width: 100%; max-width: var(--max-w); padding: 0 1.25rem; }
.header-glass {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.5rem 0.55rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(26, 28, 25, 0.06);
  box-shadow: 0 8px 40px rgba(26, 28, 25, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.5s var(--ease-out-expo);
}
.logo-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.logo-img { 
  width: 28px; height: 28px; display: flex; align-items: center;
  color: var(--primary); flex-shrink: 0;
}
.logo-img svg { width: 28px; height: 28px; }
.logo-text {
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  color: var(--text); letter-spacing: -0.025em; white-space: nowrap;
}
.logo-text em { font-style: normal; color: var(--primary); }

.header-nav-links {
  display: none !important; align-items: center; gap: 0.15rem; margin: 0 0.5rem;
}
@media (min-width: 769px) { .header-nav-links { display: flex; } }
.header-nav-links a {
  text-decoration: none; color: var(--text-secondary); font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 500; padding: 0.35rem 0.75rem;
  border-radius: 999px; transition: all var(--transition); white-space: nowrap;
}
.header-nav-links a:hover { background: var(--bg-subtle); color: var(--text); }

.header-right { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.notif-btn { position: relative; display: flex; align-items: center; }
.notif-icon-btn { width: 34px; height: 34px; border-radius: 50%; }
.notif-badge {
  position: absolute; top: 0; right: 0;
  background: var(--danger); color: white;
  font-size: 0.55rem; width: 15px; height: 15px;
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-variant-numeric: tabular-nums;
}

/* ========== HAMBURGER MORPH ========== */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 34px; height: 34px; border: none; background: rgba(26, 28, 25, 0.05);
  border-radius: 50%; cursor: pointer; position: relative;
  transition: background 0.3s var(--ease-out-expo);
  flex-shrink: 0;
}
.hamburger-btn:hover { background: rgba(26, 28, 25, 0.1); }
@media (min-width: 769px) { .hamburger-btn { display: none !important; } }
.hamburger-btn span {
  display: block; width: 14px; height: 1.5px; background: var(--text);
  border-radius: 2px; position: absolute;
  transition: all 0.4s var(--ease-snap);
}
.hamburger-btn span:nth-child(1) { transform: translateY(-4.5px); }
.hamburger-btn span:nth-child(2) { transform: translateY(0); }
.hamburger-btn span:nth-child(3) { transform: translateY(4.5px); }
.hamburger-btn.open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: translateY(0) scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ========== SIDE NAV (OVERLAY) ========== */
#side-nav {
  position: fixed; inset: 0; z-index: var(--z-nav);
  pointer-events: none; display: flex; justify-content: flex-end;
}
.nav-overlay-bg {
  position: absolute; inset: 0;
  background: rgba(13, 20, 22, 0.7);
  backdrop-filter: blur(32px) saturate(1.5);
  -webkit-backdrop-filter: blur(32px) saturate(1.5);
  opacity: 0; transition: opacity 0.5s var(--ease-out-expo);
}
.side-nav.open .nav-overlay-bg { opacity: 1; }

.nav-panel {
  position: relative; width: 100%; max-width: 320px;
  background: var(--bg-dark);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  height: 100%; overflow-y: auto;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
}
.side-nav.open { pointer-events: auto; }
.side-nav.open .nav-panel { transform: translateX(0); }

.nav-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
}
.nav-panel-header .logo-text { color: rgba(255, 255, 255, 0.9); }
.nav-panel-header .logo-text em { color: var(--primary-light); }
.nav-close {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.6);
  cursor: pointer; border: none; transition: all var(--transition);
}
.nav-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.nav-list { list-style: none; padding: 0.25rem 0.75rem; flex: 1; }
#side-nav li { list-style: none; }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.85rem; margin: 0.1rem 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition); border-radius: 12px; text-decoration: none;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.9);
}
.nav-item.active {
  background: rgba(45, 138, 66, 0.2); color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(45, 138, 66, 0.2);
}
.nav-item.logout-item:hover { background: rgba(184, 58, 46, 0.15); color: #f0a8a0; }

.nav-icon {
  width: 28px; height: 28px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all var(--transition);
}
.nav-icon svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav-item:hover .nav-icon { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-item.active .nav-icon { background: color-mix(in srgb, var(--primary-light) 30%, transparent); color: #fff; }

.nav-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 0.5rem 0.85rem; }
.nav-footer { padding: 0.5rem 0.75rem 1.25rem; }

@media (min-width: 769px) {
  #side-nav {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 230px; z-index: var(--z-nav);
    pointer-events: auto; display: flex;
    background: var(--bg-dark);
    border-right: 1px solid rgba(255,255,255,0.04);
    overflow-y: auto;
  }
  #side-nav .nav-overlay-bg { display: none; }
  #side-nav .nav-panel {
    transform: none; max-width: none; width: 100%;
    border-left: none; box-shadow: none;
    background: transparent;
  }
  #side-nav .nav-close { display: none; }
  #side-nav .nav-panel-header { padding-top: 1.5rem; }
  .main-content { margin-left: 230px; }
  .view-container { max-width: calc(var(--max-w) + 2rem); padding: 1.5rem 2rem 3.5rem; }
}

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-top: 0; padding-top: 5rem;
  min-height: 100dvh;
  transition: padding-top var(--transition-slow);
}
.main-content:focus { outline: none; }
.view-container {
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  animation: fadeIn 0.3s var(--ease-out-expo);
}

/* ========== NOTIFICATION PANEL (DOUBLE-BEZEL) ========== */
.notif-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  z-index: 101; padding: 4.5rem 1rem 1rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out-expo);
  pointer-events: none;
}
.notif-panel.open { transform: translateX(0); pointer-events: auto; }
.notif-bezel-outer {
  height: 100%; border-radius: var(--radius-2xl); overflow: hidden;
  background: rgba(26, 28, 25, 0.04); border: 1px solid rgba(26, 28, 25, 0.06);
  padding: 0.5rem; box-shadow: 0 28px 60px rgba(13, 51, 21, 0.18);
}
.notif-bezel-inner {
  height: 100%; overflow-y: auto;
  border-radius: calc(var(--radius-2xl) - 0.375rem);
  background: var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; background: var(--bg-card);
}
.notif-panel-header h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.notif-list { padding: 0.25rem 0; }
.notif-item {
  padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--border-light);
  cursor: pointer; transition: background var(--transition);
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { border-left: 3px solid var(--primary); background: var(--primary-subtle); }
.notif-item .notif-title { font-weight: 600; font-size: 0.88rem; }
.notif-item .notif-msg { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.15rem; }
.notif-item .notif-time { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 0.25rem; }

@media (min-width: 769px) { .notif-panel { max-width: 380px; } }
@media (max-width: 768px) { .notif-panel { width: 100%; padding: 5rem 0.75rem 0.75rem; } }

/* ========== AUTH PAGES ========== */
.auth-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; overflow: hidden;
  margin: -5rem -1.25rem -3.5rem;
  background: radial-gradient(ellipse 80% 60% at 15% 40%, rgba(45, 138, 66, 0.35) 0%, transparent 55%),
              radial-gradient(ellipse 50% 40% at 85% 70%, rgba(184, 134, 42, 0.18) 0%, transparent 50%),
              linear-gradient(160deg, #0e1210 0%, #141c16 45%, #1a3a22 100%);
}
.auth-page::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04; pointer-events: none;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius-2xl);
  padding: 2.5rem 2.25rem; width: 100%; max-width: 420px;
  box-shadow: 0 28px 60px rgba(13, 51, 21, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative; animation: slideUp 0.4s var(--ease-out-expo);
  border: 1px solid color-mix(in srgb, var(--border-light) 70%, transparent);
}
.auth-card .logo-link { justify-content: center; margin-bottom: 1.35rem; flex: none; }
.auth-card .logo-text { font-size: 1.35rem; color: var(--primary); font-weight: 700; }
.auth-card .logo-text em { font-style: normal; color: var(--primary); }
.auth-card h1 { text-align: center; font-size: 1.4rem; margin-bottom: 0.35rem; font-weight: 700; }
.auth-card .auth-subtitle { text-align: center; color: var(--text-tertiary); font-size: 0.9rem; margin-bottom: 1.65rem; font-family: var(--font-body); max-width: none; }
.auth-footer { text-align: center; margin-top: 1.4rem; font-size: 0.88rem; color: var(--text-tertiary); }
.auth-footer a { color: var(--primary-light); font-weight: 600; }
.auth-footer a:hover { color: var(--primary); }

/* ========== DASHBOARD ========== */
.welcome-banner {
  border-radius: var(--radius-2xl); padding: 2rem 2.25rem;
  margin-bottom: 1.65rem; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 80% at 90% 20%, rgba(184, 134, 42, 0.2) 0%, transparent 55%),
              linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 8px 20px rgba(26, 90, 42, 0.08);
}
.welcome-banner::after {
  content: ''; position: absolute; top: -40%; right: -8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.welcome-banner::before {
  content: ''; position: absolute; bottom: -35%; left: -5%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.welcome-banner h1 {
  color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 700; position: relative; letter-spacing: -0.03em;
  margin-bottom: 0.45rem; text-wrap: balance;
}
.welcome-banner p {
  color: rgba(255, 255, 255, 0.82); font-size: 0.95rem;
  position: relative; margin-bottom: 0;
  font-family: var(--font-serif); font-style: italic;
  max-width: 52ch; line-height: 1.65;
}

.btn-stack { display: flex; flex-direction: column; gap: 0.55rem; }
.grid-2 > .card { height: 100%; }

.course-progress-list { display: flex; flex-direction: column; gap: 1rem; }
.course-progress-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.35rem; }
.course-progress-title { font-weight: 500; font-size: 0.88rem; color: var(--text); }
.course-progress-count { font-size: 0.8rem; color: var(--text-tertiary); }

/* ========== BABY STEPS ========== */
.baby-steps-track { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.baby-step-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card); border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition); cursor: pointer;
  box-shadow: var(--shadow);
}
.baby-step-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.baby-step-item.completed { border-color: var(--success); background: var(--success-bg); }
.baby-step-item.active { border-color: var(--primary); background: var(--primary-subtle); }
.baby-step-num {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  flex-shrink: 0; color: var(--text-secondary); font-variant-numeric: tabular-nums;
}
.baby-step-item.completed .baby-step-num { background: var(--success); color: white; }
.baby-step-item.active .baby-step-num { background: var(--primary); color: white; }
.baby-step-info { flex: 1; min-width: 0; }
.baby-step-info h4 { margin: 0; font-size: 0.92rem; }
.baby-step-info p { margin: 0.1rem 0 0; font-size: 0.8rem; color: var(--text-tertiary); }
.baby-step-check { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }

/* ========== COURSE CARDS ========== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.course-card {
  border-radius: var(--radius-2xl); overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
  background: var(--bg-card); box-shadow: var(--shadow);
}
.course-card:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border-light)); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.course-card-img {
  height: 112px;
  background: radial-gradient(ellipse at 80% 20%, rgba(184, 134, 42, 0.25) 0%, transparent 50%),
              linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.25);
}
.course-card-initials { font-family: var(--font-sans); font-weight: 700; font-size: 1.85rem; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.06em; line-height: 1; }
.course-card-body { padding: 1rem 1.1rem 1.1rem; }
.course-card-body h3 { margin-bottom: 0.35rem; font-size: 1rem; font-weight: 700; font-family: var(--font-sans); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-body p { font-size: 0.83rem; color: var(--text-tertiary); margin-bottom: 0.65rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text-tertiary); }
.course-card-meta span { display: flex; align-items: center; gap: 0.2rem; }

/* ========== LESSON LIST ========== */
.lesson-list { display: flex; flex-direction: column; gap: 0.45rem; }
.lesson-item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; background: var(--bg-card);
  border-radius: var(--radius-2xl); border: 1px solid var(--border-light);
  cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow);
}
.lesson-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lesson-item.completed { border-left: 3px solid var(--success); }
.lesson-item.in-progress { border-left: 3px solid var(--primary); background: var(--primary-subtle); }
.lesson-item.locked { opacity: 0.55; cursor: default; }
.lesson-item.locked .lesson-num { background: var(--bg-subtle); color: var(--text-tertiary); font-size: 0.9rem; }
.lesson-num { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; flex-shrink: 0; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.lesson-item.completed .lesson-num { background: var(--success); color: white; }
.lesson-item.in-progress .lesson-num { background: var(--primary); color: white; }
.lesson-info { flex: 1; min-width: 0; }
.lesson-info h4 { margin: 0; font-size: 0.9rem; font-weight: 500; }
.lesson-info .lesson-meta { font-size: 0.76rem; color: var(--text-tertiary); margin-top: 0.15rem; }

/* ========== LESSON VIEWER ========== */
.lesson-viewer { max-width: 780px; margin: 0 auto; }
.lesson-viewer h1 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.lesson-content {
  background: var(--bg-card); border-radius: var(--radius-2xl);
  padding: 2rem; margin-top: 1rem;
  border: 1px solid var(--border-light); line-height: 1.8; font-size: 0.95rem;
  box-shadow: var(--shadow);
}
.lesson-content p { margin-bottom: 1rem; color: var(--text); }
.lesson-content h2 { margin-top: 1.75rem; margin-bottom: 0.75rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.lesson-content h3 { margin-top: 1.25rem; margin-bottom: 0.6rem; font-size: 1.05rem; font-weight: 600; }
.lesson-content ul, .lesson-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.lesson-content li { margin-bottom: 0.35rem; }
.lesson-content blockquote { border-left: 3px solid var(--primary); padding: 0.95rem 1.25rem; margin: 1.15rem 0; background: var(--primary-subtle); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-serif); font-style: italic; color: var(--text-secondary); }
.lesson-content blockquote p { margin-bottom: 0; color: var(--text-secondary); max-width: none; }
.lesson-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); }

/* ========== BUDGET ========== */
.budget-summary { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.85rem; margin-bottom: 1.25rem; }
.budget-category-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; }
.budget-category-row:last-child { border-bottom: none; }
.budget-category-row .cat-name { flex: 1; font-weight: 500; }
.budget-category-row .cat-planned { min-width: 90px; text-align: right; font-weight: 600; }
.budget-category-row .cat-actual { min-width: 90px; text-align: right; }
.budget-category-row .cat-diff { min-width: 70px; text-align: right; font-size: 0.85rem; }
.budget-category-row .cat-diff.positive { color: var(--success); }
.budget-category-row .cat-diff.negative { color: var(--danger); }

/* ========== DEBT SNOWBALL ========== */
.debt-list { display: flex; flex-direction: column; gap: 0.65rem; }
.debt-card {
  background: var(--bg-card); border-radius: var(--radius-2xl);
  padding: 1.1rem 1.25rem; border: 1px solid var(--border-light);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.debt-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.debt-card.paid-off { opacity: 0.6; border-color: var(--success); }
.debt-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.65rem; }
.debt-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.debt-progress { display: flex; align-items: center; gap: 0.75rem; }
.debt-progress .progress-bar { flex: 1; height: 5px; }
.debt-progress .debt-percent { font-weight: 600; font-size: 0.85rem; min-width: 45px; text-align: right; }
.debt-details { display: flex; gap: 1.25rem; font-size: 0.82rem; color: var(--text-tertiary); }

/* ========== NET WORTH ========== */
.net-worth-chart { height: 280px; margin-bottom: 1.25rem; }
.net-worth-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

/* ========== SAVINGS ========== */
.savings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.savings-card {
  background: var(--bg-card); border-radius: var(--radius-2xl);
  padding: 1.1rem 1.15rem; border: 1px solid var(--border-light);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.savings-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.savings-card h3 { margin-bottom: 0.4rem; font-size: 0.95rem; }
.savings-card .progress-bar { margin: 0.65rem 0; }
.savings-amount { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-tertiary); }

/* ========== COMMUNITY ========== */
.post-card {
  background: var(--bg-card); border-radius: var(--radius-2xl);
  padding: 1.15rem 1.25rem; margin-bottom: 0.85rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition); box-shadow: var(--shadow);
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-author { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.65rem; }
.post-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem; flex-shrink: 0; }
.post-meta { font-size: 0.78rem; color: var(--text-tertiary); }
.reply { padding: 0.65rem 0 0.65rem 2rem; border-top: 1px solid var(--border-light); }

/* ========== PRAYER WALL ========== */
.prayer-card { background: var(--bg-card); border-radius: var(--radius-2xl); padding: 1.15rem 1.25rem; margin-bottom: 0.85rem; border: 1px solid var(--border-light); position: relative; transition: all var(--transition); box-shadow: var(--shadow); }
.prayer-card:hover { box-shadow: var(--shadow-md); }
.prayer-card::before { content: '\D7\9E'; position: absolute; top: -6px; left: -6px; width: 30px; height: 30px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* ========== TABLES ========== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-light); border-radius: var(--radius-2xl); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border-light); font-size: 0.88rem; }
th { font-family: var(--font-sans); font-weight: 600; color: var(--text-tertiary); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; background: var(--bg); }
tr:hover td { background: var(--bg); }
tr:last-child td { border-bottom: none; }

/* ========== ADMIN ========== */
.admin-tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); overflow-x: auto; flex-wrap: nowrap; }
.admin-tab { padding: 0.6rem 1rem; font-weight: 600; font-size: 0.82rem; color: var(--text-tertiary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: all 0.2s; border-radius: 6px 6px 0 0; }
.admin-tab:hover { color: var(--text); background: var(--bg-subtle); }
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-dashboard h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.admin-dashboard .section-subtitle { margin-bottom: 1.5rem; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { background: var(--bg-card); border-radius: var(--radius-2xl); padding: 1.15rem; border: 1px solid var(--border-light); box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.75rem; transition: box-shadow var(--transition); }
.admin-stat-card:hover { box-shadow: var(--shadow-md); }
.admin-stat-card .stat-icon { width: 38px; height: 38px; font-size: 0.85rem; flex-shrink: 0; }
.admin-stat-card .stat-value { font-size: 1.35rem; font-weight: 800; color: var(--text); line-height: 1.2; letter-spacing: -0.02em; }
.admin-stat-card .stat-label { font-size: 0.7rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-search { flex: 1; min-width: 180px; padding: 0.55rem 0.85rem; border: 1px solid var(--border-light); border-radius: 999px; font-size: 0.85rem; background: var(--bg); transition: border-color 0.2s; font-family: var(--font-body); }
.admin-search:focus { outline: none; border-color: var(--primary); }
.admin-filter { padding: 0.55rem 0.85rem; border: 1px solid var(--border-light); border-radius: 999px; font-size: 0.82rem; background: var(--bg); cursor: pointer; }
.admin-table-wrap { overflow-x: auto; background: var(--bg-card); border-radius: var(--radius-2xl); border: 1px solid var(--border-light); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); border-bottom: 1px solid var(--border-light); background: var(--bg-subtle); }
.admin-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-subtle); }
.admin-pagination { display: flex; gap: 0.5rem; align-items: center; justify-content: center; padding: 1rem; }
.admin-pagination .page-btn { padding: 0.35rem 0.75rem; border: 1px solid var(--border-light); border-radius: 999px; font-size: 0.8rem; cursor: pointer; background: var(--bg-card); }
.admin-pagination .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-pagination .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== FILTER BAR ========== */
.filter-bar { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* ========== DARK MODE ========== */
@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.05; }

  .header-glass {
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    border-color: var(--border);
  }

  .nav-panel { background: linear-gradient(180deg, #0a0d0b 0%, #0e1210 100%); }

  .welcome-banner {
    background: radial-gradient(ellipse 70% 80% at 90% 20%, rgba(184, 134, 42, 0.15) 0%, transparent 55%),
                linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
  }
  .welcome-banner::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%); }
  .welcome-banner::before { background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 70%); }

  .auth-page { background: linear-gradient(145deg, var(--bg-dark) 0%, var(--primary-dark) 100%); }
  .auth-card { background: var(--bg-card); border: 1px solid var(--border); }
  .auth-card .logo-text { color: var(--primary-light); }

  .course-card-img { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%); }

  .notif-bezel-outer { background: rgba(255, 255, 255, 0.03); border-color: var(--border); }
  .notif-bezel-inner { background: var(--bg-card); }

  .lesson-content { background: var(--bg-card); border-color: var(--border); }
  .lesson-content blockquote { background: var(--bg-subtle); }

  .table-wrap { border-color: var(--border); }
  th { background: var(--bg-subtle); }
  .admin-table th { background: var(--bg-dark); }
  .admin-tab:hover { background: var(--bg-subtle); }

  .post-avatar { border: 1px solid var(--border); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .view-container { padding: 1rem 1rem 2rem; }
  .course-grid { grid-template-columns: 1fr; }
  .budget-summary { grid-template-columns: 1fr; }
  .net-worth-form { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; }
  .welcome-banner { padding: 1.5rem; }
  .welcome-banner h1 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .lesson-actions { flex-direction: column; }
  .lesson-content { padding: 1.25rem; }
  .view-container { padding: 1rem 0.75rem 2rem; }
}
