/* ═══════════════════════════════════════════════════════════════════════════
   Sophia Savva Nail Instructor — Main Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --rose:         #C4738A;
  --rose-dark:    #A05672;
  --rose-light:   #EDD5DC;
  --rose-ultra:   #FBF2F5;

  /* Gold / Champagne */
  --gold:         #C9A96E;
  --gold-dark:    #A8874E;
  --gold-light:   #F0E0C4;

  /* Neutrals */
  --cream:        #FBF8F5;
  --pearl:        #F5EEE9;
  --border:       #E8DDD8;
  --border-dark:  #D5C8C2;

  /* Text */
  --text:         #2D2D2D;
  --text-md:      #6B6B6B;
  --text-lt:      #A0A0A0;
  --white:        #FFFFFF;

  /* Status */
  --success:      #6BBF8E;
  --success-bg:   #EDF7F1;
  --warning:      #E8BE6A;
  --warning-bg:   #FEF9ED;
  --error:        #D4756B;
  --error-bg:     #FDF2F1;
  --info:         #7AB4D4;
  --info-bg:      #EEF6FB;

  /* Shadows */
  --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:    0 16px 48px rgba(0,0,0,.16);
  --shadow-rose:  0 8px 24px rgba(196,115,138,.25);

  /* Spacing */
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  999px;

  /* Typography */
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Poppins', system-ui, sans-serif;

  /* Layout */
  --nav-h:        70px;
  --container:    1200px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-sans); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.bg-pearl   { background: var(--pearl); }
.bg-rose-ultra { background: var(--rose-ultra); }
.hidden     { display: none !important; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

em { font-style: italic; color: var(--rose); }

/* ── Section Headers ────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-ultra);
  border: 1px solid var(--rose-light);
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: .75rem; }
.section-sub   { color: var(--text-md); max-width: 560px; margin: 0 auto; }
.section-cta   { text-align: center; margin-top: 2.5rem; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  transition: all .22s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--rose-dark), #8B3F5A);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(196,115,138,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-md);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--pearl); color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}
.btn-outline:hover { background: var(--rose); color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--rose-dark);
  font-weight: 700;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(251,248,245,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo-gem {
  font-size: 1.4rem;
  color: var(--rose);
  line-height: 1;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.logo-sub {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}
.nav-link {
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-md);
  border-radius: var(--radius-sm);
  transition: all .18s;
}
.nav-link:hover, .nav-link.active {
  color: var(--rose);
  background: var(--rose-ultra);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* User menu dropdown */
.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem .4rem .4rem;
  border-radius: var(--radius-full);
  background: var(--pearl);
  border: 1px solid var(--border);
  font-size: .875rem;
  font-weight: 500;
  transition: all .18s;
  cursor: pointer;
}
.user-trigger:hover { background: var(--rose-ultra); border-color: var(--rose-light); }
.user-avatar-sm {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name-nav { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  display: none;
  z-index: 200;
  animation: dropDown .18s ease;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  font-size: .875rem;
  color: var(--text-md);
  transition: all .15s;
}
.user-dropdown a:hover { background: var(--pearl); color: var(--text); }
.user-dropdown a i { width: 16px; color: var(--rose); }
.drop-divider { height: 1px; background: var(--border); margin: .25rem 0; }
.drop-logout:hover { background: var(--error-bg) !important; color: var(--error) !important; }
.drop-logout i { color: var(--error) !important; }
.user-dropdown.open { display: block; }

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Flash Messages ──────────────────────────────────────────────────────── */
.flash-wrap {
  position: fixed;
  top: calc(var(--nav-h) + .75rem);
  right: 1rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-width: 380px;
  width: 100%;
}
.flash {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
  background: var(--white);
  border-left: 4px solid;
}
.flash-success { border-color: var(--success); color: #2d7a52; background: var(--success-bg); }
.flash-error   { border-color: var(--error);   color: #8b3a34; background: var(--error-bg); }
.flash-warning { border-color: var(--warning); color: #7a6020; background: var(--warning-bg); }
.flash-info    { border-color: var(--info);    color: #2a6080; background: var(--info-bg); }
.flash i { font-size: 1rem; flex-shrink: 0; }
.flash span { flex: 1; }
.flash-x {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  opacity: .5; flex-shrink: 0; padding: 0;
}
.flash-x:hover { opacity: 1; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(1rem); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FBF2F5 0%, #F5EEE9 50%, #FBF8F5 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,115,138,.12) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 20%, rgba(201,169,110,.08) 0%, transparent 60%);
}
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-light), var(--gold-light));
  opacity: .4;
  animation: float 8s ease-in-out infinite;
}
.shape-1 { width: 300px; height: 300px; top: -100px; right: -80px; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; bottom: -60px; left: -60px; animation-delay: 3s; }
.shape-3 { width: 150px; height: 150px; top: 40%; right: 30%; animation-delay: 1.5s; opacity: .25; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-light);
  border: 1px solid rgba(201,169,110,.3);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-md);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-md);
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: .35rem; }
.trust-dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--border-dark); }

