/* ============================================================
   CheckFlow — design system
   ------------------------------------------------------------
   Tokens are driven by --cf-primary, set inline in the layout
   from the primary_color setting so the whole UI re-skins from
   one knob in admin.
   ============================================================ */

:root {
  --cf-primary:        #2563eb;
  --cf-primary-hover:  #1d4ed8;
  --cf-primary-soft:   #eff4ff;
  --cf-text:           #0f172a;
  --cf-muted:          #64748b;
  --cf-bg:             #f7f8fb;
  --cf-card:           #ffffff;
  --cf-border:         #e5e7eb;
  --cf-success:        #16a34a;
  --cf-warning:        #d97706;
  --cf-danger:         #dc2626;
  --cf-radius:         14px;
  --cf-radius-sm:      10px;
  --cf-shadow-sm:      0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
  --cf-shadow:         0 4px 14px rgba(15,23,42,.08);
  --cf-shadow-lg:      0 20px 40px -12px rgba(15,23,42,.18);
  --cf-font:           "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { background: var(--cf-bg); color: var(--cf-text); font-family: var(--cf-font); }
body { font-feature-settings: "cv11", "ss01"; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; color: var(--cf-text); }
.text-muted { color: var(--cf-muted) !important; }
.lead { font-weight: 400; color: var(--cf-muted); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--cf-radius-sm); font-weight: 600; transition: all .15s ease; }
.btn-primary {
  --bs-btn-bg: var(--cf-primary); --bs-btn-border-color: var(--cf-primary);
  --bs-btn-hover-bg: var(--cf-primary-hover); --bs-btn-hover-border-color: var(--cf-primary-hover);
  --bs-btn-active-bg: var(--cf-primary-hover); --bs-btn-active-border-color: var(--cf-primary-hover);
  box-shadow: 0 6px 18px -6px var(--cf-primary);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-outline-primary {
  --bs-btn-color: var(--cf-primary); --bs-btn-border-color: var(--cf-primary);
  --bs-btn-hover-bg: var(--cf-primary); --bs-btn-hover-border-color: var(--cf-primary);
}

/* ---------- Cards ---------- */
.card { border: 1px solid var(--cf-border); border-radius: var(--cf-radius);
        background: var(--cf-card); box-shadow: var(--cf-shadow-sm); }
.card-elevated { box-shadow: var(--cf-shadow); }
.card-header { background: transparent; border-bottom: 1px solid var(--cf-border);
               border-top-left-radius: var(--cf-radius); border-top-right-radius: var(--cf-radius); }
.card-footer { background: transparent; border-top: 1px solid var(--cf-border);
               border-bottom-left-radius: var(--cf-radius); border-bottom-right-radius: var(--cf-radius); }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: var(--cf-radius-sm); border-color: var(--cf-border);
  padding: .65rem .9rem; font-size: .95rem; background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px var(--cf-primary-soft);
}
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }

/* ---------- Navbar (brand · trust strip · language) ---------- */
.cf-navbar {
  background: var(--cf-card); border-bottom: 1px solid var(--cf-border);
  padding: .85rem 0;
}
.cf-navbar-inner {
  display: flex; align-items: center;
  gap: 1rem; flex-wrap: wrap;   /* allow trust strip to wrap to row 2 on mobile */
}

/* --- Brand --- */
.cf-brand {
  order: 1;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--cf-text); font-weight: 700; text-decoration: none;
  margin-right: auto;            /* pushes everything else to the right at xs */
}
.cf-brand img { max-height: 32px; width: auto; display: block; }
.cf-brand span { letter-spacing: -.01em; }

/* --- Trust pills (centered between brand & language on desktop, full row on mobile) --- */
.cf-header-trust {
  order: 2;
  flex: 1 1 auto;
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; flex-wrap: wrap;
  min-width: 0;
}
.cf-htrust-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem;
  background: var(--cf-bg);
  border: 1px solid var(--cf-border);
  border-radius: 999px;
  font-size: .82rem; font-weight: 500;
  color: var(--cf-muted);
  white-space: nowrap;
}
.cf-htrust-pill svg { color: var(--cf-success); flex-shrink: 0; }
.cf-htrust-pill strong { font-weight: 700; color: var(--cf-text); }
.cf-htrust-stars {
  display: inline-flex; align-items: center; gap: 1px;
  color: #f59e0b;
}
.cf-htrust-sub { color: var(--cf-muted); font-size: .78rem; }

