/* =============================================
   Seleme Academy — Design System
   Plataforma de Cursos • Seleme Advogados
   ============================================= */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--seleme-ink);
  background: var(--seleme-ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--seleme-gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--seleme-gold-light); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* === TOKENS === */
:root {
  --seleme-navy:       #0A1733;
  --seleme-navy-deep:  #050D20;
  --seleme-navy-soft:  #152145;
  --seleme-navy-card:  #1A2752;
  --seleme-gold:       #E8E0CC;        /* warm ivory accent (was gold) */
  --seleme-gold-light: #FFFFFF;
  --seleme-gold-dark:  #A89E82;
  --seleme-champagne:  #F5EBD3;
  --seleme-ivory:      #FAF7F1;
  --seleme-ink:        #0B0F1E;
  --seleme-ink-soft:   #2A3149;
  --seleme-muted:      #6B7390;
  --seleme-line:       rgba(245,235,211,0.22);
  --seleme-line-soft:  rgba(245,235,211,0.1);
  --white:             #FFFFFF;
  --red:               #E53E3E;
  --green:             #22C55E;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm:         0 2px 6px rgba(5,13,32,0.08);
  --shadow-card:       0 18px 40px -18px rgba(5,13,32,0.55);
  --shadow-lg:         0 32px 80px -20px rgba(5,13,32,0.65);
  --shadow-glow-gold:  0 0 0 1px rgba(255,255,255,0.18), 0 20px 60px -20px rgba(255,255,255,0.22);

  --ease-silk:         cubic-bezier(0.22,1,0.36,1);
  --transition:        0.3s var(--ease-silk);

  --max-width:         1320px;
  --header-h:          76px;

  /* Course thumbnail gradients */
  --grad-nr1:        linear-gradient(135deg, #0A1733 0%, #1E3A8A 50%, #C9A14A 100%);
  --grad-ia:         linear-gradient(135deg, #1E1B4B 0%, #7C3AED 60%, #22D3EE 100%);
  --grad-lgpd:       linear-gradient(135deg, #064E3B 0%, #059669 60%, #A7F3D0 100%);
  --grad-reforma:    linear-gradient(135deg, #7C2D12 0%, #DC2626 60%, #FED7AA 100%);
  --grad-gestao:     linear-gradient(135deg, #0C4A6E 0%, #0284C7 60%, #E0F2FE 100%);
  --grad-assedio:    linear-gradient(135deg, #3B0764 0%, #9333EA 60%, #F5D0FE 100%);
  --grad-terce:      linear-gradient(135deg, #422006 0%, #B45309 60%, #FCD34D 100%);
  --grad-esocial:    linear-gradient(135deg, #083344 0%, #0891B2 60%, #A5F3FC 100%);
  --grad-nr17:       linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #93C5FD 100%);
  --grad-lideranca:  linear-gradient(135deg, #14532D 0%, #65A30D 60%, #FEF08A 100%);
}

/* === TYPOGRAPHY === */
.serif, h1, h2, h3 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--seleme-ink);
  line-height: 1.1;
}
h1 { font-size: clamp(2rem, 5.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 700; color: var(--seleme-ink); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--seleme-muted); }

/* === LAYOUT === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
.section-dark { background: var(--seleme-navy); color: var(--seleme-champagne); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .text-muted { color: rgba(245,235,211,0.65); }

/* === HEADER === */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,23,51,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--seleme-line-soft);
  transition: var(--transition);
}
.header.scrolled { background: rgba(5,13,32,0.96); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.header-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-family: 'Fraunces', serif;
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
}
.header-logo:hover { color: var(--seleme-gold-light); }
.header-logo .logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent;
  border: 1px solid var(--seleme-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 400;
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-style: italic;
}
.header-logo .logo-sub {
  font-family: 'Inter', sans-serif;
  color: var(--seleme-gold-light);
  font-size: 0.68rem; font-weight: 500;
  display: block; margin-top: -3px;
  letter-spacing: 0.12em; text-transform: uppercase;
}

.header-nav { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  color: rgba(245,235,211,0.75); font-size: 0.9rem; font-weight: 500;
  transition: var(--transition); position: relative; padding: 6px 0;
}
.header-nav a:hover, .header-nav a.active { color: var(--white); }
.header-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--seleme-gold); border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.92rem;
  transition: var(--transition); white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-gold {
  background: var(--white);
  color: var(--seleme-navy-deep); font-weight: 700;
  border: 1px solid var(--white);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(255,255,255,0.25);
  color: var(--seleme-navy-deep);
  background: var(--seleme-champagne);
}
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--seleme-gold);
  border: 1.5px solid var(--seleme-gold);
}
.btn-outline:hover {
  background: var(--seleme-gold);
  color: var(--seleme-navy-deep);
}
.btn-dark {
  background: var(--seleme-navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--seleme-navy-deep); color: var(--white); }
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* === HERO NETFLIX === */
.hero {
  margin-top: var(--header-h);
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  background: var(--seleme-navy-deep);
  color: var(--white);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(255,255,255,0.05) 0%, transparent 55%),
    linear-gradient(180deg, var(--seleme-navy-deep) 0%, var(--seleme-navy) 55%, var(--seleme-navy-deep) 100%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.6; pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 56px; align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(201,161,74,0.12);
  border: 1px solid var(--seleme-line);
  color: var(--seleme-gold-light);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--seleme-gold);
  box-shadow: 0 0 0 4px rgba(201,161,74,0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(201,161,74,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(201,161,74,0.1); }
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5.8vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 22px;
  font-weight: 800;
}
.hero-content h1 .accent {
  font-style: italic;
  color: var(--seleme-champagne);
  font-weight: 400;
}
.hero-lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(245,235,211,0.78);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.55;
}

/* AI search bar */
.hero-ai {
  display: flex; align-items: center; gap: 10px;
  max-width: 620px;
  padding: 8px 8px 8px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--seleme-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  transition: var(--transition);
  margin-bottom: 28px;
}
.hero-ai:focus-within {
  border-color: var(--seleme-gold);
  box-shadow: var(--shadow-glow-gold);
  background: rgba(255,255,255,0.1);
}
.hero-ai svg.ai-search-icon { color: var(--seleme-gold-light); flex-shrink: 0; }
.hero-ai input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--white); font-size: 0.95rem;
  min-width: 0; padding: 8px 0;
}
.hero-ai input::placeholder { color: rgba(245,235,211,0.55); }
.hero-ai-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--seleme-navy-deep);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em; white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.hero-ai-pill:hover { transform: scale(1.04); }
.hero-ai-badge {
  background: var(--red); color: var(--white);
  font-size: 0.55rem; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* AI response panel */
.ai-response {
  max-width: 720px;
  margin-bottom: 32px;
  padding: 22px 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--seleme-line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  color: var(--seleme-champagne);
  font-size: 0.95rem; line-height: 1.65;
  animation: fade-in .5s var(--ease-silk);
}
.ai-response.hidden { display: none; }
.ai-response strong { color: var(--white); }
.ai-response .ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-response .ai-chip {
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: rgba(201,161,74,0.18);
  border: 1px solid var(--seleme-line);
  color: var(--seleme-gold-light);
  font-size: 0.78rem; font-weight: 600;
}
.ai-response .ai-chip:hover { background: rgba(201,161,74,0.28); }
.ai-typing { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.ai-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--seleme-gold-light);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-6px); opacity: 1; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-quick-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
  max-width: 620px;
}
.hero-quick-actions .quick-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--seleme-line-soft);
  border-radius: var(--radius-pill);
  color: rgba(245,235,211,0.85);
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.hero-quick-actions .quick-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--seleme-line);
  color: var(--white);
  transform: translateY(-1px);
}
.hero-quick-actions .quick-chip svg { color: var(--seleme-champagne); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero-meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(245,235,211,0.85);
  font-size: 0.8rem; font-weight: 500;
}
.hero-meta-chip svg { color: var(--seleme-gold-light); flex-shrink: 0; }