/* Hero visual */
.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-card-float {
  position: relative;
  width: 360px;
  height: 400px;
}
.hero-img-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 300px;
  z-index: 1;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.hero-img-ring {
  position: absolute;
  inset: -12px;
  border: 2px dashed var(--rose-light);
  border-radius: calc(var(--radius-lg) + 12px);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  font-size: .8rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  z-index: 2;
  animation: cardFloat 4s ease-in-out infinite;
  border: 1px solid var(--border);
}
.float-card i { color: var(--rose); font-size: 1rem; }
.float-card span { font-weight: 600; color: var(--text); }
.float-card small { color: var(--text-lt); font-size: .7rem; }
.card-1 { top: 10px; left: 0; animation-delay: 0s; }
.card-2 { bottom: 40px; right: 0; animation-delay: 1.5s; }
.card-3 { top: 50%; left: -30px; transform: translateY(-50%); animation-delay: 3s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.card-3 { animation-name: cardFloat3; }
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 8px)); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: .5rem 2rem; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rose);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--text-md); margin-top: .25rem; font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: var(--border); flex-shrink: 0; }

/* ── Course Cards ───────────────────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all .28s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--rose-light);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-level-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
}
.level-αρχάριο { background: var(--success-bg); color: #2d7a52; }
.level-μεσαίο  { background: var(--warning-bg); color: #7a6020; }
.level-προχωρημένο { background: var(--error-bg); color: #8b3a34; }
.course-free-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--white);
  background: var(--success);
  padding: .2rem .55rem;
  border-radius: var(--radius-full);
}
.course-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.course-category { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); margin-bottom: .4rem; }
.course-title { font-size: 1.05rem; margin-bottom: .5rem; color: var(--text); font-weight: 600; }
.course-desc { font-size: .82rem; color: var(--text-md); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.course-meta { display: flex; gap: 1rem; font-size: .75rem; color: var(--text-lt); margin-bottom: 1rem; }
.course-meta i { color: var(--rose); }
.course-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }
.course-price { display: flex; align-items: baseline; gap: .5rem; }
.price-free   { font-size: 1.1rem; font-weight: 700; color: var(--success); }
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--rose-dark); }
.price-original { font-size: .85rem; color: var(--text-lt); text-decoration: line-through; }
.price-discount {
  font-size: .7rem; font-weight: 700;
  background: var(--success-bg); color: #2d7a52;
  padding: .1rem .4rem;
  border-radius: var(--radius-full);
}
.btn-card { font-size: .8rem; font-weight: 600; color: var(--rose); }
.course-card:hover .btn-card { text-decoration: underline; }

/* ── Steps (How it Works) ───────────────────────────────────────────────── */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all .25s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rose-light); }
.step-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--rose-light); line-height: 1; margin-bottom: .5rem; }
.step-icon { font-size: 1.8rem; color: var(--rose); margin-bottom: 1rem; }
.step-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-card p  { font-size: .85rem; color: var(--text-md); }
.step-arrow { font-size: 1.2rem; color: var(--rose-light); flex-shrink: 0; }

