/* Livecraft — page-level layouts */

/* ================= HOME HERO ================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; transform: scale(1.06); animation: lc-hero-zoom 18s var(--ease-out) forwards; }
@keyframes lc-hero-zoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.96) 0%, rgba(8, 10, 15, 0.82) 38%, rgba(8, 10, 15, 0.3) 70%, rgba(8, 10, 15, 0.55) 100%),
    linear-gradient(0deg, var(--bg-base) 2%, rgba(8, 10, 15, 0) 45%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.7) 0%, transparent 22%),
    radial-gradient(60% 60% at 80% 40%, rgba(124, 58, 237, 0.22), transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-6); }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); max-width: 640px; }
.hero__title { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.03em; }
.hero__sub { font-size: var(--fs-lg); color: var(--text-soft); max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__caption { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--text-soft); }
.hero__caption span { display: inline-flex; align-items: center; gap: 6px; }
.hero__caption svg { width: 15px; height: 15px; color: var(--cyan); }
.hero__stats { padding-bottom: var(--s-7); }

/* Floating "creator console" card */
.console { display: none; position: relative; justify-self: end; width: 100%; max-width: 380px; }
.console__card {
  position: relative; padding: var(--s-5); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(22, 29, 43, 0.82), rgba(13, 17, 26, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-modal), 0 0 60px rgba(124, 58, 237, 0.22);
  animation: lc-float 7s ease-in-out infinite;
}
.console__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.console__label { font-size: var(--fs-xs); color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.console__big { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1.1; margin-top: var(--s-3); }
.console__delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 600; color: var(--success); }
.console__delta svg { width: 14px; height: 14px; }
.console__spark { margin-top: var(--s-4); height: 72px; width: 100%; }
.console__divider { height: 1px; background: var(--border-subtle); margin: var(--s-5) 0; }
.console__lesson { display: flex; gap: var(--s-3); align-items: center; }
.console__lesson img { width: 56px; height: 56px; border-radius: var(--r-md); object-fit: cover; }
.console__lesson strong { display: block; font-size: var(--fs-sm); line-height: 1.35; }
.console__lesson span { font-size: var(--fs-xs); color: var(--text-secondary); }
.progress { height: 6px; border-radius: var(--r-full); background: var(--border-subtle); overflow: hidden; margin-top: var(--s-3); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 12px var(--violet-glow); }
.console__pill {
  position: absolute; left: -48px; bottom: -22px; display: flex; align-items: center; gap: var(--s-3);
  padding: 10px 16px 10px 10px; border-radius: var(--r-full);
  background: rgba(13, 17, 26, 0.9); border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card), 0 0 24px rgba(34, 211, 238, 0.15); font-size: var(--fs-sm);
  animation: lc-float 7s ease-in-out infinite; animation-delay: -3.5s;
}
.console__pill .icon-tile { width: 34px; height: 34px; border-radius: 50%; }
.console__pill .icon-tile svg { width: 16px; height: 16px; }
.console__pill small { display: block; color: var(--text-secondary); font-size: var(--fs-xs); }
/* Small laptops: the two hero columns are closest here, keep the badge clear of the copy. */
@media (min-width: 1024px) and (max-width: 1279.98px) { .console__pill { left: -12px; } }
@keyframes lc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.25fr 1fr; padding-top: calc(var(--header-h) + var(--s-9)); }
  .console { display: block; }
}
@media (max-width: 767.98px) {
  .hero { min-height: auto; }
  .hero__bg img { object-position: 22% 0%; height: 78%; }
  .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(8, 10, 15, 0.55) 0%, rgba(8, 10, 15, 0.45) 30%, rgba(8, 10, 15, 0.92) 62%, var(--bg-base) 100%),
      radial-gradient(80% 50% at 70% 20%, rgba(124, 58, 237, 0.25), transparent 70%);
  }
  .hero__inner { padding-top: calc(var(--header-h) + 34vh); gap: var(--s-5); }
  .hero__content { gap: var(--s-4); }
  .hero__title { font-size: 2.5rem; }
  .hero__sub { font-size: var(--fs-body); }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__caption { justify-content: center; width: 100%; font-size: var(--fs-xs); }
}
@media (max-width: 359.98px) { .hero__title { font-size: 2.15rem; } }

