:root {
  --cream: #f7efe5;
  --cream-2: #efe0cc;
  --green: #2e6b4d;
  --green-dark: #1d4b35;
  --ink: #121212;
  --muted: #5f544a;
  --gold: #cda454;
  --surface: #fffdf9;
  --border: rgba(18, 18, 18, 0.08);
  --shadow: 0 20px 45px rgba(18, 18, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: linear-gradient(180deg, var(--cream) 0%, #fcf8f2 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 239, 229, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: white;
  font-size: 0.95rem;
}

.brand__logo {
  display: block;
  height: 2.45rem;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.auth-brand__link {
  display: inline-flex;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

/* Only the marketing homepage (index.php) uses the large hero-scale
   headings above. Every other screen (auth, cabinet, admin) shares one
   smaller, consistent heading scale so nothing looks oversized. */
.auth-page h1,
.cabinet-page h1,
.admin-page h1,
.auth-page h2,
.cabinet-page h2,
.admin-page h2 {
  max-width: none;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.auth-page h3,
.cabinet-page h3,
.admin-page h3 {
  font-size: 1.05rem;
}

.hero__lead,
.section__heading p,
.card p,
.review-card p,
.faq-answer p,
.sidebar p,
.content-stack p,
.rich-text {
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: white;
  box-shadow: 0 12px 24px rgba(46, 107, 77, 0.18);
}

.btn--secondary {
  background: white;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  padding: 0.6rem 0.95rem;
}

.btn--small {
  padding: 0.6rem 0.95rem;
}

.btn--full {
  width: 100%;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.7rem;
}

.hero__meta > div {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--border);
  min-width: 180px;
}

.hero__image-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hero__image-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 253, 249, 0.92);
  border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.hero__badge span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.trustbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 3rem;
}

.trustbar__item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
}

.trustbar__item strong {
  display: block;
  font-size: 1.25rem;
  color: var(--green);
}

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__heading {
  margin-bottom: 1.6rem;
  max-width: 700px;
}

.section__heading--tight {
  margin-bottom: 1.2rem;
}

.card-grid,
.modules-grid,
.review-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.modules-grid {
  grid-template-columns: repeat(2, 1fr);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.cabinet-page .card-grid .card,
.admin-page .card-grid .card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cabinet-page .card-grid .card:hover,
.admin-page .card-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(18, 18, 18, 0.1);
}

.form-actions-sticky {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
}

.stat-card {
  text-align: center;
}

.stat-card .icon-wrap {
  margin-left: auto;
  margin-right: auto;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.icon-wrap {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 107, 77, 0.12), rgba(205, 164, 84, 0.18));
  color: var(--green);
  font-size: 1.15rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: center;
}

.split-grid--reverse {
  direction: rtl;
}

.split-grid--reverse > * {
  direction: ltr;
}

.large-card {
  padding: 0;
  overflow: hidden;
}

.large-card img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.check-list {
  padding-left: 1.1rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.video-shell {
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
}

.video-shell video {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.video-shell--embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 0.6rem;
}

.video-shell--embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.module-card__num {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.review-card strong {
  display: block;
  margin-top: 0.8rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  padding-top: 0.7rem;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--green);
}

.pricing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
}

.pricing-card__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cabinet-page,
.admin-page {
  position: relative;
  padding: 2rem 0 3rem;
  overflow-x: hidden;
}

.cabinet-page::before,
.admin-page::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -180px;
  right: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
}

.cabinet-page::after,
.admin-page::after {
  content: '';
  position: absolute;
  z-index: 0;
  bottom: -200px;
  left: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.cabinet-shell,
.admin-shell {
  position: relative;
  z-index: 1;
}

.cabinet-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 6rem;
}

.sidebar__avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--gold));
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 10px 20px rgba(46, 107, 77, 0.25);
}

.progress-block {
  margin: 1.2rem 0 1.4rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(46, 107, 77, 0.12);
  overflow: hidden;
}

.progress-bar span {
  position: relative;
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: inherit;
  transition: width 320ms ease;
  overflow: hidden;
}

.progress-bar span::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

.cabinet-nav {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0;
}

.cabinet-nav a {
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.cabinet-nav a.active,
.cabinet-nav a:hover {
  background: rgba(46, 107, 77, 0.1);
  color: var(--green);
  transform: translateX(3px);
}

.content-stack {
  display: grid;
  gap: 1.2rem;
}

.module-block {
  position: relative;
  padding: 1.2rem 0 1.2rem 1rem;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 14px 14px 0;
}

.module-block:nth-of-type(2n) {
  border-left-color: var(--gold);
}

.module-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.module-block .module-list {
  margin-top: 0.6rem;
}

.lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.9rem;
  border-radius: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 160ms ease, transform 160ms ease;
}

.lesson-item:hover {
  background: rgba(46, 107, 77, 0.06);
  transform: translateX(4px);
}

.lesson-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.9rem;
}

.toggle {
  position: relative;
  width: 3.1rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.14);
  cursor: pointer;
  transition: background 200ms ease;
}

