/* =============================================
   CURSOSAPP — Design System
   Fonts: Syne (display) + DM Sans (body)
   Theme: Dark elegant with indigo accent
   ============================================= */

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

:root {
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Palette: elfilodorado.com (Teal & Light) */
  --bg: #FAFAFA;
  --bg2: #F0F4F4;
  --surface: #FFFFFF;
  --surface2: #01979C;      /* Primary Teal */
  --border: #e0e0e0;
  --border2: #d0d0d0;

  --text: #1a1a1a;
  --text-muted: #555555;
  --text-faint: #888888;

  --accent: #01979C;        /* Main Teal */
  --accent-hover: #017a7e;
  --accent-glow: rgba(1, 151, 156, 0.2);
  --accent-light: rgba(1, 151, 156, 0.05);
  --accent2: #FFCE2E;       /* Gold Accent */
  --cosmic-gradient: linear-gradient(135deg, #01979C 0%, #017a7e 100%);

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --radius: 20px;
  --radius-lg: 40px;        /* High border-radius for Bento look */
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.1);
  --gold-shadow: 0 0 20px rgba(255, 206, 46, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent); color: white;
  padding: .8rem 1.8rem; border-radius: var(--radius-full);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all .3s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.05); box-shadow: var(--shadow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--text-muted);
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 500; font-size: .9rem;
  border: 1px solid var(--border2); cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); background: var(--surface); }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--accent);
  padding: .6rem 1.2rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent); cursor: pointer; font-size: .875rem; font-weight:600;
  transition: all .2s;
}
.btn-outline:hover, .btn-outline.btn-success { background: var(--accent); color: white; }
.btn-danger {
  display: inline-flex; align-items: center; gap:.4rem;
  background: var(--danger); color: white;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: .875rem; font-weight: 600;
  transition: all .2s;
}
.btn-danger:hover { opacity:.85; }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .4rem .85rem; font-size: .8rem; }
.btn-success { background: var(--success) !important; color: white !important; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 80px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: center; position: relative;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: #000;
}
.logo-icon { color: var(--accent2); font-size: 1.4rem; }
.nav-links { display: flex; gap: .5rem; position: absolute; left: 1.5rem; }
.nav-link {
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  color: var(--accent); font-size: .85rem; font-weight: 700;
  transition: all .2s; text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: var(--accent-hover); background: var(--accent-light); }
.nav-admin { color: #f59e0b !important; }
.nav-actions { position: absolute; right: 1.5rem; display: flex; align-items: center; gap: .75rem; }

.user-btn {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); padding: .45rem .9rem; border-radius: var(--radius-sm);
  cursor: pointer; font-family: var(--font-body); font-size: .875rem;
  transition: all .2s;
}
.user-btn:hover { border-color: var(--border2); background: var(--surface); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
  font-family: var(--font-display);
}
.user-avatar.small { width: 28px; height: 28px; font-size: .8rem; }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: .5rem;
  min-width: 200px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; gap: .1rem; z-index: 200;
}
.user-dropdown.open { display: flex; }
.user-dropdown a, .dropdown-logout {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .875rem;
  transition: all .15s; background: none; border: none;
  cursor: pointer; font-family: var(--font-body); width: 100%;
  text-align: left;
}
.user-dropdown a:hover, .dropdown-logout:hover { color: var(--text); background: var(--bg); }
.dropdown-divider { height: 1px; background: var(--border); margin: .3rem 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ─── HERO ─── */
.hero {
  position: relative; overflow: hidden;
  padding: 8rem 0 6rem;
  background: var(--surface2);
  color: white;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(1, 151, 156, 0.8), rgba(1, 151, 156, 0.9)), url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?q=80&w=2000&auto=format&fit=crop') center/cover;
  pointer-events: none;
}
.hero-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-light); color: var(--accent2);
  border: 1px solid var(--accent)33; border-radius: 100px;
  padding: .4rem 1rem; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: .05em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 1.5rem; color: white;
  max-width: 900px; margin-left: auto; margin-right: auto;
}
.hero-accent { color: var(--accent2); }
.hero-subtitle {
  font-size: 1.25rem; color: rgba(255,255,255,0.9); max-width: 700px;
  margin-bottom: 3rem; line-height: 1.7; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: .85rem; color: var(--text-muted); }

/* ─── SECTIONS ─── */
.section { padding: 5rem 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1rem;
}
.section-title { font-size: clamp(1.8rem,4vw,2.4rem); font-weight: 800; }
.section-title .accent { color: var(--accent); }
.section-link { color: var(--accent); font-size: .9rem; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ─── COURSE CARDS ─── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 1.5rem;
}
.course-card {
  background: var(--surface); border: none;
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.course-thumb {
  aspect-ratio: 16/9; background: var(--bg2) center/cover no-repeat;
  position: relative;
}
.course-cat-badge {
  position: absolute; top: .8rem; left: .8rem;
  color: white; font-size: .72rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .05em;
}
.course-cat-badge.small { position: static; font-size: .7rem; }
.course-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.course-title { font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.course-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.course-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.course-info { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.course-duration, .course-lessons { font-size: .78rem; color: var(--text-muted); }
.course-price-tag { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--accent); }

/* Featured cards */
.courses-featured-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.course-featured-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: all .25s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.course-featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent)55; }
.course-featured-img {
  aspect-ratio: 16/9; background: var(--bg2) center/cover no-repeat;
  position: relative;
}
.course-featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%); }
.featured-badge {
  position: absolute; top: .8rem; right: .8rem;
  background: var(--warning); color: #0d0f14;
  font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 100px;
}
.course-featured-body { padding: 1.25rem; }
.course-featured-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.course-featured-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.course-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-muted); }
.course-price { margin-left: auto; font-weight: 800; color: var(--accent); font-family: var(--font-display); }