/* Hero portrait */
.hero-portrait-wrap {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1200px;
}
.hero-portrait {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 411 / 740;
  background-image: url('../assets/ana-seleme.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
  transform: rotate(-1deg);
  transition: transform 0.8s var(--ease-silk);
}
.hero-portrait-wrap:hover .hero-portrait { transform: rotate(0deg) scale(1.02); }
.hero-portrait-glow {
  position: absolute;
  width: 120%; height: 120%;
  background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,0.06) 0%, transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.hero-portrait-caption {
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  padding: 10px 22px;
  background: rgba(10,23,51,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--seleme-line);
  border-radius: var(--radius-pill);
  color: var(--seleme-champagne);
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
  z-index: 2;
}
.hero-portrait-caption .name {
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin-right: 6px;
}

/* Trust strip */
.hero-trust {
  position: relative; z-index: 2;
  border-top: 1px solid var(--seleme-line-soft);
  padding: 22px 32px;
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 44px; flex-wrap: wrap;
}
.hero-trust-label {
  color: rgba(245,235,211,0.5);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
}
.hero-trust-logo {
  color: rgba(245,235,211,0.55);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.04em;
  transition: color .3s;
}
.hero-trust-logo:hover { color: var(--seleme-champagne); }

/* === CAROUSEL NETFLIX === */
.carousel-section { padding: 56px 0 16px; position: relative; }
.carousel-section.dark { background: var(--seleme-navy-deep); color: var(--white); }
.carousel-section.dark h2 { color: var(--white); }
.carousel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto 28px;
  padding: 0 32px;
}
.carousel-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  display: flex; align-items: center; gap: 14px;
}
.carousel-header h2 .accent-bar {
  display: inline-block; width: 36px; height: 2px;
  background: var(--seleme-ink);
  border-radius: 2px;
}
.section-dark .carousel-header h2 .accent-bar,
.carousel-section.dark .carousel-header h2 .accent-bar { background: var(--white); }
.carousel-header .see-all {
  color: var(--seleme-gold);
  font-size: 0.85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}

