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

/* ===== DESIGN SYSTEM ===== */
:root {
  --bg-primary:    #F5F0E8;
  --bg-secondary:  #EDE8DF;
  --bg-card:       #ffffff;
  --bg-card-hover: #FFFCF8;
  --accent:        #C4704A;
  --accent-hover:  #B05D3A;
  --accent-dim:    rgba(196, 112, 74, 0.10);
  --accent-border: rgba(196, 112, 74, 0.28);
  --accent-glow:   0 4px 24px rgba(196, 112, 74, 0.18);
  --gold:          #C9A84C;
  --gold-dim:      rgba(201, 168, 76, 0.12);
  --sage:          #7A8C6E;
  --sage-dim:      rgba(122, 140, 110, 0.12);
  --blush:         #E8C4B0;
  --text-primary:  #1A1A1A;
  --text-secondary:#5C5C5C;
  --text-muted:    #A0A0A0;
  --border:        rgba(0, 0, 0, 0.08);
  --border-hover:  rgba(0, 0, 0, 0.16);
  --success:       #7A8C6E;
  --success-dim:   rgba(122, 140, 110, 0.12);
  --error:         #C0392B;
  --error-dim:     rgba(192, 57, 43, 0.10);
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:     0 12px 40px rgba(0, 0, 0, 0.13);
  --transition:    0.2s ease;
  --nav-height:    64px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea { font-family: inherit; outline: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}
h3 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
}
.navbar-logo span { color: var(--text-primary); }
.navbar-logo span em { color: var(--accent); font-style: normal; }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196, 112, 74, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--accent-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-hover);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-dim); }
.btn-danger {
  background: var(--error-dim);
  color: var(--error);
  border: 1px solid rgba(192, 57, 43, 0.2);
}
.btn-danger:hover { background: rgba(192, 57, 43, 0.18); }
.btn-success {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(122, 140, 110, 0.25);
}
.btn-lg { padding: 0.875rem 2rem; font-size: 0.95rem; border-radius: 12px; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-input {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
  width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); background: #fff; }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-dim); }

/* ===== ALERTS ===== */
.alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}
.alert.show { display: flex; align-items: flex-start; gap: 0.5rem; }
.alert-error  { background: var(--error-dim);   border: 1px solid rgba(192,57,43,0.2);    color: var(--error); }
.alert-success{ background: var(--success-dim); border: 1px solid rgba(122,140,110,0.25); color: var(--sage); }
.alert-icon { flex-shrink: 0; }

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent-border); }
.card-clickable { cursor: pointer; }
.card-clickable:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-accent  { background: var(--accent-dim);   color: var(--accent);   border: 1px solid var(--accent-border); }
.badge-success { background: var(--success-dim);  color: var(--sage);     border: 1px solid rgba(122,140,110,0.25); }
.badge-muted   { background: var(--bg-secondary); color: var(--text-muted); border: 1px solid var(--border); }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ===== LOADING SPINNER ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-hover);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ===== AUTH LAYOUT ===== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 70% 10%, rgba(196,112,74,0.10) 0%, transparent 55%),
                    radial-gradient(ellipse at 20% 90%, rgba(201,168,76,0.07) 0%, transparent 50%);
}
.auth-box {
  width: 100%;
  max-width: 440px;
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 900;
}
.auth-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
}
.auth-logo span em { color: var(--accent); font-style: normal; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
}
.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.375rem;
}
.auth-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { color: var(--accent-hover); }

