:root {
  --bg: #07101d;
  --bg-soft: #0d1727;
  --card: rgba(13, 23, 39, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: #a9b8d0;
  --blue: #4da3ff;
  --blue-dark: #2f7df0;
  --orange: #ff8c3a;
  --green: #39d98a;
  --danger: #ff5f6d;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 163, 255, 0.12), transparent 25%),
    radial-gradient(circle at top right, rgba(255, 140, 58, 0.10), transparent 18%),
    linear-gradient(180deg, #06101c 0%, #091321 100%);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section--dark {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  margin-bottom: 30px;
  text-align: center;
}

.section__head--left {
  text-align: left;
}

.section__head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.section__head p {
  max-width: 840px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.section__head--left p {
  margin: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 16, 28, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 84px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 170, 255, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  transition: 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

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

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(77, 163, 255, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.hero {
  position: relative;
  padding: 100px 0 78px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 16, 29, 0.68), rgba(7, 16, 29, 0.86)),
    url("../img/hero-bg.png") center/cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero__subtitle {
  max-width: 760px;
  font-size: 20px;
  color: var(--muted);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__buttons--center {
  justify-content: center;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__stat {
  min-width: 130px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero__stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat span {
  color: var(--muted);
  font-size: 14px;
}

.hero__card,
.card,
.faq-item,
.timeline__content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero__card {
  padding: 28px;
}

.hero__card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero__card p {
  color: var(--muted);
  margin-bottom: 22px;
}

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

.mini-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.mini-item strong {
  display: block;
  margin-bottom: 4px;
}

.mini-item span {
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(77, 163, 255, 0.14);
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.card ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.card li::before {
  content: "•";
  color: var(--blue);
  margin-right: 8px;
}

.card__actions {
  margin-top: 24px;
}

.card__links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.card__links a {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
}

.card__links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.direction-card {
  min-height: 100%;
}

.software-card {
  min-height: 100%;
}

.status {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status--live {
  color: var(--green);
  background: rgba(57, 217, 138, 0.12);
}

.status--soon {
  color: var(--orange);
  background: rgba(255, 140, 58, 0.12);
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline__item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline__marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 18px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(77, 163, 255, 0.15);
}

.timeline__item--active .timeline__marker {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(57, 217, 138, 0.16);
}

.timeline__content {
  padding: 22px;
}

.timeline__content h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.timeline__content p {
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.about--reverse {
  grid-template-columns: 1fr 1fr;
}

.about__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about__text p {
  color: var(--muted);
  font-size: 18px;
}

.about__text p + p {
  margin-top: 12px;
}

.faq {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 22px;
  background: transparent;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  cursor: pointer;
}

.faq-question span:first-child {
  font-size: 18px;
  font-weight: 700;
}

.faq-icon {
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 22px 22px;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer__links a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .hero__content,
  .cards--3,
  .cards--2,
  .about,
  .about--reverse {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .logo__img {
    height: 74px;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 84px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 16, 29, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .burger {
    display: inline-flex;
  }

  .header__actions .btn--small {
    display: none;
  }

  .section,
  .hero {
    padding: 70px 0;
  }

  .hero__text h1 {
    font-size: 40px;
  }

  .hero__subtitle,
  .section__head p,
  .about__text p {
    font-size: 17px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .logo__img {
    height: 62px;
  }

  .hero__stat {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .faq-question span:first-child {
    font-size: 16px;
  }
}

.page-hero .hero__bg {
  background:
    linear-gradient(rgba(7, 16, 29, 0.72), rgba(7, 16, 29, 0.88)),
    url("../img/hero-bg.png") center/cover no-repeat;
}

.entry-card {
  min-height: 100%;
}

@media (max-width: 860px) {
  .page-hero .hero__text h1 {
    font-size: 38px;
  }
}

.product-card {
  min-height: 100%;
}

.product-card--featured {
  border-color: rgba(77, 163, 255, 0.35);
  box-shadow: 0 18px 50px rgba(77, 163, 255, 0.08), var(--shadow);
}

.course-hero .hero__bg {
  background:
    linear-gradient(rgba(7, 16, 29, 0.72), rgba(7, 16, 29, 0.88)),
    url("../img/hero-bg.png") center/cover no-repeat;
}

.program-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.program-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.program-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 16px;
  background: rgba(77, 163, 255, 0.12);
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
}

.program-item__content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.program-item__content p {
  color: var(--muted);
}

.course-offer {
  align-items: center;
}

.offer-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.offer-point {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

@media (max-width: 780px) {
  .program-item {
    grid-template-columns: 1fr;
  }

  .program-item__num {
    min-height: 56px;
    width: 100%;
  }
}

.price-block {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.price-main {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.price-note {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 6px;
}

.price-sub {
  color: var(--muted);
  font-size: 14px;
}

.premium-offer {
  border-color: rgba(255, 140, 58, 0.25);
  box-shadow: 0 18px 50px rgba(255, 140, 58, 0.08), var(--shadow);
}

/* ================================
   FIX: HEADER / LOGO / MAIN LAYOUT
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 14, 26, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo__img,
.logo img {
  width: 180px;
  max-width: 180px;
  height: auto;
  display: block;
}

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

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #ffffff;
}

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

/* ================================
   HERO
================================ */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.page-hero {
  padding: 110px 0 90px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 25, 0.96) 0%, rgba(4, 13, 25, 0.78) 45%, rgba(4, 13, 25, 0.92) 100%),
    url("../img/hero-bg.png") center/cover no-repeat;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero__text h1 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 18px 0 22px;
  color: #ffffff;
}

.hero__subtitle {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.12);
  border: 1px solid rgba(33, 150, 243, 0.35);
  color: #7cc7ff;
  font-size: 13px;
  font-weight: 600;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__stat {
  min-width: 120px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 8px;
}

.hero__stat span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.hero__card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(8, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero__card h3 {
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 14px;
}

.hero__card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.hero__mini-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-item strong {
  display: block;
  color: #ffffff;
  margin-bottom: 5px;
}

.mini-item span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

/* ================================
   BUTTONS
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #1e88ff, #0b5ed7);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

/* ================================
   SECTIONS / CARDS
================================ */

.section {
  padding: 90px 0;
}

.section--dark {
  background: rgba(2, 9, 19, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  max-width: 850px;
  margin: 0 auto 42px;
  text-align: center;
}

.section__head h2 {
  color: #ffffff;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section__head p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(8, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.card h3 {
  color: #ffffff;
  font-size: 21px;
  margin-bottom: 12px;
}

.card p,
.card li {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.card ul {
  margin-top: 14px;
  padding-left: 18px;
}

.card__actions {
  margin-top: 20px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 980px) {
  .header__inner {
    min-height: 76px;
  }

  .logo__img,
  .logo img {
    width: 140px;
    max-width: 140px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cards--2,
  .cards--3 {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-hero {
    padding: 80px 0 60px;
  }

  .hero {
    min-height: auto;
  }

  .hero__text h1 {
    font-size: 38px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logo__img,
  .logo img {
    width: 120px;
    max-width: 120px;
  }
}

/* ================================
   COURSE MODULES / LESSONS
================================ */

.course-modules {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}

.course-module {
  padding: 26px;
  border-radius: 28px;
  background: rgba(8, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.course-module__head {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.course-module__head span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.12);
  border: 1px solid rgba(33, 150, 243, 0.35);
  color: #7cc7ff;
  font-size: 13px;
  font-weight: 700;
}

.course-module__head h3 {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.course-module__head p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.lesson-list {
  display: grid;
  gap: 14px;
}

.lesson-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lesson-item:hover {
  transform: translateY(-2px);
  border-color: rgba(33, 150, 243, 0.35);
  background: rgba(33, 150, 243, 0.07);
}

.lesson-item > span {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(33, 150, 243, 0.14);
  color: #4da3ff;
  font-size: 18px;
  font-weight: 800;
}

.lesson-item h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 6px;
}

.lesson-item p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
  font-size: 15px;
}

@media (max-width: 680px) {
  .course-module {
    padding: 20px;
  }

  .course-module__head h3 {
    font-size: 23px;
  }

  .lesson-item {
    grid-template-columns: 1fr;
  }

  .lesson-item > span {
    width: 48px;
    height: 48px;
  }
}
.price-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.lesson-pricing {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 420px;
}

.lesson-pricing__title {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.lesson-pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.lesson-pricing__hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.lesson-link {
  color: #ffffff;
  text-decoration: none;
}

.lesson-link:hover {
  color: #4da3ff;
}

.lesson-video {
  max-width: 980px;
  margin: 0 auto;
}

.lesson-video__placeholder {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(33,150,243,0.14), rgba(255,140,58,0.08)),
    rgba(8, 23, 42, 0.86);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  box-shadow: 0 26px 80px rgba(0,0,0,0.26);
}

.lesson-video__placeholder h3 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 10px;
}

.lesson-video__placeholder p {
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.lesson-pricing {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 460px;
}

.lesson-pricing__title {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}

.lesson-pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 8px;
}

.lesson-pricing__row strong {
  color: #ffffff;
  font-size: 20px;
}

.lesson-pricing__hint {
  font-size: 13px;
  color: rgba(255,255,255,0.56);
  line-height: 1.5;
}

/* ===== AUTH FORM ===== */

#auth-section input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);

  background: rgba(255,255,255,0.04);
  color: #fff;

  font-size: 14px;
  transition: all 0.2s ease;
}

#auth-section input::placeholder {
  color: rgba(255,255,255,0.4);
}

#auth-section input:focus {
  outline: none;
  border-color: #3b82f6;

  background: rgba(59,130,246,0.08);

  box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

/* контейнер форм */
#auth-section .card {
  padding: 30px;
}

/* кнопки формы */
#auth-section .btn {
  margin-top: 10px;
}

/* выравнивание заголовков */
#auth-section h3 {
  margin-bottom: 10px;
}

/* отступ между инпутами */
#auth-section .card div {
  gap: 14px !important;
}

/* плавное появление */
#auth-section {
  animation: fadeIn 0.4s ease;
}

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

/* ===== HEADER AUTH BUTTONS ===== */

.header__actions {
  gap: 12px;
}

#login-open-btn,
#logout-btn {
  margin-left: 8px;
  border-color: rgba(77, 163, 255, 0.35);
}

#login-open-btn::before {
  content: "👤";
  margin-right: 7px;
  font-size: 13px;
}

#logout-btn::before {
  content: "↗";
  margin-right: 7px;
  font-size: 13px;
}

/* ===== AUTH MESSAGES ===== */

.auth-message {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
  padding-left: 2px;
}

.auth-message.error {
  color: #ef4444;
}

.auth-message.success {
  color: #22c55e;
}


/* ===== AUTH MODAL ===== */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 40px 16px;
  background: rgba(2, 9, 19, 0.82);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.auth-modal .container {
  position: relative;
  width: min(980px, calc(100% - 24px));
  padding: 34px;
  border-radius: 28px;
  background: rgba(8, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.auth-modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.auth-modal .section__head {
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .auth-modal {
    align-items: flex-start;
  }

  .auth-modal .container {
    padding: 28px 18px;
  }
}


/* ===== MY COURSES ===== */

.my-course-card {
  position: relative;
  overflow: hidden;
}

.my-course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.my-course-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-size: 22px;
}

.my-course-badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
  color: #39d98a;
  font-size: 12px;
  font-weight: 700;
}


/* ===== LESSON PROGRESS ===== */

.lesson-progress-block {
  margin-top: 24px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}


/* ===== COURSE PROGRESS CARDS ===== */

.course-progress-card {
  overflow: hidden;
}

.course-progress-preview {
  height: 130px;
  margin: -24px -24px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.28), rgba(57, 217, 138, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-progress-preview span {
  font-size: 46px;
}

.course-progress-head {
  margin-bottom: 14px;
}

.course-progress-bar {
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.course-progress-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #4da3ff, #2f7df0);
}

/* ===== LMS LESSON LAYOUT ===== */

.lms-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lms-sidebar {
  position: sticky;
  top: 110px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(8, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.lms-sidebar__title {
  margin-bottom: 16px;
}

.lms-sidebar__title span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  margin-bottom: 4px;
}

.lms-sidebar__title strong {
  color: #ffffff;
  font-size: 18px;
}

.lms-module {
  margin-top: 20px;
}

.lms-module__name {
  margin-bottom: 12px;
  color: #7cc7ff;
  font-size: 13px;
  font-weight: 700;
}

.lms-lesson-list {
  display: grid;
  gap: 10px;
}

.lms-lesson-link {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.lms-lesson-link:hover {
  background: rgba(77, 163, 255, 0.08);
  border-color: rgba(77, 163, 255, 0.3);
}

.lms-lesson-link.active {
  background: rgba(77, 163, 255, 0.14);
  border-color: rgba(77, 163, 255, 0.42);
}

.lms-lesson-link__num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 163, 255, 0.12);
  color: #7cc7ff;
  font-weight: 800;
  font-size: 13px;
}

.lms-lesson-link__text strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.25;
}

.lms-lesson-link__text span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.lms-content {
  min-width: 0;
}

.lms-content__head {
  margin-bottom: 22px;
}

.lms-content__head h2 {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.lms-content__head p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.lms-video-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(8, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.lms-video-card iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: none;
  border-radius: 22px;
  background: #000;
}

.lms-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.lms-info-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(8, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.lms-info-card h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 8px;
}

.lms-info-card p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .lms-layout {
    grid-template-columns: 1fr;
  }

  .lms-sidebar {
    position: static;
  }

  .lms-info-grid {
    grid-template-columns: 1fr;
  }

  .lms-video-card iframe {
    min-height: 360px;
  }
}


/* ===== LMS LESSON ACTIONS ===== */

.lms-lesson-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

@media (max-width: 560px) {
  .lms-lesson-actions {
    flex-direction: column;
  }
}

/* ===== LESSON STATUS ===== */

.lesson-status {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.lesson-status--free {
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.3);
  color: #39d98a;
}

.lesson-status--locked {
  background: rgba(255, 140, 58, 0.12);
  border: 1px solid rgba(255, 140, 58, 0.3);
  color: #ffb36b;
}

.lesson-status--current {
  background: rgba(77, 163, 255, 0.12);
  border: 1px solid rgba(77, 163, 255, 0.35);
  color: #7cc7ff;
}

.lesson-status--completed {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}


/* ===== LMS MOBILE SIDEBAR ===== */

.lms-sidebar-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background: rgba(77, 163, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  .lms-sidebar-toggle {
    display: block;
  }

  #lms-sidebar-content {
    display: none;
  }

  #lms-sidebar-content.active {
    display: block;
  }
}


/* ===== LMS PROGRESS PANEL ===== */

.lms-progress-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.lms-progress-panel__text {
  display: grid;
  gap: 4px;
}

.lms-progress-panel__text strong {
  color: #ffffff;
  font-size: 16px;
}

.lms-progress-panel__text span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

@media (max-width: 680px) {
  .lms-progress-panel {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ===== MINI LESSON PROGRESS ===== */

.lesson-mini-progress {
  margin-top: 12px;
}

.lesson-mini-progress__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.lesson-mini-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #4da3ff, #2f7df0);
  transition: width 0.3s ease;
}

.lesson-mini-progress__status {
  margin-top: 8px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}

/* ===== COMPLETED LESSON BUTTON ===== */

.lesson-completed-btn {
  opacity: 0.75;
  cursor: default;
  background: rgba(57, 217, 138, 0.14);
  border-color: rgba(57, 217, 138, 0.35);
  color: #39d98a;
}

.lesson-completed-btn:hover {
  transform: none;
}

/* ===== COMPLETED SIDEBAR LESSON ===== */

.lms-lesson-link.completed {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
}

.lms-lesson-link.completed .lms-lesson-link__num {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
}

/* ===== LMS COURSE PROGRESS ===== */

.lms-course-progress {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lms-course-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.lms-course-progress__top span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.lms-course-progress__top strong {
  color: #7cc7ff;
  font-size: 14px;
}

.lms-course-progress__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.lms-course-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #4da3ff, #2f7df0);
  transition: width 0.3s ease;
}

.lms-course-progress__meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}


/* ===== ACCOUNT DASHBOARD ===== */

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
  padding: 30px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.16), rgba(57, 217, 138, 0.07)),
    rgba(8, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.account-hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 12px;
}

.account-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.6;
}

.account-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

@media (max-width: 760px) {
  .account-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .account-hero__actions {
    min-width: 0;
  }
}

/* ===== ACCOUNT SUMMARY ===== */

.account-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.account-summary__item {
  padding: 20px;
  border-radius: 20px;
  background: rgba(8, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.account-summary__item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.account-summary__item strong {
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 860px) {
  .account-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .account-summary {
    grid-template-columns: 1fr;
  }
}


/* ===== PROFILE CARD ===== */

.profile-card {
  min-height: 100%;
}

.profile-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-size: 28px;
}

.profile-status {
  display: inline-flex;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
  color: #39d98a;
  font-size: 12px;
  font-weight: 700;
}

.profile-info {
  display: grid;
  gap: 16px;
}

.profile-info__item {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.profile-info__item span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.profile-info__item strong {
  color: #ffffff;
  font-size: 15px;
  word-break: break-word;
}


/* ===== EMPTY STATES ===== */

.account-empty {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
  border: 1px dashed rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.5;
}


/* ===== PAYMENT CARDS ===== */

.payment-card {
  min-height: 100%;
}

.payment-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.payment-card__title {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.payment-status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.payment-status--success {
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
  color: #39d98a;
}

.payment-status--pending {
  background: rgba(255, 140, 58, 0.12);
  border: 1px solid rgba(255, 140, 58, 0.28);
  color: #ffb36b;
}

.payment-meta {
  display: grid;
  gap: 12px;
}

.payment-meta__item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.payment-meta__item span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
}

.payment-meta__item strong {
  color: #ffffff;
  font-size: 14px;
}


/* ===== ACCOUNT PRODUCT CARDS ===== */

.account-product-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.account-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.account-product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-size: 22px;
}

.account-product-card__badge {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
  color: #39d98a;
  font-size: 12px;
  font-weight: 700;
}

.account-product-card h4 {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.account-product-card p {
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ===== LMS MODULE ACCORDION SIDEBAR ===== */

.lms-module-group {
  margin-top: 12px;
}

.lms-module-toggle {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(77, 163, 255, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.lms-module-toggle span {
  color: #7cc7ff;
  font-size: 13px;
  font-weight: 800;
}

.lms-module-toggle strong {
  color: #7cc7ff;
  font-size: 18px;
  line-height: 1;
}

.lms-module-lessons {
  display: none;
  margin-top: 10px;
  gap: 10px;
}

.lms-module-group.active .lms-module-lessons {
  display: grid;
}

.lms-module-group.active .lms-module-toggle {
  background: rgba(77, 163, 255, 0.08);
  border-color: rgba(77, 163, 255, 0.35);
}


/* ===== LESSON HERO FIX ===== */

.page-hero .hero__content {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-hero .hero__text {
  max-width: 760px;
}

.page-hero .hero__buttons {
  align-items: center;
}

@media (max-width: 980px) {
  .page-hero .hero__content {
    grid-template-columns: 1fr;
  }
}


/* ===== AUTH PASSWORD FIELD ===== */

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 52px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== RESET PASSWORD PAGE ===== */

.reset-password-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: rgba(8, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
}

.reset-password-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-size: 34px;
}

.reset-password-card h2 {
  color: #ffffff;
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.reset-password-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.6;
}

.reset-password-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.reset-password-form input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #ffffff;
  font-size: 15px;
}

.reset-password-form input::placeholder {
  color: rgba(255,255,255,0.42);
}

.reset-password-form input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.18);
}

.reset-password-message {
  margin-top: 8px;
}

.reset-password-message--error {
  color: #ff5f6d !important;
}

.reset-password-message--success {
  color: #39d98a !important;
}


/* ===== FORGOT PASSWORD UI ===== */

.auth-link-btn {
  width: fit-content;
  margin: 4px auto 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #7cc7ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-link-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.forgot-password-box {
  max-width: 520px;
  margin: 26px auto 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(8, 23, 42, 0.92);
  border: 1px solid rgba(77, 163, 255, 0.25);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  gap: 14px;
  text-align: center;
}

.forgot-password-box h3 {
  color: #ffffff;
  font-size: 24px;
}

.forgot-password-box p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.forgot-password-box input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #ffffff;
  font-size: 15px;
}

.forgot-password-box input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.08);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.18);
}


/* ===== PAYMENT SUCCESS TOAST ===== */

.payment-success-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(8, 23, 42, 0.96);
  border: 1px solid rgba(57, 217, 138, 0.35);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: 0.3s ease;
}

.payment-success-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.payment-success-toast__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 217, 138, 0.14);
  border: 1px solid rgba(57, 217, 138, 0.32);
  font-size: 22px;
}