/* Level badges */
.level-badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em;
}
.level-beginner { background: #10b98120; color: #10b981; }
.level-intermediate { background: #f59e0b20; color: #f59e0b; }
.level-advanced { background: #ef444420; color: #ef4444; }

/* Filters */
.filters-bar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.filter-search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 0 1rem; flex: 1; min-width: 200px;
}
.filter-search input {
  background: none; border: none; outline: none; color: var(--text);
  font-family: var(--font-body); font-size: .9rem; padding: .65rem 0; width: 100%;
}
.filter-search svg { color: var(--text-muted); flex-shrink: 0; }
.filters-bar select {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm); padding: .65rem 1rem;
  font-family: var(--font-body); font-size: .875rem; cursor: pointer;
}

/* ─── COURSE DETAIL ─── */
.course-hero { 
  background: var(--cosmic-gradient); 
  border-bottom: 1px solid var(--accent); 
  padding: 5rem 0 6rem; 
  position: relative;
  overflow: hidden;
}
.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?q=80&w=2000&auto=format&fit=crop') center/cover;
  opacity: 0.15;
  pointer-events: none;
}
.course-hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: start; }
.course-hero-info h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 1rem 0; }
.course-hero-desc { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.7; }
.course-hero-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .875rem; color: var(--text-muted); }
.course-instructor { font-size: .9rem; color: var(--text-muted); }
.course-purchase-card { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 90px; }
.course-thumb-lg { aspect-ratio: 16/9; background: var(--bg) center/cover no-repeat; }
.purchase-body { padding: 1.5rem; }
.purchase-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 1.25rem; }
.purchase-note { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }
.purchase-note a { color: var(--accent); }
.success-note { color: var(--success) !important; font-weight: 600; }

.course-detail-body { padding: 3rem 0 5rem; }
.detail-section { margin-bottom: 3rem; }
.detail-section h2 { font-size: 1.4rem; margin-bottom: 1.5rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.course-description { color: var(--text-muted); line-height: 1.8; white-space: pre-line; }
.curriculum-header { color: var(--text-muted); font-size: .875rem; margin-bottom: 1rem; }
.curriculum-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.curriculum-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.curriculum-item:last-child { border: 0; }
.curriculum-item:hover { background: var(--surface); }
.curriculum-number { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.curriculum-info { flex: 1; }
.curriculum-title { font-weight: 500; }
.curriculum-desc { display: block; font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.curriculum-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--text-muted); }
.preview-badge { background: var(--accent-light); color: var(--accent); font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 100px; }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-muted); margin-bottom: .5rem; }
.form-control {
  width: 100%; background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm); padding: .7rem 1rem;
  font-family: var(--font-body); font-size: .9rem; transition: border .2s; outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form-control.error { border-color: var(--danger); }
.form-control::placeholder { color: var(--text-faint); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { display: block; color: var(--danger); font-size: .8rem; margin-top: .35rem; }
.required { color: var(--danger); }
.input-wrap { position: relative; }
.toggle-pw {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-muted);
}
.checkbox-label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-size: .875rem; color: var(--text-muted); margin-bottom: .75rem;
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }

/* ─── AUTH ─── */
.auth-container {
  min-height: calc(100vh - 70px); display: flex;
  align-items: center; justify-content: center; padding: 2rem 1rem;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 2.5rem;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.5rem; }
