/* ==========================================================================
   Squin Academy — POC Interactiva
   Estética inspirada en Innoaesthetics: blanco clínico, dorado premium,
   verde botánico salvia, tipografía elegante sans-serif.
   ========================================================================== */

:root {
  --gold: #B8935B;
  --gold-light: #D9B88A;
  --gold-dark: #8C6B3D;
  --sage: #5C6E58;
  --sage-light: #8FA187;
  --sage-dark: #3E4B3B;
  --ink: #1E1E1C;
  --ink-soft: #4A4A46;
  --cream: #FAF7F2;
  --cream-2: #F2EDE4;
  --white: #FFFFFF;
  --border-soft: #E7DFD2;
  --success: #6E8B5E;
  --danger: #B4544A;
  --shadow-soft: 0 8px 30px rgba(30, 30, 28, 0.08);
  --shadow-card: 0 4px 18px rgba(30, 30, 28, 0.10);
  --radius: 14px;
  --radius-lg: 22px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(140, 107, 61, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(140, 107, 61, 0.45); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage-dark);
}
.btn-outline:hover { background: var(--sage); color: var(--white); }
.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ---------- Top Navigation ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.topnav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text .brand-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}
.brand-text .brand-sub {
  font-size: 0.62rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a.active, .nav-links a:hover { color: var(--gold-dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  font-weight: 600;
}
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(30,30,28,0.62), rgba(30,30,28,0.28)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 620px; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  line-height: 1.12;
  margin: 14px 0 18px;
}
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section headers ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 1.7rem; }
.section-head .see-all { font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); }

/* ---------- Netflix-style rows ---------- */
.row-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
}
.row-scroll::-webkit-scrollbar { height: 6px; }

