:root {
  --color-navy: #0b1a36;
  --color-navy-2: #0f2143;
  --color-yellow: #f5b800;
  --color-yellow-soft: #fff4d6;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f4f4;
  --color-border: #e6e6e6;
  --color-text: #0b1a36;
  --color-muted: #6b7280;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11, 26, 54, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 26, 54, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 26, 54, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container: 1440px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  scroll-behavior: smooth;
  outline: none;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

ul {
  list-style: none;
  padding: 0;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

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

.p-lr {
  padding-left: 108px;
  padding-right: 108px;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;

  & img {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
  }

  &:hover img {
    transform: translateX(3px);
  }

  &.btn-primary {
    background: var(--color-navy);
    color: var(--color-white);

    &:hover {
      background: var(--color-navy-2);
    }

    & img {
      filter: brightness(0) invert(1);
    }
  }

  &.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-navy);

    &:hover {
      background: var(--color-navy);
      color: var(--color-white);
      img{
        filter: brightness(10000);
      }
    }
  }
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);

  & .header-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  & .logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.01em;
  }

  & .nav {
    display: flex;
    align-items: center;
    gap: 36px;

    & .nav-link {
      position: relative;
      font-size: 15px;
      font-weight: 500;
      color: var(--color-navy);
      padding: 8px 0;
      transition: color 0.2s;

      &:hover {
        color: var(--color-navy-2);
      }

      &.active {
        font-weight: 500;

        &::after {
          content: "";
          position: absolute;
          left: 0;
          right: 0;
          bottom: 0;
          height: 3px;
          background: var(--color-yellow);
          border-radius: 2px;
        }
      }
    }
  }

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

  & .icon-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--color-navy);
    transition: background 0.2s;

    &:hover {
      background: var(--color-bg-soft);
    }

    & img {
      width: 24px;
      height: 24px;
    }
  }

  & .register-btn {
    padding: 10px 22px;
    font-size: 14px;
    height: 38px;
  }

  & .header-burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s;

    &:hover {
      background: var(--color-bg-soft);
    }

    & span {
      width: 22px;
      height: 2px;
      background: var(--color-navy);
      border-radius: 2px;
      transition: transform 0.25s, opacity 0.2s;
    }
  }

  &.menu-open .header-burger span {
    &:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    &:nth-child(2) {
      opacity: 0;
    }
    &:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
  }
}

/* ===== LANGUAGE / LOGIN DROPDOWN ===== */
.language {
  position: relative;

  & .current-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;

    &:hover {
      background: var(--color-bg-soft);
    }

    & .lang-icon {
      width: 22px;
      height: 22px;
      display: inline-flex;
    }

    & .lang-icon img {
      width: 100%;
      height: 100%;
    }

    & .lang-code {
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    & .lang-caret {
      width: 14px;
      height: 14px;
      transition: transform 0.2s;
    }
  }

  & .lang-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 170px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 50;

    & li a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 9px 12px;
      font-size: 14px;
      font-weight: 500;
      color: var(--color-navy);
      border-radius: 4px;

      &:hover {
        background: var(--color-bg-soft);
      }

      & .lang-tag {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--color-muted);
      }
    }

    & li.active a {
      background: var(--color-yellow-soft);
      color: var(--color-navy);

      & .lang-tag {
        color: var(--color-yellow);
      }
    }
  }

  &.active .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  &.active .current-lang .lang-caret {
    transform: rotate(180deg);
  }
}

/* ===== HERO ===== */
.hero {
  background: var(--color-bg-soft);
  padding-top: 80px;
  padding-bottom: 80px;

  & .hero-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  & .hero-content {
    max-width: 540px;
    padding-top: 40px;
  }

  & .hero-title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
    color: var(--color-navy);

    & .accent {
      color: var(--color-yellow);
    }
  }

  & .hero-text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-muted);
    margin-bottom: 36px;
    max-width: 480px;
  }

  & .hero-cta {
    padding: 16px 32px;
    font-size: 15px;
  }

  & .hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;

    & .hero-card {
      position: relative;
      aspect-ratio: 280 / 240;
      padding: 24px;
      border-radius: var(--radius-lg);
      background: var(--color-navy);
      color: var(--color-white);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.2s, box-shadow 0.2s;

      &:nth-child(2),
      &:nth-child(4) {
        transform: translateY(32px);
      }

      &:hover {
        box-shadow: var(--shadow-lg);

        &:nth-child(1),
        &:nth-child(3) {
          transform: translateY(-4px);
        }

        &:nth-child(2),
        &:nth-child(4) {
          transform: translateY(28px);
        }
      }

      & .hero-card-icon {
        width: 44px;
        height: 44px;
        background: var(--color-yellow);
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;

        & img {
          width: 26px;
          height: 26px;
        }
      }

      & .hero-card-title {
        font-size: 18px;
        font-weight: 500;
        color: var(--color-white);
      }
    }
  }
}

/* ===== SECTION HEAD ===== */
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 80px;
  padding-bottom: 36px;
  gap: 32px;

  & .section-head-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  & .section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-yellow);
  }

  & .section-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-navy);
  }

  & .see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);

    & img {
      width: 16px;
      height: 16px;
      transition: transform 0.25s ease;
    }

    &:hover img {
      transform: translate(3px, -3px);
    }
  }
}

.section-title.light {
  color: var(--color-white);
}

/* ===== SLIDER CONTROLS (shared) ===== */
.slider-controls {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 32px;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;

  & img {
    width: 18px;
    height: 18px;
  }

  &:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);

    & img {
      filter: brightness(0) invert(1);
    }
  }

  &.dark {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);

    & img {
      filter: brightness(0) invert(1);
    }

    &:hover {
      background: var(--color-yellow);
      border-color: var(--color-yellow);

      & img {
        filter: none;
      }
    }
  }
}

/* ===== VIDEO LESSONS ===== */
.video-section {
  background: var(--color-white);
  padding-bottom: 80px;

  &.package-page {
    padding-top: 72px;
  }

  & .video-cards {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  & .slider-controls {
    padding-top: 28px;
  }
}

.video-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;

  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  & .video-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-soft);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  & .video-body {
    padding: 18px 20px 20px;
  }

  & .video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  & .video-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    text-transform: uppercase;
  }

  & .video-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-navy);
    background: var(--color-yellow);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }

  & .video-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-navy);
    margin-bottom: 16px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    & a {
      color: inherit;
      transition: color 0.2s;

      &:hover {
        color: var(--color-yellow);
      }
    }
  }

  & .video-info {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--color-yellow);
  }

  & .video-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  & .video-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-navy);

    & img {
      width: 16px;
      height: 16px;
    }
  }

  & .video-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-navy);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;

    & img {
      width: 13px;
      height: 15px;
      filter: brightness(0) invert(1);
      transition: transform 0.25s ease;
    }

    &:hover {
      background: var(--color-navy-2);
    }

    &:hover img {
      transform: translateX(3px);
    }
  }
}

/* ===== SUCCESSES ===== */
.success-section {
  background: var(--color-navy);
  padding-top: 64px;
  padding-bottom: 64px;

  & .success-inner {
    max-width: var(--container);
    margin: 0 auto;
  }

  & .section-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  & .success-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  & .success-card {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;

    &:hover {
      transform: translateY(-6px);

      & .success-img {
        transform: scale(1.04);
      }
    }

    & .success-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s;
    }

    & .success-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 28px;
      background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(0, 0, 0, 0.75) 100%
      );
      color: var(--color-white);
    }

    & .success-name {
      font-size: 20px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    & .success-desc {
      font-size: 13px;
      color: var(--color-yellow);
      letter-spacing: 0.02em;
    }
  }

  & .slider-controls {
    padding-right: 0;
    padding-top: 28px;
  }
}