/* ── About ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-img-wrap {
  position: relative;
  display: inline-block;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.about-badge-float {
  position: absolute;
  bottom: 1.5rem;
  right: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
  font-size: .8rem;
}
.about-badge-float i { font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: .25rem; }
.about-badge-float span { font-weight: 700; display: block; color: var(--text); }
.about-badge-float small { color: var(--text-lt); }
.about-stats {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
}
.a-stat {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.a-stat span { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; color: var(--rose); display: block; }
.a-stat small { font-size: .75rem; color: var(--text-lt); }
.about-content .section-title { margin-bottom: 1rem; }
.about-content p { color: var(--text-md); margin-bottom: 1rem; line-height: 1.75; }
.about-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.af-item { display: flex; align-items: center; gap: .6rem; font-size: .875rem; }
.af-item i { color: var(--success); font-size: 1rem; flex-shrink: 0; }

/* ── Why Grid ───────────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all .25s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rose-light); }
.why-icon { font-size: 1.75rem; color: var(--rose); margin-bottom: 1rem; }
.why-card h3 { font-size: 1rem; margin-bottom: .5rem; font-family: var(--font-sans); font-weight: 600; }
.why-card p  { font-size: .85rem; color: var(--text-md); line-height: 1.6; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.testi-featured {
  background: linear-gradient(135deg, var(--rose-ultra), var(--white));
  border-color: var(--rose-light);
}
.testi-stars { color: var(--gold); font-size: .9rem; margin-bottom: 1rem; }
.testi-card > p { font-size: .9rem; color: var(--text-md); font-style: italic; line-height: 1.7; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .875rem; color: var(--text); }
.testi-author small  { font-size: .75rem; color: var(--text-lt); }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose), #D48FA0);
  padding: 4rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text h2 { color: var(--white); font-size: 2rem; margin-bottom: .5rem; }
.cta-text p  { color: rgba(255,255,255,.8); }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background .15s;
}
.faq-q:hover { background: var(--pearl); }
.faq-q i { color: var(--rose); transition: transform .3s; flex-shrink: 0; }
.faq-q.open i { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.25rem 1.1rem;
  font-size: .875rem;
  color: var(--text-md);
  line-height: 1.7;
  display: none;
}
.faq-a.open { display: block; }

/* ── Page Hero (inner pages) ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--rose-ultra), var(--pearl));
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero-sm { padding: 2.5rem 0; }
.page-hero-title { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text); margin-bottom: .5rem; }
.page-hero-sub { color: var(--text-md); max-width: 500px; margin: 0 auto; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0;
}
.breadcrumb-bar .container {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-lt);
  flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--text-md); }
.breadcrumb-bar a:hover { color: var(--rose); }
.breadcrumb-bar i { font-size: .65rem; }
.breadcrumb-bar span { color: var(--text); font-weight: 500; }

/* ── Filters (Courses page) ─────────────────────────────────────────────── */
.filters-bar { margin-bottom: 2rem; }
.filters-form {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: .5rem .75rem;
  box-shadow: var(--shadow-sm);
}
.filter-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 160px;
}
.filter-search i { color: var(--text-lt); flex-shrink: 0; }
.filter-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: .875rem;
  color: var(--text);
  width: 100%;
}
.filter-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: .35rem .75rem;
  font-size: .8rem;
  color: var(--text-md);
  background: var(--cream);
  outline: none;
  cursor: pointer;
}
.filter-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--rose-ultra);
  color: var(--rose);
  border: 1px solid var(--rose-light);
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
}
.filter-tag a { color: var(--rose); font-size: 1rem; line-height: 1; }
.results-info { font-size: .875rem; color: var(--text-md); margin-bottom: 1rem; }

/* ── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}
.empty-icon { font-size: 3rem; color: var(--rose-light); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: .5rem; }
.empty-state p  { color: var(--text-md); margin-bottom: 1.5rem; }

/* ── Course Detail ──────────────────────────────────────────────────────── */
.course-detail-hero {
  background: linear-gradient(135deg, var(--rose-ultra), var(--cream));
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.cd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.cd-badges { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cd-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-ultra);
  border: 1px solid var(--rose-light);
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
}
.cd-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.cd-short-desc { font-size: 1rem; color: var(--text-md); line-height: 1.7; margin-bottom: 1.5rem; }
.cd-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cd-meta-item { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--text-md); }
.cd-meta-item i { color: var(--rose); }