.course-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  cursor: pointer;
  position: relative;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.course-card .thumb-wrap {
  position: relative;
  height: 168px;
  overflow: hidden;
}
.course-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.course-card .badge-level {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(30,30,28,0.75);
  color: var(--white);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.course-card .badge-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.4);
}
.course-card .badge-progress > span {
  display: block; height: 100%;
  background: var(--gold);
}
.course-card .card-body { padding: 16px 18px 20px; }
.course-card .card-cat {
  font-size: 0.7rem;
  color: var(--sage-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.course-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.course-card .card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.course-card .card-meta i { color: var(--gold); }
.course-card .cert-flag {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ---------- Category filter chips ---------- */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.chip.active, .chip:hover {
  background: var(--sage-dark);
  color: var(--white);
  border-color: var(--sage-dark);
}

/* ---------- Course detail page ---------- */
.course-hero {
  padding: 46px 0 30px;
  background: var(--cream-2);
  border-bottom: 1px solid var(--border-soft);
}
.course-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.course-hero img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.course-hero-info .cat-pill {
  display: inline-block;
  background: var(--sage-dark);
  color: white;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 700;
}
.course-hero-info h1 { font-size: 2.1rem; margin-bottom: 14px; }
.course-hero-info p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 18px; }
.course-stats { display: flex; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.course-stats .stat { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.course-stats .stat i { color: var(--gold); }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border-soft);
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-track > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--sage)); }
.progress-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Chapters list ---------- */
.chapters-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.chapter-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.chapter-item:hover { border-color: var(--gold-light); box-shadow: var(--shadow-card); }
.chapter-item.locked { opacity: 0.55; cursor: not-allowed; }
.chapter-item .ch-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  background: var(--sage);
}
.chapter-item.locked .ch-icon { background: #B9B3A6; }
.chapter-item.completed .ch-icon { background: var(--gold); }
.chapter-item .ch-info { flex: 1; }
.chapter-item .ch-info h4 { font-size: 0.95rem; font-family: var(--font-sans); font-weight: 700; margin-bottom: 3px; }
.chapter-item .ch-info p { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.chapter-item .ch-meta { font-size: 0.75rem; color: var(--ink-soft); flex: 0 0 auto; text-align: right; }
.status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 4px;
}
.status-pill.completed { background: #E7F0E2; color: var(--success); }
.status-pill.unlocked { background: #FBF1DD; color: var(--gold-dark); }
.status-pill.locked { background: #EEEBE4; color: #92897A; }

/* ---------- Video player page ---------- */
.player-wrap {
  background: #14140f;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.player-wrap video { width: 100%; max-height: 520px; background: black; display: block; }
.player-meta { padding: 24px 4px; }
.player-meta h2 { font-size: 1.5rem; margin-bottom: 10px; }
.player-meta p { color: var(--ink-soft); line-height: 1.6; }
.resource-box {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream-2);
  border: 1px dashed var(--gold-light);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.resource-box i { font-size: 1.4rem; color: var(--gold-dark); }
.resource-box .r-info h5 { margin: 0 0 3px; font-size: 0.9rem; }
.resource-box .r-info p { margin: 0; font-size: 0.75rem; color: var(--ink-soft); }
.player-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Quiz ---------- */
.quiz-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 34px;
  box-shadow: var(--shadow-card);
  max-width: 720px;
  margin: 0 auto;
}
.quiz-progress-dots { display: flex; gap: 8px; margin-bottom: 24px; }
.quiz-progress-dots span {
  height: 6px; flex: 1; background: var(--border-soft); border-radius: 4px; overflow: hidden;
}
.quiz-progress-dots span.done { background: var(--gold); }
.quiz-question { font-size: 1.2rem; font-family: var(--font-serif); margin-bottom: 24px; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  padding: 15px 20px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.92rem;
  transition: all 0.2s;
}
.quiz-option:hover { border-color: var(--gold-light); }
.quiz-option.selected { border-color: var(--gold); background: #FBF1DD; }
.quiz-option.correct { border-color: var(--success); background: #E7F0E2; }
.quiz-option.incorrect { border-color: var(--danger); background: #F7E5E2; }
.quiz-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.quiz-result { text-align: center; }
.quiz-result .score-circle {
  width: 130px; height: 130px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  border: 6px solid var(--gold);
  font-family: var(--font-serif);
}
.quiz-result .score-circle strong { font-size: 2rem; }
.quiz-result .score-circle span { font-size: 0.7rem; color: var(--ink-soft); }

/* ---------- Certificate ---------- */
.certificate {
  background: var(--white);
  border: 10px solid transparent;
  border-image: linear-gradient(135deg, var(--gold-light), var(--gold-dark)) 1;
  padding: 50px 40px;
  border-radius: 6px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.certificate::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  pointer-events: none;
}
.certificate .cert-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px;}
.certificate .cert-title { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.certificate h2 { font-size: 2rem; margin-bottom: 6px; }
.certificate .cert-course { font-size: 1.3rem; color: var(--sage-dark); font-family: var(--font-serif); margin: 16px 0; }
.certificate .cert-meta { display: flex; justify-content: center; gap: 40px; margin-top: 26px; font-size: 0.82rem; color: var(--ink-soft); }
.certificate .cert-seal { width: 70px; margin: 0 auto 18px; opacity: 0.9; }

/* ---------- Gallery / Treatment uploads ---------- */
.upload-zone {
  border: 2px dashed var(--gold-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  background: var(--cream-2);
  transition: all 0.2s;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--gold); background: #FBF1DD; }
.upload-zone i { font-size: 2.4rem; color: var(--gold); margin-bottom: 12px; }
.upload-zone h4 { margin-bottom: 6px; }
.upload-zone p { color: var(--ink-soft); font-size: 0.85rem; }

.gallery-filters { display: flex; gap: 10px; margin: 22px 0; flex-wrap: wrap; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 180px; object-fit: cover; }
.gallery-item .gi-body { padding: 12px 16px; }
.gallery-item .gi-body h5 { margin: 0 0 4px; font-size: 0.88rem; }
.gallery-item .gi-body .phase-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--sage-dark);
  margin-top: 6px;
}
.gallery-item .gi-body p { font-size: 0.76rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,20,15,0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 300;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-box h3 { margin-bottom: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold);
}
.modal-close-x {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cream-2);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink-soft);
}
.modal-box { position: relative; }

/* ---------- Login / onboarding ---------- */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(30,30,28,0.55), rgba(30,30,28,0.3)), url('../images/hero-bg.jpg') center/cover;
  padding: 24px;
}
.auth-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.auth-card .brand-mark { width: 76px; height: 76px; margin: 0 auto 16px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 26px; }
.auth-card .form-group { text-align: left; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-note { margin-top: 20px; font-size: 0.72rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Profile ---------- */
.profile-header {
  display: flex; align-items: center; gap: 24px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
}
.profile-header .avatar-lg {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage-dark));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700; flex: 0 0 auto;
}
.profile-stats { display: flex; gap: 34px; margin-top: 10px; flex-wrap: wrap; }
.profile-stats .p-stat strong { display: block; font-size: 1.5rem; font-family: var(--font-serif); color: var(--gold-dark); }
.profile-stats .p-stat span { font-size: 0.75rem; color: var(--ink-soft); }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.cert-mini {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-card);
}
.cert-mini .cert-mini-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #FBF1DD; color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex: 0 0 auto;
}
.cert-mini h5 { margin: 0 0 4px; font-size: 0.9rem; }
.cert-mini p { margin: 0; font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Chat / Inno mascot ---------- */
.inno-fab {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-light);
  box-shadow: 0 10px 30px rgba(140,107,61,0.35);
  cursor: pointer;
  z-index: 250;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  animation: innoFloat 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.inno-fab:hover { transform: scale(1.08); }
.inno-fab img { width: 100%; height: 100%; object-fit: cover; }
.inno-fab .inno-badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--success); border: 2px solid white;
}
@keyframes innoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.inno-chat-panel {
  position: fixed;
  bottom: 112px; right: 26px;
  width: 380px;
  max-height: 620px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  display: none;
  flex-direction: column;
  z-index: 260;
  overflow: hidden;
}
.inno-chat-panel.open { display: flex; }
.inno-chat-header {
  background: linear-gradient(120deg, var(--sage-dark), var(--sage));
  color: white;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.inno-chat-header img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.inno-chat-header .ich-info strong { display: block; font-size: 0.95rem; }
.inno-chat-header .ich-info span { font-size: 0.7rem; opacity: 0.85; }
.inno-chat-close { margin-left: auto; background: rgba(255,255,255,0.2); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; }

.inno-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}
.chat-msg { max-width: 84%; padding: 11px 15px; border-radius: 14px; font-size: 0.85rem; line-height: 1.5; }
.chat-msg.assistant { background: white; border: 1px solid var(--border-soft); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--gold); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg img { border-radius: 10px; margin-top: 8px; max-height: 160px; object-fit: cover; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; background: var(--cream); }
.chat-suggestion-chip {
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  font-weight: 600;
}
.chat-suggestion-chip:hover { border-color: var(--gold); color: var(--gold-dark); }

