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

:root {
  --bg: #060606;
  --surface: #111111;
  --surface-hover: #1a1a1a;
  --border: #222222;
  --text: #F8F5F0;
  --text-muted: #888888;
  --gold: #F8D264;
  --gold-dim: #c4a94d;
  --radius: 12px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

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

/* Nav */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
}

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

/* Buttons */
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #060606;
}

.btn-primary:hover {
  background: var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-small {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

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

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gold-dim);
}

/* Sacred Circles (visual circles) */
.circles-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.circle-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s;
  flex-direction: row;
}

.circle-item:hover {
  background: var(--surface);
  border-color: var(--border);
}

.circle-ring {
  position: relative;
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.circle-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: circleRotate 8s linear infinite;
  background: conic-gradient(from 0deg, transparent 0%, var(--gold) 25%, transparent 50%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.circle-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s;
}

.circle-img {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.circle-ring.has-img .circle-initial {
  display: none;
}

.circle-item:hover .circle-ring::after {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(248, 210, 100, 0.15);
}

.circle-item:hover .circle-ring::before {
  animation-duration: 3s;
}

.circle-initial {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.circle-info {
  flex: 1;
  text-align: left;
}

.circle-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.circle-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.circle-item:hover .circle-desc {
  opacity: 1;
  max-height: 80px;
  margin-top: 0.5rem;
}

.circle-host {
  font-size: 0.75rem;
  color: var(--gold-dim);
  margin-top: 0.35rem;
}

@keyframes circleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.circle-ring.has-live::before {
  background: conic-gradient(from 0deg, transparent 0%, #4ade80 25%, transparent 50%);
  animation-duration: 4s;
}

@media (max-width: 600px) {
  .circle-item {
    gap: 1rem;
    padding: 0.75rem 1rem;
  }
  .circle-ring {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }
  .circle-initial {
    font-size: 1.2rem;
  }
  .circle-title {
    font-size: 1.1rem;
  }
}

/* Forms */
.form-container {
  max-width: 400px;
  margin: 3rem auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-container h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--gold);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

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

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

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

.form-switch a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}

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

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

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

.session-view h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.session-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  background: var(--surface);
}

.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;
}

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

.comments-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

.comment-author {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gold-dim);
}

.comment-text {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.comment-form input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
}

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

/* Badge */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bg);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

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

/* Video list (course player) */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

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

.video-item.active {
  background: var(--surface);
  border-color: var(--gold);
}

.video-num {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 1.5rem;
  text-align: center;
}

.video-info {
  flex: 1;
}

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

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

.video-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  main { padding: 1rem; }
  nav { padding: 0.75rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
}
