:root {
  --primary: #7776bc;
  --primary-deep: #5f5ea9;
  --primary-soft: #cdc7e5;
  --surface: #fffdf1;
  --surface-strong: #fff7d0;
  --background: #fffbdb;
  --ink: #282546;
  --ink-soft: #5a5878;
  --border: rgba(72, 67, 109, 0.14);
  --border-strong: rgba(72, 67, 109, 0.28);
  --success: #228c68;
  --success-soft: rgba(34, 140, 104, 0.14);
  --warning: #c9831a;
  --warning-soft: rgba(201, 131, 26, 0.14);
  --error: #c14d67;
  --error-soft: rgba(193, 77, 103, 0.14);
  --shadow-lg: 0 28px 60px rgba(64, 54, 122, 0.18);
  --shadow-md: 0 14px 30px rgba(64, 54, 122, 0.14);
  --shadow-sm: 0 8px 18px rgba(64, 54, 122, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 30px;
  --space-7: 38px;
  --tap: 46px;
  --font-ui: "Avenir Next", "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at top left, rgba(205, 199, 229, 0.55), transparent 42%),
    radial-gradient(circle at bottom right, rgba(119, 118, 188, 0.14), transparent 40%),
    linear-gradient(180deg, #fffdf1 0%, var(--background) 52%, #fff7d7 100%);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  z-index: 0;
  opacity: 0.58;
  filter: blur(1px);
}

.ambient-one {
  width: 240px;
  height: 240px;
  background: rgba(205, 199, 229, 0.72);
  top: -70px;
  right: -40px;
}

.ambient-two {
  width: 112px;
  height: 112px;
  background: rgba(119, 118, 188, 0.18);
  left: -32px;
  top: 24%;
}

.ambient-three {
  width: 180px;
  height: 22px;
  background: rgba(119, 118, 188, 0.18);
  transform: rotate(-16deg);
  bottom: 9%;
  right: -56px;
  border-radius: 22px;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px;
}

.device-shell {
  position: relative;
  width: min(100%, 430px);
}

.device-shadow {
  position: absolute;
  inset: 16px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0.96) translateY(10px);
  filter: blur(18px);
}

.app-frame {
  position: relative;
  min-height: min(844px, calc(100vh - 28px));
  background: linear-gradient(180deg, #fffdf4 0%, #fff7dc 100%);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.app-frame::before,
.app-frame::after {
  content: "";
  position: absolute;
  z-index: 0;
}

.app-frame::before {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(205, 199, 229, 0.46);
  top: 66px;
  right: -36px;
}

.app-frame::after {
  width: 18px;
  height: 180px;
  border-radius: 20px;
  background: rgba(119, 118, 188, 0.14);
  left: -6px;
  bottom: 130px;
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 28px;
  border-radius: 0 0 18px 18px;
  background: rgba(52, 46, 90, 0.9);
  z-index: 3;
}

.status-strip,
.topbar,
.screen-stage,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 4px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-icons {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.status-pill {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 37, 70, 0.88);
}

.status-pill.short {
  width: 12px;
  opacity: 0.85;
}

.status-pill.tiny {
  width: 8px;
  opacity: 0.72;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 20px 8px;
}

.topbar.hidden,
.bottom-nav.hidden {
  display: none;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, #fffbdb 0 22%, transparent 23%),
    linear-gradient(135deg, var(--primary) 0 56%, var(--primary-soft) 56% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.brand-copy strong,
.topbar-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-copy span,
.topbar-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--primary-soft), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-weight: 800;
  color: var(--primary-deep);
}

.icon-button {
  width: var(--tap);
  height: var(--tap);
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.icon-button:active,
.btn:active,
.chip-button:active,
.answer-option:active,
.bottom-nav-button:active,
.module-action:active {
  transform: translateY(1px) scale(0.99);
}

.screen-stage {
  padding: 4px 18px 108px;
  min-height: calc(100% - 128px);
}

.screen {
  display: grid;
  gap: var(--space-4);
  animation: screen-in 260ms ease;
}

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

.hero-panel,
.card,
.course-card,
.module-card,
.dashboard-feature,
.certificate-card,
.pricing-card,
.media-panel,
.quiz-card,
.result-card,
.empty-card,
.timeline-card,
.sheet,
.metric-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(119, 118, 188, 0.98), rgba(95, 94, 169, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent);
  color: #fffef7;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 251, 219, 0.16);
}

.hero-panel::before {
  width: 150px;
  height: 150px;
  right: -35px;
  top: -30px;
}

.hero-panel::after {
  width: 14px;
  height: 100px;
  left: 20px;
  bottom: -20px;
}

.hero-accent-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.hero-accent-row span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 251, 219, 0.32);
}

.hero-accent-row span:nth-child(1) {
  width: 58px;
  height: 10px;
}

.hero-accent-row span:nth-child(2) {
  width: 12px;
  height: 12px;
}

.hero-accent-row span:nth-child(3) {
  width: 90px;
  height: 10px;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-panel .eyebrow {
  color: rgba(255, 251, 219, 0.82);
}

.hero-title {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 6vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy,
.muted,
.section-copy,
.small-copy {
  color: inherit;
  opacity: 0.9;
  line-height: 1.5;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.section-title {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.stack-sm,
.stack-md,
.stack-lg {
  display: grid;
}

.stack-sm {
  gap: var(--space-2);
}

.stack-md {
  gap: var(--space-3);
}

.stack-lg {
  gap: var(--space-4);
}

.card,
.course-card,
.module-card,
.dashboard-feature,
.certificate-card,
.timeline-card,
.metric-card,
.result-card,
.pricing-card,
.empty-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 112px;
  background:
    linear-gradient(180deg, rgba(205, 199, 229, 0.34), rgba(255, 255, 255, 0.8)),
    rgba(255, 255, 255, 0.8);
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.metric-value {
  display: block;
  margin-top: 14px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-foot {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.btn-row,
.chip-row,
.meta-row,
.course-row,
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  min-height: var(--tap);
  padding: 12px 16px;
  border-radius: 16px;
  border: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
  background: var(--primary);
  color: #fffef8;
  box-shadow: 0 12px 24px rgba(95, 94, 169, 0.28);
}

.btn-secondary {
  background: rgba(205, 199, 229, 0.74);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.btn-tonal {
  background: rgba(255, 251, 219, 0.88);
  color: var(--primary-deep);
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn.full,
.input,
.module-action,
.answer-option,
.sheet button {
  width: 100%;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-glyph {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f7d365 0 49%, transparent 49%),
    linear-gradient(225deg, #ef7c72 0 49%, transparent 49%),
    linear-gradient(315deg, #5da1f7 0 49%, transparent 49%),
    linear-gradient(45deg, #4cb985 0 49%, transparent 49%);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
  color: var(--ink);
}

.input,
.text-area {
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
}

.input:focus,
.text-area:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(119, 118, 188, 0.12);
}

.form-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-lg);
}

.inline-note,
.note-box,
.status-banner,
.review-chip {
  border-radius: 16px;
  padding: 12px 14px;
}

.inline-note {
  background: var(--success-soft);
  color: var(--success);
}

.note-box {
  background: rgba(205, 199, 229, 0.28);
  color: var(--ink);
}

.status-banner {
  border: 1px solid transparent;
}

.status-banner.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-banner.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-banner.error {
  background: var(--error-soft);
  color: var(--error);
}

.chip-row {
  align-items: center;
}

.chip,
.chip-button,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip,
.pill {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
}

.chip-button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.chip-button.active {
  background: var(--primary);
  color: #fff;
}

.badge.free {
  background: rgba(34, 140, 104, 0.12);
  color: var(--success);
}

.badge.subscription {
  background: rgba(119, 118, 188, 0.14);
  color: var(--primary-deep);
}

.badge.onetime {
  background: rgba(201, 131, 26, 0.14);
  color: var(--warning);
}

.badge.completed {
  background: var(--success-soft);
  color: var(--success);
}

.badge.progress {
  background: rgba(119, 118, 188, 0.12);
  color: var(--primary-deep);
}

.badge.locked {
  background: rgba(193, 77, 103, 0.12);
  color: var(--error);
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(119, 118, 188, 0.12);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, #a4a2ea 100%);
  transition: width 280ms ease;
}

.course-card,
.dashboard-feature {
  display: grid;
  gap: 14px;
}

.course-card-head,
.module-head,
.timeline-item,
.pricing-head,
.profile-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.course-card h3,
.dashboard-feature h3,
.module-card h3,
.pricing-card h3,
.certificate-card h2,
.quiz-card h2,
.media-panel h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.course-card p,
.dashboard-feature p,
.module-card p,
.pricing-card p,
.timeline-card p,
.media-panel p,
.result-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.course-meta-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.mini-stat strong {
  display: block;
  font-size: 1rem;
}

.mini-stat span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.featured-band {
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(205, 199, 229, 0.5)),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
}

.module-card {
  display: grid;
  gap: 14px;
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(205, 199, 229, 0.44);
  color: var(--primary-deep);
  font-size: 1rem;
  flex: 0 0 auto;
}

.module-head-left {
  display: flex;
  gap: 12px;
}

.module-action {
  min-height: var(--tap);
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  background: rgba(119, 118, 188, 0.12);
  color: var(--primary-deep);
}

.module-action.primary {
  background: var(--primary);
  color: #fff;
}

.module-action.warning {
  background: rgba(201, 131, 26, 0.14);
  color: var(--warning);
}

.module-action.locked {
  background: rgba(193, 77, 103, 0.12);
  color: var(--error);
}

.media-panel,
.quiz-card {
  border-radius: var(--radius-xl);
  padding: 20px;
}

.video-frame,
.interactive-frame {
  position: relative;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(119, 118, 188, 0.94), rgba(52, 46, 90, 0.96));
  color: #fff;
  display: grid;
  place-items: center;
}

.video-frame::before,
.interactive-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 251, 219, 0.2), transparent 22%),
    radial-gradient(circle at 22% 70%, rgba(205, 199, 229, 0.28), transparent 22%);
  pointer-events: none;
}

.video-frame > *,
.interactive-frame > * {
  position: relative;
  z-index: 1;
}

.play-token {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-token::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 5px;
}

.video-caption,
.webview-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.86rem;
}

.skeleton,
.skeleton-line,
.skeleton-button {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.58);
}

.skeleton::after,
.skeleton-line::after,
.skeleton-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.66), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton {
  min-height: 210px;
  border-radius: 22px;
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-line.medium {
  width: 68%;
}

.skeleton-button {
  height: 46px;
  border-radius: 16px;
}

.reading-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}

