    :root {
      /* Aceeași paletă miniCODEX, utilizată invers/complementar */
      --haiti: #161032;
      /* text principal */
      --java: #14CFBC;
      /* accent secundar */
      --bright-sun: #FFE830;
      /* highlight */
      --butterfly: #5C51A2;
      /* buton primar, accente */
      --alabaster: #FAFAFA;
      /* text pe butoane închise / iconițe albe */

      --glass-1: rgba(0, 0, 0, .08);
      --glass-2: rgba(0, 0, 0, .05);

      --radius-xl: 24px;
      --radius-lg: 16px;
      --radius-md: 12px;

      --shadow-1: 0 10px 28px rgba(22, 16, 50, .10);
      --shadow-2: 0 16px 50px rgba(92, 81, 162, .22);
    }

    * {
      box-sizing: border-box
    }

    html,
    body {
      height: 100%
    }

    body {
      margin: 0;
      color: var(--haiti);
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .96) 30%),
        radial-gradient(1000px 600px at 10% -10%, rgba(92, 81, 162, .10), transparent 60%),
        radial-gradient(900px 520px at 110% 0%, rgba(255, 232, 48, .18), transparent 60%);
      -webkit-font-smoothing: antialiased;
      line-height: var(--lh-body);
    }

    /* ===== Page rhythm ===== */
    main.wrap{ padding-bottom: 36px; }

    /* keep paragraphs readable (same frame, nicer line length) */
    .lead{ font-size: var(--fs-body-lg); line-height: var(--lh-body); }

    .wrap {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px
    }

    /* Intro scurt pentru părinți */
    header.intro {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      padding: 36px 0 14px;
      margin-bottom: 8px;
    }

    header.intro::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        radial-gradient(420px 220px at 12% 12%, rgba(20, 207, 188, .18), transparent 60%),
        radial-gradient(460px 260px at 88% 0%, rgba(255, 232, 48, .20), transparent 60%),
        linear-gradient(130deg, rgba(92, 81, 162, .14) 0%, rgba(92, 81, 162, .06) 40%, transparent 60%);
      border-bottom: 1px solid var(--glass-1);
    }

    .eyebrow {
      color: var(--butterfly);
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      font-size: var(--fs-micro);
      font-family: var(--font-heading)
    }

    h1 {
      margin: .25rem 0 .35rem;
      font-size: var(--fs-h1);
      line-height: var(--lh-heading);
      font-weight: 700;
      font-family: var(--font-heading)
    }

    .lead {
      color: #2a234f;
      opacity: .9;
      max-width: 980px
    }

    .picker {
      margin-top: 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }

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

    .hint {
      background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90));
      border: 1px solid var(--glass-1);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-1);
      padding: 14px 16px;
      display: grid;
      gap: 8px;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }

    .hint:hover{
      transform: translateY(-2px);
      box-shadow: 0 14px 36px rgba(92, 81, 162, .16);
      border-color: rgba(92, 81, 162, .22);
    }

    .hint h3 {
      margin: 0 0 4px
    }

    .hint ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 6px
    }

    .hint li {
      display: flex;
      gap: 10px;
      align-items: flex-start
    }

    .tick,
    .info {
      width: 18px;
      height: 18px;
      border-radius: 4px;
      display: grid;
      place-items: center;
      font-weight: 900;
      line-height: 1;
    }

    .tick {
      background: var(--butterfly);
      color: var(--alabaster)
    }

    .info {
      background: var(--java);
      color: #052d28
    }

    /* Grid carduri centrale (3 certificări) */
    section.cards {
      padding: 10px 0 28px;
    }

    .cards-head {
      text-align: center;
      margin-bottom: 10px;
    }

    .cards-head .sub {
      opacity: .85;
      max-width: 820px;
      margin: 6px auto 0
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      align-items: stretch;
      justify-items: stretch;
      max-width: 980px;
      margin: 0 auto;
      width: 100%;
    }

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

    .card {
      position: relative;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .90));
      border: 1px solid var(--glass-1);
      border-radius: var(--radius-xl);
      box-shadow: var(--shadow-1);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      outline: 0;
      width: 100%;
      min-width: 0;
    }

    .card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 38px rgba(92, 81, 162, .22)
    }

    .card:focus-within{
      outline: 3px solid rgba(20, 207, 188, .35);
      outline-offset: 2px;
      border-color: rgba(20, 207, 188, .35);
    }

.plan {
  display: flex;
  flex-wrap: wrap;          /* allows subtitle to go on its own row */
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}

/* Title stays on the first row */
.plan .card-title{
  flex: 1 1 auto;
  min-width: 0;
}

/* Subtitle forced to the next row, aligned with the title (after the dot) */
.plan .card-subtitle{
  flex: 0 0 100%;
  margin-left: 22px;        /* dot(12px) + gap(10px) = 22px */
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--butterfly);
  opacity: 0.9;
  line-height: 1.1;
}