/* ===== EXAM CARDS (Online) ===== */
.exam-section {
  background: var(--color-white);
  padding-bottom: 80px;

  &.exam-page {
    padding-top: 72px;
  }

  & .exam-cards {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  & .exam-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: transparent;

      & .exam-thumb img {
        transform: scale(1.04);
      }
    }

    & .exam-thumb {
      position: relative;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--color-bg-soft);

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
      }
    }

    & .exam-body {
      padding: 24px 24px 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
    }

    & .exam-category {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      color: var(--color-muted);
      text-transform: uppercase;
    }

    & .exam-title {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--color-navy);
      margin-top: -6px;
    }

    & .exam-info {
      display: flex;
      flex-direction: column;
      gap: 10px;

      & li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 13px;
        color: var(--color-muted);

        & img {
          width: 18px;
          height: 18px;
          flex-shrink: 0;
          opacity: 0.7;
        }

        &.price {
          color: var(--color-yellow);
          font-weight: 700;

          & img {
            opacity: 1;
          }
        }
      }
    }

    & .btn {
      margin-top: auto;
      width: 100%;
      padding: 13px 20px;
    }
  }
}

/* ===== OFFLINE EXAMS ===== */
.offline-section {
  background: var(--color-white);
  padding-bottom: 80px;

  &.offline-page {
    padding-top: 72px;
  }

  & .offline-cards {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  & .offline-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;

    &:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
    }

    & .offline-thumb {
      position: relative;
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--color-bg-soft);

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    & .offline-badge {
      position: absolute;
      top: 14px;
      right: 14px;
      padding: 4px 12px;
      background: var(--color-yellow);
      color: var(--color-navy);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.14em;
      border-radius: 4px;
    }

    & .offline-body {
      padding: 24px 24px 24px;
      display: flex;
      flex-direction: column;
      gap: 14px;
      flex: 1;
    }

    & .offline-title {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--color-navy);
      margin-top: -6px;
    }

    & .offline-info {
      display: flex;
      flex-direction: column;
      gap: 8px;

      & li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
        color: var(--color-muted);

        & img {
          width: 17px;
          height: 17px;
          flex-shrink: 0;
          margin-top: 2px;
          opacity: 0.7;
        }

        &.price {
          color: var(--color-yellow);
          font-weight: 700;

          & img {
            opacity: 1;
          }
        }
      }
    }

    & .btn {
      margin-top: auto;
      align-self: flex-start;
      padding: 11px 28px;
      font-size: 13px;
    }
  }
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
  padding-top: 32px;

  & a {
    color: var(--color-muted);
    transition: color 0.2s;

    &:hover {
      color: var(--color-navy);
    }
  }

  & .breadcrumb-current {
    color: var(--color-navy);
    font-weight: 500;
  }

  & img {
    width: 14px;
    height: 14px;
    opacity: 0.5;
  }
}

/* ===== PACKAGE DETAIL ===== */
.package-hero {
  background: var(--color-bg-soft);
  padding-bottom: 88px;

  & .package-hero-inner {
    max-width: var(--container);
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }

  & .package-content {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
  }

  & .package-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
  }

  & .badge {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    &.badge-yellow {
      background: var(--color-yellow);
      color: var(--color-navy);
    }

    &.badge-soft {
      background: rgba(11, 26, 54, 0.06);
      color: var(--color-navy);
    }
  }

  & .package-title {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-navy);
    margin-bottom: 24px;
  }

  & .package-description {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-muted);
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
  }

  & .package-stats {
    display: flex;
    gap: 56px;
    margin-bottom: 56px;
  }

  & .stat {
    display: flex;
    align-items: center;
    gap: 14px;

    & .stat-icon {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--color-yellow-soft);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;

      & img {
        width: 20px;
        height: 20px;
      }
    }

    & .stat-text {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    & .stat-label {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      color: var(--color-muted);
      text-transform: uppercase;
    }

    & .stat-value {
      font-size: 16px;
      font-weight: 700;
      color: var(--color-navy);
    }
  }

  & .package-buy {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  & .package-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.01em;
  }

  & .package-cta {
    padding: 16px 36px;
    font-size: 15px;
  }

  & .package-image {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-navy);
    box-shadow: var(--shadow-md);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

/* ===== LESSONS LIST ===== */
.lessons-section {
  background: var(--color-bg-soft);
  padding-bottom: 120px;

  & .lessons-inner {
    max-width: var(--container);
    margin: 0 auto;
  }

  & .lessons-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
  }

  & .lessons-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.02em;
  }

  & .lessons-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--color-muted);
    text-transform: uppercase;
  }

  & .lesson-list {
    display: flex;
    flex-direction: column;
  }

  & .lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);

    &:last-child {
      border-bottom: none;
    }
  }

  & .lesson-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  & .lesson-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
  }

  & .lesson-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-muted);

    & img {
      width: 16px;
      height: 16px;
      opacity: 0.7;
    }
  }

  & .lesson-watch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--color-yellow-soft);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s;

    & img {
      width: 15px;
      height: 15px;
      transition: transform 0.25s ease;
    }

    &:hover {
      background: var(--color-yellow);

      & img {
        transform: translateX(3px);
      }
    }
  }
}

/* ===== VIDEO PLAYER PAGE ===== */
.video-page {
  background: var(--color-bg-soft);
  padding-bottom: 96px;

  & .video-page-inner {
    max-width: var(--container);
    width: 100%;
    margin: 32px auto 0;
    text-align: center;
  }

  & .video-player {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 24px;
    background: #0d0d0d;
    margin-top: 48px;
    box-shadow: 0 20px 60px rgba(11, 26, 54, 0.18);
    display: block;
    object-fit: cover;
  }

  & .video-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-yellow);
    margin-bottom: 20px;
  }

  & .video-title-big {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    max-width: 900px;
    margin: 0 auto 20px;
  }

  & .video-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 760px;
    margin: 0 auto;
  }
}

/* ===== PAGE HEADER (sub-pages) ===== */
.page-header {
  background: var(--color-bg-soft);
  padding-top: 72px;
  padding-bottom: 72px;

  & .page-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  & .page-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-navy);

    & .accent {
      color: var(--color-yellow);
    }
  }

  & .page-subtitle {
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-muted);
    max-width: 560px;
  }
}

/* ===== PAGINATION ===== */
.pagination {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding-top: 56px;

  & .page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--color-border);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;

    & img {
      width: 17px;
      height: 17px;
    }

    &:hover {
      background: var(--color-bg-soft);
      border-color: var(--color-navy);
    }

    &.active {
      background: var(--color-navy);
      border-color: var(--color-navy);
      color: var(--color-white);
    }
  }

  & .page-dots {
    padding: 0 6px;
    color: var(--color-muted);
    font-weight: 500;
  }
}

/* ===== BLOG ===== */
.blog-section {
  background: var(--color-white);
  padding-bottom: 80px;

  &.blog-page {
    padding-top: 72px;
  }

  & .blog-cards {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  & .blog-card {
    background: transparent;
    transition: transform 0.2s;

    &:hover {
      transform: translateY(-4px);

      & .blog-thumb img {
        transform: scale(1.04);
      }
    }

    & .blog-thumb {
      aspect-ratio: 16 / 10;
      overflow: hidden;
      background: var(--color-bg-soft);
      border-radius: var(--radius-md);

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
      }
    }

    & .blog-body {
      padding: 18px 0 0;
    }

    & .blog-date {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      color: var(--color-muted);
      display: block;
      margin-bottom: 10px;
    }

    & .blog-title {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.3;
      color: var(--color-navy);
      margin-bottom: 10px;
    }

    & .blog-excerpt {
      font-size: 13px;
      line-height: 1.6;
      color: var(--color-muted);
      margin-bottom: 14px;
    }

    & .blog-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--color-navy);

      & img {
        width: 15px;
        height: 15px;
        transition: transform 0.25s ease;
      }

      &:hover img {
        transform: translateX(3px);
      }
    }
  }
}

/* ===== BLOG DETAIL ===== */
.blog-hero {
  background: var(--color-bg-soft);
  padding-bottom: 48px;

  & .blog-hero-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & .breadcrumb {
    max-width: none;
    margin: 0;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  & .section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-yellow);
    display: block;
    margin-bottom: 16px;
  }

  & .blog-detail-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-navy);
    max-width: 880px;
    margin-bottom: 24px;
  }

  & .blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-muted);
  }

  & .blog-meta-date {
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-navy);
  }

  & .blog-meta-dot {
    color: var(--color-muted);
  }

  & .blog-meta-read {
    font-weight: 500;
  }
}