/* Purchase card */
.cd-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.cd-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.cd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cd-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity .2s;
}
.cd-thumb:hover .cd-play-overlay { opacity: 1; }
.cd-card-body { padding: 1.5rem; }
.cd-price-block { margin-bottom: 1rem; }
.cd-price-free { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--success); }
.cd-price-current { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--rose-dark); }
.cd-price-was { font-size: .85rem; color: var(--text-lt); display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.cd-discount { color: var(--success); font-weight: 600; font-size: .8rem; }
.purchased-msg {
  background: var(--success-bg);
  color: #2d7a52;
  border-radius: var(--radius-sm);
  padding: .75rem;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cd-progress { margin-bottom: 1rem; }
.cd-progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: .25rem; }
.cd-progress-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 3px; transition: width .5s; }
.cd-includes { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.include-item { font-size: .8rem; color: var(--text-md); display: flex; align-items: center; gap: .5rem; }
.include-item i { color: var(--success); }
.cd-secure-badge {
  text-align: center;
  font-size: .75rem;
  color: var(--text-lt);
  margin-top: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.cd-secure-badge i { color: #22c55e; }

/* Curriculum */
.cd-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.cd-section { margin-bottom: 2.5rem; }
.cd-section-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.cd-count { font-family: var(--font-sans); font-size: .8rem; font-weight: 400; color: var(--text-lt); }
.cd-description { font-size: .95rem; color: var(--text-md); line-height: 1.8; }
.curriculum-list { display: flex; flex-direction: column; gap: .5rem; }
.curriculum-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.curriculum-item:hover { border-color: var(--rose-light); background: var(--rose-ultra); }
.curriculum-item.completed { background: var(--success-bg); border-color: rgba(107,191,142,.3); }
.ci-left { display: flex; align-items: flex-start; gap: .75rem; flex: 1; min-width: 0; }
.ci-num {
  width: 28px; height: 28px;
  background: var(--pearl);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-md);
  flex-shrink: 0;
}
.completed .ci-num { background: var(--success); color: var(--white); }
.ci-title { font-size: .875rem; font-weight: 600; color: var(--text); }
.ci-desc  { font-size: .78rem; color: var(--text-lt); margin-top: .15rem; }
.ci-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.ci-done  { font-size: .8rem; color: var(--success); display: flex; align-items: center; gap: .3rem; }
.ci-play-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.ci-lock { color: var(--text-lt); }
.ci-dur  { font-size: .75rem; color: var(--text-lt); white-space: nowrap; }
.cd-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.cd-sidebar-card h4 { font-size: 1rem; margin-bottom: .75rem; }
.learn-list, .req-list { display: flex; flex-direction: column; gap: .5rem; }
.learn-list li, .req-list li { font-size: .85rem; color: var(--text-md); display: flex; align-items: flex-start; gap: .5rem; }
.learn-list i { color: var(--success); margin-top: .15rem; flex-shrink: 0; }

/* ── Learn (Video Player) ───────────────────────────────────────────────── */
.learn-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: calc(100vh - var(--nav-h));
  background: #1a1a2e;
}
.learn-main { display: flex; flex-direction: column; overflow: auto; }
.learn-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.learn-back {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: color .15s;
}
.learn-back:hover { color: var(--white); }
.learn-course-name {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.learn-progress-wrap { display: flex; align-items: center; gap: .75rem; }
.learn-progress-bar {
  width: 140px; height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 3px;
  overflow: hidden;
}
.learn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 3px;
  transition: width .5s ease;
}
.learn-progress-pct { font-size: .75rem; color: rgba(255,255,255,.6); white-space: nowrap; }

.video-container {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.4);
}
.video-placeholder i { font-size: 3rem; }

.lesson-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1rem;
  background: #1e1e35;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.lesson-number { font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.lesson-title { font-size: 1.25rem; color: var(--white); margin-bottom: .5rem; }