/* ================= Topic marquee ================= */
.marquee { position: relative; overflow: hidden; padding-block: var(--s-5); border-block: 1px solid var(--border-subtle); background: rgba(13, 17, 26, 0.5);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: var(--s-7); width: max-content; animation: lc-marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: var(--s-3); font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.marquee__item svg { width: 16px; height: 16px; color: var(--violet-bright); }
@keyframes lc-marquee { to { transform: translateX(-50%); } }

/* ================= Why section ================= */
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .why { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.why__visual { position: relative; }
.why__img { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border-subtle); aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-modal); }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 15, 0.85)), linear-gradient(135deg, rgba(124, 58, 237, 0.25), transparent 50%); }
/* Kept inside the visual's box; the blur alone carries the glow past the
   edge (filter ink overflow never creates horizontal scroll). */
.why__glow { position: absolute; inset: 10% 0 -8% 10%; z-index: -1; border-radius: var(--r-xl); background: radial-gradient(circle at 70% 70%, var(--violet-glow), transparent 60%); filter: blur(40px); }
.why__quote { position: absolute; left: var(--s-5); right: var(--s-5); bottom: var(--s-5); z-index: 1; display: grid; gap: var(--s-3); }
.why__quote p { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.4; font-weight: 500; }
.why__quote .instructor__name { color: var(--text-soft); }
.why__points { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.why__point { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); }
.why__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-sm); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); background: var(--cyan-muted); }
.why__point h3 { font-size: 1.1rem; margin-bottom: 4px; }
.why__point p { color: var(--text-secondary); font-size: var(--fs-sm); }
@media (max-width: 767.98px) { .why__quote p { font-size: 1rem; } .why__img { aspect-ratio: 4 / 3.6; } }

/* ================= COURSE DETAIL ================= */
.cd-hero { position: relative; padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--s-7); overflow: hidden; isolation: isolate; }
.cd-hero__bg { position: absolute; inset: 0; z-index: -1; }
.cd-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(1.1); }
.cd-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-base) 15%, rgba(8, 10, 15, 0.75) 55%, rgba(8, 10, 15, 0.6)), linear-gradient(0deg, var(--bg-base) 0%, transparent 50%); }
.cd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; }
.cd-hero__content { display: flex; flex-direction: column; gap: var(--s-4); max-width: 680px; }
.cd-hero h1 { font-size: var(--fs-h1); }
.cd-hero__desc { color: var(--text-soft); font-size: var(--fs-lg); }
.cd-hero__rating { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.cd-hero__rating svg { width: 16px; height: 16px; color: #FBBF24; }
.cd-cover { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-modal), 0 0 60px rgba(124, 58, 237, 0.25); }
.cd-cover img { width: 100%; height: 100%; object-fit: cover; }
.cd-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 30%, rgba(8, 10, 15, 0.6)); }
.cd-cover__play { position: absolute; z-index: 1; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(124, 58, 237, 0.9); color: #fff; box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.2), var(--glow-violet-lg); transition: transform var(--t-micro) var(--ease); }
.cd-cover__play:hover { transform: scale(1.08); }
.cd-cover__play svg { width: 28px; height: 28px; margin-left: 4px; }
.cd-cover__label { position: absolute; z-index: 1; left: var(--s-4); bottom: var(--s-4); }
@media (min-width: 1024px) {
  .cd-hero { padding-top: calc(var(--header-h) + var(--s-8)); }
  .cd-hero__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-8); }
}

