:root {
    --teal:       #0a7c6e;
    --teal-dark:  #065a50;
    --teal-light: #e6f4f2;
    --teal-mid:   #c0e5e0;
    --navy:       #0d2233;
    --navy-mid:   #1a3a52;
    --sky:        #3aa8c1;
    --amber:      #e8923a;
    --amber-dark: #c47320;
    --red:        #d94040;
    --green:      #2e9e5b;
    --body:       #374151;
    --muted:      #6b7280;
    --border:     #e2e8f0;
    --bg:         #f8fafb;
    --white:      #ffffff;
    --card-shadow: 0 2px 12px rgba(10,60,50,.08), 0 1px 3px rgba(0,0,0,.06);
    --card-hover:  0 8px 32px rgba(10,60,50,.14), 0 2px 8px rgba(0,0,0,.08);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; color: var(--body); background: var(--bg); font-size: 15px; line-height: 1.6; }
  h1,h2,h3,h4 { font-family: 'DM Serif Display', serif; color: var(--navy); line-height: 1.2; }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }
  button { cursor: pointer; font-family: inherit; }

  /* ===== PAGES ===== */
  .page { display: none; min-height: 100vh; flex-direction: column; }
  .page.active { display: flex; }

  /* ===== NAV ===== */
  .nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    padding: 0 24px;
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px;
    height: 68px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 18px; color: var(--teal-dark);
    white-space: nowrap; flex-shrink: 0;
  }
  .nav-logo-mark {
    width: 40px; height: 40px; background: var(--teal);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
  }
  .nav-logo-mark svg { width: 22px; height: 22px; fill: white; }
  .nav-links { display: flex; gap: 4px; flex: 1; }
  .nav-link {
    padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
    color: var(--muted); transition: all .15s; cursor: pointer; border: none; background: none;
  }
  .nav-link:hover, .nav-link.active { color: var(--teal-dark); background: var(--teal-light); }
  .nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .cart-btn {
    position: relative; padding: 8px 16px; border-radius: 8px;
    border: 2px solid var(--border); background: var(--white);
    font-size: 14px; font-weight: 600; color: var(--navy);
    transition: all .15s; display: flex; align-items: center; gap: 8px;
  }
  .cart-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
  .cart-btn > svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
  .cart-badge {
    background: var(--amber); color: white; font-size: 11px; font-weight: 700;
    border-radius: 99px; padding: 1px 6px; min-width: 20px; text-align: center;
  }
  .cart-badge.hidden { display: none; }
  .btn-primary {
    padding: 10px 22px; background: var(--teal); color: white;
    border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
    align-items: center; display: inline-flex; justify-content: center;
    min-height: 44px; transition: all .15s;
  }
  .btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
  .btn-secondary {
    padding: 10px 22px; background: var(--white); color: var(--teal-dark);
    border: 2px solid var(--teal); border-radius: 8px; font-size: 14px; font-weight: 600;
    align-items: center; display: inline-flex; justify-content: center;
    min-height: 44px; transition: all .15s;
  }
  .btn-secondary:hover { background: var(--teal-light); }
  .btn-outline {
    padding: 8px 18px; background: transparent; color: var(--muted);
    border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-weight: 500;
    align-items: center; display: inline-flex; justify-content: center;
    min-height: 44px; transition: all .15s;
  }
  .btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }
  .btn-danger {
    padding: 6px 14px; background: transparent; color: var(--red);
    border: 1px solid #fca5a5; border-radius: 6px; font-size: 13px; font-weight: 500;
    align-items: center; display: inline-flex; justify-content: center;
    min-height: 44px; transition: all .15s;
  }
  .btn-danger:hover { background: #fef2f2; }

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--teal-dark) 100%);
    padding: 80px 24px 100px;
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 70% 50%, rgba(58,168,193,.15) 0%, transparent 60%),
                      radial-gradient(circle at 20% 80%, rgba(10,124,110,.2) 0%, transparent 50%);
  }
  .hero-inner {
    max-width: 1200px; margin: 0 auto; position: relative;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2); border-radius: 99px;
    padding: 6px 14px; font-size: 12px; font-weight: 600;
    color: var(--teal-mid); letter-spacing: .06em; text-transform: uppercase;
    margin-bottom: 20px;
  }
  .hero h1 { font-size: 48px; color: white; margin-bottom: 20px; }
  .hero h1 em { color: #7dd3ca; font-style: normal; }
  .hero p { color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .hero-cta {
    padding: 14px 28px; background: var(--amber); color: white;
    border: none; border-radius: 10px; font-size: 15px; font-weight: 700;
    transition: all .2s; display: flex; align-items: center; gap: 8px;
  }
  .hero-cta:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,146,58,.35); }
  .hero-cta-outline {
    padding: 14px 28px; background: rgba(255,255,255,.1);
    backdrop-filter: blur(8px); color: white;
    border: 1px solid rgba(255,255,255,.25); border-radius: 10px;
    font-size: 15px; font-weight: 600; transition: all .2s;
  }
  .hero-cta-outline:hover { background: rgba(255,255,255,.2); }
  .hero-stats {
    display: flex; gap: 32px; margin-top: 40px; padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,.15);
  }
  .hero-stat { }
  .hero-stat-num { font-family: 'DM Serif Display', serif; font-size: 30px; color: white; }
  .hero-stat-label { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 2px; }
  .hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-card {
    background: rgba(255,255,255,.1); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15); border-radius: 14px;
    padding: 20px; transition: all .2s;
  }
  .hero-card:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
  .hero-card-icon { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
  .hero-card h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; color: white; margin-bottom: 4px; }
  .hero-card p { font-size: 12px; color: rgba(255,255,255,.6); line-height: 1.5; }

  /* ===== TRUST BAR ===== */
  .trust-bar { background: var(--teal-light); border-bottom: 1px solid var(--teal-mid); padding: 14px 24px; }
  .trust-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 32px; justify-content: center;
    flex-wrap: wrap;
  }
  .trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--teal-dark); }
  .trust-item svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* ===== SECTION ===== */
  .section { padding: 72px 24px; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-header { margin-bottom: 48px; }
  .section-header-split {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
  }
  .section-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 10px;
  }
  .section-title { font-size: 36px; color: var(--navy); margin-bottom: 14px; }
  .section-subtitle { font-size: 16px; color: var(--muted); max-width: 560px; line-height: 1.7; }

  /* ===== FILTERS ===== */
  .filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
  .filter-search {
    flex: 1; min-width: 240px; position: relative;
  }
  .filter-search input {
    width: 100%; padding: 10px 16px 10px 40px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 14px; color: var(--body);
    background: var(--white); transition: border .15s;
  }
  .filter-search input:focus { outline: none; border-color: var(--teal); }
  .filter-search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--muted); pointer-events: none;
  }
  .filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    padding: 8px 16px; border-radius: 99px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); background: var(--white); color: var(--muted);
    align-items: center; cursor: pointer; display: inline-flex; justify-content: center;
    min-height: 44px; transition: all .15s;
  }
  .chip:hover, .chip.active { background: var(--teal); color: white; border-color: var(--teal); }

  /* ===== COURSE GRID ===== */
  .course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
  .course-card {
    background: var(--white); border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: all .2s; overflow: hidden; display: flex; flex-direction: column;
  }
  .course-card:hover { box-shadow: var(--card-hover); transform: translateY(-3px); }
  .course-card-header {
    padding: 24px 24px 20px;
    background: linear-gradient(135deg, var(--teal-light) 0%, white 100%);
    border-bottom: 1px solid var(--border); position: relative;
  }
  .course-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--teal); color: white; font-size: 11px; font-weight: 700;
    border-radius: 6px; padding: 3px 10px; margin-bottom: 12px; letter-spacing: .04em;
  }
  .course-category-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--teal-light); color: var(--teal-dark); font-size: 11px; font-weight: 600;
    border-radius: 6px; padding: 3px 10px; margin-bottom: 12px; border: 1px solid var(--teal-mid);
  }
  .course-card h3 {
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
    color: var(--navy); line-height: 1.3; margin-bottom: 6px;
  }
  .course-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
  .course-card-body { padding: 18px 24px; flex: 1; }
  .course-meta { display: flex; gap: 16px; margin-bottom: 16px; }
  .course-meta-item { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
  .course-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--teal); }
  .module-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
  .module-item {
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body);
  }
  .module-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
  .course-card-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: var(--bg);
  }
  .course-price { font-family: 'DM Serif Display', serif; font-size: 24px; color: var(--navy); }
  .course-price small { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); font-weight: 400; display: block; margin-top: -2px; }
  .add-to-cart-btn {
    padding: 9px 18px; background: var(--teal); color: white;
    border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
    transition: all .15s; display: flex; align-items: center; gap: 6px;
    justify-content: center; min-height: 44px;
  }
  .add-to-cart-btn:hover { background: var(--teal-dark); }
  .add-to-cart-btn.in-cart { background: var(--green); }
  .view-detail-btn {
    padding: 8px 14px; background: transparent; color: var(--teal-dark);
    border: none; font-size: 13px; font-weight: 500;
    transition: all .15s; text-decoration: underline; text-underline-offset: 2px;
  }
  .view-detail-btn:hover { color: var(--teal); }

  /* ===== COURSE DETAIL PAGE ===== */
  .course-detail-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 56px 24px;
  }
  .course-detail-hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
  }
  .back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.6); font-size: 13px; font-weight: 500;
    margin-bottom: 20px; cursor: pointer; transition: color .15s; border: none; background: none;
  }
  .back-btn:hover { color: white; }
  .course-detail-hero h1 { font-size: 38px; color: white; margin-bottom: 12px; }
  .course-detail-hero p { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
  .course-detail-meta { display: flex; gap: 24px; flex-wrap: wrap; }
  .course-detail-meta-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,.8);
  }
  .course-detail-meta-item svg { color: var(--teal-mid); }
  .purchase-card {
    background: white; border-radius: 16px; padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    position: sticky; top: 88px;
  }
  .purchase-card-price { font-family: 'DM Serif Display', serif; font-size: 40px; color: var(--navy); margin-bottom: 4px; }
  .purchase-card-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
  .purchase-card-btn {
    width: 100%; padding: 14px; background: var(--amber); color: white;
    border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
    margin-bottom: 12px; transition: all .2s;
  }
  .purchase-card-btn:hover { background: var(--amber-dark); }
  .purchase-card-btn.in-cart-state { background: var(--green); }
  .purchase-card-btn-secondary {
    width: 100%; padding: 12px; background: var(--white); color: var(--teal-dark);
    border: 2px solid var(--teal); border-radius: 10px; font-size: 14px; font-weight: 600;
    align-items: center; display: flex; justify-content: center;
    margin-bottom: 20px; min-height: 46px; transition: all .15s;
  }
  .purchase-card-btn-secondary:hover { background: var(--teal-light); }
  .purchase-includes { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .purchase-include-item {
    display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--body);
  }
  .purchase-include-icon { color: var(--green); flex-shrink: 0; }
  .course-detail-body { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
  .course-detail-content { }
  .module-accordion { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
  .module-accordion-header {
    padding: 16px 20px; background: var(--white); cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 15px; font-weight: 600; color: var(--navy);
    transition: background .15s; border: none; width: 100%; text-align: left;
  }
  .module-accordion-header:hover { background: var(--bg); }
  .module-accordion-header.open { background: var(--teal-light); color: var(--teal-dark); }
  .module-accordion-icon { transition: transform .2s; flex-shrink: 0; }
  .module-accordion-icon.open { transform: rotate(180deg); }
  .module-accordion-body { display: none; padding: 4px 0; background: var(--bg); border-top: 1px solid var(--border); }
  .module-accordion-body.open { display: block; }
  .section-item {
    padding: 10px 20px 10px 44px; font-size: 13px; color: var(--body);
    display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border);
  }
  .section-item:last-child { border-bottom: none; }
  .section-icon { color: var(--teal); flex-shrink: 0; }
  .detail-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 22px;
  }
  .detail-panel h2,
  .detail-panel h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    color: var(--navy);
  }
  .detail-panel h2 { font-size: 24px; margin-bottom: 10px; }
  .detail-panel h3 { font-size: 17px; margin-bottom: 12px; }
  .detail-panel p { color: var(--muted); line-height: 1.75; }
  .detail-lede { font-size: 17px; color: var(--body) !important; }
  .detail-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 22px;
  }
  .detail-stat-card {
    background: #f7f9fb;
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 14px;
    padding: 16px;
  }
  .detail-stat-card strong {
    display: block;
    color: var(--navy);
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    line-height: 1;
  }
  .detail-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 8px;
  }
  .outcome-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
  }
  .outcome-card {
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, #fff, #fbfcfd);
  }
  .outcome-card b {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 7px;
  }
  .outcome-card b:before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 0 5px rgba(251,128,8,.12);
    flex: 0 0 auto;
  }
  .outcome-card p { font-size: 13px; line-height: 1.6; }
  .detail-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
  }
  .detail-list li {
    display: flex;
    gap: 10px;
    color: var(--body);
    font-size: 14px;
    line-height: 1.55;
  }
  .detail-list li:before {
    content: '✓';
    color: var(--teal-dark);
    font-weight: 900;
    flex: 0 0 auto;
  }
  .learning-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
  }
  .path-step {
    position: relative;
    border: 1px solid rgba(50,75,105,.11);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
  }
  .path-step span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .path-step b { display: block; color: var(--navy); margin-bottom: 6px; }
  .path-step p { font-size: 13px; line-height: 1.6; }
  .course-detail-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .side-card {
    background: var(--white);
    border: 1px solid rgba(50,75,105,.12);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--card-shadow);
  }
  .side-card h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  .side-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
  .side-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
  }
  .side-metric:first-of-type { border-top: none; }
  .side-metric strong { color: var(--navy); font-size: 14px; text-align: right; }
  .certificate-preview {
    border: 1px solid rgba(50,75,105,.14);
    border-radius: 18px;
    padding: 22px;
    background:
      linear-gradient(135deg, rgba(251,128,8,.10), rgba(73,165,164,.08)),
      white;
    margin-top: 18px;
  }
  .certificate-preview-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
  }
  .certificate-seal {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--amber);
    color: white;
    font-weight: 900;
    letter-spacing: .04em;
    flex: 0 0 auto;
  }
  .certificate-preview h3 { margin-bottom: 4px; }
  .certificate-lines span {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: rgba(50,75,105,.12);
    margin-top: 8px;
  }
  .certificate-lines span:nth-child(1) { width: 88%; }
  .certificate-lines span:nth-child(2) { width: 72%; }
  .certificate-lines span:nth-child(3) { width: 54%; }
  .faq-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }
  .faq-item {
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 14px;
    padding: 16px 18px;
    background: #fff;
  }
  .faq-item b { display: block; color: var(--navy); margin-bottom: 6px; }
  .faq-item p { font-size: 13px; line-height: 1.65; }
  .related-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
  }
  .related-course-card {
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, border-color .18s;
  }
  .related-course-card:hover {
    transform: translateY(-3px);
    border-color: rgba(251,128,8,.32);
    box-shadow: var(--card-hover);
  }
  .related-course-card span {
    color: var(--amber);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .related-course-card b {
    display: block;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.35;
    margin: 8px 0 10px;
  }
  .related-course-card small { color: var(--muted); }

  /* ===== BASKET ===== */
  .basket-layout { max-width: 1200px; width: 100%; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 40px; align-items: start; }
  .basket-list { min-width: 0; }
  .basket-heading { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
  .basket-empty {
    background: var(--white);
    border: 1px solid rgba(50,75,105,.12);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin: 56px auto;
    max-width: 760px;
    padding: 56px 32px;
    text-align: center;
    width: calc(100% - 48px);
  }
  .basket-empty-icon,
  .empty-state-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--teal-light), #fff7ed);
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 18px;
    color: var(--navy);
    display: inline-flex;
    height: 64px;
    justify-content: center;
    margin-bottom: 20px;
    width: 64px;
  }
  .basket-empty-icon svg,
  .empty-state-icon svg {
    fill: none;
    height: 30px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 30px;
  }
  .basket-empty h2 { font-size: 28px; margin-bottom: 10px; }
  .basket-empty p { color: var(--muted); margin-bottom: 24px; }
  .account-empty-state {
    grid-column: 1 / -1;
    margin: 0;
    max-width: none;
    min-height: 238px;
    width: 100%;
  }
  .basket-item {
    background: var(--white); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px 24px; margin-bottom: 16px;
    display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: flex-start; gap: 20px;
  }
  .basket-item-icon {
    width: 56px; height: 56px; border-radius: 12px; background: var(--teal-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--teal-dark);
  }
  .basket-item-icon svg { fill: currentColor; height: 28px; width: 28px; }
  .basket-item-content { min-width: 0; }
  .basket-item-title { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
  .basket-item-desc { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .basket-item-tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .basket-tag {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
    background: var(--teal-light); color: var(--teal-dark);
  }
  .basket-item-price { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--navy); line-height: 1.2; margin-left: auto; text-align: right; white-space: nowrap; }
  .basket-item-footer { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin-top: 16px; }
  .basket-item-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
  .basket-quantity-form { align-items: center; display: flex; }
  .qty-control { display: flex; align-items: center; gap: 0; }
  .qty-btn {
    width: 44px; height: 44px; border: 1px solid var(--border);
    background: var(--white); font-size: 16px; color: var(--body);
    transition: all .15s; display: flex; align-items: center; justify-content: center;
  }
  .qty-btn:first-child { border-radius: 6px 0 0 6px; }
  .qty-btn:last-child { border-radius: 0 6px 6px 0; }
  .qty-btn:hover { background: var(--bg); }
  .qty-num { padding: 0 14px; height: 44px; border: 1px solid var(--border); border-left: none; border-right: none; display: flex; align-items: center; font-size: 14px; font-weight: 600; }
  .order-summary {
    background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
    position: sticky; top: 88px;
  }
  .order-summary h3 { font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
  .summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 8px 0; }
  .summary-row.total { font-size: 18px; font-weight: 700; color: var(--navy); border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; }
  .promo-input { display: flex; gap: 8px; margin: 16px 0; }
  .promo-input input { flex: 1; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; }
  .promo-input input:focus { outline: none; border-color: var(--teal); }
  .promo-input button { padding: 9px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--teal-dark); }
  .promo-input button:hover { background: var(--teal-light); }
  .checkout-btn {
    width: 100%; padding: 15px; background: var(--amber); color: white;
    border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
    margin-top: 16px; transition: all .2s; display: block; text-align: center;
  }
  .checkout-btn:hover { background: var(--amber-dark); }

  /* ===== CHECKOUT ===== */
  .checkout-layout { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
  .checkout-steps { display: flex; gap: 0; margin-bottom: 40px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .checkout-step {
    flex: 1; padding: 14px; text-align: center; font-size: 13px; font-weight: 600;
    color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .checkout-step.active { background: var(--teal-light); color: var(--teal-dark); }
  .checkout-step.done { background: var(--teal); color: white; }
  .checkout-step-num {
    width: 22px; height: 22px; border-radius: 50%; background: var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  }
  .checkout-step.active .checkout-step-num { background: var(--teal); color: white; }
  .checkout-step.done .checkout-step-num { background: rgba(255,255,255,.3); }
  .form-group { margin-bottom: 20px; }
  .section-inner.auth-shell { max-width: 620px; }
  .auth-shell h2 { color: var(--navy); margin-bottom: 24px; }
  .auth-copy { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
  .auth-footer { color: var(--muted); margin-top: 18px; text-align: center; }
  .auth-footer a, .label-row a { color: var(--teal-dark); font-weight: 700; }
  .auth-secondary-form { margin-top: 12px; }
  .label-row { align-items: center; display: flex; gap: 16px; justify-content: space-between; }
  .checkbox-row { align-items: flex-start; color: var(--text); cursor: pointer; display: flex; gap: 10px; line-height: 1.5; margin: 0 0 20px; }
  .checkbox-row input { flex: 0 0 auto; height: 18px; margin-top: 2px; width: 18px; }
  .field-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 7px; }
  .field-error { color: #b42318; font-size: 13px; font-weight: 650; line-height: 1.45; margin-top: 7px; }
  .contact-form-card .field-error { color: #fecaca; }
  .contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 14px; line-height: 1.45; }
  .alert-success { background: #dcfce7; color: #166534; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
  input:not([type]), input[type=text], input[type=email], input[type=tel], select, input[type=password] {
    width: 100%; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: inherit; font-size: 14px; color: var(--body);
    transition: border .15s;
  }
  input:not([type]):focus, input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus, select:focus, input[type=password]:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,124,110,.1);
  }
  .form-section { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; margin-bottom: 24px; }
  .form-section h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .payment-option {
    padding: 14px; border: 2px solid var(--border); border-radius: 10px;
    cursor: pointer; transition: all .15s; text-align: center;
  }
  .payment-option.selected { border-color: var(--teal); background: var(--teal-light); }
  .payment-option svg { width: 32px; height: 20px; margin: 0 auto 6px; display: block; }
  .payment-option span { font-size: 12px; font-weight: 600; color: var(--navy); }
  .card-icons { display: flex; gap: 8px; margin-top: 12px; }
  .card-icon { width: 38px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--muted); }
  .place-order-btn {
    width: 100%; padding: 16px; background: var(--teal); color: white;
    border: none; border-radius: 12px; font-size: 17px; font-weight: 700;
    transition: all .2s;
  }
  .place-order-btn:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,124,110,.3); }
  .order-confirmed {
    text-align: center; padding: 80px 24px;
    max-width: 560px; margin: 0 auto;
  }
  .order-confirmed-icon { width: 80px; height: 80px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
  .order-confirmed-icon svg { color: white; width: 36px; height: 36px; }
  .order-confirmed h2 { font-size: 36px; margin-bottom: 12px; }
  .order-confirmed p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }

  /* ===== MY COURSES (DASHBOARD) ===== */
  .dashboard-layout { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
  .dashboard-layout > * { min-width: 0; }
  .dashboard-sidebar { min-width: 0; background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: sticky; top: 88px; }
  .dashboard-user-card { padding: 24px; background: linear-gradient(135deg, var(--teal-dark), var(--navy-mid)); }
  .dashboard-avatar { width: 56px; height: 56px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: white; margin-bottom: 12px; }
  .dashboard-user-name { font-size: 16px; font-weight: 700; color: white; }
  .dashboard-user-email { overflow-wrap: anywhere; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 2px; }
  .dashboard-nav { padding: 12px; }
  .dashboard-nav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted);
    cursor: pointer; min-height: 44px; transition: all .15s; border: none; background: none; width: 100%; text-align: left;
  }
  .dashboard-nav-item:hover { background: var(--bg); color: var(--navy); }
  .dashboard-nav-item.active { background: var(--teal-light); color: var(--teal-dark); }
  .dashboard-nav form { margin: 0; }
  .dashboard-nav form .dashboard-nav-item { background: transparent; border: 0; cursor: pointer; text-align: left; width: 100%; }
  .account-verification { border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 750; margin-top: 10px; padding: 5px 9px; }
  .account-verification.verified { background: #dcfce7; color: #166534; }
  .account-verification.unverified { background: #fff7ed; color: #9a3412; }
  .dashboard-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
  .dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
  .dashboard-stat { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
  .dashboard-stat-val { font-family: 'DM Serif Display', serif; font-size: 32px; color: var(--navy); }
  .dashboard-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .dashboard-stat-icon { font-size: 24px; margin-bottom: 8px; }
  .enrolled-course-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
  .enrolled-course-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
  .enrolled-course-info h3 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
  .enrolled-course-info p { font-size: 13px; color: var(--muted); }
  .status-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px;
    border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap;
  }
  .status-badge.in-progress { background: #fef3c7; color: #92400e; }
  .status-badge.completed { background: #d1fae5; color: #065f46; }
  .status-badge.not-started { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
  .progress-bar-wrap { background: var(--bg); border-radius: 99px; height: 8px; margin-bottom: 8px; overflow: hidden; }
  .progress-bar-fill { height: 100%; border-radius: 99px; background: var(--teal); transition: width .5s; }
  .progress-label { font-size: 12px; color: var(--muted); }
  .enrolled-modules { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; display: none; }
  .enrolled-modules.open { display: block; }
  .enrolled-module-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .enrolled-module-row:last-child { border-bottom: none; }
  .module-status-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .module-status-icon.done { background: #d1fae5; color: var(--green); }
  .module-status-icon.active { background: #fef3c7; color: #d97706; }
  .module-status-icon.locked { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
  .enrolled-module-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--body); }
  .enrolled-module-sections { font-size: 12px; color: var(--muted); }

  /* ===== CONTACT + ACCOUNT SUBPAGES ===== */
  .contact-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    align-items: start;
  }
  .contact-hero-card,
  .account-panel,
  .account-card,
  .certificate-tile,
  .purchase-row,
  .cpd-timeline-item {
    background: var(--white);
    border: 1px solid rgba(50,75,105,.12);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
  }
  .contact-hero-card { padding: 34px; }
  .contact-hero-card h2,
  .account-panel h2,
  .account-card h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    font-weight: 800;
  }
  .contact-hero-card h2 { font-size: 30px; margin-bottom: 12px; }
  .contact-hero-card p,
  .account-panel p,
  .account-card p { color: var(--muted); line-height: 1.7; }
  .contact-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
  }
  .contact-option {
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 14px;
    padding: 18px;
    background: #fbfcfd;
  }
  .contact-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--navy);
    margin-bottom: 14px;
    font-weight: 800;
  }
  .contact-option b { display: block; color: var(--navy); margin-bottom: 5px; }
  .contact-option span { color: var(--muted); font-size: 13px; line-height: 1.55; display: block; }
  .contact-form-card {
    background: var(--navy-deep);
    border-radius: 22px;
    padding: 28px;
    color: white;
    box-shadow: 0 26px 72px rgba(22,35,52,.24);
    position: sticky;
    top: 104px;
  }
  .contact-form-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
  }
  .contact-form-card label { color: rgba(255,255,255,.82); }
  .contact-form-card input,
  .contact-form-card select,
  .contact-form-card textarea {
    width: 100%;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: white;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
  }
  .contact-form-card textarea { min-height: 120px; resize: vertical; }
  .contact-form-card input::placeholder,
  .contact-form-card textarea::placeholder { color: rgba(255,255,255,.45); }
  .contact-form-card select option { color: var(--navy); }
  .contact-note {
    margin-top: 22px;
    padding: 18px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid rgba(251,128,8,.22);
    color: var(--body);
  }
  .account-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
  }
  .account-toolbar h2 {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
  }
  .account-toolbar p { color: var(--muted); margin-top: 4px; }
  .account-panel { padding: 26px; margin-bottom: 18px; }
  .account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 22px;
  }
  .account-card { padding: 22px; }
  .account-card-value {
    font-family: 'DM Serif Display', serif;
    color: var(--navy);
    font-size: 36px;
    line-height: 1;
    margin-bottom: 8px;
  }
  .account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }
  .account-table th {
    text-align: left;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
  }
  .account-table td {
    padding: 16px 10px 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--body);
  }
  .account-table tr:last-child td { border-bottom: none; }
  .account-table strong { color: var(--navy); }
  .certificate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .certificate-tile {
    padding: 22px;
    position: relative;
    overflow: hidden;
  }
  .certificate-tile:after {
    content: 'CPD';
    position: absolute;
    right: -18px;
    top: -18px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(251,128,8,.12);
    color: var(--amber);
    font-weight: 900;
  }
  .certificate-tile h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    color: var(--navy);
    max-width: 78%;
    margin-bottom: 10px;
  }
  .certificate-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
  }
  .mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(50,75,105,.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
  }
  .account-actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .enrolled-course-card .account-actions .status-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
  }
  .cpd-progress {
    height: 12px;
    border-radius: 999px;
    background: #e8edf3;
    overflow: hidden;
    margin: 18px 0 10px;
  }
  .cpd-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--amber), var(--teal));
  }
  .cpd-timeline {
    display: grid;
    gap: 12px;
  }
  .cpd-timeline-item {
    padding: 18px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 16px;
    align-items: center;
  }
  .cpd-date {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    line-height: 1.1;
  }
  .profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .security-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
  .security-grid .account-panel { margin: 0; }
  .security-grid h3, .session-panel h3 { color: var(--navy); margin-bottom: 8px; }
  .security-notice { align-items: center; background: #fff7ed; border: 1px solid #fdba74; border-radius: 14px; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 20px; padding: 18px 20px; }
  .security-notice strong { color: #9a3412; }
  .security-notice p { color: #7c2d12; font-size: 14px; margin-top: 4px; }
  .session-panel { margin-top: 0; }
  .session-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .session-row { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; padding: 16px; }
  .session-row + .session-row { border-top: 1px solid var(--border); }
  .session-row p { color: var(--muted); font-size: 13px; margin: 5px 0; overflow-wrap: anywhere; }
  .session-row small { color: var(--muted); }
  .session-revoke-form { margin-top: 20px; max-width: 420px; }
  .profile-avatar-large {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--navy), var(--teal-dark));
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
  }
  .preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .preference-row:last-child { border-bottom: none; }
  .toggle-pill {
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--navy);
    position: relative;
    flex: 0 0 auto;
  }
  .toggle-pill:after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
  }
  .purchase-row {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 14px;
  }
  .purchase-row h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 6px;
  }
  .purchase-total {
    text-align: right;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
  }

  /* ===== FOOTER ===== */
  .footer { background: var(--navy); padding: 56px 24px 32px; margin-top: auto; }
  .footer-inner { max-width: 1200px; margin: 0 auto; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
  .footer-brand h3 { font-family: 'DM Serif Display', serif; font-size: 20px; color: white; margin-bottom: 12px; }
  .footer-brand p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 280px; }
  .footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .footer-link { font-size: 14px; color: rgba(255,255,255,.5); cursor: pointer; transition: color .15s; }
  .footer-link:hover { color: var(--teal-mid); }
  .footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; }
  .footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }
  .footer-bottom-links { display: flex; gap: 20px; }
  .footer-accreditation { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
  .accred-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px 14px; }
  .accred-badge span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }

  /* ===== ALERTS ===== */
  .toast {
    position: fixed; top: 96px; left: 50%; max-width: min(560px, calc(100vw - 32px));
    background: white; color: var(--navy); padding: 18px 28px 18px 20px;
    border: 3px solid var(--orange); border-radius: 14px; font-size: 16px; font-weight: 600;
    box-shadow: 0 14px 40px rgba(13, 35, 61, .32);
    transform: translate(-50%, -140px); opacity: 0; transition: all .3s; z-index: 9999;
    display: flex; align-items: center; gap: 10px;
  }
  .toast.show { transform: translate(-50%, 0); opacity: 1; }
  .toast-success { border-left-width: 8px; }
  .toast-icon {
    align-items: center; background: var(--orange); border-radius: 999px; color: white;
    display: inline-flex; flex: 0 0 30px; font-size: 18px; font-weight: 800; height: 30px;
    justify-content: center; line-height: 1; width: 30px;
  }
  .toast-message { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
  .toast-message strong { color: var(--orange-dark, #c2410c); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
  .toast-message span { color: var(--navy); }
  @media (max-width: 640px) {
    .toast { top: 78px; padding: 15px 18px 15px 14px; font-size: 15px; }
  }

  /* ===== PAGE HEADER ===== */
  .page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 48px 24px;
  }
  .page-header-inner { max-width: 1200px; margin: 0 auto; }
  .page-header h1 { font-size: 36px; color: white; margin-bottom: 8px; }
  .page-header p { color: rgba(255,255,255,.65); font-size: 15px; }

  /* ===== MISC ===== */
  .divider { height: 1px; background: var(--border); margin: 24px 0; }
  .text-muted { color: var(--muted); }
  .text-teal { color: var(--teal); }
  .font-bold { font-weight: 700; }
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .testimonial-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--card-shadow); }
  .testimonial-stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
  .testimonial-text { font-size: 14px; color: var(--body); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 10px; }
  .testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--teal-dark); }
  .testimonial-name { font-size: 14px; font-weight: 600; color: var(--navy); }
  .testimonial-role { font-size: 12px; color: var(--muted); }
  .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .feature-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--card-shadow); }
  .feature-icon { width: 52px; height: 52px; background: var(--teal-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
  .feature-card h3 { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
  .feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }
  .section-alt { background: var(--white); }

  @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  .fade-in { animation: fadeInUp .4s ease both; }

  /* ===== PREMIUM HTO REDESIGN OVERRIDES ===== */
  :root {
    --teal: #49a5a4;
    --teal-dark: #19706f;
    --teal-light: #edf8f8;
    --teal-mid: #b9e0df;
    --navy: #324b69;
    --navy-mid: #243a55;
    --navy-deep: #162334;
    --sky: #5a75a1;
    --amber: #fb8008;
    --amber-dark: #d96800;
    --body: #3b4741;
    --muted: #66758a;
    --border: #dfe6ee;
    --bg: #f5f7fa;
    --white: #ffffff;
    --card-shadow: 0 16px 42px rgba(28, 47, 70, .08), 0 2px 8px rgba(28, 47, 70, .04);
    --card-hover: 0 28px 70px rgba(28, 47, 70, .16), 0 8px 22px rgba(251, 128, 8, .08);
  }
  body {
    background:
      linear-gradient(180deg, #ffffff 0, var(--bg) 420px),
      var(--bg);
    color: var(--body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
  }
  h1,h2,h3,h4 { letter-spacing: 0; }
  .nav {
    background: rgba(255,255,255,.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(50,75,105,.13);
    box-shadow: 0 10px 30px rgba(22,35,52,.04);
    transition: background .2s, box-shadow .2s;
  }
  .nav.scrolled {
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 38px rgba(22,35,52,.10);
  }
  .nav-inner { height: 78px; max-width: 1240px; }
  .nav-logo { min-width: 212px; }
  .brand-logo { width: 212px; height: auto; }
  .nav-logo-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .nav-link {
    border-radius: 999px;
    color: #4d5e72;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(50,75,105,.08);
    color: var(--navy);
  }
  .cart-btn, .btn-primary, .btn-secondary, .btn-outline, .add-to-cart-btn, .purchase-card-btn, .checkout-btn, .place-order-btn {
    border-radius: 999px;
  }
  .btn-primary {
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(50,75,105,.18);
  }
  .btn-primary:hover { background: var(--navy-deep); }
  .btn-secondary {
    border-color: rgba(50,75,105,.22);
    color: var(--navy);
    background: white;
  }
  .btn-secondary:hover { border-color: var(--amber); background: #fff7ed; color: var(--navy); }

  .hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 108px 24px 96px;
    background:
      linear-gradient(90deg, rgba(22,35,52,.94) 0%, rgba(22,35,52,.82) 38%, rgba(22,35,52,.34) 70%, rgba(22,35,52,.58) 100%),
      url('../assets/hto-hero.jpg') center / cover no-repeat;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 44%),
      repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 5px);
    opacity: .48;
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(245,247,250,0), var(--bg));
    pointer-events: none;
  }
  .hero-inner {
    max-width: 1240px;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: 72px;
    z-index: 1;
  }
  .hero-tag {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
    color: #ffffff;
    letter-spacing: .14em;
  }
  .hero h1 {
    max-width: 760px;
    font-size: clamp(44px, 6vw, 76px);
    line-height: .98;
    margin-bottom: 26px;
  }
  .hero h1 em { color: #ffffff; font-style: italic; text-decoration: underline; text-decoration-thickness: 5px; text-decoration-color: var(--amber); text-underline-offset: 8px; }
  .hero p {
    max-width: 650px;
    color: rgba(255,255,255,.84);
    font-size: 19px;
  }
  .hero-cta {
    background: var(--amber);
    padding: 15px 28px;
    box-shadow: 0 16px 42px rgba(251,128,8,.32);
  }
  .hero-cta:hover { background: var(--amber-dark); box-shadow: 0 20px 52px rgba(251,128,8,.42); }
  .hero-cta-outline { border-radius: 999px; }
  .hero-stats {
    max-width: 710px;
    gap: 0;
    justify-content: space-between;
  }
  .hero-stat-num { font-size: 34px; }
  .hero-stat-label { color: rgba(255,255,255,.68); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
  .hero-showcase {
    position: relative;
    min-height: 500px;
  }
  .learning-panel {
    position: relative;
    margin-left: auto;
    max-width: 520px;
    z-index: 2;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 22px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 34px 90px rgba(0,0,0,.28);
    overflow: hidden;
  }
  .learning-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    color: white;
  }
  .panel-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: rgba(255,255,255,.68); }
  .panel-title { font-size: 16px; font-weight: 700; margin-top: 3px; }
  .panel-status {
    color: var(--navy-deep);
    background: white;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 800;
  }
  .learning-panel-body { padding: 22px; }
  .progress-ring {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    background: conic-gradient(var(--amber) 0 76%, #e8edf3 76% 100%);
  }
  .progress-ring span {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: white;
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
  }
  .module-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--border);
  }
  .module-row:first-of-type { border-top: none; }
  .module-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--navy);
    font-weight: 800;
    font-size: 13px;
  }
  .module-row strong { display: block; color: var(--navy); font-size: 14px; }
  .module-row small { color: var(--muted); font-size: 12px; }
  .module-row b { color: var(--teal-dark); font-size: 12px; }
  .certificate-card {
    position: absolute;
    right: -78px;
    bottom: 22px;
    width: 232px;
    z-index: 4;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(22,35,52,.22);
    border: 1px solid rgba(50,75,105,.12);
  }
  .certificate-card:before {
    content: 'CPD';
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--amber);
    color: white;
    font-weight: 800;
    margin-bottom: 10px;
  }
  .certificate-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
  }
  .certificate-card p { color: var(--muted); font-size: 12px; margin: 4px 0 12px; }
  .cert-line { height: 7px; border-radius: 99px; background: #edf1f5; margin-top: 7px; }
  .cert-line.short { width: 62%; }
  .metric-pill {
    position: absolute;
    left: -18px;
    top: 68px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 18px 52px rgba(22,35,52,.20);
    border: 1px solid rgba(255,255,255,.5);
    padding: 12px 16px;
    color: var(--navy);
    font-weight: 800;
  }
  .metric-pill span { color: var(--amber); margin-right: 6px; }
  .trust-bar {
    background: white;
    border-bottom: 1px solid rgba(50,75,105,.11);
    box-shadow: 0 14px 34px rgba(50,75,105,.06);
  }
  .trust-bar-inner { justify-content: space-between; }
  .trust-item {
    color: var(--navy);
    background: #f7f9fb;
    border: 1px solid rgba(50,75,105,.10);
    border-radius: 999px;
    padding: 9px 13px;
  }
  .proof-band {
    padding: 54px 24px;
    background: var(--navy-deep);
    color: white;
  }
  .proof-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
  }
  .proof-intro {
    padding-right: 28px;
    border-right: 1px solid rgba(255,255,255,.14);
  }
  .proof-intro span {
    display: block;
    color: var(--amber);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .proof-intro h2 {
    color: white;
    font-size: 36px;
    line-height: 1.05;
  }
  .proof-stat {
    padding: 10px 0;
  }
  .proof-stat strong {
    display: block;
    color: white;
    font-family: 'DM Serif Display', serif;
    font-size: 46px;
    line-height: 1;
    margin-bottom: 10px;
  }
  .proof-stat p {
    color: rgba(255,255,255,.66);
    font-size: 14px;
    line-height: 1.6;
  }
  .section { padding: 96px 24px; }
  .section-inner { max-width: 1240px; }
  .section-header { margin-bottom: 52px; }
  .section-eyebrow { color: var(--amber); letter-spacing: .16em; }
  .section-title {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    max-width: 780px;
  }
  .section-subtitle { font-size: 18px; max-width: 700px; }
  .features-grid { gap: 22px; }
  .feature-card, .testimonial-card, .dashboard-stat, .enrolled-course-card, .form-section, .order-summary, .basket-item {
    border: 1px solid rgba(50,75,105,.12);
    box-shadow: var(--card-shadow);
  }
  .feature-card {
    border-radius: 16px;
    padding: 30px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
  }
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
    border-color: rgba(251,128,8,.32);
  }
  .feature-icon {
    background: linear-gradient(135deg, var(--navy), var(--teal-dark));
    color: white;
    border-radius: 14px;
  }
  .course-grid { gap: 28px; }
  .course-card {
    border-radius: 18px;
    border-color: rgba(50,75,105,.12);
    box-shadow: var(--card-shadow);
    position: relative;
  }
  .course-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--amber), var(--teal));
    opacity: .95;
  }
  .course-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-6px);
    border-color: rgba(251,128,8,.26);
  }
  .course-card-header {
    padding: 28px 28px 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  }
  .course-card h3 { font-size: 18px; }
  .course-card-body { padding: 22px 28px; }
  .course-card-footer {
    padding: 18px 28px;
    background: #fbfcfd;
  }
  .course-category-badge, .basket-tag {
    border-radius: 999px;
    background: rgba(50,75,105,.08);
    border-color: transparent;
    color: var(--navy);
  }
  .add-to-cart-btn, .place-order-btn { background: var(--navy); }
  .add-to-cart-btn:hover, .place-order-btn:hover { background: var(--navy-deep); }
  .purchase-card-btn, .checkout-btn { background: var(--amber); }
  .purchase-card-btn:hover, .checkout-btn:hover { background: var(--amber-dark); }
  .page-header, .course-detail-hero, .dashboard-user-card {
    background:
      linear-gradient(135deg, rgba(22,35,52,.96), rgba(50,75,105,.92)),
      url('../assets/hto-training-block.jpg') center / cover no-repeat;
  }
  .page-header { padding: 64px 24px; }
  .page-header h1, .course-detail-hero h1 { font-size: clamp(38px, 5vw, 60px); }
  .filters {
    background: white;
    border: 1px solid rgba(50,75,105,.11);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--card-shadow);
  }
  .filter-search input { border-radius: 999px; min-height: 44px; }
  .chip { border-radius: 999px; }
  .chip:hover, .chip.active { background: var(--navy); border-color: var(--navy); }
  .basket-layout, .checkout-layout, .dashboard-layout { padding-top: 64px; }
  .checkout-steps {
    border-radius: 18px;
    box-shadow: var(--card-shadow);
  }
  .checkout-step.active { background: #fff2e8; color: var(--navy); }
  .checkout-step.active .checkout-step-num { background: var(--amber); }
  .checkout-step.done { background: var(--navy); }
  input:not([type]), input[type=text], input[type=email], input[type=tel], select, input[type=password] {
    border-radius: 12px;
    min-height: 44px;
    background: #fbfcfd;
  }
  .footer {
    background:
      linear-gradient(135deg, var(--navy-deep), #0f1722);
  }
  .footer-brand h3 { font-size: 24px; }
  .accred-badge {
    border-radius: 999px;
    background: rgba(255,255,255,.10);
  }
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media (max-width: 980px) {
    .nav-inner { gap: 16px; }
    .nav-links { display: none; }
    .hero { min-height: auto; padding: 86px 20px 72px; }
    .hero-inner { grid-template-columns: 1fr; gap: 42px; }
    .hero-showcase { min-height: 430px; }
    .metric-pill { left: 10px; }
    .certificate-card { right: 10px; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .proof-inner { grid-template-columns: 1fr 1fr; }
    .proof-intro { border-right: 0; padding-right: 0; }
    .basket-layout, .checkout-layout, .dashboard-layout, .course-detail-hero-inner, .course-detail-body, .contact-layout, .profile-layout, .security-grid { grid-template-columns: 1fr; }
    .dashboard-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-stat-grid, .learning-path, .related-course-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-card { position: static; }
    .account-grid, .certificate-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    body { font-size: 15px; }
    .nav { padding: 0 14px; }
    .nav-inner { height: 68px; gap: 10px; }
    .nav-logo { min-width: 0; }
    .brand-logo { width: 142px; }
    .nav-right { gap: 6px; }
    .nav-right .btn-primary { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
    .cart-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .cart-label { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
    .cart-btn svg { width: 20px; height: 20px; }
    .cart-badge { position: absolute; top: -4px; right: -4px; font-size: 10px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hero-stats {
      display: grid;
      gap: 24px 18px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      width: 100%;
    }
    .hero-showcase { min-height: 0; }
    .learning-panel { margin: 0; }
    .metric-pill, .certificate-card { display: none; }
    .section { padding: 70px 18px; }
    .features-grid, .testimonials-grid, .dashboard-stats, .payment-options, .form-row { grid-template-columns: 1fr; }
    .proof-inner { grid-template-columns: 1fr; }
    .detail-stat-grid, .outcome-grid, .detail-split, .learning-path, .related-course-grid { grid-template-columns: 1fr; }
    .detail-panel, .side-card { padding: 22px; border-radius: 16px; }
    .contact-layout { padding: 42px 18px; }
    .contact-option-grid, .account-grid, .certificate-grid { grid-template-columns: 1fr; }
    .account-toolbar, .purchase-row, .cpd-timeline-item { grid-template-columns: 1fr; display: grid; }
    .purchase-total { text-align: left; }
    .account-table { display: block; overflow-x: auto; white-space: nowrap; }
    .course-grid { grid-template-columns: 1fr; }
    .basket-item { grid-template-columns: 48px minmax(0, 1fr); padding: 18px; }
    .basket-item-icon { height: 48px; width: 48px; }
    .basket-item-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
    .basket-item-price { margin-left: 0; text-align: left; }
    .basket-item-actions { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
    .trust-bar-inner {
      display: grid;
      gap: 12px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .trust-item {
      justify-content: center;
      min-height: 46px;
      text-align: center;
    }
    .section-header-split {
      align-items: flex-start;
      flex-direction: column;
      gap: 22px;
    }
    .dashboard-user-card {
      align-items: center;
      column-gap: 14px;
      display: grid;
      grid-template-columns: 48px minmax(0, 1fr);
      padding: 20px;
    }
    .dashboard-avatar {
      grid-row: 1 / span 3;
      height: 48px;
      margin: 0;
      width: 48px;
    }
    .dashboard-user-name,
    .dashboard-user-email,
    .account-verification {
      grid-column: 2;
    }
    .account-verification {
      justify-self: start;
      margin-top: 5px;
    }
    .dashboard-nav {
      display: grid;
      gap: 6px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      padding: 10px;
    }
    .dashboard-nav-item {
      justify-content: center;
      text-align: center;
    }
    .dashboard-nav form { grid-column: 1 / -1; }
    .basket-empty {
      margin: 36px auto;
      padding: 42px 24px;
      width: calc(100% - 36px);
    }
    .account-empty-state {
      margin: 0;
      min-height: 0;
      width: 100%;
    }
  }

/* ===== SLICES 3–4: ACCOUNT ONBOARDING + SHARED EXPERIENCE ===== */
.onboarding-banner {
  align-items: center;
  background: linear-gradient(135deg, #fff7ed, #effcf9);
  border: 1px solid rgba(232, 146, 58, .35);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 24px;
}

.order-document-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}

.order-summary-card,
.order-document {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  text-align: left;
}

.order-document-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.order-document section + section {
  margin-top: 28px;
}

.order-document h2 {
  margin-bottom: 12px;
  color: var(--navy);
}

@media (max-width: 640px) {
  .order-document-header {
    display: grid;
  }
}
.onboarding-banner-profile { align-items: flex-start; }
.onboarding-banner h2 { font-size: 24px; margin: 4px 0 7px; }
.onboarding-banner p { color: var(--muted); max-width: 680px; }
.onboarding-kicker {
  color: var(--amber-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.panel-heading h3,
.preference-panel h3,
.connection-panel h3,
.privacy-panel h3 {
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  margin-top: 5px;
}
.profile-layout { align-items: start; margin-bottom: 20px; }
.profile-layout .account-panel { margin: 0; }
.preference-intro { margin-bottom: 14px; }
.preference-control {
  align-items: center;
  border-top: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0;
  padding: 18px 0;
}
.preference-control strong { color: var(--navy); display: block; font-size: 14px; }
.preference-control small { color: var(--muted); display: block; font-size: 12px; font-weight: 400; margin-top: 4px; }
.switch-control { display: inline-flex; flex: 0 0 auto; position: relative; }
.switch-control input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.switch-control > span {
  background: #cbd5e1;
  border-radius: 999px;
  height: 28px;
  position: relative;
  transition: background .2s;
  width: 50px;
}
.switch-control > span::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .22);
  content: '';
  height: 20px;
  left: 4px;
  position: absolute;
  top: 4px;
  transition: transform .2s;
  width: 20px;
}
.switch-control input:checked + span { background: var(--teal); }
.switch-control input:checked + span::after { transform: translateX(22px); }
.switch-control input:focus-visible + span {
  outline: 3px solid rgba(10, 124, 110, .28);
  outline-offset: 3px;
}
.profile-support-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-support-grid .account-panel { margin: 0; }
.connection-panel > p,
.privacy-panel > p { color: var(--muted); margin-top: 12px; }
.candidate-linked { background: #dcfce7; color: #166534; }
.candidate-pending { background: #fef3c7; color: #92400e; }
.candidate-review_required,
.candidate-failed { background: #fee2e2; color: #991b1b; }
.candidate-unlinked { background: #e2e8f0; color: #475569; }
.privacy-panel form { margin-top: 20px; }
.privacy-panel textarea {
  background: #fbfcfd;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--body);
  font: inherit;
  min-height: 96px;
  padding: 11px 14px;
  resize: vertical;
  width: 100%;
}
.privacy-panel textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 124, 110, .1);
  outline: none;
}
.privacy-panel .btn-danger { padding: 10px 18px; }
.privacy-request-status {
  align-items: flex-start;
  background: #effcf9;
  border: 1px solid var(--teal-mid);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 16px 0;
  padding: 14px;
}
.privacy-request-status strong { color: var(--teal-dark); text-transform: capitalize; }
.privacy-request-status span,
.optional-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.privacy-checkbox-error { margin: -12px 0 18px; }

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

@media (max-width: 640px) {
  .onboarding-banner { align-items: flex-start; flex-direction: column; padding: 20px; }
  .onboarding-banner .btn-primary { text-align: center; width: 100%; }
  .panel-heading { flex-direction: column; gap: 10px; }
  .profile-support-grid { grid-template-columns: minmax(0, 1fr); }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main.page.active {
  flex: 1 0 auto;
  min-height: 0;
}
.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.skip-link {
  background: var(--navy);
  border-radius: 0 0 10px 10px;
  color: white;
  font-weight: 700;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  transform: translateY(calc(-100% - 16px));
  transition: transform .15s;
  z-index: 1000;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(232, 146, 58, .75);
  outline-offset: 3px;
}
.nav-menu-toggle {
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 44px;
  justify-content: center;
  width: 44px;
}
.nav-menu-toggle > span:not(.sr-only) {
  background: var(--navy);
  border-radius: 99px;
  height: 2px;
  transition: transform .2s, opacity .2s;
  width: 20px;
}
.nav-menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.nav-menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
.cart-btn.active { border-color: var(--amber); }
.btn-primary.active { box-shadow: 0 0 0 3px rgba(232, 146, 58, .28); }
.global-alert-wrap { padding: 24px 24px 0; }
.global-alert {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 14px;
  color: #7c2d12;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 18px;
}
.global-alert strong { color: #9a3412; }
.checkbox-row a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer h2,
.footer h3 { font-family: 'DM Sans', sans-serif; }
.footer-brand h2 { color: white; font-size: 24px; margin-bottom: 12px; }
.footer-col h3 {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  letter-spacing: .06em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-link {
  display: inline-flex;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: white;
  text-decoration-color: var(--amber);
}
.accred-badge {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 650;
}
.page-header-eyebrow {
  color: #fed7aa;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.page-header .content-review {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .78);
  display: inline-flex;
  font-size: 12px;
  margin-top: 20px;
  padding: 6px 11px;
}
.content-page { padding: 68px 24px 88px; }
.content-page-inner {
  align-items: start;
  display: grid;
  gap: 56px;
  grid-template-columns: 240px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1100px;
}
.content-toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  padding: 20px;
  position: sticky;
  top: 104px;
}
.content-toc strong {
  color: var(--navy);
  display: block;
  font-size: 13px;
  letter-spacing: .05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.content-toc ol { display: grid; gap: 9px; list-style: none; }
.content-toc a { color: var(--muted); font-size: 13px; }
.content-toc a:hover { color: var(--teal-dark); }
.content-article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 18px 40px;
}
.content-article section {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  scroll-margin-top: 110px;
}
.content-article section:last-child { border-bottom: 0; }
.content-article h2 { font-size: 27px; margin-bottom: 15px; }
.content-article p { color: #4b5563; font-size: 16px; line-height: 1.8; }
.content-article p + p { margin-top: 12px; }
.content-action {
  color: var(--teal-dark);
  display: inline-flex;
  font-weight: 750;
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.error-page {
  margin: auto;
  max-width: 720px;
  padding: 100px 24px;
  text-align: center;
}
.error-code {
  color: rgba(13, 34, 51, .08);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(110px, 24vw, 210px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .8;
}
.error-page h1 { font-size: clamp(32px, 6vw, 52px); margin: 10px 0 16px; }
.error-page > p:not(.section-eyebrow) { color: var(--muted); font-size: 17px; margin: 0 auto; max-width: 560px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

@media (max-width: 980px) {
  .nav-menu-toggle { display: flex; margin-left: auto; }
  .nav-inner { flex-wrap: wrap; position: relative; }
  .nav-links {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-hover);
    display: none;
    flex: 0 0 100%;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
  }
  .nav-links.is-open { display: grid; }
  .nav-link { padding: 12px 14px; }
  .content-page-inner { gap: 24px; grid-template-columns: 1fr; }
  .content-toc { position: static; }
  .content-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-menu-toggle { flex: 0 0 42px; height: 42px; width: 42px; }
  .nav-right { margin-left: 0; }
  .nav-right .btn-primary { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
  .global-alert-wrap { padding: 16px 16px 0; }
  .content-page { padding: 42px 16px 60px; }
  .content-toc ol { grid-template-columns: 1fr; }
  .content-article { padding: 8px 22px; }
  .content-article h2 { font-size: 23px; }
  .footer-bottom-links { flex-wrap: wrap; }
  .error-page { padding: 72px 18px; }
  .error-actions { align-items: stretch; flex-direction: column; }
}