/* ===== HERO SECTION ===== */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  text-align: center;
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(196,112,74,0.13) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23C4704A' fill-opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero-desc {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ===== FEATURES SECTION ===== */
.features {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--bg-secondary);
}
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { letter-spacing: -0.01em; }
.section-header p { color: var(--text-secondary); margin-top: 0.75rem; font-size: 0.95rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.feature-card:nth-child(3n+2) { border-top-color: var(--gold); }
.feature-card:nth-child(3n)   { border-top-color: var(--sage); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--accent-border);
}
.feature-card:nth-child(3n+2) .feature-icon { background: var(--gold-dim); border-color: rgba(201,168,76,0.25); }
.feature-card:nth-child(3n)   .feature-icon { background: var(--sage-dim); border-color: rgba(122,140,110,0.25); }
.feature-card h3 { color: var(--accent); margin-bottom: 0.5rem; }
.feature-card:nth-child(3n+2) h3 { color: var(--gold); }
.feature-card:nth-child(3n)   h3 { color: var(--sage); }
.feature-card > h2,
.feature-card > p:last-child { margin-top: 0.35rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.testimonial-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 900; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.875rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, #B05D3A 100%);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h2 { font-family: 'Playfair Display', serif; color: #fff; }
.cta-box p { color: rgba(255,255,255,0.88); margin: 0.75rem 0 2rem; font-size: 1rem; }
.cta-box .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-box .btn-primary:hover { background: var(--bg-primary); }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: auto;
}
footer a { color: var(--text-muted); transition: var(--transition); }
footer a:hover { color: var(--accent); }

/* ===== DASHBOARD ===== */
.dashboard-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.dashboard-greeting {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.dashboard-greeting span { color: var(--accent); font-style: italic; }
.dashboard-sub { color: var(--text-secondary); margin-top: 0.375rem; font-size: 0.9rem; }
.programs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.program-card:nth-child(2) { border-top-color: var(--sage); }
.program-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.program-card:nth-child(2):hover { border-color: rgba(122,140,110,0.35); }
.program-card-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.program-card:nth-child(2) .program-card-icon {
  background: var(--sage-dim);
  border-color: rgba(122,140,110,0.25);
}
.program-card h3 { font-size: 1.15rem; font-family: 'Playfair Display', serif; font-weight: 700; }
.program-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.program-card-arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 1.25rem;
  transition: var(--transition);
}
.program-card:hover .program-card-arrow { transform: translateX(5px); }
.dashboard-actions { margin-top: 2rem; display: flex; gap: 0.75rem; }

/* ===== PROGRAM VIEWER ===== */
.program-page { display: flex; flex-direction: column; height: 100vh; }
.program-topbar {
  height: var(--nav-height);
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}
.program-topbar-back {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-secondary); font-size: 0.875rem;
  transition: var(--transition);
}
.program-topbar-back:hover { color: var(--accent); }
.program-topbar-title { font-weight: 700; font-size: 0.95rem; font-family: 'Playfair Display', serif; }
.program-topbar-badge { margin-left: auto; }
.program-frame { flex: 1; border: none; width: 100%; display: block; }
.program-loading { flex: 1; display: flex; align-items: center; justify-content: center; }

/* ===== ADMIN PANEL ===== */
.admin-header { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.admin-title { display: flex; align-items: center; gap: 0.75rem; }
.admin-title .badge { font-size: 0.65rem; }
.users-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg-secondary);
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  vertical-align: middle;
  background: var(--bg-card);
}
tr:hover td { background: var(--bg-primary); }
.user-info { display: flex; flex-direction: column; gap: 0.2rem; }
.user-name { font-weight: 600; }
.user-email { color: var(--text-secondary); font-size: 0.8rem; }
.upload-cell { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { display: flex; flex-direction: column; gap: 1rem; }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 2rem; text-align: center;
  cursor: pointer; transition: var(--transition);
  background: var(--bg-primary);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.upload-zone input[type="file"] { display: none; }
.upload-zone-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-zone-text { font-size: 0.875rem; color: var(--text-secondary); }
.upload-zone-text strong { color: var(--accent); }
.upload-zone-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.upload-filename { font-size: 0.85rem; color: var(--sage); margin-top: 0.5rem; font-weight: 600; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem; z-index: 300;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.25s ease;
  max-width: 320px;
}
.toast-success { border-left: 3px solid var(--sage); color: var(--sage); }
.toast-error   { border-left: 3px solid var(--error); color: var(--error); }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-stats { gap: 2rem; }
  .auth-card { padding: 1.5rem; }
  .programs-grid { grid-template-columns: 1fr; }
  .navbar-actions .btn-outline { display: none; }
  table { font-size: 0.8rem; }
  th, td { padding: 0.75rem 0.875rem; }
}