.lesson-desc { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.lesson-info-right { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lesson-dur { font-size: .8rem; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: .4rem; white-space: nowrap; }

.btn-complete {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  background: rgba(107,191,142,.15);
  color: var(--success);
  border: 1px solid rgba(107,191,142,.3);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-complete:hover:not([disabled]) { background: rgba(107,191,142,.25); }
.btn-complete.done {
  background: rgba(107,191,142,.2);
  color: var(--success);
  cursor: default;
}

.lesson-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #1e1e35;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.06);
}
.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: all .2s;
  border: 1px solid rgba(255,255,255,.08);
  max-width: 48%;
}
.lesson-nav-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.lesson-nav-btn.next { margin-left: auto; text-align: right; }
.lesson-nav-btn.done-course { border-color: rgba(201,169,110,.3); color: var(--gold); }
.lesson-nav-btn small { display: block; font-size: .68rem; opacity: .55; text-transform: uppercase; letter-spacing: .06em; }
.lesson-nav-btn span  { display: block; font-weight: 600; }
.lesson-nav-btn i     { font-size: 1.1rem; flex-shrink: 0; }

/* Learn Sidebar */
.learn-sidebar {
  background: #15152a;
  border-left: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - var(--nav-h));
  position: sticky;
  top: var(--nav-h);
}
.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: #15152a;
  z-index: 2;
}
.sidebar-header h3 { font-size: .95rem; color: var(--white); margin-bottom: .75rem; }
.sidebar-progress { }
.sidebar-prog-bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; margin-bottom: .35rem; }
.sidebar-prog-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 2px; transition: width .5s; }
.sidebar-prog-bar + span { font-size: .72rem; color: rgba(255,255,255,.4); }
#sidebarProgPct { font-size: .72rem; color: rgba(255,255,255,.4); display: block; }

.sidebar-lessons { overflow-y: auto; flex: 1; }
.sidebar-lesson {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
  cursor: pointer;
}
.sidebar-lesson:hover { background: rgba(255,255,255,.04); }
.sidebar-lesson.active { background: rgba(196,115,138,.15); border-left: 3px solid var(--rose); }
.sidebar-lesson.completed .sl-status i { color: var(--success); }
.sl-status { flex-shrink: 0; padding-top: .1rem; }
.sl-status i { font-size: 1rem; color: rgba(255,255,255,.25); }
.sidebar-lesson.active .sl-status i { color: var(--rose); }
.sl-info { flex: 1; min-width: 0; }
.sl-num { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; line-height: 1.4; }
.sl-dur { font-size: .72rem; color: rgba(255,255,255,.3); margin-top: .2rem; }

.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: var(--rose);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: .7rem 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  gap: .5rem;
  flex-direction: row;
  align-items: center;
  box-shadow: var(--shadow-rose);
}