.plan h3{
  font-size: var(--fs-h3);
  line-height: var(--lh-heading-2);
  letter-spacing: .2px;
  font-weight: 500;
  font-family: var(--font-heading);
  /* keep natural wrapping (no “one word per line”) */
  word-break: normal;
  overflow-wrap: break-word;
  margin: 0;
}

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--java);
      box-shadow: 0 0 0 4px rgba(20, 207, 188, .18)
    }


    .desc {
      opacity: .92;
      font-size: var(--fs-body)
    }

    .list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 8px
    }

    .row {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 18px;
      border-radius: var(--radius-lg);
      background: var(--butterfly);
      color: var(--alabaster);
      text-decoration: none;
      font-weight: 700;
      font-size: var(--fs-btn);
      font-family: var(--font-body);
      border: 2px solid transparent;
      cursor: pointer;
      align-self: center;
      width: fit-content;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
      min-height: 48px;
      margin-top: auto;
      min-width: 220px;
      text-align: center;
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 30px rgba(92, 81, 162, .35);
      background: #6a60b8
    }

    .navbar .btn {
      padding: var(--sp-1) var(--sp-2);
      border-radius: var(--radius-md);
      font-size: var(--fs-btn);
      min-height: auto;
      min-width: 0;
      width: auto;
      margin-top: 0;
      align-self: auto;
      box-shadow: var(--shadow-2);
      background: var(--java);
      color: #041d1a;
    }

    .navbar .btn:hover {
      box-shadow: 0 12px 30px rgba(20, 207, 188, .35);
      background: var(--java);
    }

    .btn:focus-visible{
      outline: 3px solid rgba(20, 207, 188, .45);
      outline-offset: 3px;
    }

    .btn-outline{
      background: transparent;
      color: var(--butterfly);
      border: 2px solid rgba(92, 81, 162, .30);
      min-width: 0;
    }

    .btn-outline:hover{
      background: rgba(92, 81, 162, .08);
      border-color: var(--butterfly);
      box-shadow: none;
    }

    .card-actions{
      display: flex;
      gap: 10px;
      margin-top: auto;
      align-self: center;
      flex-wrap: wrap;
      justify-content: center;
    }

    .card-actions .btn{
      min-width: 0;
      padding: 10px 16px;
      font-size: var(--fs-btn);
    }

    .link:focus-visible{
      outline: 3px solid rgba(92, 81, 162, .35);
      outline-offset: 3px;
      border-bottom-color: var(--butterfly);
    }

    .link {
      color: var(--butterfly);
      font-weight: 700;
      text-decoration: none;
      border-bottom: 2px solid rgba(92, 81, 162, .25);
    }

    .link:hover {
      border-color: var(--butterfly)
    }

    /* =========================================
       Enrollment section (light theme)
       ========================================= */
    .enroll-section {
      max-width: 1200px;
      margin: 10px auto 30px;
      scroll-margin-top: 80px;
    }

    .enroll-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--sp-3);
      max-width: 1200px;
    }

    @media (max-width: 1080px) {
      .enroll-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto;
      }
    }

    .enroll-sub {
      text-align: center;
      color: rgba(42,35,79,.7);
      margin: 0 0 var(--sp-3);
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .enroll-card {
      scroll-margin-top: 90px;
      background: linear-gradient(168deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.90) 100%);
      border: 1px solid var(--glass-1);
      border-radius: var(--radius-xl);
      padding: var(--sp-3);
      box-shadow: var(--shadow-1);
      position: relative;
      overflow: hidden;
    }

    .enroll-card::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--butterfly), var(--bright-sun));
    }

    .enroll-header {
      display: flex;
      align-items: center;
      gap: var(--sp-2);
      margin-bottom: var(--sp-2);
    }

    .enroll-badge {
      flex-shrink: 0;
      font-size: var(--fs-micro);
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--butterfly);
      border: 1px solid rgba(92,81,162,.25);
      background: rgba(92,81,162,.06);
      padding: 6px 14px;
      border-radius: 999px;
    }

    .enroll-title {
      margin: 0;
      font-size: var(--fs-body-lg);
      font-weight: 700;
      font-family: var(--font-heading);
      color: var(--haiti);
    }

    .enroll-meta {
      margin: 2px 0 0;
      font-size: var(--fs-small);
      color: rgba(42,35,79,.55);
    }

    .enroll-desc {
      margin: 0 0 18px;
      color: rgba(42,35,79,.78);
      line-height: 1.6;
    }

    .enroll-slots .loading-text {
      color: rgba(42,35,79,.45);
      font-style: italic;
    }

    .enroll-slots .no-slots {
      color: rgba(42,35,79,.5);
      padding: 14px 0;
    }

    .slots-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-1);
    }

    .slot-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 3px;
      padding: 12px 10px;
      border-radius: 12px;
      background: rgba(92,81,162,.06);
      border: 1px solid rgba(92,81,162,.18);
      color: var(--haiti);
      cursor: pointer;
      font-family: inherit;
      transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
    }

    .slot-btn:hover {
      background: rgba(92,81,162,.12);
      border-color: rgba(92,81,162,.35);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(92,81,162,.12);
    }

    .slot-day {
      font-weight: 700;
      font-size: var(--fs-body);
    }

    .slot-time {
      font-size: var(--fs-small);
      color: var(--butterfly);
      font-weight: 600;
    }

    @media (max-width: 640px) {
      .enroll-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      .slots-grid {
        grid-template-columns: 1fr;
      }
    }