.blog-cover {
  background: var(--color-bg-soft);
  padding-bottom: 64px;

  & .blog-cover-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & .blog-cover-img {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.blog-content {
  background: var(--color-white);
  padding-top: 64px;
  padding-bottom: 96px;

  & .blog-content-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 22px;
  }

  & .blog-lead {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 32px;
  }

  & h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--color-navy);
    margin-top: 40px;
    margin-bottom: 16px;
  }

  & h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-navy);
    margin-top: 32px;
    margin-bottom: 14px;
  }
}

/* ===== EXAM START PAGE ===== */
.exam-start-page {
  background: var(--color-bg-soft);
  padding: 64px 24px 96px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exam-start-card {
  max-width: 640px;
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.exam-start-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 12px;
}

.exam-start-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.exam-start-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.exam-start-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  margin-bottom: 32px;
}

.exam-start-stat {
  display: flex;
  align-items: center;
  gap: 12px;

  & img {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    flex-shrink: 0;
  }
}

.exam-start-stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.exam-start-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.exam-start-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.exam-start-rules {
  text-align: left;
  margin-bottom: 32px;
}

.exam-start-rules-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.exam-start-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exam-start-rules-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);

  &::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-yellow);
  }
}

.exam-start-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
}

/* Countdown overlay */
.exam-countdown {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 54, 0.94);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
}

.exam-countdown.active {
  display: flex;
}

.countdown-number {
  font-size: 200px;
  font-weight: 800;
  color: var(--color-yellow);
  letter-spacing: -0.05em;
  line-height: 1;
  animation: countdown-pulse 1s ease-in-out;
}

.countdown-number.go {
  font-size: 96px;
  letter-spacing: 0.02em;
}

.countdown-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

@keyframes countdown-pulse {
  0% { transform: scale(0.5); opacity: 0; }
  25% { transform: scale(1.1); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.85; }
}

/* ===== EXAM TEST PAGE ===== */
.test-page {
  background: var(--color-bg-soft);
  padding-top: 32px;
  padding-bottom: 80px;

  & .test-bar {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto 24px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
  }

  & .test-counter {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-navy);
    flex-shrink: 0;
  }

  & .test-progress-track {
    flex: 1;
    height: 6px;
    background: var(--color-bg-soft);
    border-radius: 999px;
    overflow: hidden;
  }

  & .test-progress-fill {
    height: 100%;
    background: var(--color-yellow);
    transition: width 0.2s;
  }

  & .test-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    flex-shrink: 0;

    & img {
      width: 18px;
      height: 18px;
    }
  }

  & .test-layout {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
  }

  & .test-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 96px;
  }

  & .test-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 16px;
  }

  & .test-subjects {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
  }

  & .test-subject-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-navy);
    text-align: left;
    transition: background 0.2s, color 0.2s;

    &:hover {
      background: var(--color-yellow-soft);
    }

    &.active {
      background: var(--color-navy);
      color: var(--color-white);
    }
  }

  & .test-subject-count {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(11, 26, 54, 0.08);
    color: var(--color-navy);
    flex-shrink: 0;
  }

  & .test-subject-tab.active .test-subject-count {
    background: var(--color-yellow);
    color: var(--color-navy);
  }

  & .test-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  & .test-grid-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft);
    border: 1.5px solid transparent;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-navy);
    transition: background 0.2s, color 0.2s, border-color 0.2s;

    &:hover {
      background: var(--color-yellow-soft);
    }

    &.answered {
      background: var(--color-yellow);
    }

    &.current {
      background: var(--color-navy);
      color: var(--color-white);
      border-color: var(--color-navy);
    }
  }

  & .test-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--color-muted);
  }

  & .test-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;

    & span:first-child {
      width: 12px;
      height: 12px;
      border-radius: 3px;
      background: var(--color-bg-soft);
      flex-shrink: 0;
    }

    &.answered span:first-child {
      background: var(--color-yellow);
    }

    &.current span:first-child {
      background: var(--color-navy);
    }
  }

  & .test-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
  }

  & .test-subject {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--color-yellow);
    color: var(--color-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 22px;
  }

  & .test-question {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-navy);
    margin-bottom: 20px;
  }

  & .test-media {
    margin: 0 0 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-soft);

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

  & .test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }

  & .test-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;

    &:hover {
      border-color: var(--color-navy);
      background: var(--color-bg-soft);
    }

    & input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    &:has(input:checked) {
      border-color: var(--color-navy);
      background: var(--color-yellow-soft);
    }

    &:has(input:checked) .test-option-mark {
      background: var(--color-navy);
      color: var(--color-white);
    }
  }

  & .test-option-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
  }

  & .test-option-text {
    font-size: 15px;
    color: var(--color-navy);
    font-weight: 500;
    flex: 1;
  }

  & .test-option-media {
    flex: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-bg-soft);

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

  & .test-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  & .test-actions .btn {
    padding: 12px 28px;
  }

  & .test-finish {
    margin-top: 16px;
    width: 100%;
    padding: 14px;
  }
}

/* ===== OFFLINE EXAM FORM ===== */
.offline-form-section {
  background: var(--color-bg-soft);
  padding-top: 64px;
  padding-bottom: 96px;

  & .offline-form-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & .offline-form-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
  }

  & .offline-form-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    margin-bottom: 8px;
  }

  & .offline-form-subtitle {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 32px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.address-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;

  & input {
    margin-top: 4px;
    accent-color: var(--color-navy);
    flex-shrink: 0;
  }

  &:hover {
    border-color: var(--color-navy);
    background: var(--color-bg-soft);
  }

  &:has(input:checked) {
    border-color: var(--color-navy);
    background: var(--color-yellow-soft);
  }
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.address-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
}

.address-detail {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
}

.address-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-top: 6px;
}

/* ===== RESULT DETAIL PAGE ===== */
.result-page {
  background: var(--color-bg-soft);
  padding-bottom: 96px;

  & .result-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & .result-summary {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
  }

  & .result-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  & .result-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-yellow);
  }

  & .result-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-navy);
  }

  & .result-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-muted);

    & img {
      width: 17px;
      height: 17px;
      opacity: 0.7;
    }
  }

  & .result-score-block {
    text-align: center;
    padding: 24px 32px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    min-width: 200px;
  }

  & .result-score-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
  }

  & .result-score-big {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.03em;
    line-height: 1;
  }

  & .result-score-total {
    font-size: 22px;
    font-weight: 500;
    color: var(--color-muted);
  }

  & .result-percent {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--color-yellow);
    color: var(--color-navy);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  & .result-stats {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  & .result-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  & .result-stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  & .result-stat-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-navy);

    &.correct { color: #1a8021; }
    &.wrong { color: #c8102e; }
    &.blank { color: var(--color-muted); }
  }

  & .result-subjects {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 16px;
  }

  & .result-subjects-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-navy);
    margin-bottom: 20px;
  }

  & .result-subject-row {
    display: grid;
    grid-template-columns: 180px 1fr 80px;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);

    &:last-child {
      border-bottom: none;
    }
  }

  & .result-subject-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
  }

  & .result-subject-bar {
    height: 8px;
    background: rgba(11, 26, 54, 0.08);
    border-radius: 999px;
    overflow: hidden;
  }

  & .result-subject-fill {
    height: 100%;
    background: var(--color-yellow);
    transition: width 0.3s;
  }

  & .result-subject-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-navy);
    text-align: right;
  }

  & .result-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
  }
}

