/* =====================================================
   Almanca Basitçe — Kurs Sayfaları
   Bağımsız stil dosyası, mevcut site.css'i etkilemez
   ===================================================== */

:root {
  --red: #CC0000;
  --red-dark: #A50000;
  --red-light: rgba(204, 0, 0, 0.08);
  --gold: #D4A017;
  --gold-light: rgba(212, 160, 23, 0.12);
  --black: #1A1A1A;
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --border: #E8E4DC;
  --text: #2A2A2A;
  --muted: #666666;
  --faint: #999999;
  --success: #2D7D46;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px -4px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px -8px rgba(0,0,0,0.12);
}

[data-theme="dark"] {
  --red: #FF4D4D;
  --red-dark: #CC0000;
  --red-light: rgba(255, 77, 77, 0.15);
  --gold: #F5C642;
  --gold-light: rgba(245, 198, 66, 0.15);
  --black: #FDFBF7;
  --bg: #121212;
  --surface: #1E1E1E;
  --border: #333333;
  --text: #FDFBF7;
  --muted: #A0A0A0;
  --faint: #666666;
  --success: #4ADE80;
  --shadow: 0 4px 24px -4px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 40px -8px rgba(0,0,0,0.8);
}

/* Base body transition for smooth theme switching */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== BACKGROUND ===== */
.kurs-page-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(253, 251, 247, 0.8), rgba(253, 251, 247, 0.95)), url('kurs_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  pointer-events: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .kurs-page-background {
  background-image: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.98)), url('kurs_bg.png');
}

/* ===== LAYOUT ===== */
.kurs-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kurs-wrapper--wide {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kurs-wrapper--hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== NAV ===== */
.kurs-nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.kurs-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kurs-nav__brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.kurs-nav__brand span {
  color: var(--red);
}

#nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--red);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-btn:hover {
  background: var(--red-dark);
  text-decoration: none;
  color: white;
}

.nav-btn-outline {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn-outline:hover {
  color: var(--text);
  border-color: #ccc;
}

/* ===== HERO ===== */
.hero {
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.hero-container {
  padding-top: 3.5rem;
  padding-bottom: 0;
}

.hero__content {
  flex: 1;
  min-width: 0;
  padding-right: 1.5rem;
}

.hero__image {
  flex: 1.6;
  min-width: 0;
  margin-top: 3.3rem;
}

.hero__image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.2);
}

.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.hero-badge__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-badge__icon svg {
  width: 24px;
  height: 24px;
}

/* German Flag Colors for the badges */
.hero-badge:nth-child(1) .hero-badge__icon {
  background: #1A1A1A;
  color: #ffffff;
}

.hero-badge:nth-child(2) .hero-badge__icon {
  background: var(--red); /* Fixed: var(--red) instead of var(--primary) */
  color: #ffffff;
}

.hero-badge:nth-child(3) .hero-badge__icon {
  background: #ffce00; /* Gold */
  color: var(--black);
}

.hero-badge:nth-child(4) .hero-badge__icon {
  background: #1A1A1A;
  color: #ffffff;
}

.hero-badge__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.hero__title em {
  font-style: normal;
  color: var(--red);
}

.hero__body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__price span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ===== VIDEO PLACEHOLDER ===== */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.video-placeholder__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.video-placeholder__icon svg {
  color: rgba(255,255,255,0.7);
}

.video-placeholder__todo {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.4;
  margin-top: 0.5rem;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.6;
}

/* ===== TRANSPARENCY BLOCK ===== */
.transparency-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.transparency-block__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.transparency-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transparency-block li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.transparency-block li::before {
  content: '–';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ===== WHO IS IT FOR ===== */
.for-who {
  padding: 2rem 0;
}

.for-who__cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.for-who__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.for-who__card strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* ===== CURRICULUM ===== */
.curriculum {
  padding: 2rem 0 3rem;
}

.curriculum__total {
  font-size: 0.8rem;
  color: var(--faint);
  margin-top: 0.25rem;
}

#curriculum-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.lesson-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.lesson-card:hover {
  text-decoration: none;
  color: inherit;
}

.lesson-card--unlocked:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.lesson-card--locked {
  opacity: 0.9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(220, 20, 60, 0.05); /* Sexy subtle crimson tint */
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.lesson-card--locked::after {
  content: '🔒 Kayıt ol ve izle';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.9), rgba(150, 0, 24, 0.95)); /* Sexy deep red */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.lesson-card--locked-logged {
  opacity: 0.9;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: rgba(220, 20, 60, 0.05);
  border: 1px solid rgba(220, 20, 60, 0.3);
}

.lesson-card--locked-logged::after {
  content: '🔒 Satın al ve izle';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 20, 60, 0.9), rgba(150, 0, 24, 0.95));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.lesson-card--locked:hover::after,
.lesson-card--locked-logged:hover::after {
  opacity: 1;
}

.lesson-card--preview {
  border-left: 3px solid var(--gold);
}

.lesson-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--faint);
  width: 1.5rem;
  flex-shrink: 0;
  text-align: center;
}

.lesson-card__body {
  flex: 1;
  min-width: 0;
}

.lesson-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lesson-card__title .preview-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gold-light);
  color: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.lesson-card__desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-card__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lesson-card__duration {
  font-size: 0.75rem;
  color: var(--faint);
  white-space: nowrap;
}

.lesson-card__lock {
  color: var(--faint);
  display: flex;
  align-items: center;
}

.lesson-card__check {
  color: var(--success);
  display: flex;
  align-items: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: left;
  margin: 0.5rem 0 3rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cta-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.cta-section p {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.cta-btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  margin-left: 0.75rem;
}

.cta-btn--outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* ===== AUTH FORMS ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.auth-card__logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.75rem;
  display: block;
}

