@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* ============================================
   TaiChiHarmonyHub - Premium Dark Theme
   Tai Chi Wellness Knowledge Platform
   ============================================ */

:root {
  /* Colors - Luxurious Dark Tai Chi Theme */
  --bg-darkest: #0a0c10;
  --bg-dark: #12151c;
  --bg-card: #1a1e28;
  --bg-card-hover: #232838;
  --bg-elevated: #1e2330;
  --border-color: rgba(197, 164, 106, 0.15);
  --border-hover: rgba(197, 164, 106, 0.35);

  --gold: #c5a46a;
  --gold-light: #e0c896;
  --gold-dark: #9a7e4f;
  --gold-glow: rgba(197, 164, 106, 0.3);

  --jade: #5a8f6a;
  --jade-light: #7ab58a;
  --jade-dark: #3a6b4a;
  --jade-glow: rgba(90, 143, 106, 0.3);

  --crimson: #b54545;
  --crimson-light: #d46565;

  --text-primary: #e8e6e3;
  --text-secondary: #a8a6a2;
  --text-muted: #6b6e76;
  --text-gold: var(--gold-light);

  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 8px 32px rgba(197, 164, 106, 0.15);
  --shadow-jade: 0 8px 32px rgba(90, 143, 106, 0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --font-serif: 'Cormorant Garamond', 'Noto Sans SC', serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background pattern - subtle yin-yang inspired */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(197, 164, 106, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(90, 143, 106, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-tight {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 16px;
  padding: 6px 20px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  background: rgba(197, 164, 106, 0.05);
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.jade-text {
  background: linear-gradient(135deg, var(--jade-light) 0%, var(--jade) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-darkest);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--bg-darkest);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(197, 164, 106, 0.25);
}

.btn-jade {
  background: linear-gradient(135deg, var(--jade) 0%, var(--jade-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-jade);
}

.btn-jade:hover {
  background: linear-gradient(135deg, var(--jade-light) 0%, var(--jade) 100%);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(197, 164, 106, 0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 12, 16, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  color: var(--bg-darkest);
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
}

.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo .logo-text .brand {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo .logo-text .tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
  background: rgba(197, 164, 106, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .icon-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.header-actions .icon-btn:hover {
  background: rgba(197, 164, 106, 0.1);
  color: var(--gold-light);
  border-color: var(--border-hover);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    linear-gradient(135deg, rgba(10,12,16,0.92) 0%, rgba(10,12,16,0.75) 50%, rgba(10,12,16,0.9) 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(197, 164, 106, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?w=1920&h=1080&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 24px;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(197, 164, 106, 0.1);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero .hero-badge i {
  color: var(--gold);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.hero h1 .gold-text {
  display: block;
  font-style: italic;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tai Chi symbol animation */
.taiji-symbol {
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.05;
  z-index: 0;
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.badge-free {
  background: rgba(90, 143, 106, 0.9);
  color: var(--white);
}

.badge-premium {
  background: rgba(197, 164, 106, 0.9);
  color: var(--bg-darkest);
}

.badge-hot {
  background: rgba(181, 69, 69, 0.9);
  color: var(--white);
}

.badge-new {
  background: rgba(122, 181, 138, 0.9);
  color: var(--bg-darkest);
}

.card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 164, 106, 0.9);
  border-radius: 50%;
  color: var(--bg-darkest);
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.card-duration {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 4px 10px;
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--white);
  backdrop-filter: blur(10px);
}

/* ============================================
   Grid Layouts
   ============================================ */
.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ============================================
   Course / Product Card
   ============================================ */
.course-card .card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.course-card .card-body h3 a {
  color: var(--text-primary);
}

.course-card .card-body h3 a:hover {
  color: var(--gold-light);
}

.course-card .instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-card .card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-card .card-meta i {
  color: var(--gold);
  margin-right: 4px;
}

.course-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  margin-top: 16px;
}

.course-card .price {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.course-card .price.free {
  color: var(--jade-light);
}

.product-card .card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card .product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.product-card .price-current {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

.product-card .price-original {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================
   Star Rating
   ============================================ */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
  font-size: 0.85rem;
}

.star-rating .far {
  color: var(--text-muted);
}

/* ============================================
   Video Player
   ============================================ */
.video-player-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-player {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
}

.video-player-container {
  position: relative;
}

/* Custom video controls */
.vjs-custom-skin {
  font-family: var(--font-sans) !important;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 164, 106, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c5a46a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 40px;
  background: var(--bg-darkest);
  position: relative;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(197, 164, 106, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90, 143, 106, 0.04) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   Membership Plans
   ============================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(180deg, rgba(197, 164, 106, 0.06) 0%, var(--bg-card) 100%);
}

.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-darkest);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--gold-light);
}

.plan-price {
  margin: 24px 0;
}

.plan-price .amount {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.plan-features li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li i {
  color: var(--jade);
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================
   News/Blog
   ============================================ */
.news-card .card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.news-card .news-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.news-card .news-meta i {
  margin-right: 4px;
  color: var(--gold);
}

/* Article page */
.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-header .article-category {
  display: inline-block;
  padding: 4px 16px;
  background: rgba(197, 164, 106, 0.1);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.article-header h1 {
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-cover {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--gold-light);
  border-bottom: 1px solid var(--border-color);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: rgba(197, 164, 106, 0.1);
  color: var(--gold-light);
  border-color: var(--border-hover);
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  margin-top: 60px;
  padding: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold);
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 100px 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold-light);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

/* ============================================
   Tabs
   ============================================ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(90, 143, 106, 0.1);
  border: 1px solid rgba(90, 143, 106, 0.3);
  color: var(--jade-light);
}

.alert-error {
  background: rgba(181, 69, 69, 0.1);
  border: 1px solid rgba(181, 69, 69, 0.3);
  color: var(--crimson-light);
}

.alert-info {
  background: rgba(197, 164, 106, 0.08);
  border: 1px solid var(--border-hover);
  color: var(--gold-light);
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--border-hover);
  color: var(--gold-light);
}

.pagination .active a {
  background: var(--gold);
  color: var(--bg-darkest);
  border-color: var(--gold);
  font-weight: 600;
}

.pagination .disabled span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

/* ============================================
   Lesson List
   ============================================ */
.lesson-list {
  list-style: none;
}

.lesson-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lesson-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.lesson-item.active {
  border-color: var(--gold);
  background: rgba(197, 164, 106, 0.05);
}

.lesson-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 164, 106, 0.1);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.lesson-item.completed .lesson-number {
  background: var(--jade);
  color: var(--white);
}

.lesson-item.locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.lesson-info {
  flex: 1;
}

.lesson-info .lesson-title {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.lesson-info .lesson-duration {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lesson-preview-badge {
  padding: 2px 10px;
  background: rgba(90, 143, 106, 0.15);
  border-radius: 100px;
  font-size: 0.7rem;
  color: var(--jade-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   User Dashboard
   ============================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding-top: 100px;
  min-height: 100vh;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.dashboard-user {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.dashboard-user .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bg-darkest);
  margin: 0 auto 12px;
}

.dashboard-user .username {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dashboard-user .email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dashboard-user .membership-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 16px;
  background: rgba(197, 164, 106, 0.1);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-menu {
  list-style: none;
}

.dashboard-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.dashboard-menu a:hover,
.dashboard-menu a.active {
  background: rgba(197, 164, 106, 0.08);
  color: var(--gold-light);
}

.dashboard-menu a i {
  width: 20px;
  text-align: center;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-section h2 {
  margin-bottom: 24px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    gap: 0;
    transform: translateY(-150%);
    transition: var(--transition);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .header-actions .icon-btn {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4, .grid-auto {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat .stat-number {
    font-size: 1.75rem;
  }

  .section {
    padding: 48px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .card-body {
    padding: 16px;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold-light); }
.text-jade { color: var(--jade-light); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