.cd-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-2); }
@media (min-width: 640px) { .cd-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-fact { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: rgba(17, 24, 39, 0.7); border: 1px solid var(--border-subtle); border-radius: var(--r-md); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cd-fact svg { width: 20px; height: 20px; color: var(--violet-soft); flex-shrink: 0; }
.cd-fact small { display: block; font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cd-fact strong { font-size: var(--fs-sm); font-weight: 600; }

.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 1024px) { .cd-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); align-items: start; } }
.cd-main { display: grid; gap: var(--s-8); min-width: 0; }
.cd-block h2 { font-size: 1.75rem; margin-bottom: var(--s-5); }
.learn-grid { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); padding: var(--s-5); }
@media (min-width: 640px) { .learn-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); } }
.learn-grid li { display: flex; gap: var(--s-3); font-size: var(--fs-sm); line-height: 1.5; }
.learn-grid svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }
.curriculum-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.curriculum-head h2 { margin: 0; }
.curriculum-head span { font-size: var(--fs-sm); color: var(--text-secondary); }
.lesson-list { display: grid; }
.lesson { display: flex; align-items: center; gap: var(--s-3); padding: 12px 0; border-top: 1px solid var(--border-subtle); color: var(--text-soft); }
.lesson:first-child { border-top: 0; }
.lesson__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-subtle); flex-shrink: 0; }
.lesson__icon svg { width: 13px; height: 13px; }
.lesson__title { flex: 1; font-size: var(--fs-sm); color: var(--text); }
.lesson__time { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lesson--preview .lesson__icon { background: var(--violet-muted); border-color: var(--violet-bright); color: var(--violet-soft); }
.lesson__free { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.06em; }
.instructor-card { display: grid; gap: var(--s-4); }
.instructor-card__top { display: flex; align-items: center; gap: var(--s-4); }
.instructor-card__top strong { display: block; font-family: var(--font-heading); font-size: 1.2rem; }
.instructor-card__top span { font-size: var(--fs-sm); color: var(--text-secondary); }
.instructor-card p { color: var(--text-secondary); font-size: var(--fs-sm); }

/* Sticky subscribe card */
.sub-card { position: sticky; top: calc(var(--header-h) + var(--s-5)); padding: var(--s-6) var(--s-5); border: 1px solid rgba(139, 92, 246, 0.5); background: linear-gradient(160deg, var(--bg-elevated-hover), var(--bg-elevated) 60%, rgba(34, 211, 238, 0.12)); box-shadow: var(--shadow-modal), 0 0 40px rgba(124, 58, 237, 0.2); display: grid; gap: var(--s-4); }
.sub-card h3 { font-size: 1.35rem; }
.sub-card p { color: var(--text-soft); font-size: var(--fs-sm); }
.sub-card__price { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; line-height: 1; }
.sub-card__price small { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 400; }
.sub-card ul { display: grid; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--border-subtle); }
.sub-card li { display: flex; gap: var(--s-2); font-size: var(--fs-sm); }
.sub-card li svg { width: 18px; height: 18px; color: var(--violet-bright); flex-shrink: 0; }
.sub-card__note { text-align: center; font-size: var(--fs-xs) !important; color: var(--text-muted) !important; }