.payment-success-toast strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 2px;
}

.payment-success-toast span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

@media (max-width: 560px) {
  .payment-success-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-width: 0;
  }
}

/* ===== ADMIN PANEL ===== */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.admin-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(77, 163, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  cursor: pointer;
}

.admin-tab:hover,
.admin-tab.active {
  background: rgba(77, 163, 255, 0.16);
  border-color: rgba(77, 163, 255, 0.55);
  color: #ffffff;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 23, 42, 0.78);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  color: #7cc7ff;
  background: rgba(77, 163, 255, 0.08);
}

.admin-table td {
  color: rgba(255, 255, 255, 0.78);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

/* ===== ADMIN GRANT ACCESS ===== */

.admin-grant-card {
  max-width: 760px;
}

.admin-grant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.admin-grant-grid label {
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  font-weight: 700;
}

.admin-grant-grid select,
.admin-grant-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #ffffff;
}

.admin-grant-grid option {
  color: #111827;
}

@media (max-width: 720px) {
  .admin-grant-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== LESSON RATING ===== */

.lesson-rating-card {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.lesson-rating-card strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 4px;
}

.lesson-rating-card span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}

.lesson-rating-stars {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.lesson-rating-star {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.28);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: 0.15s ease;
}

.lesson-rating-star:hover,
.lesson-rating-star.active {
  color: #ffcc4d;
  transform: translateY(-1px);
}