/* --- Language --- */
.cf-lang-switcher { order: 3; flex: 0 0 auto; margin-left: .5rem; }

/* === Tablet: shrink pills so all three pills fit on one row === */
@media (max-width: 991.98px) and (min-width: 768px) {
  .cf-htrust-pill { font-size: .76rem; padding: .3rem .65rem; gap: .3rem; }
  .cf-htrust-sub  { display: none; }
}

/* === Mobile (<768px): two-row layout ============================
   Row 1:  [ logo .................... lang switcher ]
   Row 2:  [ ⭐ rating · 🛡 secure · ⚡ fast (compact) ]
   The trust strip drops below via order:3 + flex-basis:100%.
   ============================================================ */
@media (max-width: 767.98px) {
  .cf-navbar { padding: .65rem 0; }
  .cf-navbar-inner { gap: .5rem; column-gap: 1rem; }

  .cf-brand        { order: 1; }
  .cf-lang-switcher{ order: 2; margin-left: 0; }   /* ends up on the right via brand's margin-right:auto */

  .cf-header-trust {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid var(--cf-border);
    gap: .35rem;
  }
  .cf-htrust-pill {
    font-size: .68rem; padding: .2rem .5rem; gap: .28rem;
    background: transparent; border-color: transparent;
    letter-spacing: -.005em;
  }
  .cf-htrust-pill svg { width: 11px; height: 11px; }
  .cf-htrust-stars { gap: 0; }
  .cf-htrust-stars svg { width: 10px; height: 10px; }
  /* Compact: drop the "Trusted by customers" caption — keep stars + rating */
  .cf-htrust-sub { display: none; }
}

/* === Very small phones (<360px): drop "Fast activation" so layout stays clean === */
@media (max-width: 359px) {
  .cf-header-trust .cf-htrust-pill:last-child { display: none; }
}

/* ---------- Footer ---------- */
.cf-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--cf-border);
  background: var(--cf-card);
  color: var(--cf-muted);
  font-size: .82rem;
}
.cf-footer .container {
  display: flex; flex-direction: column; gap: .55rem;
  align-items: center; text-align: center;
}
.cf-footer-legal {
  display: flex; flex-wrap: wrap; gap: .5rem .65rem;
  justify-content: center; align-items: center;
}
.cf-footer-legal-label {
  text-transform: uppercase; letter-spacing: .06em;
  font-size: .7rem; font-weight: 600; color: var(--cf-muted);
}
.cf-footer-legal a {
  color: var(--cf-text); text-decoration: none; font-weight: 500;
}
.cf-footer-legal a:hover { color: var(--cf-primary); text-decoration: underline; }
.cf-footer-meta a { color: var(--cf-muted); }
.cf-footer-meta a:hover { color: var(--cf-primary); }
.cf-footer-sep { color: var(--cf-border); }

@media (max-width: 575.98px) {
  .cf-footer { padding: 1.25rem 0 1.5rem; font-size: .78rem; }
  .cf-footer-legal { gap: .35rem .55rem; }
}

/* ---------- Hero ---------- */
.cf-hero {
  background: linear-gradient(135deg, var(--cf-primary-soft) 0%, #fff 100%);
  border: 1px solid var(--cf-border); border-radius: 24px;
  padding: 4rem 2rem; text-align: center; margin: 1rem 0 2.5rem;
}
.cf-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.cf-hero p { font-size: 1.1rem; color: var(--cf-muted); max-width: 560px; margin: 1rem auto 1.75rem; }

/* ---------- Service cards ---------- */
.service-card { transition: all .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--cf-shadow-lg); border-color: var(--cf-primary); }
.service-card .price {
  font-size: 1.6rem; font-weight: 800; color: var(--cf-text);
}
.service-card .price small { font-size: .9rem; color: var(--cf-muted); font-weight: 500; }