.carousel-wrapper {
  position: relative;
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 32px;
}
.carousel-track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 8px 0 32px;
  scroll-padding: 0 32px;
}
.carousel-track::-webkit-scrollbar { display: none; }

/* === COURSE CARD === */
.course-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(10,23,51,0.06);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--seleme-line);
}
.section-dark .course-card, .carousel-section.dark .course-card {
  background: var(--seleme-navy-card);
  border-color: var(--seleme-line-soft);
  color: var(--white);
}
.section-dark .course-card:hover, .carousel-section.dark .course-card:hover {
  border-color: var(--seleme-gold);
  box-shadow: var(--shadow-glow-gold);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--grad-nr1);
  display: flex; align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.course-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,13,32,0.7) 100%);
}
.course-thumb-area {
  position: relative; z-index: 1;
  color: var(--white); font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.92;
}
.course-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--seleme-navy-deep);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.course-badge.red {
  background: var(--red); color: var(--white);
  animation: pulse-live 2s ease-in-out infinite;
}
.course-badge.blue {
  background: #3B82F6; color: var(--white);
}
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.course-ornament {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: rgba(10,23,51,0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  color: var(--seleme-gold-light);
  font-size: 0.7rem; font-weight: 700;
  z-index: 2;
}
.course-body { padding: 20px 22px 22px; }
.course-body .course-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.course-body .course-sub {
  color: var(--seleme-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}
.section-dark .course-body .course-sub,
.carousel-section.dark .course-body .course-sub { color: rgba(245,235,211,0.6); }
.course-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.76rem; color: var(--seleme-muted);
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(10,23,51,0.08);
}
.section-dark .course-meta,
.carousel-section.dark .course-meta { border-bottom-color: var(--seleme-line-soft); }
.course-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.course-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.course-price .price {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem; font-weight: 800;
  color: var(--seleme-navy);
}
.section-dark .course-price .price,
.carousel-section.dark .course-price .price { color: var(--seleme-gold-light); }
.course-price .old-price {
  display: block;
  font-size: 0.7rem;
  color: var(--seleme-muted);
  text-decoration: line-through;
}
.course-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--seleme-navy);
  color: var(--white);
  transition: var(--transition);
}
.course-cta:hover {
  transform: translateX(3px);
  color: var(--white);
}
.section-dark .course-cta, .carousel-section.dark .course-cta {
  background: var(--white);
  color: var(--seleme-navy-deep);
}
.section-dark .course-cta:hover, .carousel-section.dark .course-cta:hover { color: var(--seleme-navy-deep); }