/* Mobile sticky subscribe bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-4) calc(12px + env(safe-area-inset-bottom)); background: rgba(8, 10, 15, 0.9); border-top: 1px solid var(--border-subtle); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(110%); transition: transform var(--t-base) var(--ease); }
.mobile-cta.is-visible { transform: none; }
.mobile-cta div { flex: 1; min-width: 0; }
.mobile-cta strong { display: block; font-size: var(--fs-sm); }
.mobile-cta span { font-size: var(--fs-xs); color: var(--text-secondary); }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
@media (max-width: 1023.98px) { .sub-card { position: static; } .has-mobile-cta .footer { padding-bottom: 76px; } }

/* ================= GUIDES ================= */
.guide-feature { display: grid; gap: var(--s-5); overflow: hidden; padding: 0; }
.guide-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.guide-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out); }
.guide-feature:hover .guide-feature__media img { transform: scale(1.04); }
.guide-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, rgba(17, 24, 39, 0.8)); }
.guide-feature__body { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding: 0 var(--s-5) var(--s-6); }
.guide-feature__body h2 { font-size: var(--fs-h2); }
.guide-feature__body p { color: var(--text-soft); }
@media (min-width: 1024px) {
  .guide-feature { grid-template-columns: 1.3fr 1fr; gap: 0; }
  .guide-feature__media { aspect-ratio: auto; min-height: 380px; }
  .guide-feature__body { padding: var(--s-7); }
}
.guide-grid { display: grid; gap: var(--s-7) var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.newsletter { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-6); overflow: hidden; }
.newsletter h3 { font-size: 1.5rem; }
.newsletter p { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: var(--s-2); }
.newsletter form { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.newsletter .input { flex: 1 1 220px; }
@media (min-width: 1024px) { .newsletter { grid-template-columns: 1fr 1fr; padding: var(--s-7); } }
@media (max-width: 479.98px) { .newsletter form .btn { width: 100%; } }

/* ================= RESOURCES ================= */
.res-cats { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s-8); }
@media (min-width: 1024px) { .res-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.res-cat { display: flex; flex-direction: column; gap: var(--s-3); text-align: left; cursor: pointer; }
.res-cat strong { font-family: var(--font-heading); font-size: 1.05rem; }
.res-cat span { font-size: var(--fs-xs); color: var(--text-secondary); }
.res-cat.is-active { border-color: var(--violet-bright); box-shadow: 0 0 24px rgba(124, 58, 237, 0.2); background: linear-gradient(160deg, var(--bg-elevated-hover), var(--bg-elevated)); }
@media (max-width: 479.98px) { .res-cat { padding: var(--s-4); } .res-cats .res-cat:last-child { grid-column: span 2; } }

/* ================= PRICING PAGE ================= */
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--r-lg); background: var(--bg-elevated); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.compare th:first-child, .compare td:first-child { text-align: left; white-space: normal; min-width: 180px; color: var(--text-soft); }
.compare thead th { font-family: var(--font-heading); font-size: var(--fs-body); background: var(--bg-surface); position: sticky; top: 0; }
.compare thead th.is-featured { color: var(--violet-soft); }
.compare td.is-featured { background: rgba(124, 58, 237, 0.07); }
.compare tr:last-child td { border-bottom: 0; }
.compare svg { width: 18px; height: 18px; margin: auto; color: var(--cyan); }
.compare .compare__no { color: var(--text-muted); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 1024px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: var(--s-8); } }