/* ---------- Step indicator (checkout) ---------- */
.cf-steps { display:flex; gap:.75rem; margin-bottom:1.75rem; }
.cf-step {
  flex:1; padding: .9rem 1rem; border-radius: var(--cf-radius-sm);
  background: var(--cf-card); border:1px solid var(--cf-border);
  display:flex; align-items:center; gap:.65rem; font-size: .9rem;
}
.cf-step .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cf-bg); color: var(--cf-muted); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
  border: 1px solid var(--cf-border);
}
.cf-step.active { background: var(--cf-primary-soft); border-color: var(--cf-primary); color: var(--cf-primary); }
.cf-step.active .num { background: var(--cf-primary); color: #fff; border-color: var(--cf-primary); }
.cf-step.done .num { background: var(--cf-success); color: #fff; border-color: var(--cf-success); }
.cf-step.done .num::before { content: "✓"; }
.cf-step.done .num span { display:none; }

/* ---------- Trust badges ---------- */
.trust-row { display:flex; flex-wrap:wrap; gap:.75rem; justify-content: center; margin-top: 1rem; }
.trust-badge {
  display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .85rem;
  background:#fff; border:1px solid var(--cf-border); border-radius: 999px;
  font-size: .8rem; color: var(--cf-muted); font-weight:500;
}
.trust-badge svg { color: var(--cf-success); }

/* ---------- Status badges ---------- */
.badge-status { font-weight:600; padding:.4em .7em; border-radius: 999px; font-size:.75em; }
.badge-status.pending  { background: #fff7ed; color: #c2410c; }
.badge-status.approved { background: #ecfdf5; color: #047857; }
.badge-status.rejected { background: #fef2f2; color: #b91c1c; }

/* ---------- Tables ---------- */
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .9rem 1rem; vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em;
                  color: var(--cf-muted); font-weight: 600; border-bottom-color: var(--cf-border); }

/* ============================================================
   Admin Shell — SaaS-style dashboard layout
   ============================================================ */
.cf-admin-shell { min-height: 100vh; background: var(--cf-bg); }
.cf-admin-wrap  { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.cf-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--cf-card); border-right: 1px solid var(--cf-border);
  padding: 1.25rem 1rem; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.cf-sidebar .nav-link {
  display: flex; align-items: center; gap: .65rem;
  color: var(--cf-muted); border-radius: var(--cf-radius-sm);
  padding: .6rem .85rem; margin-bottom: .2rem; font-weight: 500; font-size: .92rem;
  text-decoration: none; transition: all .1s;
}
.cf-sidebar .nav-link:hover { background: var(--cf-bg); color: var(--cf-text); }
.cf-sidebar .nav-link.active { background: var(--cf-primary-soft); color: var(--cf-primary); }
.cf-sidebar .brand {
  padding: .25rem .5rem 1.25rem; display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.05rem;
}
.cf-sidebar .brand img { max-height: 28px; }

.cf-nav-badge {
  margin-left: auto; background: var(--cf-danger); color: #fff;
  font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

/* --- Main content --- */
.cf-admin-main {
  flex: 1; min-width: 0;
  padding: 2rem 2.25rem; max-width: 100%;
}

/* --- Mobile top bar (hidden on desktop) --- */
.cf-admin-topbar {
  display: none; position: sticky; top: 0; z-index: 1040;
  background: var(--cf-card); border-bottom: 1px solid var(--cf-border);
  padding: .65rem 1rem; align-items: center; gap: .75rem;
}
.cf-admin-topbar__title { font-weight: 700; font-size: .95rem; }
.cf-hamburger {
  border: none; background: transparent; padding: .25rem;
  color: var(--cf-text); cursor: pointer;
}
.cf-sidebar-overlay {
  display: none; position: fixed; inset: 0; z-index: 1049;
  background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
}
.cf-sidebar-overlay.show { display: block; }

/* ============================================================
   Dashboard components
   ============================================================ */

/* --- Page header --- */
.dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; gap: 1rem;
}
.dash-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.dash-subtitle { color: var(--cf-muted); font-size: .88rem; margin: .25rem 0 0; }

/* --- KPI metric cards --- */
.dash-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 1.25rem;
}
.dash-metric {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); padding: 1.15rem 1.25rem;
  box-shadow: var(--cf-shadow-sm); display: flex; align-items: flex-start; gap: .85rem;
  transition: box-shadow .15s;
}
.dash-metric:hover { box-shadow: var(--cf-shadow); }
.dash-metric__icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-metric--revenue .dash-metric__icon { background: #dcfce7; color: var(--cf-success); }
.dash-metric--orders .dash-metric__icon  { background: #dbeafe; color: var(--cf-primary); }
.dash-metric--month .dash-metric__icon   { background: #fef3c7; color: var(--cf-warning); }
.dash-metric--today .dash-metric__icon   { background: #ede9fe; color: #7c3aed; }
.dash-metric__body { display: flex; flex-direction: column; min-width: 0; }
.dash-metric__label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--cf-muted); margin-bottom: .15rem;
}
.dash-metric__value { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.dash-metric__sub   { font-size: .78rem; color: var(--cf-muted); margin-top: .15rem; }

/* --- Status pills --- */
.dash-status-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.25rem;
}
.dash-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: 20px; padding: .35rem .85rem; font-size: .82rem;
  font-weight: 500; color: var(--cf-text); text-decoration: none;
  transition: all .1s;
}
a.dash-pill:hover { box-shadow: var(--cf-shadow-sm); transform: translateY(-1px); }
.dash-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dash-pill--warning .dash-pill__dot { background: var(--cf-warning); }
.dash-pill--success .dash-pill__dot { background: var(--cf-success); }
.dash-pill--danger .dash-pill__dot  { background: var(--cf-danger); }
.dash-pill__dot--muted              { background: var(--cf-muted); }
.dash-pill strong { font-weight: 700; }

/* --- Chart card --- */
.dash-chart-card {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm);
  margin-bottom: 1.25rem; overflow: hidden;
}
.dash-chart-header { padding: 1rem 1.25rem 0; }
.dash-chart-wrap   { padding: .5rem 1rem 1rem; height: 280px; }

/* --- Two-column grid --- */
.dash-grid-2 {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 1.25rem;
}

/* --- Dashboard cards --- */
.dash-card {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm);
  overflow: hidden;
}
.dash-card__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--cf-border);
}
.dash-card__link {
  font-size: .82rem; font-weight: 600; color: var(--cf-primary);
  text-decoration: none;
}
.dash-card__link:hover { text-decoration: underline; }
.dash-card__body { padding: 1rem 1.25rem; }
.dash-card__body--table { padding: 0; }