/* Featured card (bigger, for first slot) */
.course-card.featured {
  flex: 0 0 420px;
  background: linear-gradient(135deg, var(--seleme-navy-card), var(--seleme-navy-soft));
  color: var(--white);
  border-color: var(--seleme-line);
}
.course-card.featured .course-thumb { aspect-ratio: 16/8; }
.course-card.featured .course-body .course-title { color: var(--white); }
.course-card.featured .course-body .course-sub { color: rgba(245,235,211,0.7); }
.course-card.featured .course-meta { border-color: var(--seleme-line-soft); color: rgba(245,235,211,0.7); }
.course-card.featured .course-price .price { color: var(--seleme-gold-light); }

/* === COURSE DETAIL PAGE === */
.course-hero {
  background: var(--seleme-navy-deep);
  color: var(--white);
  margin-top: var(--header-h);
  position: relative; overflow: hidden;
  padding: 80px 0 60px;
}
.course-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(201,161,74,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.course-hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px; align-items: center;
}
.course-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  margin-bottom: 18px;
  line-height: 1.05;
}
.course-hero .lede {
  font-size: 1.08rem;
  color: rgba(245,235,211,0.75);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.55;
}
.course-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.enroll-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--seleme-line);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.enroll-card .price-row {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px;
}
.enroll-card .price {
  font-family: 'Fraunces', serif;
  font-size: 2.6rem; font-weight: 800;
  color: var(--seleme-gold-light);
}
.enroll-card .old-price {
  font-size: 1rem; text-decoration: line-through;
  color: rgba(245,235,211,0.5);
}
.enroll-card .installments {
  color: rgba(245,235,211,0.7);
  font-size: 0.88rem; margin-bottom: 22px;
}
.enroll-card .enroll-benefits {
  margin: 22px 0;
  padding-top: 22px;
  border-top: 1px solid var(--seleme-line-soft);
}
.enroll-card .enroll-benefits li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: rgba(245,235,211,0.85);
}
.enroll-card .enroll-benefits li svg {
  color: var(--seleme-gold);
  flex-shrink: 0; margin-top: 3px;
}

/* Module accordion */
.module-list { max-width: 880px; margin: 0 auto; }
.module-item {
  background: var(--white);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.module-item:hover { border-color: var(--seleme-gold); box-shadow: var(--shadow-sm); }
.module-head {
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; cursor: pointer;
}
.module-head .module-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--seleme-navy-deep);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.25rem; font-weight: 700;
  flex-shrink: 0;
  font-style: italic;
}
.module-head .module-info { flex: 1; }
.module-head .module-info h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 4px;
}
.module-head .module-info p {
  font-size: 0.82rem; color: var(--seleme-muted);
}
.module-head .module-toggle { color: var(--seleme-muted); }

/* Instructor card */
.instructor-card {
  max-width: 880px; margin: 60px auto 0;
  background: linear-gradient(135deg, var(--seleme-navy), var(--seleme-navy-soft));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; gap: 32px; align-items: center;
}
.instructor-card .photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  background-image: url('../assets/ana-seleme.png');
  background-size: 170%;
  background-position: 50% 14%;
  background-color: var(--seleme-navy-deep);
  border: 2px solid var(--seleme-line);
  flex-shrink: 0;
}
.instructor-card h3 { color: var(--white); margin-bottom: 6px; }
.instructor-card .role {
  color: var(--seleme-gold-light);
  font-size: 0.88rem; font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.instructor-card p {
  color: rgba(245,235,211,0.75);
  font-size: 0.92rem; line-height: 1.6;
}

/* === CHECKOUT === */
.checkout-page {
  min-height: 100vh;
  background: var(--seleme-ivory);
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.checkout-summary, .checkout-payment {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10,23,51,0.06);
}
.checkout-summary h3, .checkout-payment h3 {
  font-family: 'Fraunces', serif;
  margin-bottom: 24px;
  font-size: 1.35rem;
}
.checkout-course {
  display: flex; gap: 18px;
  padding: 18px;
  background: var(--seleme-ivory);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.checkout-course .mini-thumb {
  width: 120px; height: 80px;
  border-radius: var(--radius-sm);
  background: var(--grad-nr1);
  flex-shrink: 0;
}
.checkout-course .info h4 { margin-bottom: 4px; }
.checkout-course .info p { color: var(--seleme-muted); font-size: 0.85rem; }
.checkout-line {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--seleme-muted);
}
.checkout-line.total {
  border-top: 1px solid rgba(10,23,51,0.1);
  margin-top: 12px; padding-top: 18px;
  font-size: 1.05rem; font-weight: 700;
  color: var(--seleme-ink);
}
.checkout-line.total .amount {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 800;
  color: var(--seleme-gold-dark);
}

/* Apple Pay button */
.apple-pay-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 60px;
  background: #000;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.15s, box-shadow 0.3s;
  margin-top: 24px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.apple-pay-btn:hover { box-shadow: 0 15px 40px -10px rgba(0,0,0,0.6); }
.apple-pay-btn:active { transform: scale(0.97); }
.apple-pay-btn svg { margin-top: -3px; }
.apple-pay-disclaimer {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--seleme-muted);
  text-align: center;
  line-height: 1.5;
}

