/* =============================================
   WING CHUN ACADEMY — CSS Principal
   Design : Moderne & Épuré
   ============================================= */

/* --- Variables --- */
:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --accent: #f39c12;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-dark: #1a1a2e;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
  --container: 1200px;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-cn: 'Noto Serif SC', serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
input, textarea, button, select { font-family: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 760px; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--text); }
.section-title-sm { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.see-all { color: var(--primary); font-weight: 500; font-size: 0.95rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.85rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.brand-cn {
  font-family: var(--font-cn);
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1;
}
.brand-fr {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover { color: var(--primary); background: rgba(192,57,43,0.06); }
.nav-separator { width: 1px; height: 1.5rem; background: var(--border); margin: 0 0.375rem; }
.nav-user { display: flex; align-items: center; }
.nav-member { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-avatar-placeholder {
  width: 28px; height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  opacity: 0.97;
}
.hero-bg::after {
  content: '詠春';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-cn);
  font-size: clamp(16rem, 30vw, 28rem);
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-subtitle {
  display: inline-block;
  background: rgba(192,57,43,0.25);
  color: #ff8a7a;
  border: 1px solid rgba(192,57,43,0.4);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.cn-char {
  font-family: var(--font-cn);
  color: var(--primary);
  font-size: 1.15em;
}
.cn-char-lg {
  font-family: var(--font-cn);
  font-size: 3.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.hero-desc {
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* --- Principles Grid --- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.principle-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}
.principle-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--primary); }
.principle-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.principle-card h3 { margin-bottom: 0.75rem; color: var(--text); }
.principle-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cards-grid-wide .card { display: flex; flex-direction: row; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}
.card-img-sm {
  width: 200px;
  min-width: 200px;
  background-size: cover;
  background-position: center;
}
.card-img-placeholder, .card-img-sm.card-img-placeholder {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder span, .card-img-sm.card-img-placeholder span {
  font-family: var(--font-cn);
  font-size: 2.5rem;
  color: rgba(255,255,255,0.3);
}
.card-body { padding: 1.375rem; flex: 1; display: flex; flex-direction: column; gap: 0.625rem; }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }
.card-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-top: auto; flex-wrap: wrap; gap: 0.4rem; }
.card-link { color: var(--primary); font-weight: 600; }

/* Card video */
.card-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.card-video .video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-locked {
  height: 200px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-overlay { text-align: center; color: #fff; padding: 1rem; }
.lock-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.lock-overlay p { margin-bottom: 1rem; color: rgba(255,255,255,0.7); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.badge-member { background: rgba(192,57,43,0.1); color: var(--primary); }
.badge-cat { background: rgba(15,52,96,0.1); color: #0f3460; }
.badge-xs { font-size: 0.7rem; padding: 0.15rem 0.45rem; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.4rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- Page Header --- */
.page-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 4rem 0 3rem;
}
.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 560px; }
.page-header .badge { margin-bottom: 0.75rem; }
.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.back-link:hover { color: #fff; }
.article-meta { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 0.5rem; }

/* --- Prose (article content) --- */
.prose { color: var(--text); line-height: 1.8; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 1rem; color: var(--text); }
.prose h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote { border-left: 4px solid var(--primary); padding-left: 1rem; margin: 1.5rem 0; color: var(--text-muted); font-style: italic; }

/* --- Planning --- */
.schedule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.schedule-day-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.schedule-day-title {
  background: var(--bg-dark);
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.schedule-course {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.schedule-course:last-child { border-bottom: none; }
.course-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  text-align: center;
  gap: 0.2rem;
}
.time-start, .time-end { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.time-divider { font-size: 0.7rem; color: var(--text-muted); }
.course-info h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.course-details { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.8rem; color: var(--text-muted); }
.level-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(192,57,43,0.1);
  color: var(--primary);
}
.course-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.course-location-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.course-location-link:hover { color: var(--primary); }
.course-address {
  display: block;
  width: 100%;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
}
.maps-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a73e8;
  background: rgba(26,115,232,0.08);
  border: 1px solid rgba(26,115,232,0.2);
  border-radius: 100px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}
.course-location-link:hover .maps-badge {
  background: rgba(26,115,232,0.15);
}
.planning-preview { display: flex; flex-direction: column; gap: 0.5rem; }
.planning-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.planning-day { font-weight: 700; min-width: 80px; color: var(--primary); }
.planning-info { flex: 1; }
.planning-info strong { display: block; font-size: 0.95rem; }
.planning-info span { font-size: 0.82rem; color: var(--text-muted); }
.planning-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 3rem;
  background: var(--bg-dark);
  border-radius: var(--radius);
  color: #fff;
}
.planning-cta h2 { color: #fff; margin-bottom: 0.75rem; }
.planning-cta p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; }

/* --- Gallery --- */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
  gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 1.5rem 0.875rem 0.875rem;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox-content img { max-height: 80vh; border-radius: var(--radius-sm); }
.lightbox-content p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; font-size: 0.9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.25rem;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.3); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 2rem 1rem;
}
.auth-container {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand h1 { font-size: 1.75rem; margin-bottom: 0.375rem; }
.auth-brand p { color: var(--text-muted); font-size: 0.9rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.125rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-demo { margin-top: 1.25rem; }
.auth-demo details summary {
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem;
}
.demo-accounts {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-muted);
}

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.input-disabled { background: var(--bg-alt) !important; color: var(--text-muted) !important; cursor: not-allowed; }
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-card h2 { font-size: 1.25rem; margin-bottom: 1.5rem; }

/* Avatar edit */
.avatar-edit { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.avatar-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-placeholder-lg {
  width: 72px; height: 72px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700;
  flex-shrink: 0;
}

/* --- Alerts --- */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* --- Dashboard --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}
.dash-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.dash-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; }
.dash-profile { text-align: center; grid-row: span 2; }
.dash-wide { grid-column: 2; }
.dash-avatar { margin-bottom: 1rem; display: flex; justify-content: center; }
.dash-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.dash-grade { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.dash-email { color: var(--text-muted); font-size: 0.85rem; }
.dash-bio { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.5; }

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid var(--border);
}
.quick-link:hover { border-color: var(--primary); background: rgba(192,57,43,0.05); color: var(--primary); }
.ql-icon { font-size: 1.75rem; }

.dash-list { display: flex; flex-direction: column; gap: 0; }
.dash-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color var(--transition);
}
.dash-list-item:last-child { border-bottom: none; }
.dash-list-item:hover { color: var(--primary); }
.dash-list-item strong { font-size: 0.9rem; }
.dash-list-item p { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.25rem; }
.dash-date { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
.empty-msg { color: var(--text-muted); font-size: 0.9rem; padding: 1rem 0; }

/* --- Locked / Error pages --- */
.locked-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.locked-container { text-align: center; max-width: 480px; }
.lock-icon-big { font-size: 4rem; margin-bottom: 1.5rem; }
.locked-container h1 { margin-bottom: 1rem; }
.locked-container p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.locked-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- CTA Section --- */
.section-cta { background: var(--bg-alt); }
.cta-box {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}
.cta-box h2 { color: #fff; font-size: 2rem; margin-bottom: 0.75rem; }
.cta-box p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .brand-cn { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.6; }
.footer-links h4, .footer-contact h4 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.9rem; text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { columns: 2; }
  .cards-grid-wide .card { flex-direction: column; }
  .card-img-sm { width: 100%; min-width: unset; height: 180px; }
}

@media (max-width: 768px) {
  /* Nav mobile */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,26,46,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 99;
    padding: 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-link { color: rgba(255,255,255,0.8); font-size: 1.1rem; padding: 0.75rem 1.5rem; }
  .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
  .nav-separator { background: rgba(255,255,255,0.15); width: 60px; height: 1px; }

  .section { padding: 3rem 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dash-profile { grid-row: span 1; }
  .dash-wide { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .schedule-grid { grid-template-columns: 1fr; }
  .auth-container { padding: 1.75rem; }
  .planning-item { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .principles-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .hero-actions { flex-direction: column; }
  .locked-actions { flex-direction: column; align-items: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .avatar-edit { flex-direction: column; text-align: center; }
}