.auth-card__logo span {
  color: var(--red);
}

.auth-card h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.auth-card p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
  background: var(--surface);
}

.form-submit {
  width: 100%;
  padding: 0.95rem;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  background: #D1FAE5;
  color: #065F46;
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  display: none;
}

.form-success.visible {
  display: block;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--red);
  font-weight: 600;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
}

.forgot-link:hover {
  color: var(--red);
}

/* ===== LESSON PAGE ===== */
.lesson-page {
  padding: 2rem 0 4rem;
}

.lesson-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.lesson-page__back:hover {
  color: var(--text);
  text-decoration: none;
}

.lesson-page__meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.lesson-page__title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.4rem;
}

.lesson-page__duration {
  font-size: 0.82rem;
  color: var(--faint);
  margin-bottom: 1.75rem;
}

.lesson-contents {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.lesson-contents__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
}

.lesson-contents ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lesson-contents li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

.lesson-contents li::before {
  content: '→';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

.progress-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.progress-btn:hover {
  border-color: var(--success);
  color: var(--success);
}

.progress-btn.completed {
  background: #D1FAE5;
  border-color: var(--success);
  color: var(--success);
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.lesson-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  flex: 1;
}

.lesson-nav a:hover {
  border-color: var(--red);
  color: var(--red);
  text-decoration: none;
}

.lesson-nav a.next {
  justify-content: flex-end;
  text-align: right;
}

/* ===== LOCKED GATE ===== */
.lesson-gate {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.lesson-gate__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lesson-gate h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lesson-gate p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.lesson-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.gate-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.gate-btn:hover {
  background: var(--red-dark);
  text-decoration: none;
  color: white;
}

.gate-btn--secondary {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-weight: 500;
}

.gate-btn--secondary:hover {
  color: var(--text);
  border-color: #ccc;
  background: transparent;
}

/* ===== ACCOUNT PAGE ===== */
.account-page {
  padding: 2rem 0 4rem;
}

.account-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.account-page .subtitle {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.35rem;
}

.status-card__value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge--active {
  background: #D1FAE5;
  color: var(--success);
}

.status-badge--free {
  background: #FEF3C7;
  color: #92400E;
}

.account-section {
  margin-top: 2rem;
}

.account-section h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.account-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kurs-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

[data-theme="dark"] .kurs-nav {
  background: rgba(30, 30, 30, 0.85);
}

/* ===== DROPDOWN ===== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.nav-dropdown-btn:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown.active .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a, .nav-dropdown-menu button {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-dropdown-menu a:last-child, .nav-dropdown-menu button:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover, .nav-dropdown-menu button:hover {
  background: var(--bg);
  color: var(--red);
}

.theme-toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.account-lesson-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.account-lesson-row.done {
  border-color: #A7F3D0;
}

.account-lesson-row__num {
  color: var(--faint);
  font-size: 0.75rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.account-lesson-row__title {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.account-lesson-row__check {
  color: var(--success);
  font-size: 0.85rem;
}

.danger-zone {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.danger-zone h2 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.danger-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.danger-btn:hover {
  border-color: #CC0000;
  color: #CC0000;
}

/* ===== LOADING / SPINNER ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--faint);
  font-size: 0.875rem;
}

/* ===== FOOTER ===== */
.kurs-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--faint);
}

.kurs-footer a {
  color: var(--faint);
}

.kurs-footer a:hover {
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .for-who__cards {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    padding: 3rem 2.5rem;
  }

  .lesson-gate__actions {
    flex-direction: row;
    justify-content: center;
  }

  .lesson-card__desc {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding-top: 1.5rem !important;
  }
  .hero {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }
  .hero__image {
    display: none;
  }
  .hero__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  .hero__title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    line-height: 1.25;
  }
  .hero__body {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }
  .hero__actions {
    margin-bottom: 1.25rem;
  }
  .hero-badges, .hero__social, .hide-mobile {
    display: none !important;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions > * {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Navbar mobile fixes */
  .kurs-nav__inner {
    padding: 0 1rem;
  }
  .kurs-nav__brand {
    font-size: 0.85rem !important;
    gap: 0.25rem !important;
  }
  .kurs-nav__brand svg {
    width: 18px;
    height: 14px;
  }
  #nav-auth {
    gap: 0.4rem;
  }
  #nav-auth > div {
    gap: 0.4rem !important;
  }
  .nav-btn, .nav-btn-outline {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.72rem !important;
  }
  .nav-link {
    font-size: 0.72rem;
    margin-right: 0;
    white-space: nowrap;
  }
  .nav-btn, .nav-btn-outline {
    white-space: nowrap;
  }
  
  /* Layout tweaks */
  .kurs-wrapper {
    padding: 0 1.25rem;
  }

  /* Footer mobile fixes */
  .kurs-footer {
    padding: 1.5rem 1rem;
    word-break: break-word;
  }
  .kurs-footer img {
    max-width: 100%;
    height: auto !important;
  }
  .lesson-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  .lesson-card__title {
    font-size: 0.9rem;
  }
  .lesson-card__desc {
    font-size: 0.8rem;
  }
  .curriculum {
    padding: 1rem 0 2rem;
  }
}

a.account-lesson-row { text-decoration: none; transition: all 0.2s ease; }
a.account-lesson-row:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-color: #bbb; }
[data-theme="dark"] a.account-lesson-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.5); border-color: #555; }
.account-lesson-row.in-progress { border-color: var(--gold); }
.account-lesson-row__progress { color: var(--gold); font-size: 0.85rem; font-weight: 500; }

@media (max-width: 768px) { .account-page { padding-top: 3rem !important; padding-bottom: 2rem !important; } .danger-zone { padding-bottom: 1rem; margin-top: 2rem; } }

html, body { touch-action: pan-x pan-y; }
