/* ============================================================
   dhilber.com — design system
   Dark creator theme. No framework, no build step.
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-elevated: #12151d;
  --bg-card: #141824;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #e8eaf0;
  --text-muted: #9aa1b2;
  --text-faint: #6b7280;

  --accent: #8b5cf6;
  --accent-2: #d946ef;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --gradient: linear-gradient(120deg, #8b5cf6, #d946ef);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --font-display: 'Sora', 'Noto Sans Malayalam', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans Malayalam', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #a78bfa; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--text-muted); }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; background: var(--accent-soft); }

.btn-light {
  background: #fff;
  color: #16181d;
  font-weight: 600;
}
.btn-light:hover { transform: translateY(-2px); color: #16181d; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.btn-whatsapp {
  background: linear-gradient(120deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 32px rgba(37, 211, 102, 0.42); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------
   Badges
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge svg { width: 14px; height: 14px; }
.badge-accent { background: var(--accent-soft); color: #b699fa; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-outline { border: 1px solid var(--border-strong); color: var(--text-muted); }

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { color: #fff; }
.brand .dot { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}
.nav-signout {
  background: none;
  border: none;
  color: var(--text-faint);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}
.nav-signout:hover { color: var(--danger); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 16px; }
  .nav-links a { display: block; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-user { justify-content: space-between; }
}
@media (min-width: 821px) {
  .nav-menu { display: flex; align-items: center; gap: 24px; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -350px;
  left: -250px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.12), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-kicker::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.hero h1 { font-size: clamp(38px, 5.5vw, 60px); margin-bottom: 20px; }
.hero-bio {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.social-links a:hover { color: #fff; border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.social-links svg { width: 19px; height: 19px; }

.hero-image { position: relative; }
.hero-image img {
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--gradient);
  opacity: 0.35;
  filter: blur(28px);
  z-index: -1;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
}
.hero-stat .label { color: var(--text-faint); font-size: 14px; }

@media (max-width: 820px) {
  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: -1; max-width: 340px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}

/* ------------------------------------------------------------
   Section headers
   ------------------------------------------------------------ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); }
.section-head .sub { color: var(--text-muted); margin-top: 8px; max-width: 560px; }
.section-link { font-weight: 600; font-size: 15px; white-space: nowrap; }

/* ------------------------------------------------------------
   Cards / workshop grid
   ------------------------------------------------------------ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
a.card { color: inherit; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  color: inherit;
}

.card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1c1633, #2a1140);
  position: relative;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
}
.card-media .placeholder-icon svg { width: 56px; height: 56px; }

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-title { font-size: 19px; }
.card-desc { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}
.card-foot .price { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--text); }

/* ------------------------------------------------------------
   Workshop detail
   ------------------------------------------------------------ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-title { font-size: clamp(30px, 4vw, 44px); margin: 16px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 14.5px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; }
.detail-meta svg { width: 16px; height: 16px; color: var(--accent); }

.prose { color: var(--text-muted); }
.prose p { margin-bottom: 1em; }
.prose h3 { color: var(--text); margin: 1.4em 0 0.5em; }

.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.access-card .access-thumb {
  margin: -12px -12px 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.access-card .access-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.access-card .price-line {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
}
.access-note { font-size: 14px; color: var(--text-faint); }

.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x9 iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Session list */
.session-list { display: flex; flex-direction: column; gap: 12px; }
.session-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
a.session-item:hover { border-color: rgba(139, 92, 246, 0.5); background: #171b29; color: inherit; }
.session-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: #b699fa;
}
.session-icon.locked { background: rgba(255, 255, 255, 0.05); color: var(--text-faint); }
.session-icon svg { width: 19px; height: 19px; }
.session-info { flex: 1; min-width: 0; }
.session-info .title { font-weight: 600; font-size: 15.5px; }
.session-info .meta { color: var(--text-faint); font-size: 13.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.session-num { color: var(--text-faint); font-size: 13px; font-weight: 600; width: 24px; flex: none; text-align: center; }

/* ------------------------------------------------------------
   Watch page
   ------------------------------------------------------------ */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 980px) { .watch-layout { grid-template-columns: 1fr; } }

.playlist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.playlist-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
}
.playlist-items { max-height: 520px; overflow-y: auto; }
.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  transition: background 0.15s ease;
}
.playlist-item:last-child { border-bottom: none; }
.playlist-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.playlist-item.active { background: var(--accent-soft); color: #fff; font-weight: 600; }
.playlist-item .num { color: var(--text-faint); font-size: 12.5px; width: 20px; flex: none; }
.playlist-item svg { width: 15px; height: 15px; flex: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------
   Locked panel / empty states
   ------------------------------------------------------------ */
.locked-panel {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  color: var(--text-muted);
}
.locked-panel svg { width: 36px; height: 36px; color: var(--text-faint); margin: 0 auto 14px; }
.locked-panel h3 { color: var(--text); margin-bottom: 8px; font-size: 20px; }
.locked-panel p { max-width: 420px; margin: 0 auto 20px; font-size: 15px; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state h2 { margin-bottom: 10px; }

/* ------------------------------------------------------------
   CTA band
   ------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 12px; position: relative; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; position: relative; }
.cta-band .btn { position: relative; }

/* ------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------ */
.auth-wrap {
  min-height: calc(100vh - 68px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 36px;
  text-align: center;
}
.auth-card h1 { font-size: 26px; margin-bottom: 10px; }
.auth-card .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 30px; }
.auth-fineprint { margin-top: 22px; color: var(--text-faint); font-size: 13px; }

.auth-alt { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 18px; }
.auth-alt summary {
  color: var(--text-faint);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.auth-alt summary:hover { color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.auth-form input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.auth-form input:focus { outline: none; border-color: var(--accent); }
.auth-error { color: var(--danger); font-size: 13.5px; }

/* ------------------------------------------------------------
   Messages (toasts)
   ------------------------------------------------------------ */
.messages {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.message {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  box-shadow: var(--shadow);
  animation: slide-in 0.25s ease;
}
.message.success { border-left-color: var(--success); }
.message.warning { border-left-color: var(--warning); }
.message.error { border-left-color: var(--danger); }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  margin-top: 48px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer .copy { color: var(--text-faint); font-size: 14px; }
.footer .social-links a { width: 38px; height: 38px; }
.footer .social-links svg { width: 16px; height: 16px; }