.dash-section-title {
  font-size: .95rem; font-weight: 700; margin: 0;
}

/* --- Dashboard table --- */
.dash-table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.dash-table thead th {
  padding: .6rem 1rem; background: var(--cf-bg); color: var(--cf-muted);
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; border-bottom: 1px solid var(--cf-border);
}
.dash-table tbody td {
  padding: .7rem 1rem; border-bottom: 1px solid var(--cf-border);
  vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table__email { font-size: .85rem; font-weight: 600; }
.dash-table__date  { font-size: .75rem; color: var(--cf-muted); }
.dash-table__link  {
  color: var(--cf-primary); font-weight: 700; font-size: 1rem;
  text-decoration: none;
}
.dash-table__link:hover { text-decoration: underline; }

/* --- Top services --- */
.dash-top-services { display: flex; flex-direction: column; gap: .6rem; }
.dash-svc-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .5rem; border-radius: var(--cf-radius-sm);
  transition: background .1s;
}
.dash-svc-row:hover { background: var(--cf-bg); }
.dash-svc-rank {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cf-primary-soft); color: var(--cf-primary);
  font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-svc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-svc-name { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-svc-meta { font-size: .75rem; color: var(--cf-muted); }
.dash-svc-revenue { font-weight: 700; font-size: .92rem; white-space: nowrap; }

/* ============================================================
   Admin responsive — mobile & tablet
   ============================================================ */
@media (max-width: 991px) {
  .cf-admin-topbar { display: flex; }
  .cf-sidebar {
    position: fixed; left: -260px; top: 0; z-index: 1050;
    width: 250px; height: 100vh;
    transition: left .25s ease;
    box-shadow: none;
  }
  .cf-sidebar.open {
    left: 0;
    box-shadow: 10px 0 40px -10px rgba(0,0,0,.18);
  }
  .cf-admin-main { padding: 1.25rem; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-2  { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .dash-metrics { grid-template-columns: 1fr; }
  .dash-header  { flex-direction: column; }
  .dash-metric__value { font-size: 1.25rem; }
  .dash-metric__icon  { width: 36px; height: 36px; }
  .dash-table { font-size: .82rem; }
  .dash-table thead th { padding: .5rem .65rem; }
  .dash-table tbody td { padding: .55rem .65rem; }
  .dash-chart-wrap { height: 200px; }
  .cf-admin-main { padding: 1rem .75rem; }
  .dash-title { font-size: 1.2rem; }
}

/* ---------- WhatsApp floating CTA ---------- */
.cf-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050;
  background: #25D366; color: #fff; width: 56px; height: 56px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(37,211,102,.55); transition: transform .15s ease;
}
.cf-whatsapp:hover { transform: scale(1.06); color: #fff; }

/* ---------- Misc ---------- */
.gateway-panel.d-none { display: none !important; }
hr { border-color: var(--cf-border); opacity: 1; }
.divider-text { display:flex; align-items:center; gap:.75rem; color: var(--cf-muted); font-size:.85rem; margin:1.25rem 0; }
.divider-text::before, .divider-text::after { content:""; flex:1; height:1px; background: var(--cf-border); }

/* ============================================================
   Checkout — conversion-focused layout
   ============================================================ */
.checkout-page { padding-bottom: 2rem; }

/* --- Order summary strip --- */
.checkout-summary {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); padding: 1.15rem 1.35rem;
  margin-bottom: 1rem; box-shadow: var(--cf-shadow-sm);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap;
}
.summary-label {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--cf-muted); margin-bottom: .2rem;
}
.summary-name { font-weight: 700; font-size: 1.05rem; }
.summary-price { text-align: right; }
.summary-amount { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.summary-currency { font-size: .85rem; font-weight: 500; color: var(--cf-muted); }
.summary-method {
  display: flex; align-items: center; gap: .45rem;
  margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--cf-border);
  font-size: .85rem; color: var(--cf-muted); font-weight: 500;
}
.summary-method svg { color: var(--cf-primary); }

/* --- Instructions callout --- */
.checkout-instructions {
  background: var(--cf-primary-soft); border: 1px solid var(--cf-primary);
  border-left: 4px solid var(--cf-primary);
  border-radius: var(--cf-radius-sm); padding: 1rem 1.25rem;
  margin-bottom: 1rem; position: relative;
}
.instructions-header {
  display: flex; align-items: center; gap: .55rem; margin-bottom: .55rem;
}
.instructions-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cf-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.instructions-icon svg { width: 18px; height: 18px; }
.instructions-title {
  font-weight: 700; font-size: .95rem; color: var(--cf-text);
}
.instructions-body {
  font-size: .88rem; line-height: 1.6; color: var(--cf-text);
}
.instructions-body .instructions-text {
  margin: 0 0 .45rem; font-size: .88rem;
}
.instructions-body .instructions-text:last-child { margin-bottom: 0; }

/* --- Purchase link button --- */
.instructions-link {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--cf-primary); color: #fff !important; font-weight: 700;
  font-size: .92rem; padding: .7rem 1.2rem; border-radius: var(--cf-radius-sm);
  text-decoration: none !important; margin: .65rem 0;
  box-shadow: 0 4px 12px -3px var(--cf-primary);
  transition: all .15s ease;
}
.instructions-link:hover {
  transform: translateY(-1px); opacity: .92;
  box-shadow: 0 6px 18px -4px var(--cf-primary);
}
.instructions-link svg { flex-shrink: 0; }