/* Apple Pay overlay */
.ap-overlay {
  position: fixed; inset: 0;
  background: rgba(5,13,32,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s;
}
.ap-overlay.active { display: flex; opacity: 1; }
.ap-modal {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  color: #fff;
  text-align: center;
  max-width: 440px;
  backdrop-filter: blur(30px);
  animation: modal-in 0.5s var(--ease-silk);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.faceid-ring {
  width: 120px; height: 120px;
  margin: 0 auto 32px;
  border-radius: 50%;
  border: 4px dashed var(--seleme-gold);
  animation: faceid-spin 2s linear infinite;
  position: relative;
}
.faceid-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(201,161,74,0.12);
  border: 2px solid var(--seleme-gold);
}
.faceid-ring.success {
  animation: none;
  border: 4px solid var(--green);
}
.faceid-ring.success::before {
  background: var(--green);
  border: none;
}
.faceid-ring.success::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 20px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
  animation: check-draw 0.4s var(--ease-silk);
}
@keyframes faceid-spin { to { transform: rotate(360deg); } }
@keyframes check-draw {
  from { opacity: 0; transform: translate(-50%, -60%) rotate(-45deg) scale(0.3); }
  to { opacity: 1; transform: translate(-50%, -60%) rotate(-45deg) scale(1); }
}
.ap-modal h3 {
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.ap-modal p {
  color: rgba(245,235,211,0.7);
  font-size: 0.92rem;
}
.ap-modal .order-num {
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(201,161,74,0.18);
  border: 1px solid var(--seleme-line);
  color: var(--seleme-gold-light);
  font-family: 'SF Mono', monospace;
  font-size: 0.82rem;
  display: inline-block;
}

/* === STUDENT AREA === */
.student-page {
  background: var(--seleme-ivory);
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.student-welcome {
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max-width); margin: 0 auto 48px;
  padding: 0 32px;
}
.student-welcome .avatar {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--seleme-navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; font-weight: 700;
  font-style: italic;
  border: 1px solid var(--seleme-line);
}
.student-welcome h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2px;
}
.student-welcome p { color: var(--seleme-muted); font-size: 0.92rem; }

.continue-card {
  max-width: var(--max-width); margin: 0 auto 64px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--seleme-navy);
  color: var(--white);
  margin-left: 32px; margin-right: 32px;
}
.continue-card .thumb {
  min-height: 320px;
  background: var(--grad-nr1);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 36px;
}
.continue-card .thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(5,13,32,0.6) 100%);
}
.continue-card .thumb .play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  z-index: 2;
}
.continue-card .thumb .play:hover {
  background: var(--seleme-gold);
  border-color: var(--seleme-gold);
  transform: translate(-50%, -50%) scale(1.08);
}
.continue-card .thumb .play svg { color: var(--white); }
.continue-card .thumb .play:hover svg { color: var(--seleme-navy-deep); }
.continue-card .body {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.continue-card .body .eyebrow {
  color: var(--seleme-gold-light);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 10px;
}
.continue-card .body h2 { color: var(--white); margin-bottom: 8px; font-size: 1.5rem; }
.continue-card .body .lesson {
  color: rgba(245,235,211,0.7);
  font-size: 0.95rem; margin-bottom: 24px;
}
.progress-bar {
  height: 6px; width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 10px; overflow: hidden;
  margin-bottom: 14px;
}
.progress-bar .fill {
  height: 100%;
  background: var(--white);
  border-radius: 10px;
  transition: width 0.6s var(--ease-silk);
}
.progress-stat {
  color: rgba(245,235,211,0.6);
  font-size: 0.8rem;
  margin-bottom: 22px;
}

.student-section {
  max-width: var(--max-width); margin: 0 auto 56px;
  padding: 0 32px;
}
.student-section h2 {
  font-size: 1.5rem; margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.student-section h2 .accent-bar {
  display: inline-block; width: 36px; height: 2px;
  background: var(--seleme-ink); border-radius: 2px;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.cert-empty {
  background: var(--white);
  border: 2px dashed rgba(10,23,51,0.15);
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  color: var(--seleme-muted);
}
.cert-card {
  background: linear-gradient(135deg, var(--seleme-navy), var(--seleme-navy-soft));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--seleme-line);
  position: relative;
  overflow: hidden;
}
.cert-card::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(201,161,74,0.25), transparent 70%);
}
.cert-card h4 { color: var(--white); margin-bottom: 4px; }
.cert-card .meta { color: rgba(245,235,211,0.65); font-size: 0.82rem; margin-bottom: 16px; }
.cert-card .btn { margin-top: 10px; }