/* Certificate Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.cert-modal.visible {
  display: flex;
}
.cert-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.cert-modal-icon { font-size: 3.5rem; color: var(--gold); margin-bottom: 1rem; }
.cert-modal-box h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.cert-modal-box p  { color: var(--text-md); margin-bottom: 1.5rem; line-height: 1.6; }
.cert-modal-box .btn { display: inline-flex; margin: 0 auto .75rem; }

/* ── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.auth-visual {
  background: linear-gradient(145deg, var(--rose-dark), var(--rose), #D48FA0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.auth-visual-inner { max-width: 380px; text-align: center; color: var(--white); }
.auth-logo-big {
  font-size: 4rem;
  color: rgba(255,255,255,.8);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.auth-visual-inner h2 { font-size: 2rem; color: var(--white); margin-bottom: 1rem; }
.auth-visual-inner p  { color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 2rem; }
.auth-bullets { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.auth-bullet {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .875rem;
  color: rgba(255,255,255,.85);
}
.auth-bullet i { color: rgba(255,255,255,.6); }

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 2rem;
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-header { margin-bottom: 2rem; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-lt);
  margin-bottom: 1rem;
  transition: color .15s;
}
.auth-back:hover { color: var(--rose); }
.auth-form-header h1 { font-size: 1.75rem; margin-bottom: .35rem; }
.auth-form-header p  { color: var(--text-md); font-size: .9rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.req { color: var(--rose); }
.forgot-link { font-size: .75rem; font-weight: 400; color: var(--rose); }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i {
  position: absolute;
  left: .9rem;
  color: var(--text-lt);
  font-size: .9rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: .7rem .9rem .7rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input-wrap input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(196,115,138,.12);
}
.pwd-toggle {
  position: absolute;
  right: .75rem;
  color: var(--text-lt);
  transition: color .15s;
  font-size: .9rem;
}
.pwd-toggle:hover { color: var(--rose); }
.form-agree { display: flex; align-items: flex-start; gap: .5rem; font-size: .8rem; color: var(--text-md); }
.form-agree a { color: var(--rose); }
.form-agree input { margin-top: .15rem; flex-shrink: 0; }
.auth-alt { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-md); }
.auth-alt a { color: var(--rose); font-weight: 600; }

/* ── Dashboard ──────────────────────────────────────────────────────────── */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
  align-items: start;
}
.dash-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--rose-ultra), var(--pearl));
  border-bottom: 1px solid var(--border);
}
.dash-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  flex-shrink: 0;
}
.dash-user-info { min-width: 0; }
.dash-user-info strong { font-size: .9rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-info small  { font-size: .72rem; color: var(--text-lt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dash-nav { padding: .5rem 0; }
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.25rem;
  font-size: .875rem;
  color: var(--text-md);
  transition: all .15s;
  position: relative;
}
.dash-nav-link:hover { background: var(--pearl); color: var(--text); }
.dash-nav-link.active { color: var(--rose); background: var(--rose-ultra); font-weight: 600; }
.dash-nav-link i { width: 16px; color: inherit; }
.nav-badge {
  margin-left: auto;
  background: var(--rose);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: var(--radius-full);
}

.dash-main { min-width: 0; }
.dash-tab  { display: block; }
.dash-page-title { font-size: 1.75rem; margin-bottom: 1.5rem; }
.dash-subtitle { color: var(--text-md); margin-bottom: 1.5rem; }
.dash-greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.dash-greeting h1 { font-size: 1.75rem; margin-bottom: .25rem; }
.dash-greeting p  { color: var(--text-md); }
.dash-joined { font-size: .8rem; color: var(--text-lt); display: flex; align-items: center; gap: .4rem; white-space: nowrap; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.ds-icon { font-size: 1.25rem; color: var(--rose); margin-bottom: .5rem; }
.ds-num  { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--text); }
.ds-label{ font-size: .75rem; color: var(--text-lt); margin-top: .15rem; }
.dash-section { margin-bottom: 2rem; }
.dash-section-title { font-size: 1.15rem; margin-bottom: 1rem; }

.continue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.continue-card  {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cc-thumb { aspect-ratio: 16/9; overflow: hidden; }
.cc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.cc-category { font-size: .7rem; font-weight: 700; color: var(--rose); text-transform: uppercase; letter-spacing: .1em; }
.cc-title { font-size: .95rem; font-weight: 600; color: var(--text); }
.cc-progress { display: flex; align-items: center; gap: .5rem; }
.cc-prog-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cc-prog-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 3px; }
.cc-progress span { font-size: .75rem; color: var(--text-lt); white-space: nowrap; }

.mini-certs { display: flex; flex-direction: column; gap: .5rem; }
.mini-cert {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
}
.mc-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }
.mc-info { flex: 1; min-width: 0; }
.mc-info strong { display: block; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-info small   { font-size: .75rem; color: var(--text-lt); }

/* My courses list */
.my-courses-list { display: flex; flex-direction: column; gap: 1rem; }
.my-course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 1.25rem;
  overflow: hidden;
  transition: box-shadow .2s;
}
.my-course-card:hover { box-shadow: var(--shadow-md); }
.mcc-thumb { width: 140px; flex-shrink: 0; overflow: hidden; }
.mcc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mcc-body { flex: 1; padding: 1rem 0 1rem; min-width: 0; display: flex; flex-direction: column; gap: .4rem; }
.mcc-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mcc-category { font-size: .7rem; font-weight: 700; color: var(--rose); text-transform: uppercase; letter-spacing: .08em; }
.mcc-title { font-size: 1rem; font-weight: 600; }
.mcc-stats { display: flex; gap: 1rem; font-size: .75rem; color: var(--text-lt); flex-wrap: wrap; }
.mcc-stats i { color: var(--rose); }
.mcc-progress { display: flex; align-items: center; gap: .5rem; }
.mcc-prog-bar { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; max-width: 200px; }
.mcc-prog-fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--gold)); border-radius: 3px; }
.mcc-pct { font-size: .75rem; color: var(--text-lt); }
.mcc-actions { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; justify-content: center; flex-shrink: 0; }
.completed-tag { font-size: .8rem; color: var(--success); display: flex; align-items: center; gap: .3rem; font-weight: 600; }