.auth-header h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.auth-header p { color: var(--text-muted); font-size: .9rem; }
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-demo { margin-top: 1.5rem; padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.auth-demo p { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; font-weight: 600; }
.demo-creds div { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; }

/* ─── DASHBOARD ─── */
.dashboard-container { padding: 2rem 0 5rem; }
.dashboard-welcome {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.dashboard-welcome h1 { font-size: 2rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .1rem; }
.dashboard-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.5rem; }
.dashboard-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.section-header-sm { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-header-sm h2 { font-size: 1.1rem; font-weight: 700; }
.dashboard-courses { display: flex; flex-direction: column; gap: .75rem; }
.dashboard-course-item { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); transition: background .2s; }
.dashboard-course-item:hover { background: var(--bg); }
.dc-thumb { width: 72px; height: 50px; border-radius: 6px; background: var(--bg) center/cover no-repeat; flex-shrink: 0; }
.dc-info { flex: 1; }
.dc-info h4 { font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.appointments-list { display: flex; flex-direction: column; gap: .75rem; }
.appointment-item {
  display: flex; align-items: center; gap: .75rem;
  background: var(--bg); border-radius: var(--radius-sm); padding: .85rem 1rem;
  border: 1px solid var(--border);
}
.apt-color-bar { width: 4px; height: 40px; border-radius: 4px; flex-shrink: 0; }
.apt-info { flex: 1; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }
.apt-info strong { font-weight: 600; }
.apt-info span { color: var(--text-muted); font-size: .8rem; }
.apt-duration { font-size: .8rem; color: var(--text-muted); }
.empty-mini p { color: var(--text-muted); font-size: .875rem; }
.empty-mini a { color: var(--accent); }
.progress-bar { height: 5px; background: var(--border); border-radius: 3px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s; }

/* ─── MY COURSES ─── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 2rem; }
.my-courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.my-course-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all .2s; }
.my-course-card:hover { border-color: var(--accent)55; box-shadow: var(--shadow); }
.my-course-thumb { aspect-ratio: 16/9; background: var(--bg) center/cover no-repeat; position: relative; }
.my-course-body { padding: 1.25rem; }
.my-course-body h3 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.my-course-progress { margin-bottom: .75rem; }
.my-course-meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--text-muted); }

/* ─── STATUS BADGES ─── */
.status-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .22rem .6rem; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.status-pending { background: #f59e0b20; color: #f59e0b; }
.status-confirmed { background: #10b98120; color: #10b981; }
.status-cancelled { background: #ef444420; color: #ef4444; }
.status-completed { background: #6366f120; color: #a78bfa; }

/* ─── CALENDAR / APPOINTMENT ─── */
.service-selector { display: flex; flex-direction: column; gap: .75rem; }
.service-option { cursor: pointer; }
.service-option input { display: none; }
.service-option-inner {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  transition: all .2s;
}
.service-option:has(input:checked) .service-option-inner,
.service-option.selected .service-option-inner {
  border-color: var(--accent); background: var(--accent-light);
}
.service-color { width: 12px; height: 12px; border-radius: 50%; margin-top: .3rem; flex-shrink: 0; }
.service-option-info { flex: 1; }
.service-option-info strong { display: block; font-weight: 700; margin-bottom: .25rem; }
.service-option-info span { font-size: .85rem; color: var(--text-muted); }
.service-option-meta { display: flex; gap: .75rem; margin-top: .5rem; font-size: .78rem; color: var(--text-muted); flex-wrap: wrap; }
.service-option-price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); white-space: nowrap; }
.time-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.time-slot {
  padding: .45rem .85rem; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
  background: var(--surface); border: 1.5px solid var(--border2); color: var(--text);
  cursor: pointer; transition: all .2s;
}
.time-slot:hover:not(.disabled) { border-color: var(--accent); color: var(--accent); }
.time-slot.selected { background: var(--accent); border-color: var(--accent); color: white; }
.time-slot.disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.appointment-summary { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.appointment-summary h4 { font-size: .95rem; margin-bottom: .75rem; color: var(--accent); }
.summary-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .3rem 0; }
.summary-row span { color: var(--text-muted); }

/* ─── MODAL ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(4px); }
.modal-box { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 2rem; max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-box h3 { font-size: 1.2rem; margin-bottom: 1rem; padding-right: 2rem; }

/* ─── ALERTS ─── */
.alert {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.25rem; border-radius: var(--radius-sm);
  margin: 1rem 1.5rem; font-size: .9rem;
}
.alert button { margin-left: auto; background: none; border: none; font-size: 1.2rem; cursor: pointer; opacity: .6; color: inherit; }
.alert-success { background: #10b98115; color: #10b981; border: 1px solid #10b98130; }
.alert-error { background: #ef444415; color: #ef4444; border: 1px solid #ef444430; }
.alert-info { background: #3b82f615; color: #3b82f6; border: 1px solid #3b82f630; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ─── PAGINATION ─── */
.pagination-wrap { margin-top: 2rem; display: flex; justify-content: center; }
.pagination-wrap nav { display: flex; }
.pagination-wrap .pagination { display: flex; gap: .35rem; list-style: none; flex-wrap: wrap; }
.pagination-wrap .page-item .page-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: .85rem; transition: all .2s;
}
.pagination-wrap .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: white; }
.pagination-wrap .page-item .page-link:hover { border-color: var(--accent); color: var(--accent); }

/* ─── FOOTER ─── */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; margin-top: .75rem; line-height: 1.6; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-links h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: .75rem; font-weight: 700; }
.footer-links a { display: block; color: var(--text-muted); font-size: .875rem; margin-bottom: .4rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 0; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-faint); }

/* ─── MAIN CONTENT ─── */
.main-content { min-height: calc(100vh - 70px - 200px); }

/* ─── FEATURED SECTION ─── */
.featured-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .courses-featured-grid { grid-template-columns: repeat(2,1fr); }
  .course-hero-grid { grid-template-columns: 1fr; }
  .course-purchase-card { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .courses-featured-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 3rem; }
  .form-row { flex-direction: column; }
  .hero-actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem; }
}