/* ================= LOGIN ================= */
.auth { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .auth { grid-template-columns: 1.05fr 1fr; } }
.auth__visual { position: relative; display: none; overflow: hidden; isolation: isolate; }
@media (min-width: 1024px) { .auth__visual { display: flex; flex-direction: column; justify-content: space-between; padding: var(--s-7); } }
.auth__visual > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.auth__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 15, 0.6), rgba(8, 10, 15, 0.2) 40%, rgba(8, 10, 15, 0.95)), linear-gradient(90deg, transparent 60%, var(--bg-base)), radial-gradient(60% 50% at 30% 70%, rgba(124, 58, 237, 0.3), transparent); }
.auth__quote { display: grid; gap: var(--s-5); max-width: 460px; }
.auth__quote p { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 600; line-height: 1.3; }
.auth__panel { display: flex; flex-direction: column; padding: var(--s-5) var(--s-4) var(--s-6); }
@media (min-width: 480px) { .auth__panel { padding-inline: var(--s-6); } }
.auth__top { display: flex; align-items: center; justify-content: space-between; }
.auth__top .link-arrow svg { transform: rotate(180deg); }
.auth__form-wrap { width: 100%; max-width: 420px; margin: auto; padding-block: var(--s-7); display: grid; gap: var(--s-5); }
.auth__form-wrap h1 { font-size: 2rem; }
.auth__form-wrap > p { color: var(--text-soft); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.seg button { height: 40px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-secondary); transition: all var(--t-micro) var(--ease); }
.seg button.is-active { background: var(--bg-elevated-hover); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--border-strong); }
.auth form { display: grid; gap: var(--s-4); }
.pw { position: relative; }
.pw .input { padding-right: 48px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-muted); border-radius: 8px; }
.pw button:hover { color: var(--text); }
.pw svg { width: 18px; height: 18px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--text-secondary); gap: var(--s-3); }
.auth__row a { color: var(--violet-soft); display: inline-flex; align-items: center; min-height: 44px; }
.check { min-height: 44px; }
.check { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--violet); }
.divider { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
.socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.socials .btn { padding-inline: 0; }
.plan-pick { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid rgba(139, 92, 246, 0.45); background: var(--violet-muted); font-size: var(--fs-sm); }
.plan-pick svg { width: 18px; height: 18px; color: var(--violet-soft); }
.plan-pick a { margin-left: auto; color: var(--violet-soft); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.auth__legal { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; }
[hidden] { display: none !important; }

/* ================= DASHBOARD ================= */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100svh; }
@media (min-width: 1024px) { .app { grid-template-columns: 260px 1fr; } }
.sidebar { display: none; position: sticky; top: 0; height: 100svh; flex-direction: column; gap: var(--s-6); padding: var(--s-5); border-right: 1px solid var(--border-subtle); background: rgba(13, 17, 26, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (min-width: 1024px) { .sidebar { display: flex; } }
.side-nav { display: grid; gap: 4px; }
.side-nav__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; padding: var(--s-4) 12px var(--s-2); }
.side-link { display: flex; align-items: center; gap: var(--s-3); height: 42px; padding-inline: 12px; border-radius: 10px; font-size: var(--fs-sm); color: var(--text-secondary); transition: all var(--t-micro) var(--ease); }
.side-link svg { width: 18px; height: 18px; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.side-link.is-active { color: var(--text); background: var(--violet-muted); box-shadow: inset 2px 0 0 var(--violet-bright); }
.side-link.is-active svg { color: var(--violet-soft); }
.side-link .count { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: var(--r-full); background: var(--violet); color: #fff; }
.side-plan { margin-top: auto; padding: var(--s-4); display: grid; gap: var(--s-3); background: linear-gradient(160deg, var(--bg-elevated-hover), rgba(34, 211, 238, 0.1)); border-color: rgba(139, 92, 246, 0.4); }
.side-plan strong { font-family: var(--font-heading); }
.side-plan span { font-size: var(--fs-xs); color: var(--text-secondary); }

.app__main { min-width: 0; padding-bottom: 88px; }
@media (min-width: 1024px) { .app__main { padding-bottom: var(--s-7); } }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--s-3); height: 68px; padding-inline: var(--s-4); border-bottom: 1px solid var(--border-subtle); background: rgba(8, 10, 15, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 768px) { .topbar { padding-inline: var(--s-6); } }
.topbar .search { flex: 1 1 auto; max-width: 420px; }
.topbar .search .input { height: 42px; }
@media (min-width: 1024px) { .topbar__logo { display: none; } }
@media (max-width: 639.98px) { .topbar .search { display: none; } .topbar__logo { margin-right: auto; } }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; border: 1px solid var(--border-subtle); background: var(--bg-surface); color: var(--text-secondary); flex-shrink: 0; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--bg-surface); }
.topbar__user { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
@media (max-width: 639.98px) { .topbar__user { margin-left: 0; } }
.topbar__user .avatar { width: 38px; height: 38px; font-size: 13px; box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3px var(--violet-bright); }
.topbar__user span { font-size: var(--fs-sm); font-weight: 600; }
@media (max-width: 767.98px) { .topbar__user span { display: none; } }
.demo-flag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); padding: 3px 8px; border-radius: var(--r-full); border: 1px solid rgba(34, 211, 238, 0.35); background: var(--cyan-muted); white-space: nowrap; }
@media (max-width: 479.98px) { .demo-flag { display: none; } }