/* ===== USER PILL (logged-in navbar) ===== */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  transition: background 0.2s;

  &:hover {
    background: var(--color-yellow-soft);
  }

  & .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  background: var(--color-bg-soft);
  padding-top: 32px;
  padding-bottom: 80px;

  & .profile-layout {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
  }

  & .profile-sidebar {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 24px;
    position: sticky;
    top: 96px;
  }

  & .profile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
  }

  & .profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-yellow);
    color: var(--color-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
  }

  & .profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  & .profile-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  & .profile-user-phone {
    font-size: 12px;
    color: var(--color-muted);
  }

  & .profile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  & .profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    transition: background 0.2s, color 0.2s;

    & img {
      width: 20px;
      height: 20px;
      opacity: 0.65;
      transition: opacity 0.2s, filter 0.2s;
    }

    &:hover {
      background: var(--color-bg-soft);
    }

    &.active {
      background: var(--color-navy);
      color: var(--color-white);
    }

    &.active img {
      filter: brightness(0) invert(1);
      opacity: 1;
    }
  }

  & .profile-logout {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    color: #c8102e;

    &:hover {
      background: rgba(200, 16, 46, 0.06);
    }
  }

  & .profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  & .profile-section {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 32px;
    scroll-margin-top: 100px;
  }

  & .profile-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
  }

  & .profile-section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-navy);
  }

  & .profile-section-count {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  & .profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  & .profile-info-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
  }

  & .profile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  & .profile-packages {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  & .profile-package {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  & .profile-package-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 22px;
    background: var(--color-bg-soft);
  }

  & .profile-package-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 220px;
  }

  & .profile-package-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.35;
  }

  & .profile-package-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
  }

  & .profile-progress-bar {
    height: 6px;
    background: rgba(11, 26, 54, 0.08);
    border-radius: 999px;
    overflow: hidden;
  }

  & .profile-progress-fill {
    height: 100%;
    background: var(--color-yellow);
    transition: width 0.2s;
  }

  & .profile-progress-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-muted);
  }

  & .profile-package-lessons {
    display: flex;
    flex-direction: column;
  }

  & .profile-lesson-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px;
    border-top: 1px solid var(--color-border);
    transition: background 0.2s;

    &:hover {
      background: var(--color-bg-soft);
    }

    &.watched .profile-lesson-num {
      background: var(--color-yellow);
      color: var(--color-navy);
    }

    &.current .profile-lesson-num {
      background: var(--color-navy);
      color: var(--color-white);
    }

    &.current .profile-lesson-action {
      color: var(--color-yellow);
    }
  }

  & .profile-lesson-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-muted);
    flex-shrink: 0;
  }

  & .profile-lesson-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }

  & .profile-lesson-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-navy);
    line-height: 1.4;
  }

  & .profile-lesson-meta {
    font-size: 12px;
    color: var(--color-muted);
  }

  & .profile-lesson-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-navy);
    flex-shrink: 0;

    & img {
      width: 15px;
      height: 15px;
      transition: transform 0.25s ease;
    }

    &:hover img {
      transform: translateX(3px);
    }
  }

  & .profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  & .profile-list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s;

    &:hover {
      border-color: var(--color-navy);
      background: var(--color-bg-soft);
    }
  }

  & .profile-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  & .profile-list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
  }

  & .profile-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: var(--color-muted);

    & span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    & img {
      width: 16px;
      height: 16px;
      opacity: 0.7;
    }
  }

  & .profile-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;

    &.status-active {
      background: var(--color-yellow-soft);
      color: var(--color-navy);
    }

    &.status-done {
      background: rgba(34, 139, 34, 0.12);
      color: #1a8021;
    }

    &.status-pending {
      background: rgba(11, 26, 54, 0.06);
      color: var(--color-muted);
    }
  }

  & .profile-result-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
  }

  & .profile-score-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -0.02em;
  }

  & .profile-score-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
  }

  & .profile-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--color-muted);
    font-size: 14px;
  }
}

/* ===== AUTH PAGES ===== */
.auth-main {
  min-height: calc(100vh - 80px - 88px);
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
}

.form-input {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--color-navy);
  background: var(--color-white);
  transition: border-color 0.2s;

  &:focus {
    outline: none;
    border-color: var(--color-navy);
  }

  &::placeholder {
    color: var(--color-muted);
  }
}

.form-row {
  display: flex;
  gap: 8px;

  & .form-input {
    flex: 1;
  }
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--color-muted);
  cursor: pointer;

  & input {
    margin-top: 3px;
    accent-color: var(--color-navy);
    flex-shrink: 0;
  }

  & a {
    color: var(--color-navy);
    font-weight: 500;
  }
}

.auth-forgot {
  align-self: flex-end;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy);
  margin-top: -10px;

  &:hover {
    color: var(--color-yellow);
  }
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  padding: 15px 24px;
  font-size: 15px;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);

  & a {
    color: var(--color-navy);
    font-weight: 500;
    margin-left: 4px;

    &:hover {
      color: var(--color-yellow);
    }
  }
}

/* ===== OTP ===== */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 12px;
}

.otp-input {
  width: 56px;
  height: 64px;
  padding: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--color-navy);
  font-family: inherit;
  background: var(--color-white);
  transition: border-color 0.2s;

  &:focus {
    outline: none;
    border-color: var(--color-navy);
  }
}

.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 16px;

  & a {
    color: var(--color-navy);
    font-weight: 500;
    margin-left: 4px;

    &:hover {
      color: var(--color-yellow);
    }
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);

  & .footer-top {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  & .footer-inner {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
  }

  & .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 48px;
  }

  & .footer-brand {
    & .logo {
      display: inline-block;
      font-size: 22px;
      font-weight: 800;
      color: var(--color-white);
      letter-spacing: 0.02em;
      margin-bottom: 18px;
    }
  }

  & .footer-tagline {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    max-width: 340px;
  }

  & .footer-social {
    display: flex;
    gap: 10px;
  }

  & .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;

    &:hover {
      background: var(--color-yellow);
      transform: translateY(-2px);
    }

    & img {
      width: 20px;
      height: 20px;
      filter: brightness(0) invert(1);
      transition: filter 0.2s;
    }

    &:hover img {
      filter: brightness(0);
    }
  }

  & .footer-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 20px;
  }

  & .footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;

    & a {
      font-size: 14px;
      color: rgba(255, 255, 255, 0.7);
      transition: color 0.2s, padding-left 0.2s;

      &:hover {
        color: var(--color-yellow);
        padding-left: 4px;
      }
    }
  }

  & .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;

    & li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
    }

    & img {
      width: 20px;
      height: 20px;
      margin-top: 3px;
      filter: brightness(0) invert(0.7);
      flex-shrink: 0;
    }

    & a,
    & span {
      font-size: 14px;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.7);
    }

    & a {
      transition: color 0.2s;

      &:hover {
        color: var(--color-yellow);
      }
    }
  }

  & .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;

    & .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
  }

  & .footer-copy {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
  }

  & .footer-legal {
    display: flex;
    gap: 24px;

    & a {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.5);
      transition: color 0.2s;

      &:hover {
        color: var(--color-yellow);
      }
    }
  }
}

/* ===== SWIPER OVERRIDES ===== */
.swiper {
  width: 100%;
  padding-bottom: 64px;
  position: relative;
  overflow: visible;
}

.swiper-wrapper {
  align-items: stretch;
}

.swiper-slide {
  height: auto;
  display: flex;
  flex-direction: column;
}

.swiper-slide > * {
  width: 100%;
  flex: 1;
}

/* Hide overflow on the swiper but allow shadows around cards to show */
.video-section .swiper,
.exam-section .swiper,
.offline-section .swiper,
.blog-section .swiper,
.success-section .swiper {
  overflow: hidden;
  padding: 6px 4px 64px;
  margin: -6px -4px 0;
}

/* ---- Per-swiper slide widths (slidesPerView: auto) ---- */
.video-swiper .swiper-slide {
  width: 320px;
}

.exam-swiper .swiper-slide,
.offline-swiper .swiper-slide,
.blog-swiper .swiper-slide {
  width: 380px;
}

.success-swiper .swiper-slide {
  width: 320px;
}

/* Pagination — bottom-left */
.swiper-pagination {
  bottom: 12px !important;
  left: 0 !important;
  width: auto !important;
  text-align: left;
  padding-left: 4px;
  font-size: 0;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-navy);
  opacity: 0.25;
  margin: 0 4px !important;
  border-radius: 999px;
  transition: opacity 0.25s, background 0.25s, width 0.25s;
}

.swiper-pagination-bullet-active {
  background: var(--color-yellow);
  opacity: 1;
  width: 24px;
}

