
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root { --bg: #F7F4EF; --dark: #0C0B09; --red: #E63C1E; --muted: #7A756D; --border: #E0DAD1; --white: #FFFFFF; --card-bg: #EFEAE2; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--dark); font-family: 'DM Sans', sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
    h1,h2,h3,h4,h5 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }

    nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 68px; background: rgba(247,244,239,0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
    .nav-logo { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.03em; color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
    .nav-logo-icon { width: 32px; height: 32px; background: var(--dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
    .nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
    .nav-ssl { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
    .nav-back { white-space: nowrap; }
    .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.2s ease; border: none; }
    .btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--border); }
    .btn-outline:hover { border-color: var(--dark); }
    .btn-dark { background: var(--dark); color: var(--white); }

    /* PROGRESS */
    .checkout-progress { display: flex; align-items: center; justify-content: center; gap: 0; padding: 24px 48px; border-bottom: 1px solid var(--border); }
    .cp-step { display: flex; align-items: center; gap: 10px; }
    .cp-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; border: 2px solid var(--border); color: var(--muted); }
    .cp-num.active { background: var(--dark); color: white; border-color: var(--dark); }
    .cp-num.done { background: #16A34A; color: white; border-color: #16A34A; font-size: 11px; }
    .cp-label { font-size: 13px; font-weight: 500; color: var(--muted); }
    .cp-label.active { color: var(--dark); font-weight: 700; font-family: 'Inter', sans-serif; }
    .cp-label.done { color: #16A34A; }
    .cp-line { width: 64px; height: 1px; background: var(--border); margin: 0 16px; }
    .cp-line.done { background: #16A34A; }

    /* LAYOUT */
    .checkout-layout {
      display: grid;
      grid-template-columns: 1fr 400px;
      min-height: calc(100vh - 140px);
    }

    /* LEFT: FORM */
    .checkout-form {
      border-right: 1px solid var(--border);
      padding: 32px 40px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .cf-header { padding: 0 0 4px; }
    .cf-header h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.04em; margin-bottom: 4px; }
    .cf-header p { font-size: 14px; color: var(--muted); }

    /* Sections — white card */
    .cf-section {
      padding: 32px 36px;
      background: #FBFAF8;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: 0 1px 4px rgba(12,11,9,0.04);
    }

    .cf-section-title {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 28px;
    }

    .cf-section-num {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: var(--dark); color: white;
      font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .cf-section-name {
      font-family: 'Inter', sans-serif;
      font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--dark);
    }

    /* Form fields */
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .form-row.full { grid-template-columns: 1fr; }
    .form-row.thirds { grid-template-columns: 1fr 1fr 1fr; }

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

    .field label { font-size: 12px; font-weight: 600; color: var(--dark); letter-spacing: 0.02em; font-family: 'Inter', sans-serif; }

    .field input, .field select, .field textarea {
      padding: 12px 16px;
      border: 1.5px solid var(--border);
      border-radius: 10px;
      font-size: 14px;
      font-family: 'DM Sans', sans-serif;
      background: var(--white);
      color: var(--dark);
      outline: none;
      transition: border-color 0.15s;
    }

    .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--dark); }
    .field input.filled { border-color: var(--dark); background: white; }
    .field input::placeholder, .field textarea::placeholder { color: var(--muted); }

    /* Delivery method */
    .delivery-opts { display: flex; flex-direction: column; gap: 10px; }

    .delivery-opt {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 20px;
      border: 1.5px solid var(--border);
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.15s;
    }

    .delivery-opt:hover { border-color: var(--muted); }
    .delivery-opt.selected { border-color: var(--dark); background: rgba(12,11,9,0.03); }

    .do-radio {
      width: 20px; height: 20px;
      border-radius: 50%;
      border: 2px solid var(--border);
      flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      transition: all 0.15s;
    }

    .do-radio.selected { border-color: var(--dark); }
    .do-radio.selected::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dark); }

    .do-icon { font-size: 22px; flex-shrink: 0; }
    .do-info { flex: 1; }
    .do-name { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }
    .do-sub { font-size: 12px; color: var(--muted); }
    .do-price { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }
    .do-price.free { color: #16A34A; }

    /* Payment methods */
    .payment-tabs { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }

    .pay-tab {
      flex: 1; padding: 14px 20px;
      display: flex; align-items: center; justify-content: center; gap: 8px;
      font-size: 13px; font-weight: 600; cursor: pointer;
      border-right: 1px solid var(--border);
      transition: all 0.15s;
      color: var(--muted);
      font-family: 'Inter', sans-serif;
    }

    .pay-tab:last-child { border-right: none; }
    .pay-tab.active { background: var(--dark); color: white; }

    .card-form { display: flex; flex-direction: column; gap: 16px; } /* legacy — now .pay-panel */

    .card-number-field {
      position: relative;
    }

    .card-number-field input { width: 100%; padding-right: 80px; }

    .card-schemes {
      position: absolute;
      right: 14px; top: 50%;
      transform: translateY(-50%);
      display: flex; gap: 4px;
    }

    .card-scheme {
      padding: 2px 6px;
      background: var(--card-bg); border: 1px solid var(--border);
      border-radius: 4px; font-size: 9px; font-weight: 700;
      font-family: 'Inter', sans-serif; color: var(--muted);
    }

    .bank-opts { display: flex; flex-direction: column; gap: 10px; }
    .bank-opt { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.15s; }
    .bank-opt:hover { border-color: var(--muted); }
    .bank-opt.selected { border-color: var(--dark); }
    .bank-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--card-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .bank-name { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); }
    .bank-sub { font-size: 11px; color: var(--muted); }

    /* Payment panels */
    .pay-panel { display: flex; flex-direction: column; gap: 12px; }

    .pay-info-box { background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: 10px; padding: 14px 18px; margin-bottom: 8px; }
    .pay-info-box.cod { background: #FFF7ED; border-color: #FED7AA; }
    .pib-title { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
    .pib-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }

    .bank-accounts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
    .bank-account { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: white; border: 1.5px solid var(--border); border-radius: 10px; }
    .ba-bank { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); width: 96px; flex-shrink: 0; }
    .ba-number { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark); letter-spacing: 0.04em; flex: 1; }
    .ba-name { font-size: 12px; color: var(--muted); flex: 1; }
    .ba-copy-btn { padding: 6px 14px; border-radius: 100px; border: 1.5px solid var(--border); background: transparent; font-size: 12px; font-weight: 600; font-family: 'DM Sans', sans-serif; color: var(--dark); cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
    .ba-copy-btn:hover { border-color: var(--dark); }

    .ussd-code-wrap { display: flex; flex-direction: column; align-items: center; padding: 28px 24px; background: white; border: 1.5px solid var(--border); border-radius: 12px; gap: 4px; margin-bottom: 4px; }
    .ussd-code-label { font-size: 12px; color: var(--muted); }
    .ussd-code { font-family: 'Inter', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: 0.04em; color: var(--dark); }

    .ussd-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
    .ussd-steps li { font-size: 13px; color: var(--muted); line-height: 1.5; }

    .pay-note { font-size: 12px; color: var(--muted); padding: 12px 16px; background: var(--card-bg); border-radius: 8px; line-height: 1.6; margin-top: 4px; }

    .cod-breakdown { background: white; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
    .cod-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
    .cod-row:last-child { border-bottom: none; }
    .cod-row-total { background: var(--card-bg); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }

    .cod-notes { display: flex; flex-direction: column; gap: 12px; }
    .cod-note { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }

    /* Review section */
    .review-summary { display: flex; flex-direction: column; gap: 12px; }
    .rs-item { display: flex; align-items: center; gap: 12px; }
    .rs-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--card-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
    .rs-label { font-size: 12px; color: var(--muted); }
    .rs-val { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }
    .rs-edit { font-size: 12px; color: var(--red); cursor: pointer; text-decoration: underline; margin-left: auto; background: none; border: none; font-family: 'DM Sans', sans-serif; }

    /* CTA */
    .cf-cta { padding: 8px 0 16px; }

    .btn-place-order {
      width: 100%;
      background: var(--red); color: white; border: none;
      border-radius: 100px; padding: 20px 28px;
      font-size: 17px; font-weight: 700;
      font-family: 'Inter', sans-serif; cursor: pointer;
      transition: all 0.2s; letter-spacing: -0.02em;
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }
    .btn-place-order:hover { background: #CC3318; box-shadow: 0 12px 32px rgba(230,60,30,0.32); transform: translateY(-2px); }

    .cf-terms {
      text-align: center;
      font-size: 12px;
      color: var(--muted);
      margin-top: 16px;
      line-height: 1.6;
    }
    .cf-terms a { color: var(--dark); text-decoration: underline; }

    /* RIGHT: ORDER SUMMARY */
    .order-summary { padding: 36px 36px; }
    .os-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }

    .os-items { margin-bottom: 20px; }
    .os-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .os-item-img { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
    .osi-1 { background: linear-gradient(135deg, #2C1A0E, #6B3520); }
    .osi-2 { background: linear-gradient(135deg, #1A2C3A, #2C4A5C); }
    .osi-3 { background: linear-gradient(135deg, #1A0E2C, #3D2063); }
    .os-item-info { flex: 1; }
    .os-item-name { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); }
    .os-item-sub { font-size: 11px; color: var(--muted); }
    .os-item-qty { display: inline-block; background: var(--card-bg); border-radius: 100px; padding: 1px 7px; font-size: 10px; font-weight: 700; font-family: 'Inter', sans-serif; margin-left: 4px; }
    .os-item-price { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); }

    .os-breakdown { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
    .os-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
    .os-row:last-child { border-bottom: none; }
    .os-row-label { color: var(--muted); }
    .os-row-val { font-family: 'Inter', sans-serif; font-weight: 700; color: var(--dark); }
    .os-row-val.green { color: #16A34A; }
    .os-row-val.red { color: var(--red); }

    .os-total { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-top: 2px solid var(--dark); margin-bottom: 24px; }
    .os-total-label { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; color: var(--dark); }
    .os-total-val { font-family: 'Inter', sans-serif; font-size: 26px; font-weight: 700; color: var(--dark); letter-spacing: -0.04em; }

    /* Delivery estimate card */
    .delivery-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px 18px;
      margin-bottom: 20px;
    }

    .delivery-card-title { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }

    .vendor-delivery { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
    .vendor-delivery:last-child { margin-bottom: 0; }
    .vd-name { font-size: 12px; color: var(--muted); }
    .vd-eta { font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; color: var(--dark); }
    .vd-eta.today { color: #16A34A; }

    /* Security badges */
    .security-badges { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 20px; }
    .sec-badge { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }

    /* FOOTER */
    footer { padding: 40px 48px 28px; border-top: 1px solid var(--border); }
    .footer-bottom { display: flex; align-items: center; justify-content: space-between; }
    .footer-bottom p { font-size: 13px; color: var(--muted); }
    .footer-bottom p span { color: var(--dark); font-weight: 500; }

    /* ─── RESPONSIVE ──────────────────────────────────── */
    @media (max-width: 768px) {
      /* Nav: mobile refinement */
      nav { padding: 0 16px; height: 60px; }
      .nav-logo { flex-shrink: 0; }
      .nav-ssl { display: none; }
      .nav-back { padding: 8px 16px; font-size: 13px; }

      /* Progress bar: compact */
      .checkout-progress { padding: 14px 20px; gap: 0; overflow-x: auto; }
      .cp-label { font-size: 11px; }
      .cp-line { width: 24px; margin: 0 6px; }

      /* Layout: stack, summary on top */
      .checkout-layout {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column-reverse;
      }
      .checkout-form { border-right: none; padding: 20px 16px; gap: 16px; }

      /* Order summary */
      .order-summary { padding: 24px 20px; border-bottom: 1px solid var(--border); }

      /* Form sections */
      .cf-header { padding: 0 0 4px; }
      .cf-header h1 { font-size: 26px; }
      .cf-section { padding: 24px 20px; border-radius: 12px; }
      .cf-cta { padding: 4px 0 16px; }

      /* Form rows: stack on mobile */
      .form-row { grid-template-columns: 1fr; }
      .form-row.thirds { grid-template-columns: 1fr; }

      /* Payment tabs: smaller */
      .pay-tab { font-size: 11px; padding: 12px 10px; }

      footer { padding: 28px 20px; }
      .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
    }

    @media (max-width: 480px) {
      .cp-label { display: none; }
      .cp-label.active { display: block; }
    }