/* --- Numbered steps --- */
.instructions-steps {
  display: flex; flex-direction: column; gap: .4rem; margin: .5rem 0;
}
.instructions-step {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .85rem; line-height: 1.45;
}
.step-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cf-primary); color: #fff; font-weight: 700; font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.instructions-body a:not(.instructions-link) {
  color: var(--cf-primary); font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px;
}
.instructions-body a:not(.instructions-link):hover { opacity: .8; }

/* --- Checkout cards --- */
.checkout-card {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); padding: 1.25rem 1.35rem;
  margin-bottom: 1rem; box-shadow: var(--cf-shadow-sm);
}

/* --- Hero code input --- */
.checkout-card-hero {
  border-color: var(--cf-primary); border-width: 2px;
  box-shadow: 0 0 0 4px var(--cf-primary-soft), var(--cf-shadow);
  text-align: center; padding: 1.5rem 1.5rem 1.25rem;
}
.checkout-hero-label {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; margin-bottom: .85rem; color: var(--cf-text);
}
.checkout-hero-label svg { color: var(--cf-primary); }
.checkout-code-input {
  display: block; width: 100%; border: 2px solid var(--cf-border);
  border-radius: var(--cf-radius-sm); padding: 1rem 1rem;
  font-size: 1.35rem; font-weight: 700; font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
  text-align: center; letter-spacing: .18em; text-transform: uppercase;
  background: var(--cf-bg); color: var(--cf-text);
  transition: all .2s ease;
}
.checkout-code-input::placeholder {
  color: var(--cf-muted); opacity: .35; letter-spacing: .18em; font-weight: 500;
}
.checkout-code-input:focus {
  outline: none; border-color: var(--cf-primary);
  box-shadow: 0 0 0 4px var(--cf-primary-soft);
  background: #fff;
}
.checkout-code-help {
  font-size: .78rem; color: var(--cf-muted); margin: .55rem 0 0; text-align: center;
}