/* Certificates grid */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all .25s;
}
.cert-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
.cert-card-icon { font-size: 2.5rem; color: var(--gold); }
.cert-card-body { flex: 1; }
.cert-card-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); margin-bottom: .25rem; }
.cert-card h3  { font-size: 1rem; color: var(--text); margin-bottom: .5rem; }
.cert-card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--text-lt); flex-wrap: wrap; }
.cert-number { font-family: monospace; background: var(--pearl); padding: .1rem .4rem; border-radius: 3px; }
.cert-card-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Certificate Page ───────────────────────────────────────────────────── */
.cert-page { padding: 2rem 1rem; max-width: 900px; margin: 0 auto; }
.cert-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; }

.certificate {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}
.cert-border {
  position: absolute;
  inset: 12px;
  border: 2px solid var(--gold-light);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}
.cert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.cert-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cert-gem { font-size: 2rem; color: var(--gold); }
.cert-school-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.cert-school-sub  { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-md); }
.cert-ribbon { font-size: 2.5rem; color: var(--gold); }

.cert-title-block { text-align: center; margin-bottom: 2.5rem; }
.cert-label {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--rose-dark);
  letter-spacing: .03em;
}
.cert-label-en {
  font-size: .85rem;
  font-style: italic;
  color: var(--text-lt);
  letter-spacing: .08em;
  margin-top: .25rem;
}

.cert-body { text-align: center; flex: 1; }
.cert-this { font-size: .95rem; color: var(--text-md); font-style: italic; margin-bottom: .75rem; }
.cert-name {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--rose-dark);
  border-bottom: 2px solid var(--gold-light);
  display: inline-block;
  padding: 0 2rem .25rem;
  margin-bottom: 1rem;
}
.cert-completed { font-size: .95rem; color: var(--text-md); font-style: italic; margin-bottom: .5rem; }
.cert-course {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.cert-course-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: .8rem;
  color: var(--text-lt);
  flex-wrap: wrap;
}

.cert-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gold-light);
}
.cert-sig { text-align: center; }
.cert-sig-line { width: 140px; height: 1px; background: var(--text-md); margin: 0 auto .5rem; }
.cert-sig-name  { font-family: var(--font-serif); font-size: .95rem; font-weight: 600; }
.cert-sig-title { font-size: .75rem; color: var(--text-lt); }
.cert-seal {
  width: 80px; height: 80px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .15rem;
  color: var(--gold-dark);
}
.cert-seal-inner { text-align: center; }
.cert-seal i { font-size: 1.5rem; display: block; }
.cert-seal span { font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cert-date-block { text-align: center; }

.cert-number-bar {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .75rem;
  color: var(--text-lt);
  background: var(--pearl);
  border-radius: var(--radius-sm);
  padding: .4rem 1rem;
}
.cert-number-bar i { color: var(--success); margin-right: .25rem; }
.cert-number-bar strong { font-family: monospace; color: var(--text-md); }

.cert-deco {
  position: absolute;
  font-size: 1.5rem;
  color: var(--gold-light);
  pointer-events: none;
}
.cert-deco-tl { top: 24px; left: 24px; }
.cert-deco-tr { top: 24px; right: 24px; }
.cert-deco-bl { bottom: 24px; left: 24px; }
.cert-deco-br { bottom: 24px; right: 24px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: #1e1a2e;
  color: rgba(255,255,255,.65);
  padding: 4rem 0 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-col {}
.footer-brand .footer-logo { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .5rem;
}
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .6rem; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  transition: all .2s;
}
.social-btn:hover { background: var(--rose); color: var(--white); transform: translateY(-2px); }

.footer-heading {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.footer-list { display: flex; flex-direction: column; gap: .5rem; }
.footer-list a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-list a:hover { color: var(--white); }
.footer-contact-list { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1rem; }
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .83rem;
}
.footer-contact-list i { color: var(--rose); width: 14px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,169,110,.12);
  border: 1px solid rgba(201,169,110,.2);
  border-radius: var(--radius-full);
  padding: .35rem .8rem;
  font-size: .75rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
  flex-wrap: wrap;
}