/* Nav buttons — bottom-right */
.swiper-nav {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.swiper-nav .swiper-button-prev,
.swiper-nav .swiper-button-next {
  position: static;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;

  &::after {
    font-size: 16px;
    font-weight: 700;
  }

  &:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
  }

  &.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
  }
}

/* Dark variant for navy backgrounds (Successes) */
.swiper-nav-dark .swiper-button-prev,
.swiper-nav-dark .swiper-button-next {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);

  &:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-navy);
  }
}

.success-section .swiper-pagination-bullet {
  background: var(--color-white);
}

.success-section .swiper-pagination-bullet-active {
  background: var(--color-yellow);
}

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

/* ---------- ≤ 1250px : tighten paddings, reduce hero/title sizes ---------- */
@media (max-width: 1250px) {
  .p-lr {
    padding-left: 64px;
    padding-right: 64px;
  }

  /* Swiper slide widths */
  .video-swiper .swiper-slide,
  .success-swiper .swiper-slide {
    width: 300px;
  }

  .exam-swiper .swiper-slide,
  .offline-swiper .swiper-slide,
  .blog-swiper .swiper-slide {
    width: 340px;
  }

  .hero {
    padding-top: 64px;
    padding-bottom: 64px;

    & .hero-inner {
      gap: 48px;
    }

    & .hero-title {
      font-size: 54px;
    }
  }

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

  .section-head {
    padding-top: 64px;
    padding-bottom: 28px;

    & .section-title {
      font-size: 32px;
    }
  }

  .success-section .section-title {
    font-size: 32px;
  }

  .video-section,
  .offline-section,
  .exam-section,
  .blog-section {
    padding-bottom: 64px;
  }

  .page-header {
    padding-top: 56px;
    padding-bottom: 56px;

    & .page-title {
      font-size: 48px;
    }
  }

  .package-hero {
    padding-bottom: 72px;

    & .package-hero-inner {
      gap: 48px;
    }

    & .package-title {
      font-size: 44px;
    }

    & .package-stats {
      gap: 36px;
    }
  }

  .lessons-section {
    padding-bottom: 96px;

    & .lessons-title {
      font-size: 28px;
    }
  }

  .video-page {
    padding-bottom: 80px;

    & .video-title-big {
      font-size: 40px;
    }
  }

  .blog-hero .blog-detail-title {
    font-size: 44px;
  }

  .blog-content {
    padding-top: 56px;
    padding-bottom: 80px;

    & h2 {
      font-size: 26px;
    }
  }

  .footer .footer-grid {
    gap: 36px;
  }
}