.inno-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  background: white;
}
.inno-chat-input input[type=text] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  background: transparent;
  padding: 8px;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: none;
  background: var(--cream-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-dark);
  transition: all 0.2s;
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--sage); color: white; }
.icon-btn.send { background: var(--gold); color: white; }
.icon-btn.send:hover { background: var(--gold-dark); }
.icon-btn.recording { background: var(--danger); color: white; animation: pulseRec 1s infinite; }
@keyframes pulseRec { 0%,100%{box-shadow:0 0 0 0 rgba(180,84,74,0.5);} 50%{box-shadow:0 0 0 8px rgba(180,84,74,0);} }

.typing-indicator { display: flex; gap: 4px; padding: 6px 0; }
.typing-indicator span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sage);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%,80%,100%{transform: translateY(0);} 40%{transform: translateY(-6px);} }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--sage-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-footer p { font-size: 0.78rem; margin: 0; }

/* ---------- Empty / lock states ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state i { font-size: 2.2rem; color: var(--gold-light); margin-bottom: 14px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.3s;
  z-index: 400;
  pointer-events: none;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .course-hero-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .inno-chat-panel { width: 92vw; right: 4vw; bottom: 100px; }
  .profile-header { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .course-card { flex: 0 0 250px; }
  .certificate { padding: 30px 18px; }
  .certificate .cert-meta { flex-direction: column; gap: 10px; }
}