/* --- Contact fields --- */
.checkout-field { margin-bottom: .85rem; }
.checkout-field:last-child { margin-bottom: 0; }
.checkout-field .form-text { font-size: .78rem; color: var(--cf-muted); margin-top: .3rem; }

/* --- Trust indicators --- */
.checkout-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-bottom: 1rem;
}
.checkout-trust-item {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--cf-muted); font-weight: 500;
  padding: .35rem .7rem; background: var(--cf-bg);
  border: 1px solid var(--cf-border); border-radius: 999px;
}
.checkout-trust-item svg { color: var(--cf-success); flex-shrink: 0; }

/* --- CTA button --- */
.checkout-footer { margin-top: .5rem; }
.checkout-cta {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.5rem; font-size: 1.1rem; font-weight: 700;
  border-radius: var(--cf-radius-sm);
  transition: all .2s ease;
}
.checkout-cta:hover { transform: translateY(-2px); }
.checkout-cta:active { transform: translateY(0); }
.cta-arrow { transition: transform .2s ease; }
.checkout-cta:hover .cta-arrow { transform: translateX(4px); }
.checkout-cta.is-loading .cta-text { opacity: .5; }
.checkout-cta.is-loading .cta-arrow { display: none; }

/* --- Help line --- */
.checkout-help {
  text-align: center; font-size: .82rem; color: var(--cf-muted);
  margin: 1rem 0 0; padding: 0;
}
.checkout-help a { color: var(--cf-primary); font-weight: 600; }

/* --- Alert --- */
.checkout-alert {
  display: flex; align-items: flex-start; gap: .65rem;
  border-radius: var(--cf-radius-sm); margin-bottom: 1rem;
}
.checkout-alert svg { flex-shrink: 0; margin-top: 1px; }

/* --- Responsive --- */
@media (max-width: 575.98px) {
  .checkout-code-input { font-size: 1.1rem; padding: .85rem .75rem; letter-spacing: .08em; }
  .checkout-card-hero { padding: 1.15rem 1rem 1rem; }
  .checkout-summary { padding: 1rem; }
  .summary-amount { font-size: 1.25rem; }
  .checkout-trust { gap: .4rem; }
  .checkout-trust-item { font-size: .75rem; padding: .3rem .55rem; }
  .cf-steps { gap: .35rem; }
  .cf-step { padding: .65rem .6rem; font-size: .78rem; }
}

/* ============================================================
   Success page — confirmation, next steps, trust
   ============================================================ */
.success-page { padding-bottom: 2.5rem; }