.dash { padding: var(--s-5) var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 768px) { .dash { padding: var(--s-6); } }
@media (min-width: 1280px) { .dash { padding: var(--s-7); } }
/* The swipe rail bleeds to the screen edge; match the dashboard's own gutter. */
@media (max-width: 767.98px) { .dash .rail { margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); } }
.welcome { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-6) var(--s-5); border-radius: var(--r-xl); border: 1px solid var(--border-subtle); background: linear-gradient(120deg, rgba(124, 58, 237, 0.25), rgba(17, 24, 39, 0.9) 50%, rgba(34, 211, 238, 0.12)); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/contours-a.svg") center / cover; opacity: 0.35; }
.welcome h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }
.welcome p { color: var(--text-soft); }
@media (min-width: 900px) { .welcome { grid-template-columns: 1fr auto; align-items: center; padding: var(--s-7); } }
/* Seven equal, shrinkable columns: fits 320px without overflowing and keeps
   the 34px day tiles once there is room. */
.streak { display: grid; grid-template-columns: repeat(7, minmax(0, 38px)); gap: var(--s-2); }
.streak__day { min-width: 0; display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); }
.streak__day i { width: 100%; max-width: 34px; aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-subtle); display: grid; place-items: center; }
.streak__day.is-done i { background: linear-gradient(135deg, var(--violet), #6D28D9); border-color: var(--violet-bright); box-shadow: 0 0 12px var(--violet-glow); }
.streak__day.is-done i svg { width: 14px; height: 14px; color: #fff; }
.streak__day.is-today i { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-muted); }
@media (max-width: 379.98px) { .streak { gap: 6px; } }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); } }
.kpi { display: grid; gap: var(--s-3); padding: var(--s-4); }
@media (min-width: 900px) { .kpi { padding: var(--s-5); } }
.kpi__top { display: flex; justify-content: space-between; align-items: center; }
.kpi__value { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.kpi__label { font-size: var(--fs-sm); color: var(--text-secondary); }
.kpi__trend { font-size: var(--fs-xs); font-weight: 600; color: var(--success); }

.dash-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); }
.dash-head h2 { font-size: 1.35rem; }
.continue-grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .continue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.continue { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); padding: var(--s-3); align-items: center; }
@media (min-width: 768px) { .continue { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; } .continue__body { padding: 0 var(--s-5) var(--s-5); } }
.continue__media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
@media (min-width: 768px) { .continue__media { border-radius: 0; } }
.continue__media img { width: 100%; height: 100%; object-fit: cover; }
.continue__media .course-card__play { opacity: 1; transform: none; width: 36px; height: 36px; right: 8px; bottom: 8px; }
@media (max-width: 767.98px) { .continue__media .course-card__play { display: none; } }
.continue__body { display: grid; gap: 6px; min-width: 0; }
.continue__body small { font-size: var(--fs-xs); color: var(--cyan); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.continue__body strong { font-family: var(--font-heading); font-size: 1rem; line-height: 1.3; }
.continue__body span { font-size: var(--fs-xs); color: var(--text-secondary); }
.continue__body .progress { margin-top: 4px; }

.dash-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 1200px) { .dash-split { grid-template-columns: 1.5fr 1fr; gap: var(--s-6); } }
.sessions { display: grid; gap: var(--s-3); }
.session { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); }
.session__date { width: 56px; flex-shrink: 0; text-align: center; padding: 8px 0; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.session__date b { display: block; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1; }
.session__date small { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
.session__info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.session__info strong { font-size: var(--fs-sm); }
.session__info span { font-size: var(--fs-xs); color: var(--text-secondary); }
@media (max-width: 479.98px) { .session .btn { display: none; } }
.plan-status { display: grid; gap: var(--s-4); padding: var(--s-5); border-color: rgba(139, 92, 246, 0.45); background: linear-gradient(150deg, var(--bg-elevated-hover), var(--bg-elevated) 55%, rgba(34, 211, 238, 0.14)); }
.plan-status__top { display: flex; justify-content: space-between; align-items: center; }
.plan-status strong { font-family: var(--font-heading); font-size: 1.35rem; }
.plan-status p { font-size: var(--fs-sm); color: var(--text-secondary); }
.plan-status__dates { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); }

/* Mobile bottom tab bar for the app */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(8, 10, 15, 0.92); border-top: 1px solid var(--border-subtle); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--text-muted); }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--violet-soft); }