/* === LESSON PAGE === */
.lesson-page {
  background: var(--seleme-navy-deep);
  color: var(--white);
  min-height: 100vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 340px;
}
.lesson-main { padding: 40px; }
.lesson-video {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--seleme-navy), var(--seleme-navy-soft));
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--seleme-line);
}
.lesson-video::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,161,74,0.15), transparent 60%);
}
.lesson-video .play-big {
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(201,161,74,0.2);
  border: 2px solid var(--seleme-gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: var(--transition);
}
.lesson-video .play-big:hover { background: var(--seleme-gold); }
.lesson-video .play-big svg { color: var(--seleme-gold-light); }
.lesson-video .play-big:hover svg { color: var(--seleme-navy-deep); }
.lesson-video .overlay-info {
  position: absolute; bottom: 24px; left: 28px; right: 28px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1;
  color: rgba(245,235,211,0.85);
  font-size: 0.85rem;
}

.lesson-sidebar {
  background: var(--seleme-navy);
  border-left: 1px solid var(--seleme-line-soft);
  padding: 32px 24px;
  overflow-y: auto;
}
.lesson-sidebar h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.lesson-module {
  border-left: 2px solid var(--seleme-line-soft);
  padding-left: 18px;
  margin-bottom: 20px;
}
.lesson-module.active { border-left-color: var(--seleme-gold); }
.lesson-module h4 {
  color: var(--white);
  font-size: 0.92rem;
  margin-bottom: 10px;
  font-weight: 600;
}
.lesson-module ul li {
  color: rgba(245,235,211,0.65);
  font-size: 0.82rem;
  padding: 6px 0;
  cursor: pointer;
  transition: color .2s;
  display: flex; align-items: center; gap: 8px;
}
.lesson-module ul li:hover { color: var(--white); }
.lesson-module ul li.current { color: var(--seleme-gold-light); font-weight: 600; }
.lesson-module ul li .mark {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(245,235,211,0.3);
  flex-shrink: 0;
}
.lesson-module ul li.done .mark { background: var(--seleme-gold); border-color: var(--seleme-gold); }

/* === GESTÃO / ADMIN === */
.admin-page {
  background: var(--seleme-ivory);
  min-height: 100vh;
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.admin-page .container h1 { margin-bottom: 8px; }
.admin-page .container > .lede {
  color: var(--seleme-muted);
  margin-bottom: 36px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.stat-card {
  background: var(--white);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--seleme-navy);
}
.stat-card .label {
  color: var(--seleme-muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.stat-card .value {
  font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 800;
  color: var(--seleme-ink);
  margin-bottom: 6px;
}
.stat-card .delta {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}
.stat-card .delta.down { color: var(--red); }

.chart-card {
  background: var(--white);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.chart-card h3 { margin-bottom: 24px; }
.chart-bars {
  display: flex; align-items: flex-end; gap: 14px;
  height: 220px;
}
.chart-bar {
  flex: 1;
  background: var(--seleme-navy);
  border-radius: 8px 8px 2px 2px;
  position: relative;
  min-width: 0;
  animation: bar-grow 1s var(--ease-silk);
  transform-origin: bottom;
}
.chart-bar::before {
  content: attr(data-label);
  position: absolute; bottom: -22px; left: 0; right: 0;
  text-align: center; font-size: 0.72rem;
  color: var(--seleme-muted);
}
@keyframes bar-grow { from { transform: scaleY(0); } }

.data-table {
  background: var(--white);
  border: 1px solid rgba(10,23,51,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.data-table table { width: 100%; border-collapse: collapse; }
.data-table h3 { padding: 24px 28px; border-bottom: 1px solid rgba(10,23,51,0.08); }
.data-table th, .data-table td {
  padding: 14px 28px;
  text-align: left;
  font-size: 0.88rem;
}
.data-table th {
  background: var(--seleme-ivory);
  color: var(--seleme-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.data-table tbody tr { border-top: 1px solid rgba(10,23,51,0.06); }
.data-table tbody tr:hover { background: var(--seleme-ivory); }

/* === AUTH PAGES === */
.auth-page {
  min-height: 100vh;
  background: var(--seleme-navy-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(201,161,74,0.15), transparent 60%);
}
.auth-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--seleme-line);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  max-width: 460px; width: 100%;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
}
.auth-card .lede {
  color: rgba(245,235,211,0.7);
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.auth-card .form-group { margin-bottom: 20px; }
.auth-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--seleme-gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.auth-card input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--seleme-line);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
}
.auth-card input:focus {
  outline: none;
  border-color: var(--seleme-gold);
  box-shadow: 0 0 0 3px rgba(201,161,74,0.15);
  background: rgba(255,255,255,0.12);
}
.auth-card input::placeholder { color: rgba(245,235,211,0.4); }
.auth-card .form-footer {
  margin-top: 24px;
  text-align: center;
  color: rgba(245,235,211,0.6);
  font-size: 0.85rem;
}
.auth-card .form-footer a { color: var(--seleme-gold-light); font-weight: 600; }

/* === FOOTER === */
.footer {
  background: var(--seleme-navy-deep);
  color: var(--seleme-champagne);
  padding: 72px 0 28px;
  border-top: 1px solid var(--seleme-line-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid ul li {
  color: rgba(245,235,211,0.6);
  font-size: 0.88rem;
  line-height: 1.8;
}
.footer-grid a { color: rgba(245,235,211,0.6); }
.footer-grid a:hover { color: var(--seleme-gold-light); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--seleme-line-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  color: rgba(245,235,211,0.4);
  font-size: 0.78rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.3rem; font-weight: 800;
}
.footer-brand .logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent;
  border: 1px solid var(--seleme-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 400;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 48px 32px; }
  .hero-portrait-wrap { order: -1; }
  .hero-portrait { width: min(320px, 100%); }
  .course-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .continue-card { grid-template-columns: 1fr; }
  .continue-card .thumb { min-height: 240px; }
  .lesson-page { grid-template-columns: 1fr; }
  .lesson-sidebar { border-left: none; border-top: 1px solid var(--seleme-line-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .instructor-card { flex-direction: column; text-align: center; padding: 32px 24px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-nav { display: none; }
  .header-inner { padding: 0 20px; }
  .header-logo .logo-sub { display: none; }
  .container, .carousel-wrapper, .carousel-header { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding: 40px 20px; }
  .hero-content h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-trust { gap: 20px; padding: 20px; }
  .hero-trust-logo { font-size: 0.95rem; }
  .section { padding: 56px 0; }
  .course-card { flex: 0 0 270px; }
  .course-card.featured { flex: 0 0 300px; }
  .enroll-card { padding: 24px; }
  .checkout-summary, .checkout-payment { padding: 28px 22px; }
  .ap-modal { padding: 40px 32px; margin: 0 20px; }
  .auth-card { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .module-head { padding: 18px 20px; gap: 14px; }
  .student-welcome { padding: 0 20px; }
  .continue-card { margin-left: 20px; margin-right: 20px; }
  .continue-card .body { padding: 28px; }
  .student-section { padding: 0 20px; }
}

.hide-desktop { display: none; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .hide-desktop { display: block; }
}

/* Utilities */
.text-gold { color: var(--seleme-gold); }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.hidden { display: none !important; }