.success-hero {
  text-align: center;
  padding: 1.75rem 1.25rem 1.25rem;
  margin-bottom: 1rem;
}
.success-check {
  width: 76px; height: 76px; border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--cf-primary-soft);
  color: var(--cf-primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: success-pop .35s ease-out;
}
.success-check::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cf-primary);
  opacity: .25;
}
@keyframes success-pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.success-title {
  font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em;
  margin: 0 0 .5rem;
}
.success-subtitle {
  color: var(--cf-muted); font-size: .98rem; line-height: 1.55;
  max-width: 460px; margin: 0 auto;
}
.success-subtitle p { margin: 0 0 .4rem; }
.success-subtitle p:last-child { margin: 0; }

/* --- Cards --- */
.success-card {
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: var(--cf-radius); box-shadow: var(--cf-shadow-sm);
  margin-bottom: 1rem; overflow: hidden;
}
.success-card-head {
  padding: .85rem 1.25rem .55rem;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--cf-muted);
}

/* --- Order summary rows --- */
.success-meta { padding: 0 1.25rem 1rem; }
.success-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--cf-border);
  gap: 1rem; min-height: 38px;
}
.success-meta-row:last-child { border-bottom: 0; }
.success-meta-label {
  color: var(--cf-muted); font-size: .85rem; font-weight: 500;
  flex-shrink: 0;
}
.success-meta-value {
  font-weight: 600; font-size: .92rem;
  text-align: right; word-break: break-word;
}

/* --- "What happens next" timeline --- */
.success-timeline {
  padding: .5rem 1.25rem 1.25rem;
  display: flex; flex-direction: column; gap: 0;
}
.timeline-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .65rem 0; position: relative;
}
.timeline-item:not(:last-child)::after {
  content: ""; position: absolute;
  left: 13px; top: 30px; bottom: -8px;
  width: 2px; background: var(--cf-border);
}
.timeline-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--cf-bg); color: var(--cf-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid var(--cf-border);
  z-index: 1;
}
.timeline-item.is-active .timeline-dot {
  background: var(--cf-primary); color: #fff;
  border-color: var(--cf-primary);
  animation: timeline-pulse 1.6s ease-in-out infinite;
}
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cf-primary-soft); }
  50%      { box-shadow: 0 0 0 6px var(--cf-primary-soft); }
}
.timeline-body { flex: 1; padding-top: 2px; }
.timeline-title {
  font-weight: 600; font-size: .94rem; color: var(--cf-text);
  margin-bottom: 1px;
}
.timeline-text {
  color: var(--cf-muted); font-size: .82rem; line-height: 1.45;
}

/* --- Action buttons --- */
.success-actions {
  display: flex; gap: .65rem; flex-wrap: wrap;
  margin: 1.25rem 0 1rem;
}
.success-actions .btn {
  flex: 1 1 auto; min-width: 0;
  padding: .75rem 1.25rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-whatsapp {
  --bs-btn-bg: #25D366; --bs-btn-border-color: #25D366;
  --bs-btn-hover-bg: #1ebe5a; --bs-btn-hover-border-color: #1ebe5a;
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
  box-shadow: 0 4px 14px -4px rgba(37, 211, 102, .55);
}

/* --- Trust strip --- */
.success-trust {
  display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center;
  padding: .25rem 0;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem;
  background: var(--cf-card); border: 1px solid var(--cf-border);
  border-radius: 999px; font-size: .78rem; color: var(--cf-muted);
  font-weight: 500;
}
.trust-pill svg { color: var(--cf-success); flex-shrink: 0; }

/* --- Responsive --- */
@media (max-width: 575.98px) {
  .success-hero { padding: 1.25rem 1rem 1rem; }
  .success-title { font-size: 1.4rem; }
  .success-subtitle { font-size: .92rem; }
  .success-check { width: 64px; height: 64px; }
  .success-check svg { width: 34px; height: 34px; }
  .success-card-head { padding: .75rem 1rem .5rem; }
  .success-meta { padding: 0 1rem .85rem; }
  .success-timeline { padding: .35rem 1rem 1rem; }
  .success-actions .btn { flex-basis: 100%; }
  .timeline-text { font-size: .8rem; }
  .success-meta-value { font-size: .88rem; }
}