/* ---------- ≤ 992px : HAMBURGER appears, tablet / mobile transition ---------- */
@media (max-width: 992px) {
  .p-lr {
    padding-left: 32px;
    padding-right: 32px;
  }

  /* Swiper slide widths */
  .video-swiper .swiper-slide,
  .success-swiper .swiper-slide {
    width: 280px;
  }

  .exam-swiper .swiper-slide,
  .offline-swiper .swiper-slide,
  .blog-swiper .swiper-slide {
    width: 320px;
  }

  /* ---- Header → drawer ---- */
  .header {
    & .header-inner {
      height: auto;
      min-height: 72px;
      flex-wrap: wrap;
      gap: 12px;
      padding-top: 12px;
      padding-bottom: 12px;
    }

    & .header-burger {
      display: inline-flex;
      order: 5;
    }

    & .nav {
      order: 10;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      max-height: 0;
      overflow: hidden;
      padding-top: 0;
      padding-bottom: 0;
      border-top: 1px solid transparent;
      transition: max-height 0.3s ease, padding 0.25s ease, border-color 0.2s ease;
    }

    & .nav .nav-link {
      padding: 12px 4px;
      font-size: 15px;
      border-bottom: 1px solid var(--color-border);
    }

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

    & .nav .nav-link.active::after {
      display: none;
    }

    & .header-actions {
      order: 11;
      width: 100%;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      max-height: 0;
      overflow: hidden;
      padding-bottom: 0;
      transition: max-height 0.3s ease, padding 0.25s ease;
    }

    & .header-actions .language {
      align-self: flex-end;
    }

    & .header-actions .nav-link {
      padding: 10px 4px;
      font-size: 14px;
    }

    & .header-actions .register-btn {
      width: 100%;
      height: 44px;
      padding: 12px 20px;
    }

    & .header-actions .user-pill {
      align-self: flex-start;
    }

    &.menu-open .nav {
      max-height: 360px;
      padding: 8px 0 4px;
      border-top-color: var(--color-border);
    }

    &.menu-open .header-actions {
      max-height: 320px;
      padding-bottom: 14px;
    }
  }

  /* ---- Hero stacks ---- */
  .hero {
    padding-top: 56px;
    padding-bottom: 56px;

    & .hero-inner {
      grid-template-columns: 1fr;
      gap: 44px;
    }

    & .hero-content {
      max-width: none;
      padding-top: 0;
    }

    & .hero-title {
      font-size: 44px;
    }

    & .hero-text {
      max-width: none;
      font-size: 15px;
    }
  }

  /* ---- Card grids ---- */
  .video-section .video-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .offline-section .offline-cards,
  .blog-section .blog-cards,
  .exam-section .exam-cards,
  .success-section .success-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ---- Footer 4 → 2 ---- */
  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer .footer-top {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  /* ---- Section heads ---- */
  .section-head {
    padding-top: 56px;
    padding-bottom: 24px;

    & .section-title {
      font-size: 28px;
    }
  }

  .success-section {
    padding-top: 56px;
    padding-bottom: 56px;

    & .section-title {
      font-size: 28px;
      margin-bottom: 24px;
    }
  }

  /* ---- Page header ---- */
  .page-header {
    padding-top: 48px;
    padding-bottom: 48px;

    & .page-title {
      font-size: 38px;
    }
  }

  /* ---- Package hero ---- */
  .package-hero {
    padding-bottom: 56px;

    & .package-hero-inner {
      grid-template-columns: 1fr;
      gap: 36px;
      margin-top: 24px;
    }

    & .package-title {
      font-size: 36px;
      margin-bottom: 20px;
    }

    & .package-stats {
      gap: 28px;
      margin-bottom: 32px;
    }

    & .package-image {
      aspect-ratio: 16 / 10;
    }
  }

  /* ---- Lessons ---- */
  .lessons-section {
    padding-bottom: 72px;

    & .lessons-title {
      font-size: 26px;
    }
  }

  /* ---- Video page ---- */
  .video-page {
    padding-bottom: 64px;

    & .video-title-big {
      font-size: 34px;
    }

    & .video-player {
      margin-top: 36px;
      border-radius: 18px;
    }
  }

  /* ---- Blog detail ---- */
  .blog-hero {
    padding-bottom: 32px;

    & .blog-detail-title {
      font-size: 36px;
    }
  }

  .blog-cover {
    padding-bottom: 48px;
  }

  .blog-content {
    padding-top: 48px;
    padding-bottom: 64px;

    & .blog-lead {
      font-size: 18px;
    }

    & h2 {
      font-size: 24px;
      margin-top: 32px;
    }

    & h3 {
      font-size: 20px;
    }
  }

  /* ---- Profile + Test layouts stack ---- */
  .profile-page,
  .test-page {
    padding-bottom: 64px;
  }

  .profile-page .profile-layout,
  .test-page .test-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-page .profile-sidebar,
  .test-page .test-sidebar {
    position: static;
    top: auto;
  }

  .profile-page .profile-sidebar {
    padding: 16px;
  }

  .profile-page .profile-user {
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  .profile-page .profile-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .profile-page .profile-nav-item {
    flex-shrink: 0;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .profile-page .profile-logout {
    margin-top: 0;
    padding-top: 9px;
    border-top: none;
  }

  .profile-page .profile-section {
    padding: 28px 24px;
  }

  .profile-page .profile-section-title {
    font-size: 20px;
  }

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

  .test-page .test-card {
    padding: 28px;
  }

  .test-page .test-sidebar {
    order: 2;
  }

  .test-page .test-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  /* ---- Result ---- */
  .result-page {
    padding-bottom: 64px;
  }

  .result-page .result-summary {
    padding: 32px;
    gap: 28px;
  }

  .result-page .result-title {
    font-size: 28px;
  }

  /* ---- Auth ---- */
  .auth-main {
    padding: 48px 24px;
  }

  /* ---- Offline form ---- */
  .offline-form-section {
    padding-top: 48px;
    padding-bottom: 64px;

    & .offline-form-card {
      padding: 32px 28px;
    }
  }
}

/* ---------- ≤ 768px : full mobile ---------- */
@media (max-width: 768px) {
  .p-lr {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Swiper slide widths */
  .video-swiper .swiper-slide,
  .success-swiper .swiper-slide {
    width: 260px;
  }

  .exam-swiper .swiper-slide,
  .offline-swiper .swiper-slide,
  .blog-swiper .swiper-slide {
    width: 280px;
  }

  /* ---- Header tighter ---- */
  .header .logo {
    font-size: 17px;
  }

  /* ---- Hero ---- */
  .hero {
    padding-top: 44px;
    padding-bottom: 44px;

    & .hero-title {
      font-size: 36px;
      margin-bottom: 20px;
    }

    & .hero-text {
      font-size: 15px;
      margin-bottom: 24px;
    }

    & .hero-cta {
      padding: 14px 24px;
    }

    & .hero-grid {
      gap: 12px;

      & .hero-card {
        padding: 18px;

        &:nth-child(2),
        &:nth-child(4) {
          transform: none;
        }

        &:hover:nth-child(1),
        &:hover:nth-child(3),
        &:hover:nth-child(2),
        &:hover:nth-child(4) {
          transform: translateY(-3px);
        }
      }

      & .hero-card-title {
        font-size: 16px;
      }
    }
  }

  /* ---- All multi-col grids → 1 col ---- */
  .video-section .video-cards,
  .offline-section .offline-cards,
  .blog-section .blog-cards,
  .exam-section .exam-cards,
  .success-section .success-cards {
    grid-template-columns: 1fr;
  }

  .success-section .success-card {
    aspect-ratio: 5 / 4;
    max-height: 380px;
  }

  /* ---- Section headings ---- */
  .section-head {
    padding-top: 48px;
    padding-bottom: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    & .section-title {
      font-size: 24px;
    }
  }

  .success-section {
    padding-top: 48px;
    padding-bottom: 48px;

    & .section-title {
      font-size: 24px;
      margin-bottom: 20px;
    }
  }

  .video-section,
  .offline-section,
  .exam-section,
  .blog-section {
    padding-bottom: 48px;
  }

  .slider-controls {
    padding-top: 24px;
  }

  /* ---- Footer 1 col ---- */
  .footer .footer-top {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer .footer-bottom .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer .footer-legal {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* ---- Page header ---- */
  .page-header {
    padding-top: 36px;
    padding-bottom: 36px;

    & .page-title {
      font-size: 30px;
    }

    & .page-subtitle {
      font-size: 14px;
    }
  }

  .pagination {
    flex-wrap: wrap;
    padding-top: 32px;
  }

  /* ---- Package hero ---- */
  .package-hero {
    padding-bottom: 44px;

    & .package-title {
      font-size: 30px;
      margin-bottom: 18px;
    }

    & .package-description {
      font-size: 15px;
      padding-bottom: 24px;
      margin-bottom: 24px;
    }

    & .package-stats {
      flex-direction: column;
      gap: 16px;
      margin-bottom: 28px;
    }

    & .package-buy {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }

    & .package-cta {
      width: 100%;
    }

    & .package-price {
      font-size: 26px;
    }
  }

  /* ---- Lessons ---- */
  .lessons-section {
    padding-bottom: 48px;

    & .lessons-head {
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }

    & .lessons-title {
      font-size: 22px;
    }

    & .lesson-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      padding: 18px 0;
    }
  }

  /* ---- Video page ---- */
  .video-page {
    padding-bottom: 48px;

    & .video-player {
      border-radius: 16px;
      margin-top: 28px;
    }

    & .video-eyebrow {
      margin-bottom: 12px;
      font-size: 11px;
    }

    & .video-title-big {
      font-size: 26px;
    }

    & .video-description {
      font-size: 15px;
    }
  }

  /* ---- Blog detail ---- */
  .blog-hero {
    padding-bottom: 24px;

    & .breadcrumb {
      padding-top: 24px;
      padding-bottom: 24px;
    }

    & .blog-detail-title {
      font-size: 28px;
    }

    & .blog-meta {
      flex-wrap: wrap;
      gap: 8px;
      font-size: 12px;
    }
  }

  .blog-cover {
    padding-bottom: 32px;

    & .blog-cover-img {
      border-radius: var(--radius-md);
      aspect-ratio: 4 / 3;
    }
  }

  .blog-content {
    padding-top: 32px;
    padding-bottom: 48px;

    & p {
      font-size: 15px;
    }

    & .blog-lead {
      font-size: 17px;
    }

    & h2 {
      font-size: 21px;
      margin-top: 28px;
    }

    & h3 {
      font-size: 18px;
      margin-top: 24px;
    }
  }

  /* ---- Result ---- */
  .result-page {
    padding-bottom: 48px;
  }

  .result-page .result-summary {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 22px;
  }

  .result-page .result-title {
    font-size: 22px;
  }

  .result-page .result-score-block {
    min-width: 0;
    width: 100%;
    padding: 22px 24px;
  }

  .result-page .result-score-big {
    font-size: 44px;
  }

  .result-page .result-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
    gap: 16px;
  }

  .result-page .result-subjects {
    padding: 22px;
  }

  .result-page .result-subject-row {
    grid-template-columns: 1fr 60px;
    gap: 12px;
  }

  .result-page .result-subject-row .result-subject-bar {
    grid-column: 1 / -1;
    order: 3;
  }

  .result-page .result-actions {
    flex-direction: column-reverse;

    & .btn {
      width: 100%;
    }
  }

  /* ---- Profile ---- */
  .profile-page {
    padding-bottom: 48px;
  }

  .profile-page .profile-section {
    padding: 22px 18px;
  }

  .profile-page .profile-section-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .profile-page .profile-section-title {
    font-size: 18px;
  }

  .profile-page .profile-info-grid,
  .profile-page .profile-cards {
    grid-template-columns: 1fr;
  }

  .profile-page .profile-list-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .profile-page .profile-list-meta {
    gap: 10px;
    font-size: 11px;
  }

  .profile-page .profile-status,
  .profile-page .profile-result-score {
    align-self: flex-start;
  }

  .profile-page .profile-list-row .btn {
    width: 100%;
    justify-content: center;
  }

  .profile-page .profile-package-head {
    padding: 16px 18px;
    gap: 14px;
  }

  .profile-page .profile-package-info,
  .profile-page .profile-package-progress {
    min-width: 0;
    width: 100%;
  }

  .profile-page .profile-lesson-row {
    padding: 12px 16px;
    gap: 12px;
  }

  /* ---- Test page ---- */
  .test-page {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .test-page .test-bar {
    flex-wrap: wrap;
    padding: 12px 14px;
    gap: 10px;
  }

  .test-page .test-counter,
  .test-page .test-timer {
    font-size: 12px;
  }

  .test-page .test-card {
    padding: 22px 18px;
  }

  .test-page .test-question {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .test-page .test-option {
    padding: 14px;
    gap: 12px;
  }

  .test-page .test-option-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .test-page .test-option-text {
    font-size: 14px;
  }

  .test-page .test-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .test-page .test-actions {
    gap: 10px;
  }

  .test-page .test-actions .btn {
    padding: 11px 18px;
    font-size: 14px;
    flex: 1;
  }

  /* ---- Form grids ---- */
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* ---- Auth ---- */
  .auth-main {
    padding: 32px 16px;
  }

  .auth-card {
    padding: 32px 22px;
    border-radius: var(--radius-md);
  }

  .auth-title {
    font-size: 24px;
  }

  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  /* ---- Exam start ---- */
  .exam-start-page {
    padding: 32px 16px 48px;
  }

  .exam-start-card {
    padding: 28px 22px;
  }

  .exam-start-title {
    font-size: 22px;
  }

  .exam-start-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .exam-start-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .countdown-number {
    font-size: 140px;
  }

  .countdown-number.go {
    font-size: 64px;
  }

  /* ---- User pill: avatar only ---- */
  .user-pill {
    padding: 0;
    background: transparent;

    &:hover {
      background: transparent;
    }

    & .user-avatar {
      width: 36px;
      height: 36px;
      font-size: 13px;
    }

    & .user-name {
      display: none;
    }
  }

  /* ---- Language compact ---- */
  .header .language .current-lang {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* ---- Offline form ---- */
  .offline-form-section {
    padding-top: 32px;
    padding-bottom: 48px;

    & .offline-form-card {
      padding: 24px 18px;
    }

    & .offline-form-title {
      font-size: 20px;
    }
  }

  /* ---- OTP ---- */
  .otp-inputs {
    gap: 8px;
  }

  .otp-input {
    width: 44px;
    height: 54px;
    font-size: 20px;
  }

  /* ---- Breadcrumb ---- */
  .breadcrumb {
    display: none;
  }
}

/* ---------- ≤ 568px : small mobile ---------- */
@media (max-width: 568px) {
  .p-lr {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Swiper slide widths — almost full width with peek */
  .video-swiper .swiper-slide,
  .success-swiper .swiper-slide,
  .exam-swiper .swiper-slide,
  .offline-swiper .swiper-slide,
  .blog-swiper .swiper-slide {
    width: 86%;
  }

  /* Compact swiper nav buttons */
  .swiper-nav .swiper-button-prev,
  .swiper-nav .swiper-button-next {
    width: 38px;
    height: 38px;

    &::after {
      font-size: 14px;
    }
  }

  /* ---- Header ---- */
  .header .logo {
    font-size: 16px;
  }

  .header .header-burger {
    width: 36px;
    height: 36px;
  }

  /* ---- Hero ---- */
  .hero {
    padding-top: 32px;
    padding-bottom: 36px;

    & .hero-title {
      font-size: 28px;
      margin-bottom: 18px;
    }

    & .hero-text {
      font-size: 14px;
      margin-bottom: 22px;
    }

    & .hero-cta {
      width: 100%;
      padding: 13px 22px;
    }

    & .hero-grid {
      gap: 10px;

      & .hero-card {
        padding: 16px;
        aspect-ratio: 1.05;
        border-radius: 12px;
      }

      & .hero-card-icon {
        width: 38px;
        height: 38px;

        & img {
          width: 22px;
          height: 22px;
        }
      }

      & .hero-card-title {
        font-size: 14px;
      }
    }
  }

  /* ---- Section title ---- */
  .section-head .section-title,
  .success-section .section-title {
    font-size: 22px;
  }

  /* ---- Video card ---- */
  .video-card .video-body {
    padding: 16px 16px 18px;
  }

  .video-card .video-title {
    font-size: 14px;
  }

  /* ---- Page header ---- */
  .page-header .page-title {
    font-size: 24px;
  }

  /* ---- Package ---- */
  .package-hero .package-title {
    font-size: 24px;
  }

  .package-hero .package-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .package-hero .package-price {
    font-size: 22px;
  }

  /* ---- Video page ---- */
  .video-page .video-title-big {
    font-size: 22px;
  }

  /* ---- Blog detail ---- */
  .blog-hero .blog-detail-title {
    font-size: 22px;
  }

  .blog-content h2 {
    font-size: 19px;
  }

  .blog-content h3 {
    font-size: 17px;
  }

  /* ---- Result ---- */
  .result-page .result-stat-value {
    font-size: 18px;
  }

  .result-page .result-score-big {
    font-size: 38px;
  }

  .result-page .result-summary {
    padding: 20px;
  }

  /* ---- Test page ---- */
  .test-page .test-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .test-page .test-card {
    padding: 18px 14px;
  }

  .test-page .test-question {
    font-size: 16px;
  }

  /* ---- Auth ---- */
  .auth-card {
    padding: 28px 18px;
  }

  .auth-title {
    font-size: 22px;
  }

  /* ---- Exam start ---- */
  .exam-start-card {
    padding: 24px 18px;
  }

  .exam-start-title {
    font-size: 20px;
  }

  .countdown-number {
    font-size: 110px;
  }

  .countdown-number.go {
    font-size: 52px;
  }

  /* ---- OTP ---- */
  .otp-inputs {
    gap: 6px;
  }

  .otp-input {
    width: 40px;
    height: 50px;
    font-size: 18px;
  }

  /* ---- Profile ---- */
  .profile-page .profile-section {
    padding: 20px 16px;
  }

  /* ---- Pagination ---- */
  .pagination {
    gap: 4px;

    & .page-btn {
      min-width: 34px;
      height: 34px;
      padding: 0 8px;
      font-size: 13px;
    }
  }

  /* ---- Slider controls ---- */
  .slider-btn {
    width: 36px;
    height: 36px;
  }

  /* ---- Buttons ---- */
  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }
}

/* ───────── Profile pages (my-*, profile) ───────── */
.profile-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 28px 0 60px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) { .profile-wrap { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 40px; } }

/* Sidebar card */
.profile-side {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 14px;
  padding: 18px 14px;
  box-shadow: 0 1px 3px rgba(20,20,43,.04);
  align-self: start;
  position: sticky;
  top: 90px;
}
.profile-user {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid #f1f2f7;
  margin-bottom: 12px;
}
.profile-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5e72e4, #825ee4);
  color: #fff;
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-name { font-weight: 600; color: #2d3142; font-size: .95rem; line-height: 1.2; }
.profile-phone { color: #8a8fa3; font-size: .8rem; margin-top: 2px; }

.profile-nav { list-style: none; padding: 0; margin: 0; }
.profile-nav li { margin: 0; }
.profile-nav-sep { height: 1px; background: #f1f2f7; margin: 8px 4px; }
.profile-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #5b6075;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.profile-nav a:hover { background: #f6f7fb; color: #2d3142; }
.profile-nav a svg { flex-shrink: 0; opacity: .85; }
.profile-nav a.active {
  background: linear-gradient(135deg, rgba(94,114,228,.10), rgba(130,94,228,.08));
  color: #4a5ce0;
}
.profile-nav a.active svg { opacity: 1; }
.profile-nav a.logout { color: #d9384e; }
.profile-nav a.logout:hover { background: #fff1f3; }

/* Main content */
.profile-main {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: 0 1px 3px rgba(20,20,43,.04);
  min-height: 320px;
}
.profile-main > h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2d3142;
  margin: 0 0 4px;
}
.profile-main > .profile-sub {
  color: #8a8fa3; font-size: .88rem; margin-bottom: 18px;
}
.profile-main > h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3142;
  margin: 22px 0 10px;
}

/* Empty state */
.profile-empty {
  text-align: center;
  padding: 50px 24px;
  color: #8a8fa3;
}
.profile-empty .empty-icon {
  width: 68px; height: 68px;
  margin: 0 auto 14px;
  background: #f4f5fa;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #b1b5c6;
}
.profile-empty h4 { color: #2d3142; font-size: 1rem; margin: 0 0 6px; font-weight: 600; }
.profile-empty p { margin: 0 0 14px; font-size: .88rem; }
.profile-empty .btn { display: inline-block; }

/* Card grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.card-item {
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.card-item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,20,43,.08); }
.card-cover { aspect-ratio: 16/9; background: #f4f5fa; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: .95rem; margin: 0 0 6px; color: #2d3142; font-weight: 600; line-height: 1.3; }
.card-meta { color: #8a8fa3; font-size: .8rem; }
.card-best { margin-top: 8px; color: #4a5ce0; font-size: .85rem; }
.card-actions { margin-top: 12px; }
.card-actions .btn { width: 100%; }

/* Profile form */
.profile-form { display: grid; gap: 14px; max-width: 520px; margin-top: 12px; }
.profile-form label { display: block; font-size: .82rem; color: #5b6075; font-weight: 500; }
.profile-form .form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e4ee;
  border-radius: 9px;
  margin-top: 4px;
  font-size: .9rem;
  color: #2d3142;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.profile-form .form-input:focus { outline: none; border-color: #5e72e4; box-shadow: 0 0 0 3px rgba(94,114,228,.12); }
.profile-form .form-input:disabled { background: #f6f7fb; color: #8a8fa3; }
.profile-alert { background: #e6f7ec; color: #1f7a3f; padding: 10px 14px; border-radius: 9px; margin-bottom: 14px; font-size: .88rem; }
.profile-alert.error { background: #fdecef; color: #b8243a; }

/* Tickets (offline) */
.ticket {
  border: 2px dashed #5e72e4;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 14px 0;
  background: linear-gradient(135deg, #fafbff, #fff);
}
.ticket-row { display: flex; gap: 24px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid #eef0f7; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row > div { min-width: 120px; }
.ticket-label { color: #8a8fa3; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.ticket-no { font-family: 'SF Mono', Monaco, monospace; font-size: 1.25rem; color: #4a5ce0; font-weight: 700; }
.ticket-seat { font-family: 'SF Mono', Monaco, monospace; font-size: 1.45rem; color: #d9384e; font-weight: 700; }

/* Video package list */
.vp-block {
  border: 1px solid #ecedf2;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #fff;
}
.vp-block > h3 { font-size: 1rem; margin: 0 0 12px; color: #2d3142; font-weight: 600; }
.vp-block > h3 small { color: #8a8fa3; font-weight: 400; font-size: .85rem; }
.vp-list { list-style: none; padding: 0; margin: 0; }
.vp-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 4px;
  border-bottom: 1px solid #f4f5fa;
}
.vp-list li:last-child { border-bottom: 0; }
.vp-list a { text-decoration: none; color: #2d3142; font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.vp-list a:hover { color: #4a5ce0; }
.vp-list .vp-dur { color: #8a8fa3; font-size: .8rem; font-family: 'SF Mono', Monaco, monospace; }

/* Results table */
.profile-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .88rem; }
.profile-table th, .profile-table td { padding: 11px 12px; border-bottom: 1px solid #f1f2f7; text-align: left; }
.profile-table th { background: #fafbff; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #8a8fa3; }
.profile-table tr:hover td { background: #fafbff; }
.profile-table .status-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .72rem; font-weight: 600; }
.profile-table .status-completed { background: #e6f7ec; color: #1f7a3f; }
.profile-table .status-in_progress { background: #fff7e0; color: #a8740c; }

/* Upcoming class card (groups page) */
.upcoming-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #ecedf2; border-radius: 11px;
  padding: 14px 16px; margin-bottom: 10px;
  border-left-width: 4px;
}
.upcoming-card .uc-title { font-weight: 600; color: #2d3142; }
.upcoming-card .uc-meta { color: #8a8fa3; font-size: .85rem; margin-top: 3px; }
.upcoming-card .uc-soon { color: #4a5ce0; font-weight: 600; }

/* ───────── Result page ───────── */
.result-page { max-width: 920px; margin: 0 auto; padding: 24px 0 60px; }
.result-back { color: #8a8fa3; text-decoration: none; font-size: .85rem; }
.result-back:hover { color: #4a5ce0; }
.result-title { font-size: 1.4rem; font-weight: 700; color: #2d3142; margin: 8px 0 18px; }
.result-summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 0 0 28px;
}
.result-summary > div {
  background: #fff; border: 1px solid #ecedf2; border-radius: 12px;
  padding: 20px 16px; text-align: center;
  box-shadow: 0 1px 3px rgba(20,20,43,.04);
}
.result-summary .lbl { color: #8a8fa3; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.result-summary .val { font-size: 1.8rem; font-weight: 700; margin-top: 6px; color: #2d3142; }
.result-summary .val-score { color: #4a5ce0; }
.result-summary .val-correct { color: #1f7a3f; }
.result-section-title { font-size: 1rem; font-weight: 600; color: #2d3142; margin: 22px 0 12px; }
.ans-card {
  border: 1px solid #ecedf2; border-left: 4px solid #d8dae6;
  padding: 14px 16px; margin-bottom: 10px;
  background: #fff; border-radius: 9px;
  font-size: .9rem;
}
.ans-card.ok  { border-left-color: #1f7a3f; background: #f3fbf5; }
.ans-card.bad { border-left-color: #d9384e; background: #fdf3f5; }
.ans-card .ans-q { margin-bottom: 8px; color: #2d3142; }
.ans-card .ans-row { color: #5b6075; margin: 4px 0; }
.ans-card .ans-row b { color: #2d3142; font-weight: 600; }
.ans-card .ans-explain { color: #8a8fa3; font-size: .82rem; margin-top: 6px; padding-top: 6px; border-top: 1px dashed #ecedf2; }

/* ───────── Video player page ───────── */
.video-page { max-width: 980px; margin: 0 auto; padding: 24px 0 60px; }
.video-page .video-back { color: #8a8fa3; text-decoration: none; font-size: .85rem; }
.video-page .video-back:hover { color: #4a5ce0; }
.video-page .video-title { font-size: 1.35rem; font-weight: 700; color: #2d3142; margin: 8px 0 4px; }
.video-page .video-pkg { color: #8a8fa3; font-size: .9rem; margin-bottom: 18px; }
.video-frame {
  position: relative; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  background: #000;
  box-shadow: 0 4px 14px rgba(20,20,43,.10);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-desc {
  margin-top: 18px; padding: 16px 18px;
  background: #fff; border: 1px solid #ecedf2; border-radius: 12px;
  line-height: 1.7; color: #5b6075; font-size: .92rem;
}

/* ───────── Header logo + user pill ───────── */
.header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header .logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}
.header .logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-navy, #0e1340);
  letter-spacing: -0.01em;
}

/* User dropdown pill */
.user-menu { position: relative; }
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  background: #fff;
  border: 1px solid #e2e4ee;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #2d3142;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.user-pill:hover { border-color: #cfd2e0; background: #fafbff; box-shadow: 0 2px 8px rgba(20,20,43,.05); }
.user-pill-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5e72e4, #825ee4);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-pill-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill-caret { color: #8a8fa3; transition: transform .2s; }
.user-menu.open .user-pill-caret { transform: rotate(180deg); }

.user-pill-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ecedf2;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(20,20,43,.12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}
.user-menu.open .user-pill-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-pill-head {
  padding: 12px 12px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f1f2f7;
}
.user-pill-name-lg { font-weight: 600; color: #2d3142; font-size: .92rem; }
.user-pill-phone { color: #8a8fa3; font-size: .78rem; margin-top: 2px; }
.user-pill-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #5b6075;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 500;
}
.user-pill-menu a:hover { background: #f6f7fb; color: #2d3142; }
.user-pill-menu a svg { color: #8a8fa3; flex-shrink: 0; }
.user-pill-menu .user-pill-sep { height: 1px; background: #f1f2f7; margin: 4px 6px; }
.user-pill-menu .user-pill-logout { color: #d9384e; }
.user-pill-menu .user-pill-logout:hover { background: #fff1f3; }
.user-pill-menu .user-pill-logout svg { color: #d9384e; }

@media (max-width: 768px) {
  .user-pill-name { display: none; }
  .user-pill { padding: 4px; }
  .header .logo-img { height: 36px; }
  .header .logo-text { display: none; }
}

/* ───────── Login button (header) ───────── */
.header .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  height: 38px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #d8dae6;
  color: var(--color-navy, #0e1340);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.header .login-btn:hover {
  border-color: var(--color-navy, #0e1340);
  background: var(--color-navy, #0e1340);
  color: #fff;
}
.header .login-btn:active { transform: translateY(1px); }
.header .login-btn svg { stroke-width: 2.2; opacity: .85; }
@media (max-width: 768px) {
  .header .login-btn span { display: none; }
  .header .login-btn { padding: 9px 11px; }
}

/* ───────── Footer logo ───────── */
/* JPEG ağ fonlu loqo üçün: ağ "tile" çərçivə — niyyətli görünür.
   Şəffaf PNG/SVG istifadə edilərsə CSS sadəcə padding əlavə edir, dizayn pozulmur. */
.footer .footer-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  margin-bottom: 4px;
}
.footer .footer-brand .logo-img {
  max-height: 56px;
  width: auto;
  display: block;
}