/* ── Learn Toast notification ───────────────────────────────────────────── */
.learn-toast {
  position: fixed;
  top: calc(var(--nav-h) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1e2a1e;
  color: var(--success);
  border: 1px solid rgba(107,191,142,.4);
  border-radius: var(--radius-full);
  padding: .65rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 400;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}
.learn-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { align-items: center; display: flex; flex-direction: column; }
  .hero-visual { display: none; }
  .hero-trust { justify-content: center; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge-float { right: 0; }
  .cd-hero-grid { grid-template-columns: 1fr; }
  .cd-card { position: static; }
  .cd-content-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; border-radius: var(--radius-sm); }

  .nav-auth .btn { display: none; }
  .nav-auth .user-menu { display: block; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 3rem 0; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .stats-grid { gap: .25rem; }
  .stat-item { padding: .5rem 1rem; }
  .stat-divider { display: none; }

  .section { padding: 3rem 0; }

  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .step-card  { max-width: 100%; }

  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-side { padding: 2rem 1.25rem; }

  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { display: flex; overflow-x: auto; gap: 0; }
  .dash-nav-link { white-space: nowrap; }

  .dash-stats { grid-template-columns: repeat(2, 1fr); }

  .learn-layout { grid-template-columns: 1fr; }
  .learn-sidebar {
    position: fixed;
    right: 0; top: 0; bottom: 0;
    width: 300px;
    z-index: 200;
    transform: translateX(100%);
    transition: transform .3s ease;
    max-height: 100vh;
  }
  .learn-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: flex; }

  .lesson-info { flex-direction: column; }
  .lesson-info-right { flex-direction: row; align-items: center; }
  .lesson-nav-btn { max-width: none; flex: 1; }

  .mcc-thumb { width: 90px; }
  .mcc-actions { flex-direction: row; flex-wrap: wrap; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .certificate { padding: 2rem; }
  .cert-name { font-size: 1.8rem; }
  .cert-label { font-size: 1.6rem; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .cert-footer { flex-direction: column; align-items: center; gap: 1.5rem; }
  .stats-grid { flex-direction: column; align-items: center; }
  .stat-divider { display: none; }
  .cd-hero-grid { gap: 1.5rem; }
  .cd-meta { flex-direction: column; gap: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Custom HTML5 Video Player
   ═══════════════════════════════════════════════════════════════════════════ */

.custom-player {
  position: absolute;
  inset: 0;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
}
.custom-player video {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}

/* Big play overlay */
.vp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity .25s;
}
.custom-player.playing .vp-overlay { opacity: 0; pointer-events: none; }
.custom-player.paused  .vp-overlay { opacity: 1; }

.vp-play-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(196,115,138,.88);
  border: 2px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: transform .15s, background .15s;
  backdrop-filter: blur(4px);
}
.vp-play-big:hover { transform: scale(1.1); background: var(--rose); }

/* Loading */
.vp-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 2rem;
  pointer-events: none;
}
.custom-player.loading .vp-loading { display: flex; }

/* Controls bar */
.vp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.88));
  padding: 2.5rem 1rem .6rem;
  transition: opacity .3s;
}
/* Always show when paused; auto-hide when playing (JS toggles opacity inline) */
.custom-player.paused .vp-controls { opacity: 1 !important; }

/* Seek bar */
.vp-seek {
  padding: 6px 0;
  cursor: pointer;
}
.vp-seek-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.22);
  border-radius: 2px;
  transition: height .15s;
}
.vp-seek:hover .vp-seek-track { height: 6px; }

.vp-seek-buf {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}
.vp-seek-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  border-radius: 2px;
  width: 0;
  pointer-events: none;
}
.vp-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%) scale(0);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--gold);
  pointer-events: none;
  transition: transform .15s;
}
.vp-seek:hover .vp-seek-thumb { transform: translate(-50%, -50%) scale(1); }

/* Button row */
.vp-btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .15rem;
}
.vp-btn-left, .vp-btn-right {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.vp-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.vp-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

.vp-time {
  font-size: .72rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  margin-left: .4rem;
  font-variant-numeric: tabular-nums;
}

/* Volume slider */
.vp-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 70px; height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0 .2rem;
}
.vp-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}
.vp-vol::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

/* Mobile: hide volume slider */
@media (max-width: 480px) {
  .vp-vol { display: none; }
  .vp-play-big { width: 60px; height: 60px; font-size: 1.3rem; }
}