.toggle span::after {
  content: '';
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  left: 0.2rem;
  top: 0.2rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(18, 18, 18, 0.18);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle input:checked + span {
  background: linear-gradient(135deg, var(--green), var(--gold));
}

.toggle input:checked + span::after {
  transform: translateX(1.35rem) scale(1.05);
}

.course-tree {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0;
}

.course-tree__module {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.course-tree__module summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

.course-tree__module summary::-webkit-details-marker {
  display: none;
}

.course-tree__module summary::after {
  content: '›';
  margin-left: auto;
  transform: rotate(90deg);
  transition: transform 160ms ease;
  color: var(--muted);
}

.course-tree__module[open] summary::after {
  transform: rotate(-90deg);
}

.course-tree__module summary .badge {
  margin-left: 0.4rem;
}

.course-tree__lessons {
  display: grid;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0.5rem 0.6rem;
}

.course-tree__lessons a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 140ms ease, color 140ms ease;
}

.course-tree__lessons a:hover {
  background: rgba(46, 107, 77, 0.08);
  color: var(--green);
}

.course-tree__lessons a.is-active {
  background: rgba(46, 107, 77, 0.14);
  color: var(--green-dark);
}

.course-tree__status {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  color: rgba(18, 18, 18, 0.25);
}

.course-tree__lessons a.is-done .course-tree__status {
  color: var(--green);
}

.course-tree__empty {
  padding: 0.4rem 0.6rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.lesson-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.lesson-panel__header h2 {
  margin: 0;
}

.lesson-panel__nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.download-list {
  display: grid;
  gap: 0.8rem;
}

.download-list a {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(46, 107, 77, 0.08);
  color: var(--green);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.download-list a:hover {
  background: rgba(46, 107, 77, 0.14);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 107, 77, 0.14);
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 0;
  overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.auth-page::before {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
}

.auth-page::after {
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.auth-page .container {
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 2.75rem 2.5rem;
  border-radius: 28px;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.auth-card__header {
  text-align: center;
  margin-bottom: 1.9rem;
}

.auth-card__header .eyebrow {
  display: block;
}


.auth-card__lead {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  font-size: 1rem;
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid rgba(18, 18, 18, 0.1);
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(18, 18, 18, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(95, 84, 74, 0.55);
}

.form-field input:hover,
.form-field textarea:hover,
.form-field select:hover {
  border-color: rgba(18, 18, 18, 0.18);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 107, 77, 0.14);
}

.form-field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.auth-card .form-actions {
  margin-top: 1.8rem;
}

.auth-card .btn--primary {
  width: 100%;
  padding: 0.95rem 1.25rem;
}

.form-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.form-note--back {
  margin-top: 0.6rem;
}

.form-note a {
  color: var(--green);
}

.form-note a:hover {
  text-decoration: underline;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.alert--error {
  background: rgba(178, 47, 47, 0.1);
  color: #8f2a2a;
  border: 1px solid rgba(178, 47, 47, 0.2);
}

.alert--success {
  background: rgba(46, 107, 77, 0.1);
  color: var(--green-dark);
  border: 1px solid rgba(46, 107, 77, 0.2);
}

.admin-page {
  padding: 2rem 0 3rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
}

.admin-nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  align-self: start;
  position: sticky;
  top: 6rem;
}

.admin-nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: rgba(46, 107, 77, 0.1);
  color: var(--green);
  transform: translateX(3px);
}

.admin-nav a.active {
  background: linear-gradient(135deg, rgba(46, 107, 77, 0.14), rgba(205, 164, 84, 0.14));
  font-weight: 800;
}

.admin-content {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.data-table tbody tr {
  border-radius: 14px;
  transition: background 140ms ease;
}

.data-table tbody tr:hover {
  background: rgba(46, 107, 77, 0.05);
}

.row-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.row-actions form {
  display: contents;
}

.row-actions a,
.row-actions button {
  font: inherit;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.row-actions .danger {
  color: #b23c3c;
}

.rich-text p {
  margin: 0 0 0.6rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
}

.rich-text a {
  color: var(--green);
  text-decoration: underline;
}

.homework-block {
  margin-top: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(205, 164, 84, 0.12);
  border: 1px solid rgba(205, 164, 84, 0.25);
}

.homework-block__label {
  margin: 0 0 0.4rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--green-dark);
}

.video-source-toggle {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.video-source-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(18, 18, 18, 0.1);
  background: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.video-source-option input {
  margin: 0;
}

.wysiwyg {
  border-radius: 14px;
  border: 1.5px solid rgba(18, 18, 18, 0.1);
}

.wysiwyg .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 14px 14px 0 0;
  background: rgba(46, 107, 77, 0.05);
  font-family: 'Manrope', sans-serif;
}

.wysiwyg .ql-container.ql-snow {
  border: none;
  border-radius: 0 0 14px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  background: var(--cream);
  min-height: 140px;
}

.wysiwyg .ql-editor {
  min-height: 140px;
  color: var(--ink);
}

.wysiwyg .ql-editor.ql-blank::before {
  color: rgba(95, 84, 74, 0.55);
  font-style: normal;
}

.drag-handle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-right: 0.3rem;
}

.sortable-row {
  cursor: grab;
  user-select: none;
  -webkit-user-drag: element;
  touch-action: pan-y;
  transition: background 120ms ease;
}

.sortable-row:active {
  cursor: grabbing;
}

.sortable-row.dragging {
  cursor: grabbing;
  opacity: 0.4;
  background: rgba(46, 107, 77, 0.06);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(46, 107, 77, 0.1);
  color: var(--green);
}

@media (max-width: 900px) {
  .hero,
  .split-grid,
  .cabinet-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .trustbar,
  .card-grid,
  .modules-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}
