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

:root {
  --bg: #06060f;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #f4f2ff;
  --text-muted: #a8a4b8;
  --text-dim: #6b6780;
  --accent-1: #7c5cfc;
  --accent-2: #f472b6;
  --accent-3: #06b6d4;
  --accent-4: #a78bfa;
  --accent-5: #34d399;
  --gradient-text: linear-gradient(135deg, #a78bfa, #f472b6, #06b6d4);
  --gradient-btn: linear-gradient(135deg, #7c5cfc, #f472b6);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Ambient gradient mesh */
.gradient-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb-1, .orb-2, .orb-3 {
  filter: blur(120px);
  opacity: 0.3;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-1 {
  background: radial-gradient(circle, #7c5cfc 0%, transparent 70%);
  animation-duration: 18s;
}

.orb-2 {
  background: radial-gradient(circle, #f472b6 0%, transparent 70%);
  animation-duration: 14s;
  animation-delay: -5s;
}

.orb-3 {
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -8s;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
  100% { transform: translate(-15px, 15px); }
}

.noise {
  z-index: 1;
  opacity: 0.5;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
nav {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 2rem;
  margin: 0 auto;
  max-width: 900px;
  background: rgba(6, 6, 15, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn {
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 8px;
  font-weight: 500;
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-nav:hover {
  color: var(--text);
  border-color: var(--glass-border);
  background: var(--glass);
}

.btn-primary-nav {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  background: var(--gradient-btn);
  color: white;
  border: none;
}

.btn-primary-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 252, 0.3);
}

.btn-primary-large {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  background: var(--gradient-btn);
  color: white;
  border: none;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 92, 252, 0.4);
}

.btn-primary-large:active {
  transform: translateY(0);
}

.btn-secondary-large {
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--glass-border);
}

.btn-secondary-large:hover {
  border-color: var(--accent-3);
  background: rgba(6, 182, 212, 0.08);
  transform: translateY(-2px);
}

.btn-small-pill {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-small-pill:hover {
  background: var(--accent-2);
  color: white;
  border-color: var(--accent-2);
}

.btn-small-primary {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  background: var(--gradient-btn);
  color: white;
  border: none;
}

.btn-small-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 92, 252, 0.3);
}

.btn-small-ghost {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

.btn-small-ghost:hover {
  color: var(--text);
  border-color: var(--text);
}

.btn-back {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-back:hover {
  color: var(--text);
}

.btn-google {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  background: white;
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 500;
}

.btn-google:hover {
  background: #f0f0f0;
}

.google-icon {
  font-weight: 700;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 12vh 2rem 8vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-welcome {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-welcome::before,
.hero-welcome::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-dim));
}

.hero-welcome::after {
  background: linear-gradient(90deg, var(--text-dim), transparent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-message {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3.5rem;
}

.hero-values {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-value {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-value::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-value:nth-child(1)::before { background: var(--accent-1); }
.hero-value:nth-child(2)::before { background: var(--accent-2); }
.hero-value:nth-child(3)::before { background: var(--accent-3); }

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-gradient {
  padding: 1rem 3rem;
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(124, 92, 252, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.45);
}

.btn-glass {
  padding: 1rem 3rem;
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.hero-dial-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  pointer-events: none;
  z-index: 0;
}

.hero-dial-bg svg {
  width: 100%;
  height: 100%;
}

.hero-headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero-dial-bg {
    width: 350px;
    height: 350px;
  }
  .hero-headline {
    font-size: 3.5rem;
  }
}

.hero-brand {
  margin-top: 4rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.hero-brand a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards Grid */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.circles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Session Cards */
.session-card-home {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-card-home:hover {
  border-color: var(--accent-2);
  background: rgba(244, 114, 182, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(244, 114, 182, 0.15);
}

.session-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.session-card:hover {
  border-color: var(--accent-3);
  background: rgba(6, 182, 212, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15);
}

.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  width: fit-content;
}

.card-badge.live {
  background: rgba(244, 114, 182, 0.2);
  color: var(--accent-2);
}

.card-badge.recorded {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-3);
}

.card-content {
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Glass panel */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  padding: 2rem;
}

/* Circle Cards */
.circle-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.circle-card:hover {
  border-color: var(--accent-1);
  background: rgba(124, 92, 252, 0.04);
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(124, 92, 252, 0.15);
}

.circle-badge {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-1);
  position: relative;
  overflow: hidden;
}

.circle-badge.has-image {
  background: rgba(124, 92, 252, 0.1);
}

.circle-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.circle-letter {
  position: relative;
  z-index: 1;
}

.circle-details {
  flex: 1;
}

.circle-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.circle-host {
  font-size: 0.85rem;
  color: var(--accent-4);
  margin-top: 0.25rem;
}

.circle-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Auth Container */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
}

.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(8px);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-footer {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
}

/* Forms */
.form-container {
  max-width: 500px;
  margin: 3rem auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(8px);
}

.form-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-align: center;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(10, 10, 18, 0.8);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
}

.form-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-switch a {
  color: var(--accent-1);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}

.form-switch a:hover {
  color: var(--accent-2);
}

/* Upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.01);
}

.upload-area:hover {
  border-color: var(--accent-1);
  background: rgba(124, 92, 252, 0.05);
  color: var(--accent-1);
}

.upload-area:focus-within {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--text);
}

.section-header a,
.section-header .btn {
  flex-shrink: 0;
}

/* Course Cards */
.course-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--accent-1);
  background: rgba(124, 92, 252, 0.04);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 92, 252, 0.15);
}

.course-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.course-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex: 1;
}

.course-stats {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.course-action {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Video player */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

/* Video list */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.video-item:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.video-item.active {
  background: var(--surface-hover);
  border-left-color: var(--accent-1);
  border-color: rgba(255, 255, 255, 0.12);
}

.video-item.watched .video-title::after {
  content: ' ✓';
  color: var(--accent-5);
}

.video-num {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
}

.video-info {
  flex: 1;
}

.video-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.video-item.active .video-title {
  color: var(--accent-1);
}

.video-duration {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  background-size: 200% 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

/* Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 48px;
  bottom: -32px;
  width: 2px;
  background: var(--border);
}

.timeline-item.completed:not(:last-child)::after {
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.timeline-item.completed .timeline-dot {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-color: transparent;
  color: var(--text);
  box-shadow: 0 0 16px rgba(124, 92, 252, 0.4);
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-item.completed .timeline-title {
  color: var(--text-muted);
  text-decoration: line-through;
}

.timeline-duration {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Calendar display */
.calendar-day {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.calendar-day:first-of-type {
  margin-top: 0;
}

.session-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  transition: all 0.3s;
}

.session-row:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.session-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  min-width: 70px;
}

.session-title {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.session-badge {
  display: inline-block;
  background: rgba(124, 92, 252, 0.2);
  border: 1px solid rgba(124, 92, 252, 0.4);
  color: var(--accent-1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.session-join {
  flex-shrink: 0;
}

/* Comments */
.comments-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.comments-section h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-1);
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 0.4rem;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.comment-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.comment-form input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.1);
}

.comment-form .btn {
  flex-shrink: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--text);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge.completed {
  background: linear-gradient(135deg, var(--accent-5), #10b981);
  color: var(--text);
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  z-index: 1000;
  animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  max-width: 300px;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px) translateX(20px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

.toast.success {
  border-color: var(--accent-5);
}

.toast.error {
  border-color: var(--accent-2);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Selection */
::selection {
  background: rgba(124, 92, 252, 0.3);
  color: var(--text);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* Scroll thumb */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Dashboard */
.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-header {
  margin-bottom: 3rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.dashboard-section {
  margin-bottom: 3rem;
}

.section-title-dashboard {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-card-dash {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.course-card-dash:hover {
  border-color: var(--accent-3);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15);
}

/* Sessions list */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-item-dash {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all 0.25s ease;
}

.session-item-dash:hover {
  border-color: var(--accent-2);
  background: rgba(244, 114, 182, 0.04);
}

.session-time-badge {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--accent-2);
  min-width: fit-content;
}

.session-info {
  flex: 1;
}

.session-info h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.session-circle {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Community View */
.community-view {
  max-width: 1000px;
  margin: 0 auto;
}

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.community-hero {
  flex: 1;
  min-width: 300px;
}

.community-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.community-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.community-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.community-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.session-section {
  margin-bottom: 2.5rem;
}

/* Session View */
.session-view {
  max-width: 900px;
  margin: 0 auto;
}

.session-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.session-card-large {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.session-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.session-metadata {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.session-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Video Player */
.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  margin-bottom: 1.5rem;
}

.video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 6rem 2rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Discussion */
.session-discussion {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.discussion-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.comment-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--accent-2);
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 0.4rem;
}

.comment-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.comment-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.comment-input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.comment-input:focus {
  outline: none;
  border-color: var(--accent-1);
}

.auth-prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.link {
  color: var(--accent-3);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* Course Preview */
.course-preview-container {
  max-width: 900px;
  margin: 0 auto;
}

.preview-header {
  margin-bottom: 3rem;
}

.preview-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.preview-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.preview-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.stat {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.preview-status {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

.status-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preview-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.preview-enroll {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.enroll-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.preview-timeline {
  margin-top: 3rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  position: relative;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.timeline-item.completed .timeline-dot {
  background: var(--accent-5);
  border-color: var(--accent-5);
  color: white;
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--glass-border);
  min-height: 1rem;
}

.timeline-item.completed .timeline-line {
  background: var(--accent-5);
}

.timeline-body {
  padding-bottom: 1rem;
  flex: 1;
}

.timeline-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.timeline-item.completed .timeline-label {
  color: var(--text-muted);
  text-decoration: line-through;
}

.timeline-time {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Course Player */
.course-player-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.player-section {
  grid-column: 1;
}

.course-player-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.course-player-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.player-progress {
  margin-bottom: 1.5rem;
}

.progress-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-btn);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  margin-bottom: 2rem;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-cta {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.player-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.player-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.playlist-section {
  grid-column: 2;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.playlist-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.playlist-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: rgba(124, 92, 252, 0.1);
  border-left-color: var(--accent-1);
}

.playlist-item.active {
  background: var(--glass);
  border: 1px solid var(--accent-1);
  border-left: 3px solid var(--accent-1);
}

.playlist-item.watched .video-name::before {
  content: '✓ ';
  color: var(--accent-5);
}

.video-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 1.5rem;
  text-align: center;
}

.video-data {
  flex: 1;
  min-width: 0;
}

.video-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-dur {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.playlist-item.active .video-name {
  color: var(--accent-1);
}

/* Library */
.library-container {
  max-width: 1100px;
  margin: 0 auto;
}

.library-header {
  margin-bottom: 3rem;
}

.library-section {
  margin-bottom: 4rem;
}

/* Utilities */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

/* Toggle group (for session type) */
.toggle-group {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem;
  border-radius: 8px;
}

.toggle-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: var(--gradient-btn);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    margin: 0.75rem 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
  }

  main {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-message {
    font-size: 1rem;
  }

  .hero-values {
    gap: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .course-card.featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .circle-card {
    flex-direction: column;
    text-align: center;
  }

  .circle-content {
    text-align: center;
  }

  .session-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .session-time {
    width: 100%;
  }

  .session-title {
    width: 100%;
  }

  .session-join {
    width: 100%;
  }

  .session-join .btn {
    width: 100%;
  }

  .toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    width: calc(100% - 1rem);
    left: 0.5rem;
    transform: translateX(0);
    max-width: none;
  }

  main {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-value-number {
    font-size: 2rem;
  }

  .hero-values {
    flex-direction: column;
    gap: 1.5rem;
  }

  .circle-orb {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .circle-letter {
    font-size: 1.4rem;
  }

  .card {
    padding: 1rem;
  }

  .form-container {
    max-width: calc(100vw - 2rem);
    padding: 1.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .upload-area {
    padding: 1.5rem 1rem;
  }

  .video-list {
    gap: 0.25rem;
  }

  .video-item {
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }

  .timeline-item {
    gap: 1rem;
  }

  .comment-form {
    flex-direction: column;
  }

  .comment-form input {
    width: 100%;
  }

  .comment-form .btn {
    width: 100%;
  }
}