.reading-card h2,
.reading-card h3 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.reading-card p,
.reading-card li {
  color: var(--ink-soft);
  line-height: 1.72;
}

.reading-card ul {
  padding-left: 18px;
  margin: 0;
}

.answer-list,
.question-nav {
  display: grid;
  gap: 10px;
}

.answer-option {
  text-align: left;
  min-height: var(--tap);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.answer-option.selected {
  border-color: rgba(119, 118, 188, 0.5);
  background: rgba(119, 118, 188, 0.12);
}

.answer-option.correct {
  border-color: rgba(34, 140, 104, 0.36);
  background: var(--success-soft);
}

.answer-option.incorrect {
  border-color: rgba(193, 77, 103, 0.36);
  background: var(--error-soft);
}

.answer-prefix {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  margin-right: 10px;
  background: rgba(205, 199, 229, 0.46);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.feedback-card {
  padding: 14px;
  border-radius: 18px;
}

.feedback-card.correct {
  background: var(--success-soft);
  color: var(--success);
}

.feedback-card.incorrect {
  background: var(--error-soft);
  color: var(--error);
}

.navigator-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-dot {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  border: 0;
  background: rgba(205, 199, 229, 0.45);
  color: var(--ink);
  font-weight: 800;
}

.nav-dot.active {
  background: var(--primary);
  color: #fff;
}

.nav-dot.done {
  background: rgba(34, 140, 104, 0.16);
  color: var(--success);
}

.interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.interactive-chip {
  min-height: 74px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.interactive-chip.done {
  background: rgba(255, 251, 219, 0.22);
}

.interactive-chip span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.timeline-card {
  display: grid;
  gap: 12px;
}

.timeline-item {
  align-items: start;
}

.timeline-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(205, 199, 229, 0.44);
  display: grid;
  place-items: center;
  color: var(--primary-deep);
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.pricing-card.highlight {
  background:
    linear-gradient(180deg, rgba(119, 118, 188, 0.95), rgba(95, 94, 169, 0.92)),
    rgba(255, 255, 255, 0.8);
  color: #fffef8;
}

.pricing-card.highlight p,
.pricing-card.highlight .small-copy {
  color: rgba(255, 255, 255, 0.86);
}

.price {
  display: flex;
  align-items: end;
  gap: 8px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price strong {
  font-size: 2rem;
}

.certificate-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 208, 0.84)),
    rgba(255, 255, 255, 0.88);
}

.certificate-card::before {
  content: "";
  position: absolute;
  right: -26px;
  top: 24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(119, 118, 188, 0.12);
}

.certificate-seal {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #fff7d0 0 33%, transparent 33%),
    conic-gradient(from 0deg, var(--primary), #9a98e0, var(--primary));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow-md);
}

.course-list {
  display: grid;
  gap: 12px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  display: none;
  place-items: end center;
  background: rgba(34, 28, 58, 0.38);
  z-index: 10;
  padding: 18px;
}

.modal-layer.active {
  display: grid;
}

.sheet {
  width: min(100%, 430px);
  padding: 18px;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, #fffef7 0%, #fff7d8 100%);
}

.sheet-handle {
  width: 52px;
  height: 6px;
  border-radius: 999px;
  margin: 0 auto 16px;
  background: rgba(119, 118, 188, 0.22);
}

.toast-layer {
  position: fixed;
  inset: auto 14px 16px;
  display: grid;
  gap: 10px;
  z-index: 12;
}

.toast {
  min-width: min(92vw, 360px);
  padding: 14px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  color: #fff;
  animation: toast-in 220ms ease;
}

.toast.success {
  background: linear-gradient(135deg, #1e966f, #2cb68a);
}

.toast.warning {
  background: linear-gradient(135deg, #bf7a19, #dd9c31);
}

.toast.error {
  background: linear-gradient(135deg, #b14a61, #d96881);
}

.toast.info {
  background: linear-gradient(135deg, #6866b2, #8e8cdf);
}

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

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  padding: 10px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-lg);
}

.bottom-nav-button {
  flex: 1;
  min-height: 62px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 800;
}

.bottom-nav-button.active {
  background: rgba(119, 118, 188, 0.12);
  color: var(--primary-deep);
}

.nav-glyph {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(205, 199, 229, 0.5);
}

.empty-card {
  text-align: center;
}

.empty-graphic {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 34% 34%, rgba(255, 251, 219, 0.92) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--primary), var(--primary-soft));
}

.divider {
  height: 1px;
  background: var(--border);
}

.hidden-mobile {
  display: none;
}

@media (min-width: 760px) {
  .site-shell {
    padding: 28px;
  }

  .device-shell {
    width: min(100%, 980px);
  }

  .app-frame {
    min-height: 820px;
  }

  .screen-stage {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