/* ===== ADMIN REVIEW ACTIONS ===== */

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.admin-status--approved {
  color: #39d98a;
  background: rgba(57, 217, 138, 0.12);
  border: 1px solid rgba(57, 217, 138, 0.28);
}

.admin-status--rejected {
  color: #ffb36b;
  background: rgba(255, 140, 58, 0.12);
  border: 1px solid rgba(255, 140, 58, 0.28);
}

/* ===== COURSE REVIEWS ===== */

.course-review-card {
  min-height: 100%;
}

.course-review-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.course-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 163, 255, 0.14);
  border: 1px solid rgba(77, 163, 255, 0.28);
  font-size: 22px;
}

.course-review-card h3 {
  margin-bottom: 2px;
}

.course-review-card span {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* ===== LESSON REVIEWS ===== */

.lesson-reviews-section {
  margin-top: 48px;
}

/* ===== REVIEW FORM ===== */

.review-form-card {
  max-width: 760px;
  margin: 0 auto 28px;
}

.review-textarea {
  width: 100%;
  min-height: 120px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  color: #ffffff;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
}

.review-textarea::placeholder {
  color: rgba(255,255,255,0.42);
}

.review-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(59,130,246,0.08);
}

/* ===== UNIVERSAL LESSON HERO ALIGN FIX ===== */

.page-hero > .container.hero__content {
  width: min(var(--container), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.page-hero .hero__text {
  max-width: 760px;
}

@media (max-width: 560px) {
  .page-hero > .container.hero__content {
    width: min(var(--container), calc(100% - 24px));
  }
}