/* =====================================================================
   AydaPayKYC — Brand stylesheet
   Primary: Burgundy   Accent: Gold / Yellow
   ===================================================================== */

:root {
  --ap-burgundy: #800020;
  --ap-burgundy-600: #6d001b;
  --ap-burgundy-800: #4a0013;
  --ap-burgundy-900: #2e000c;
  --ap-burgundy-100: #f6e6ea;
  --ap-burgundy-50: #fcf5f7;
  --ap-gold: #f5b800;
  --ap-gold-400: #ffc93c;
  --ap-gold-200: #ffe7a3;
  --ap-gold-50: #fff9e8;
  --ap-ink: #1e1216;
  --ap-muted: #6f5c62;
  --ap-line: #eadde1;
  --ap-surface: #ffffff;
  --ap-bg: #fffcfa;
  --ap-radius: 18px;
  --ap-radius-lg: 28px;
  --ap-shadow: 0 10px 30px -12px rgba(74, 0, 19, .25);
  --ap-shadow-lg: 0 30px 60px -20px rgba(74, 0, 19, .35);
  --ap-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ap-font-ar: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;

  /* Bootstrap overrides */
  --bs-primary: var(--ap-burgundy);
  --bs-primary-rgb: 128, 0, 32;
  --bs-link-color: var(--ap-burgundy);
  --bs-link-color-rgb: 128, 0, 32;
  --bs-link-hover-color: var(--ap-burgundy-800);
  --bs-link-hover-color-rgb: 74, 0, 19;
  --bs-body-color: var(--ap-ink);
  --bs-body-bg: var(--ap-bg);
  --bs-border-radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ap-font);
  background: var(--ap-bg);
  color: var(--ap-ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--ap-font-ar); }

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ap-ink);
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }

::selection { background: var(--ap-gold-200); color: var(--ap-burgundy-900); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .4rem 1rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

.btn-primary {
  --bs-btn-bg: var(--ap-burgundy);
  --bs-btn-border-color: var(--ap-burgundy);
  --bs-btn-hover-bg: var(--ap-burgundy-800);
  --bs-btn-hover-border-color: var(--ap-burgundy-800);
  --bs-btn-active-bg: var(--ap-burgundy-900);
  --bs-btn-active-border-color: var(--ap-burgundy-900);
  --bs-btn-disabled-bg: var(--ap-burgundy);
  --bs-btn-disabled-border-color: var(--ap-burgundy);
  box-shadow: 0 10px 24px -10px rgba(128, 0, 32, .7);
}
.btn-gold {
  --bs-btn-color: var(--ap-burgundy-900);
  --bs-btn-bg: var(--ap-gold);
  --bs-btn-border-color: var(--ap-gold);
  --bs-btn-hover-color: var(--ap-burgundy-900);
  --bs-btn-hover-bg: var(--ap-gold-400);
  --bs-btn-hover-border-color: var(--ap-gold-400);
  --bs-btn-active-color: var(--ap-burgundy-900);
  --bs-btn-active-bg: var(--ap-gold-400);
  box-shadow: 0 10px 24px -10px rgba(245, 184, 0, .8);
}
.btn-outline-primary {
  --bs-btn-color: var(--ap-burgundy);
  --bs-btn-border-color: var(--ap-burgundy);
  --bs-btn-hover-bg: var(--ap-burgundy);
  --bs-btn-hover-border-color: var(--ap-burgundy);
  --bs-btn-active-bg: var(--ap-burgundy-800);
}
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.16); border-color: #fff; }

.form-control, .form-select { border-radius: 12px; border-color: var(--ap-line); padding: .7rem .95rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--ap-burgundy);
  box-shadow: 0 0 0 .25rem rgba(128, 0, 32, .15);
}
.form-check-input:checked { background-color: var(--ap-burgundy); border-color: var(--ap-burgundy); }
.form-label { font-weight: 600; font-size: .92rem; }

/* ---------- Navbar ---------- */
.ap-nav {
  position: sticky; top: 0; z-index: 1030;
  padding: .9rem 0;
  background: rgba(255, 252, 250, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.ap-nav.is-scrolled { padding: .5rem 0; border-color: var(--ap-line); box-shadow: 0 8px 30px -20px rgba(74,0,19,.35); }
.ap-nav .nav-link { font-weight: 600; color: var(--ap-ink); padding: .5rem .9rem !important; border-radius: 999px; transition: color .2s, background .2s; }
.ap-nav .nav-link:hover { color: var(--ap-burgundy); background: var(--ap-burgundy-50); }
.ap-nav .nav-link.active { color: var(--ap-burgundy); }
.ap-nav .navbar-toggler { border: 0; box-shadow: none; }

.ap-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--ap-ink); text-decoration: none; letter-spacing: -.02em; direction: ltr; }
.ap-brand:hover { color: var(--ap-ink); }
.ap-brand .ap-brand-kyc { color: var(--ap-burgundy); }
.ap-brand .ap-brand-dot { color: var(--ap-gold); }
.ap-logo { width: 38px; height: 38px; flex-shrink: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.ap-brand:hover .ap-logo { transform: rotate(-8deg) scale(1.06); }

.ap-lang .dropdown-toggle { font-weight: 700; }
.ap-lang .dropdown-menu { border-radius: 14px; border-color: var(--ap-line); box-shadow: var(--ap-shadow); padding: .4rem; min-width: 10rem; }
.ap-lang .dropdown-item { border-radius: 10px; font-weight: 600; padding: .5rem .8rem; }
.ap-lang .dropdown-item.active, .ap-lang .dropdown-item:active { background: var(--ap-burgundy); color: #fff; }

/* ---------- Sections ---------- */
.ap-section { padding: 6rem 0; position: relative; }
.ap-section-sm { padding: 4rem 0; }
.ap-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ap-burgundy);
  background: var(--ap-burgundy-50); border: 1px solid var(--ap-burgundy-100);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
html[lang="ar"] .ap-eyebrow { letter-spacing: 0; }
.ap-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ap-gold); box-shadow: 0 0 0 4px rgba(245,184,0,.25); animation: ap-pulse 2s infinite; }
.ap-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.ap-lead { font-size: 1.15rem; color: var(--ap-muted); max-width: 640px; }
.text-center .ap-lead { margin-inline: auto; }
.text-gold { color: var(--ap-gold) !important; }
.text-burgundy { color: var(--ap-burgundy) !important; }

.ap-gradient-text {
  background: linear-gradient(100deg, var(--ap-burgundy) 10%, #b3123d 45%, var(--ap-gold) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ap-shine 6s linear infinite;
}

/* ---------- Hero ---------- */
.ap-hero { position: relative; padding: 5rem 0 6rem; overflow: hidden; }
.ap-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.08; margin-bottom: 1.4rem; }
html[lang="ar"] .ap-hero h1 { line-height: 1.3; }
.ap-hero .ap-lead { font-size: 1.2rem; margin-bottom: 2rem; }

.ap-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; z-index: 0; }
.ap-blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(128,0,32,.45), transparent 70%); top: -160px; inset-inline-end: -120px; animation: ap-float 14s ease-in-out infinite; }
.ap-blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(245,184,0,.5), transparent 70%); bottom: -180px; inset-inline-start: -120px; animation: ap-float 18s ease-in-out infinite reverse; }
.ap-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(128,0,32,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(128,0,32,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.ap-hero > .container { position: relative; z-index: 1; }

.ap-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--ap-muted); font-weight: 600; font-size: .95rem; }
.ap-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.ap-check { width: 20px; height: 20px; border-radius: 50%; background: var(--ap-gold-50); color: var(--ap-burgundy); display: inline-grid; place-items: center; border: 1px solid var(--ap-gold-200); }
.ap-check svg { width: 12px; height: 12px; }

/* Hero visual: animated verification card */
.ap-visual { position: relative; max-width: 470px; margin-inline: auto; }
.ap-verify-card {
  position: relative; background: var(--ap-surface); border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow-lg); border: 1px solid var(--ap-line); padding: 1.5rem;
  animation: ap-rise 1s cubic-bezier(.2,.8,.2,1) both .2s;
}
.ap-verify-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.ap-verify-head .title { font-weight: 800; font-size: 1rem; }
.ap-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 800; color: #0f7a3d; background: #e8f7ee; padding: .25rem .6rem; border-radius: 999px; }
.ap-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #18a957; animation: ap-pulse 1.6s infinite; }

.ap-id {
  position: relative; overflow: hidden; border-radius: 16px; padding: 1.1rem;
  background: linear-gradient(135deg, var(--ap-burgundy) 0%, var(--ap-burgundy-800) 60%, #2a0010 100%);
  color: #fff; display: grid; grid-template-columns: 78px 1fr; gap: 1rem; align-items: center;
  direction: ltr;
}
.ap-id::after { /* holographic shimmer */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,231,163,.25) 45%, transparent 60%);
  transform: translateX(-100%); animation: ap-holo 4s ease-in-out infinite;
}
.ap-id-photo { width: 78px; height: 92px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.ap-id-photo svg { width: 50px; height: 50px; color: var(--ap-gold-200); }
.ap-id-lines span { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.25); margin-bottom: .55rem; }
.ap-id-lines span:nth-child(1) { width: 70%; background: var(--ap-gold); opacity: .9; }
.ap-id-lines span:nth-child(2) { width: 90%; }
.ap-id-lines span:nth-child(3) { width: 55%; }
.ap-id-lines span:nth-child(4) { width: 75%; margin-bottom: 0; }
.ap-id-chip { position: absolute; top: 14px; right: 14px; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--ap-gold-400), #c98f00); opacity: .9; }
.ap-scan {
  position: absolute; left: 0; right: 0; height: 3px; top: 0; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--ap-gold), transparent);
  box-shadow: 0 0 18px 4px rgba(245,184,0,.55);
  animation: ap-scan 2.6s ease-in-out infinite;
}

.ap-steps-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ap-steps-list li {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .2rem; border-bottom: 1px dashed var(--ap-line);
  font-weight: 600; font-size: .95rem; opacity: 0; transform: translateY(8px);
  animation: ap-step-in .5s ease forwards;
}
.ap-steps-list li:last-child { border-bottom: 0; }
.ap-steps-list li:nth-child(1) { animation-delay: .9s; }
.ap-steps-list li:nth-child(2) { animation-delay: 1.6s; }
.ap-steps-list li:nth-child(3) { animation-delay: 2.3s; }
.ap-steps-list li:nth-child(4) { animation-delay: 3s; }
.ap-steps-list .ok { width: 26px; height: 26px; border-radius: 50%; background: #e8f7ee; color: #18a957; display: grid; place-items: center; flex-shrink: 0; }
.ap-steps-list .ok svg { width: 14px; height: 14px; }
.ap-steps-list .val { margin-inline-start: auto; font-size: .85rem; color: var(--ap-muted); font-weight: 700; }

.ap-progress { height: 8px; border-radius: 99px; background: var(--ap-burgundy-50); overflow: hidden; margin-top: 1rem; }
.ap-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ap-burgundy), var(--ap-gold)); animation: ap-fill 3.2s cubic-bezier(.4,0,.2,1) forwards .6s; }

.ap-approved {
  margin-top: 1rem; display: flex; align-items: center; gap: .6rem; justify-content: center;
  padding: .8rem; border-radius: 14px; background: var(--ap-gold-50); border: 1px solid var(--ap-gold-200);
  color: var(--ap-burgundy-800); font-weight: 800;
  opacity: 0; transform: scale(.9); animation: ap-pop .5s cubic-bezier(.2,1.4,.4,1) forwards 3.8s;
}

.ap-float-badge {
  position: absolute; z-index: 3; background: var(--ap-surface); border: 1px solid var(--ap-line);
  border-radius: 16px; box-shadow: var(--ap-shadow); padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem;
}
.ap-float-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.ap-float-badge .ic svg { width: 18px; height: 18px; }
.ap-float-badge small { display: block; color: var(--ap-muted); font-weight: 600; font-size: .72rem; }
.ap-float-1 { top: 12%; inset-inline-start: -14%; animation: ap-bob 5s ease-in-out infinite; }
.ap-float-1 .ic { background: var(--ap-gold-50); color: #b38600; }
.ap-float-2 { bottom: 10%; inset-inline-end: -12%; animation: ap-bob 6s ease-in-out infinite 1s; }
.ap-float-2 .ic { background: var(--ap-burgundy-50); color: var(--ap-burgundy); }

/* ---------- Marquee (industries) ---------- */
.ap-marquee { overflow: hidden; padding: 1.6rem 0; border-block: 1px solid var(--ap-line); background: var(--ap-surface); }
.ap-marquee-label { text-align: center; color: var(--ap-muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
html[lang="ar"] .ap-marquee-label { letter-spacing: 0; }
.ap-marquee-track { display: flex; gap: 3rem; width: max-content; animation: ap-marquee 35s linear infinite; direction: ltr; }
.ap-marquee:hover .ap-marquee-track { animation-play-state: paused; }
.ap-marquee-item { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ap-burgundy-800); opacity: .75; white-space: nowrap; }
.ap-marquee-item svg { width: 22px; height: 22px; color: var(--ap-gold); }

/* ---------- Stats band ---------- */
.ap-stats {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 20% 0%, #a3002b 0%, transparent 55%), linear-gradient(135deg, var(--ap-burgundy) 0%, var(--ap-burgundy-900) 100%);
  border-radius: var(--ap-radius-lg); padding: 3.5rem 2rem;
}
.ap-stats::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(245,184,0,.35), transparent 70%); right: -80px; bottom: -120px; }
.ap-stat { text-align: center; position: relative; z-index: 1; }
.ap-stat .num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--ap-gold); line-height: 1; direction: ltr; display: inline-block; }
.ap-stat .lbl { color: rgba(255,255,255,.8); font-weight: 600; margin-top: .5rem; }

/* ---------- Feature cards ---------- */
.ap-card {
  position: relative; height: 100%; background: var(--ap-surface); border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius); padding: 2rem; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.ap-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.ap-card:hover { transform: translateY(-8px); box-shadow: var(--ap-shadow-lg); border-color: transparent; }
.ap-card:hover::before { opacity: 1; }
.ap-card h3 { font-size: 1.2rem; margin: 1.2rem 0 .6rem; }
.ap-card p { color: var(--ap-muted); margin: 0; }
.ap-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-800)); color: var(--ap-gold);
  box-shadow: 0 12px 24px -10px rgba(128,0,32,.7); transition: transform .4s;
}
.ap-icon svg { width: 26px; height: 26px; }
.ap-card:hover .ap-icon { transform: rotate(-6deg) scale(1.08); }
.ap-icon.gold { background: linear-gradient(135deg, var(--ap-gold-400), var(--ap-gold)); color: var(--ap-burgundy-900); box-shadow: 0 12px 24px -10px rgba(245,184,0,.8); }

/* ---------- How it works ---------- */
.ap-steps { position: relative; }
.ap-steps::before {
  content: ""; position: absolute; top: 36px; inset-inline: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ap-burgundy-100) 0 10px, transparent 10px 18px);
}
.ap-step { text-align: center; position: relative; padding: 0 1rem; }
.ap-step-num {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.3rem; display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 800; color: var(--ap-burgundy); background: var(--ap-surface);
  border: 2px solid var(--ap-burgundy); position: relative; z-index: 1; transition: all .35s;
}
.ap-step:hover .ap-step-num { background: var(--ap-burgundy); color: var(--ap-gold); transform: scale(1.08); box-shadow: 0 0 0 8px var(--ap-burgundy-50); }
.ap-step h3 { font-size: 1.2rem; }
.ap-step p { color: var(--ap-muted); }
@media (max-width: 767.98px) { .ap-steps::before { display: none; } }

/* ---------- Split / security ---------- */
.ap-soft { background: linear-gradient(180deg, var(--ap-burgundy-50), var(--ap-bg)); }
.ap-list { list-style: none; padding: 0; margin: 0; }
.ap-list li { display: flex; gap: .9rem; padding: .85rem 0; }
.ap-list li .ap-check { width: 28px; height: 28px; flex-shrink: 0; margin-top: .1rem; }
.ap-list li .ap-check svg { width: 14px; height: 14px; }
.ap-list strong { display: block; }
.ap-list span.desc { color: var(--ap-muted); }

.ap-shield-wrap { position: relative; display: grid; place-items: center; min-height: 380px; }
.ap-ring { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(128,0,32,.25); }
.ap-ring-1 { width: 220px; height: 220px; animation: ap-spin 30s linear infinite; }
.ap-ring-2 { width: 320px; height: 320px; border-color: rgba(245,184,0,.45); animation: ap-spin 45s linear infinite reverse; }
.ap-ring-3 { width: 420px; height: 420px; animation: ap-spin 60s linear infinite; }
.ap-ring .node { position: absolute; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--ap-gold); box-shadow: 0 0 0 5px rgba(245,184,0,.2); }
.ap-ring-2 .node { background: var(--ap-burgundy); box-shadow: 0 0 0 5px rgba(128,0,32,.15); }
.ap-shield { width: 150px; height: 150px; position: relative; z-index: 1; filter: drop-shadow(0 20px 30px rgba(128,0,32,.4)); animation: ap-bob 6s ease-in-out infinite; }

/* ---------- CTA band ---------- */
.ap-cta {
  position: relative; overflow: hidden; border-radius: var(--ap-radius-lg); padding: 4rem 2rem; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--ap-burgundy-900), var(--ap-burgundy) 55%, #a1062f);
}
.ap-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.ap-cta p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 620px; margin: 0 auto 2rem; }
.ap-cta .ap-blob { opacity: .5; }

/* ---------- Page header (inner pages) ---------- */
.ap-page-hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; text-align: center; }
.ap-page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

/* ---------- Pricing ---------- */
.ap-price { display: flex; flex-direction: column; }
.ap-price .amount { font-size: 2.8rem; font-weight: 800; color: var(--ap-ink); line-height: 1; direction: ltr; display: inline-block; }
.ap-price .per { color: var(--ap-muted); font-weight: 600; }
.ap-price ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; flex: 1; }
.ap-price li { display: flex; gap: .6rem; padding: .45rem 0; color: var(--ap-ink); }
.ap-price li .ap-check { width: 22px; height: 22px; flex-shrink: 0; }
.ap-price.featured { background: linear-gradient(160deg, var(--ap-burgundy), var(--ap-burgundy-900)); color: #fff; border: 0; transform: translateY(-12px); box-shadow: var(--ap-shadow-lg); }
.ap-price.featured:hover { transform: translateY(-18px); }
.ap-price.featured h3, .ap-price.featured .amount, .ap-price.featured li { color: #fff; }
.ap-price.featured .per, .ap-price.featured p { color: rgba(255,255,255,.75); }
.ap-price.featured .ap-check { background: rgba(245,184,0,.18); border-color: rgba(245,184,0,.4); color: var(--ap-gold); }
.ap-ribbon { position: absolute; top: 1.2rem; inset-inline-end: 1.2rem; background: var(--ap-gold); color: var(--ap-burgundy-900); font-weight: 800; font-size: .75rem; padding: .3rem .75rem; border-radius: 999px; }

.ap-accordion .accordion-item { border: 1px solid var(--ap-line); border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden; background: var(--ap-surface); }
.ap-accordion .accordion-button { font-weight: 700; padding: 1.15rem 1.3rem; background: var(--ap-surface); color: var(--ap-ink); box-shadow: none; }
.ap-accordion .accordion-button:not(.collapsed) { color: var(--ap-burgundy); background: var(--ap-burgundy-50); }
.ap-accordion .accordion-body { color: var(--ap-muted); }

/* ---------- Contact ---------- */
.ap-contact-card { background: var(--ap-surface); border: 1px solid var(--ap-line); border-radius: var(--ap-radius-lg); padding: 2.5rem; box-shadow: var(--ap-shadow); }
.ap-info { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; border-radius: var(--ap-radius); background: var(--ap-surface); border: 1px solid var(--ap-line); margin-bottom: 1rem; transition: transform .3s, box-shadow .3s; }
.ap-info:hover { transform: translateX(6px); box-shadow: var(--ap-shadow); }
html[dir="rtl"] .ap-info:hover { transform: translateX(-6px); }
.ap-info .ap-icon { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.ap-info .ap-icon svg { width: 22px; height: 22px; }
.ap-info h3 { font-size: 1rem; margin: 0 0 .2rem; }
.ap-info p, .ap-info a { margin: 0; color: var(--ap-muted); }
.ap-info a { direction: ltr; unicode-bidi: embed; }
.ap-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ap-success { text-align: center; padding: 2rem 1rem; }
.ap-success .big-check { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; background: var(--ap-gold-50); border: 2px solid var(--ap-gold); color: var(--ap-burgundy); animation: ap-pop .6s cubic-bezier(.2,1.4,.4,1) both; }
.ap-success .big-check svg { width: 40px; height: 40px; }

/* ---------- Values (about) ---------- */
.ap-value { display: flex; gap: 1rem; }
.ap-value .ap-icon { flex-shrink: 0; }
.ap-value h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.ap-value p { color: var(--ap-muted); margin: 0; }
.ap-quote { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.5; color: var(--ap-burgundy-800); }
.ap-quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--ap-gold); }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ap-burgundy-900); color: rgba(255,255,255,.72); padding: 4.5rem 0 1.5rem; position: relative; overflow: hidden; margin-top: 0; }
.ap-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--ap-burgundy), var(--ap-gold), var(--ap-burgundy)); background-size: 200% 100%; animation: ap-shine 8s linear infinite; }
.ap-footer .ap-brand { color: #fff; }
.ap-footer .ap-brand .ap-brand-kyc { color: var(--ap-gold); }
.ap-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
html[lang="ar"] .ap-footer h4 { letter-spacing: 0; }
.ap-footer ul { list-style: none; padding: 0; margin: 0; }
.ap-footer li { margin-bottom: .6rem; }
.ap-footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s, padding .2s; }
.ap-footer a:hover { color: var(--ap-gold); padding-inline-start: 4px; }
.ap-footer .ap-newsletter { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--ap-radius); padding: 1.4rem; }
.ap-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.ap-footer-langs a { margin-inline-start: 1rem; font-weight: 700; }
.ap-footer-langs a.active { color: var(--ap-gold); }
.ap-to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ap-burgundy); color: var(--ap-gold); border: 0; display: grid; place-items: center; box-shadow: var(--ap-shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s;
}
.ap-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.ap-to-top:hover { background: var(--ap-burgundy-800); }
.ap-to-top svg { width: 20px; height: 20px; }

/* App (non-marketing) pages keep a comfortable padding */
.ap-app-main { padding: 2.5rem 0 4rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-zoom { transform: scale(.92); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }

/* ---------- Keyframes ---------- */
@keyframes ap-float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.06); } 66% { transform: translate(-20px,20px) scale(.96); } }
@keyframes ap-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ap-pulse { 0% { box-shadow: 0 0 0 0 rgba(245,184,0,.6); } 70% { box-shadow: 0 0 0 10px rgba(245,184,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,184,0,0); } }
@keyframes ap-shine { to { background-position: 200% center; } }
@keyframes ap-rise { from { opacity: 0; transform: translateY(40px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes ap-scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
@keyframes ap-holo { 0%, 20% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes ap-step-in { to { opacity: 1; transform: none; } }
@keyframes ap-fill { to { width: 100%; } }
@keyframes ap-pop { to { opacity: 1; transform: scale(1); } }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ap-spin { to { transform: rotate(360deg); } }

@media (max-width: 991.98px) {
  .ap-section { padding: 4.5rem 0; }
  .ap-hero { padding: 3rem 0 4rem; text-align: center; }
  .ap-hero .ap-lead { margin-inline: auto; }
  .ap-trust { justify-content: center; }
  .ap-visual { margin-top: 3.5rem; }
  .ap-float-1 { inset-inline-start: -4%; }
  .ap-float-2 { inset-inline-end: -4%; }
  .ap-price.featured { transform: none; }
  .ap-nav .navbar-collapse { background: var(--ap-surface); border-radius: 18px; padding: 1rem; margin-top: .8rem; box-shadow: var(--ap-shadow); }
}
@media (max-width: 575.98px) {
  .ap-float-badge { display: none; }
  .ap-shield-wrap { min-height: 300px; }
  .ap-ring-3 { display: none; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ap-steps-list li, .ap-approved { opacity: 1; transform: none; }
  .ap-progress span { width: 100%; }
}

/* Inline icon sizing */
.ap-lang .dropdown-toggle svg, .ap-contact-card small svg { width: 1em; height: 1em; vertical-align: -.125em; }
.ap-approved svg { width: 22px; height: 22px; }

/* ---------- Signup ---------- */
.ap-plan-pick { display: grid; gap: .7rem; }
.ap-plan-pick label { display: block; cursor: pointer; margin: 0; }
.ap-plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ap-plan-pick .box { display: block; padding: 1rem 1.1rem; border: 1.5px solid var(--ap-line); border-radius: 16px; transition: all .2s; background: #fff; }
.ap-plan-pick .box strong { font-size: 1.05rem; }
.ap-plan-pick .box small { display: block; color: var(--ap-muted); margin-top: .25rem; }
.ap-plan-pick .price { font-weight: 800; color: var(--ap-burgundy); white-space: nowrap; }
.ap-plan-pick .price small { display: inline; font-weight: 600; margin: 0; }
.ap-plan-pick label:hover .box { border-color: var(--ap-burgundy-100); }
.ap-plan-pick input:checked + .box { border-color: var(--ap-burgundy); background: var(--ap-burgundy-50); box-shadow: 0 0 0 3px rgba(128,0,32,.08); }
.ap-plan-pick input:focus-visible + .box { outline: 2px solid var(--ap-burgundy); outline-offset: 2px; }
.ap-trial-note { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--ap-gold-50); border: 1px solid var(--ap-gold-200); color: var(--ap-burgundy-800); font-weight: 600; font-size: .92rem; }
.ap-trial-note svg { width: 20px; height: 20px; flex-shrink: 0; color: #b38600; }
.ap-rules-public { font-size: .82rem; color: var(--ap-muted); background: var(--ap-burgundy-50); border-radius: 10px; padding: .6rem .8rem; }

/* ---------- Customer verification wizard ---------- */
.ap-wizard-wrap { max-width: 860px; margin: 0 auto; }
.ap-stepper { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; counter-reset: step; }
.ap-stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; position: relative; text-align: center; color: var(--ap-muted); font-size: .8rem; font-weight: 700; }
.ap-stepper li[hidden] { display: none; }
.ap-stepper li::before { content: ""; position: absolute; top: 20px; inset-inline-start: calc(-50% + 24px); inset-inline-end: calc(50% + 24px); height: 2px; background: var(--ap-line); }
.ap-stepper li:first-child::before { display: none; }
.ap-stepper .n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ap-line); position: relative; z-index: 1; transition: all .3s; }
.ap-stepper .n svg { width: 18px; height: 18px; }
.ap-stepper li.active { color: var(--ap-burgundy); }
.ap-stepper li.active .n { border-color: var(--ap-burgundy); background: var(--ap-burgundy); color: var(--ap-gold); box-shadow: 0 0 0 6px var(--ap-burgundy-50); }
.ap-stepper li.done { color: var(--ap-ink); cursor: pointer; }
.ap-stepper li.done .n { border-color: var(--ap-burgundy); color: var(--ap-burgundy); }
.ap-stepper li.done::before, .ap-stepper li.active::before { background: var(--ap-burgundy); }
@media (max-width: 575.98px) { .ap-stepper .t { display: none; } }
.ap-wizard { background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius-lg); padding: 2rem; box-shadow: var(--ap-shadow); }
@media (max-width: 575.98px) { .ap-wizard { padding: 1.25rem; } }
.ap-step-panel { animation: ap-step-in .35s ease forwards; }
.ap-wizard-nav { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--ap-line); }
.ap-doc-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.ap-doc-pick label { margin: 0; cursor: pointer; }
.ap-doc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ap-doc-pick .box { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border: 1.5px solid var(--ap-line); border-radius: 14px; font-weight: 700; transition: all .2s; }
.ap-doc-pick .box svg { width: 22px; height: 22px; color: var(--ap-burgundy); flex-shrink: 0; }
.ap-doc-pick input:checked + .box { border-color: var(--ap-burgundy); background: var(--ap-burgundy-50); box-shadow: 0 0 0 3px rgba(128,0,32,.08); }
.ap-doc-pick input:focus-visible + .box { outline: 2px solid var(--ap-burgundy); outline-offset: 2px; }
.ap-upload-card { border: 1.5px dashed var(--ap-burgundy-100); border-radius: 16px; padding: 1.2rem; height: 100%; background: var(--ap-burgundy-50); }
.ap-upload-card > svg { width: 32px; height: 32px; color: var(--ap-burgundy); margin-bottom: .5rem; }
.ap-review { display: grid; grid-template-columns: minmax(130px, 35%) 1fr; gap: .45rem 1rem; background: #fcf8f9; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; font-size: .92rem; }
.ap-review dt { color: var(--ap-muted); font-weight: 600; }
.ap-review dd { margin: 0; font-weight: 600; word-break: break-word; }
.ap-wizard-wrap > p svg { width: 1em; height: 1em; vertical-align: -.125em; }

/* ---------- KYB people ---------- */
.ap-person-card { border: 1px solid var(--ap-line); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .75rem; background: #fcf8f9; }
.ap-person-card .form-label { margin-bottom: .2rem; }

/* ---------- Home: KYB section ---------- */
.ap-kyb-section { background: linear-gradient(180deg, var(--ap-bg) 0%, var(--ap-gold-50) 100%); }
.ap-org { position: relative; max-width: 500px; margin-inline: auto; background: #fff; border: 1px solid var(--ap-line); border-radius: var(--ap-radius-lg); box-shadow: var(--ap-shadow-lg); padding: 1.6rem; direction: ltr; }
.ap-org-company { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-800)); }
.ap-org-company .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: var(--ap-gold); flex-shrink: 0; }
.ap-org-company .ic svg { width: 22px; height: 22px; }
.ap-org-company strong { display: block; color: #fff; }
.ap-org-company small { color: rgba(255,255,255,.75); }
.ap-org-docs { margin-inline-start: auto; display: flex; gap: .3rem; }
.ap-org-docs span { width: 28px; height: 34px; border-radius: 6px; background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--ap-gold-200); opacity: 0; transform: translateY(6px); }
.ap-org-docs svg { width: 14px; height: 14px; }
.ap-org-lines { width: 100%; height: 56px; display: block; }
.ap-org-lines path { fill: none; stroke: var(--ap-burgundy-100); stroke-width: 2; stroke-dasharray: 400; stroke-dashoffset: 400; }
.ap-org-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.ap-org-person { text-align: center; border: 1px solid var(--ap-line); border-radius: 14px; padding: .8rem .4rem; font-size: .8rem; opacity: 0; transform: translateY(12px); }
.ap-org-person .av { width: 40px; height: 40px; margin: 0 auto .4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--ap-burgundy-50); color: var(--ap-burgundy); }
.ap-org-person strong { display: block; margin-bottom: .35rem; }
.ap-org-person .badge-ok, .ap-org-person .badge-pep { display: inline-block; border-radius: 999px; padding: .12rem .55rem; font-weight: 800; font-size: .72rem; }
.ap-org-person .badge-ok { background: #e8f5ee; color: #1f8a4c; }
.ap-org-person .badge-pep { background: #fff5dc; color: #8a6100; }
.ap-org-risk { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--ap-line); font-size: .85rem; font-weight: 700; }
.ap-org-risk .meter { flex: 1; height: 8px; border-radius: 99px; background: #f1eaec; overflow: hidden; }
.ap-org-risk .meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1f8a4c, #d99a00); }
.ap-org-risk strong { color: #8a6100; }

/* Animation plays when the card scrolls into view */
.ap-org.is-visible .ap-org-docs span { animation: ap-step-in .4s ease forwards; }
.ap-org.is-visible .ap-org-docs span:nth-child(2) { animation-delay: .15s; }
.ap-org.is-visible .ap-org-docs span:nth-child(3) { animation-delay: .3s; }
.ap-org.is-visible .ap-org-lines path { animation: ap-draw 1s ease forwards .5s; }
.ap-org.is-visible .ap-org-person { animation: ap-step-in .5s ease forwards; animation-delay: calc(1s + var(--d) * .35s); }
.ap-org.is-visible .ap-org-risk .meter span { animation: ap-fill-55 1.2s cubic-bezier(.4,0,.2,1) forwards 2.4s; }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }
@keyframes ap-fill-55 { to { width: 55%; } }
@media (max-width: 575.98px) { .ap-org-people { grid-template-columns: 1fr; } .ap-org-lines { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ap-org-docs span, .ap-org-person { opacity: 1; transform: none; }
  .ap-org-lines path { stroke-dashoffset: 0; }
  .ap-org-risk .meter span { width: 55%; }
}

/* ---------- Pricing: KYB note ---------- */
.ap-kyb-note { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.3rem; border-radius: var(--ap-radius); background: #fff; border: 1.5px dashed var(--ap-burgundy-100); }
.ap-kyb-note .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-burgundy-50); color: var(--ap-burgundy); flex-shrink: 0; }
.ap-kyb-note .ic svg { width: 22px; height: 22px; }

/* ---------- Pricing: pay per session ---------- */
.ap-payg { margin-top: 3rem; padding: 2rem; border-radius: var(--ap-radius-lg); background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.ap-payg-table { border: 1px solid var(--ap-line); border-radius: 16px; overflow: hidden; }
.ap-payg-table .row-item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--ap-line); }
.ap-payg-table .row-item:last-child { border-bottom: 0; }
.ap-payg-table .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ap-burgundy-50); color: var(--ap-burgundy); flex-shrink: 0; }
.ap-payg-table .ic svg { width: 20px; height: 20px; }
.ap-payg-table .name { font-weight: 700; flex: 1; }
.ap-payg-table .name small { display: block; font-weight: 500; color: var(--ap-muted); }
.ap-payg-table .price { font-weight: 800; font-size: 1.15rem; color: var(--ap-burgundy); }
.ap-payg-table .total { background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-900)); color: #fff; }
.ap-payg-table .total .name small { color: rgba(255,255,255,.75); }
.ap-payg-table .total .price { color: var(--ap-gold); font-size: 1.4rem; }

/* ---- Video liveness (customer form) ---- */
.ap-live-steps { font-size: .88rem; padding-inline-start: 1.2rem; margin: 0 0 .5rem; }
.ap-live-digits { display: inline-block; font-weight: 800; letter-spacing: .25em; background: var(--ap-gold-100, #fff3d1); color: var(--ap-burgundy-900, #3a0010); padding: .05rem .5rem; border-radius: 8px; }
.ap-live-stage { position: relative; max-width: 360px; border-radius: 16px; overflow: hidden; background: #000; }
.ap-live-stage video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transform: scaleX(-1); }
.ap-live-stage video[controls] { transform: none; }
.ap-live-badge { position: absolute; top: .6rem; inset-inline-start: .6rem; background: rgba(200, 16, 46, .9); color: #fff; font-weight: 700; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; }
.ap-liveness .btn svg { width: 16px; height: 16px; vertical-align: -3px; }

/* =====================================================================
   Customer verification wizard — v2 (country & document, capture cards, camera)
   ===================================================================== */
.ap-wizard-wrap { max-width: 900px; }
.ap-step-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.4rem; }
.ap-step-ic { flex: 0 0 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ap-burgundy), var(--ap-burgundy-800)); color: var(--ap-gold); box-shadow: 0 8px 20px -10px rgba(128,0,32,.6); }
.ap-step-ic svg { width: 22px; height: 22px; }

/* Country */
.ap-country-hero { background: linear-gradient(135deg, var(--ap-burgundy-50), var(--ap-gold-50)); border: 1px solid var(--ap-line); border-radius: 18px; padding: 1.1rem 1.2rem; }
.ap-country-select { position: relative; }
.ap-country-select .flag { position: absolute; inset-inline-start: .85rem; top: 50%; transform: translateY(-50%); font-size: 1.35rem; line-height: 1; pointer-events: none; }
.ap-country-select .form-select { padding-inline-start: 3rem; height: 54px; font-size: 1.05rem; font-weight: 600; border-radius: 14px; }
.ap-geo-note { margin-top: .5rem; color: #0f7a3d; display: flex; align-items: center; gap: .35rem; }
.ap-geo-note svg { width: 15px; height: 15px; }

/* Document type cards */
.ap-doc-select .form-select { height: 54px; font-size: 1.05rem; font-weight: 600; border-radius: 14px; }

/* Illustrations */
.ap-art .card { fill: #fff; stroke: var(--ap-burgundy-100); stroke-width: 2; }
.ap-art .band { fill: var(--ap-burgundy); }
.ap-art .seal { fill: var(--ap-gold); }
.ap-art .seal-in { stroke: var(--ap-burgundy); stroke-width: 2.5; fill: none; }
.ap-art .photo { fill: var(--ap-burgundy-50); }
.ap-art .who { fill: var(--ap-burgundy-100); }
.ap-art .chip { fill: var(--ap-gold-200); stroke: var(--ap-gold); stroke-width: 1.5; }
.ap-art .chip-ln { stroke: var(--ap-gold); stroke-width: 1.2; fill: none; }
.ap-art .ln { fill: #e9dfe2; }
.ap-art .ln.on-band { fill: rgba(255,255,255,.55); }
.ap-art .lbl { fill: #f3edef; }
.ap-art .sig { stroke: var(--ap-burgundy-600); stroke-width: 2; fill: none; stroke-linecap: round; }
.ap-art .stripe { fill: #2b1a1f; }
.ap-art .qr { fill: #fff; stroke: #2b1a1f; stroke-width: 2; }
.ap-art .qr-in { fill: #2b1a1f; }
.ap-art .mrz-bg { fill: #f7f3f4; }
.ap-art .mrz { fill: #8b7b80; }
.ap-art .crn { stroke: var(--ap-gold); stroke-width: 4; fill: none; stroke-linecap: round; }
.ap-art .scan { fill: var(--ap-gold); opacity: .85; filter: drop-shadow(0 0 4px var(--ap-gold)); animation: ap-scan 2.6s ease-in-out infinite; }
.ap-art .bgsoft { fill: var(--ap-burgundy-50); }
.ap-art .oval { fill: none; stroke: var(--ap-gold); stroke-width: 3.5; stroke-dasharray: 9 7; animation: ap-dash 8s linear infinite; }
.ap-art .face { fill: var(--ap-burgundy-100); }
.ap-art .eye { fill: var(--ap-burgundy); }
.ap-art .mouth { stroke: var(--ap-burgundy); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.ap-art .mouth-o { fill: var(--ap-burgundy); }
.ap-art .held .card { stroke: var(--ap-burgundy); }
.ap-art .arrow { stroke: var(--ap-burgundy); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; animation: ap-nudge 1.6s ease-in-out infinite; }
.ap-art .wave { stroke: var(--ap-gold); stroke-width: 3; fill: none; stroke-linecap: round; animation: ap-blink 1.4s ease-in-out infinite; }
.ap-art .rec { fill: #d31f3c; animation: ap-blink 1.2s ease-in-out infinite; }
.ap-art .shirt { fill: var(--ap-burgundy); }
.ap-art .arm { stroke: var(--ap-burgundy); stroke-width: 18; fill: none; stroke-linecap: round; }
.ap-art .hair { fill: #4a2b33; }
.ap-art .nose { stroke: var(--ap-burgundy-600); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ap-art .shades { fill: #2b1a1f; }
.ap-art .shades-ln { stroke: #2b1a1f; stroke-width: 3; }
.ap-art .cap { fill: #2b1a1f; }
.ap-art .bubble { fill: #fff; stroke: var(--ap-gold); stroke-width: 2.5; stroke-linejoin: round; }
.ap-art .bubble-t { fill: var(--ap-burgundy); font: 800 22px system-ui, sans-serif; letter-spacing: 2px; }
.ap-art .house { fill: var(--ap-burgundy); }
.ap-art .stamp { fill: none; stroke: #18a957; stroke-width: 2.5; }
.ap-art .stamp-in { stroke: #18a957; stroke-width: 2.5; fill: none; stroke-linecap: round; }
@keyframes ap-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(170px); } }
@keyframes ap-dash { to { stroke-dashoffset: -160; } }
@keyframes ap-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes ap-blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ap-art * { animation: none !important; } }

/* Passport vs card variants */
.ap-wizard[data-doc="Passport"] .for-card { display: none; }
.ap-wizard:not([data-doc="Passport"]) .for-passport { display: none; }

/* Tips */
.ap-tips { background: #fcf8f9; border: 1px solid var(--ap-line); border-radius: 16px; padding: 1rem; margin-bottom: 1.2rem; }
.ap-tip-examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: .9rem; }
.ap-tip-ex { margin: 0; text-align: center; }
.ap-tip-ex .frame { position: relative; background: #3a2a2f; border-radius: 10px; padding: 10px 8px; overflow: hidden; aspect-ratio: 16/11; display: grid; place-items: center; }
.ap-tip-ex .frame .ap-art { width: 100%; height: auto; }
.ap-tip-ex.cut .frame .ap-art { transform: translate(28%, 18%) scale(1.15); }
.ap-tip-ex.blur .frame .ap-art { filter: blur(2.5px); }
.ap-tip-ex.glare .frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 62% 40%, rgba(255,255,255,.95) 0, rgba(255,255,255,.7) 18%, transparent 42%); }
.ap-tip-ex.person .frame { background: var(--ap-burgundy-50); padding: 0; }
.ap-tip-ex.dark .frame .ap-art { filter: brightness(.3) contrast(.8); }
.ap-tip-examples.three { grid-template-columns: repeat(3, 1fr); }
.ap-tip-ex .no-step { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .65rem; color: #fff; background: var(--ap-burgundy); }
.ap-tip-ex figcaption { font-size: .74rem; font-weight: 700; margin-top: .35rem; display: flex; align-items: center; justify-content: center; gap: .25rem; }
.ap-tip-ex .mark { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .65rem; color: #fff; }
.ap-tip-ex .mark.ok { background: #18a957; }
.ap-tip-ex .mark.no { background: #d31f3c; }
.ap-tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .86rem; }
.ap-tip-list li { display: flex; gap: .5rem; align-items: flex-start; }
.ap-tip-list .ic { flex: 0 0 20px; height: 20px; border-radius: 50%; background: #e8f7ee; color: #0f7a3d; display: grid; place-items: center; margin-top: 1px; }
.ap-tip-list .ic svg { width: 12px; height: 12px; }
@media (max-width: 575.98px) { .ap-tip-examples:not(.three) { grid-template-columns: repeat(2, 1fr); } }

/* Capture cards */
.ap-capture { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 1.2rem; align-items: center; padding: 1rem; border: 1.5px dashed var(--ap-burgundy-100); border-radius: 18px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.ap-capture.drag { border-color: var(--ap-burgundy); background: var(--ap-burgundy-50); }
.ap-capture.done { border-style: solid; border-color: #9ad8b4; background: #f6fcf8; }
.ap-capture.need { border-color: #e88a99; background: #fff6f7; }
.ap-capture-visual { position: relative; background: linear-gradient(135deg, var(--ap-burgundy-50), #fff); border-radius: 14px; padding: .8rem; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; }
.ap-capture-visual > span { display: contents; }
.ap-capture-visual .ap-art { width: 100%; height: auto; max-height: 100%; }
.ap-capture-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; position: absolute; inset: 0; }
.ap-capture-file { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ap-burgundy); word-break: break-all; text-align: center; }
.ap-capture-file svg { width: 40px; height: 40px; }
.ap-capture-ok { position: absolute; top: .5rem; inset-inline-end: .5rem; width: 30px; height: 30px; border-radius: 50%; background: #18a957; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(24,169,87,.45); }
.ap-capture-ok svg { width: 16px; height: 16px; }
.ap-capture-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ap-capture-actions .btn { display: inline-flex; align-items: center; gap: .4rem; }
.ap-capture-actions svg { width: 17px; height: 17px; }
.ap-capture-status { margin-top: .6rem; }
.ap-capture-status .ready { color: #0f7a3d; font-weight: 700; }
.ap-capture-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .ap-capture { grid-template-columns: 1fr; } }

/* Form groups (details step) */
.ap-form-group { border: 1px solid var(--ap-line); border-radius: 16px; padding: 1rem 1.1rem 1.15rem; margin-bottom: 1rem; }
.ap-form-group-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ap-burgundy); margin-bottom: .75rem; }

/* Review thumbnails */
.ap-review-thumbs { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.ap-review-thumbs:empty { display: none; }
.ap-review-thumbs figure { margin: 0; width: 130px; }
.ap-review-thumbs img, .ap-review-thumbs .doc { width: 130px; height: 86px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ap-line); display: grid; place-items: center; background: var(--ap-burgundy-50); color: var(--ap-burgundy); font-weight: 800; }
.ap-review-thumbs figcaption { font-size: .72rem; color: var(--ap-muted); margin-top: .25rem; line-height: 1.3; }

/* Video liveness step */
.ap-live-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 640px) { .ap-live-grid { grid-template-columns: 1fr; } }
.ap-live-art { background: linear-gradient(135deg, var(--ap-burgundy-50), var(--ap-gold-50)); border-radius: 18px; padding: .6rem; }
.ap-live-art .ap-art { width: 100%; height: auto; }
.ap-live-stage { max-width: none; aspect-ratio: 3/4; }
.ap-live-stage video { height: 100%; aspect-ratio: auto; }
.ap-live-oval { position: absolute; inset: 10% 16%; border: 3px dashed rgba(244,196,48,.9); border-radius: 50%; pointer-events: none; }
.ap-liveness.recorded .ap-live-oval { display: none; }
.ap-liveness.need [data-record] { box-shadow: 0 0 0 3px #f3b8c1; }
/* Face on one side, the ID held next to it: a card-shaped guide beside the oval */
.ap-live-stage .ap-live-oval { inset: 7% auto auto 6%; width: 56%; height: 52%; }
.ap-live-card { position: absolute; right: 5%; top: 40%; width: 40%; aspect-ratio: 1.586; border: 3px dashed rgba(255,255,255,.9); border-radius: 10px; pointer-events: none; }
.ap-live-card::after { content: "ID"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.85); font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.ap-liveness.recorded .ap-live-card { display: none; }
.ap-live-prompt { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .8rem .8rem; background: linear-gradient(transparent, rgba(0,0,0,.78) 35%); color: #fff; text-align: center; font-weight: 700; font-size: .95rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.ap-live-prompt[hidden] { display: none; }
.ap-live-digits.big { font-size: 1.6rem; padding: .15rem .7rem; }
.ap-live-arrow { font-size: 2.6rem; line-height: 1; color: var(--ap-gold); text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.ap-live-arrow[hidden] { display: none; }
.ap-live-prompt.say { animation: ap-pulse 1.2s ease-in-out 2; }
.ap-live-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .92rem; }
.ap-live-steps li { display: flex; gap: .65rem; align-items: center; background: #fcf8f9; border: 1px solid var(--ap-line); border-radius: 12px; padding: .6rem .75rem; }
.ap-live-steps .no { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--ap-burgundy); color: var(--ap-gold); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.ap-live-digits { font-size: 1.1rem; }

/* In-page camera */
body.ap-cam-open { overflow: hidden; }
.ap-cam { position: fixed; inset: 0; z-index: 2000; background: rgba(20, 6, 10, .92); display: grid; place-items: center; padding: 1rem; }
.ap-cam[hidden] { display: none; }
.ap-cam-box { width: min(760px, 100%); color: #fff; }
.ap-cam-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.ap-cam-stage { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 4/3; }
.ap-cam-stage video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-cam-stage video.mirror { transform: scaleX(-1); }
.ap-cam-frame { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); pointer-events: none; transition: all .3s; }
.ap-cam-frame.shape-card { width: 80%; aspect-ratio: 1.586; border-radius: 18px; }
.ap-cam-frame.shape-card.passport { aspect-ratio: 1.42; }
.ap-cam-frame.shape-oval { width: 46%; aspect-ratio: 3/4; border-radius: 50%; border: 3px dashed var(--ap-gold); }
.ap-cam-frame.shape-page { width: 52%; aspect-ratio: 1/1.414; border-radius: 8px; }
.ap-cam-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--ap-gold); }
.ap-cam-frame.shape-oval i { display: none; }
.ap-cam-frame i:nth-child(1) { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 16px 0 0 0; }
.ap-cam-frame i:nth-child(2) { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 16px 0 0; }
.ap-cam-frame i:nth-child(3) { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 16px; }
.ap-cam-frame i:nth-child(4) { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 16px 0; }
/* Drawing of the side to photograph inside the card frame; fades once a document is lined up */
.ap-cam-ghost { position: absolute; inset: 0; opacity: .55; transition: opacity .35s; }
.ap-cam-ghost[hidden] { display: none; }
.ap-cam-ghost .ap-art { width: 100%; height: 100%; display: block; }
.ap-cam-ghost .ap-art .card { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.9); }
.ap-cam-ghost .ap-art .crn { display: none; }
.ap-cam-frame.seen .ap-cam-ghost { opacity: .18; }
.ap-cam-frame.lock .ap-cam-ghost { opacity: 0; }
.ap-cam-frame.lock i { border-color: #18a957; }
.ap-cam-frame.shape-card.lock { box-shadow: 0 0 0 100vmax rgba(0,0,0,.5), 0 0 0 3px #18a957 inset; }
/* Auto-capture status, over the top of the camera picture */
.ap-cam-auto { position: absolute; top: .75rem; left: 50%; transform: translateX(-50%); max-width: calc(100% - 1.5rem); padding: .35rem .85rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .875rem; font-weight: 600; text-align: center; pointer-events: none; }
.ap-cam-auto[hidden] { display: none; }
.ap-cam-auto.ok { background: #18a957; }
.ap-cam-auto.warn { background: rgba(176, 106, 0, .9); }
.ap-cam.failed .ap-cam-auto { display: none; }
.ap-cam-hint { text-align: center; margin: .9rem 0 .6rem; color: rgba(255,255,255,.85); }
.ap-cam-actions { display: flex; justify-content: center; align-items: center; gap: 2.5rem; }
.ap-cam-fallback { display: none; text-align: center; margin-bottom: .8rem; }
.ap-cam.failed .ap-cam-fallback { display: block; }
.ap-cam.failed .ap-cam-actions, .ap-cam.failed .ap-cam-frame { display: none; }
/* Phones: full-screen portrait camera, card frame across the width */
.ap-cam.phone { padding: .5rem; align-items: stretch; }
.ap-cam.phone .ap-cam-box { display: flex; flex-direction: column; justify-content: center; }
.ap-cam.phone .ap-cam-stage { aspect-ratio: 3/4; max-height: 68vh; max-height: 68dvh; width: 100%; margin: 0 auto; }
.ap-cam.phone .ap-cam-frame.shape-card { width: 90%; }
.ap-cam.phone .ap-cam-frame.shape-oval { width: 70%; }
.ap-cam.phone .ap-cam-frame.shape-page { width: 78%; }
.ap-shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: transparent; padding: 5px; }
.ap-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--ap-gold); transition: transform .1s; }
.ap-shutter:active span { transform: scale(.88); }
.ap-cam-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.3rem; }
.ap-cam-btn.ghost { background: transparent; }
.ap-cam.flash .ap-cam-stage::after { content: ""; position: absolute; inset: 0; background: #fff; animation: ap-flash .25s ease-out; }
@keyframes ap-flash { from { opacity: .9; } to { opacity: 0; } }

/* ---- Searchable country picker ---- */
.ap-cc { position: relative; }
.ap-cc-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.ap-cc-btn { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: start; background-color: #fff; cursor: pointer; overflow: hidden; }
.ap-cc-btn .f { font-size: 1.2em; line-height: 1; flex-shrink: 0; }
.ap-cc-btn .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-cc-btn.empty .t { color: var(--ap-muted); }
.ap-cc-btn.is-invalid { border-color: #dc3545; box-shadow: 0 0 0 .2rem rgba(220,53,69,.15); }
.ap-cc.open .ap-cc-btn { border-color: var(--ap-burgundy); box-shadow: 0 0 0 .2rem rgba(128,0,32,.12); }
.ap-cc-panel { position: absolute; z-index: 1050; top: calc(100% + 6px); inset-inline: 0; min-width: 240px; background: #fff; border: 1px solid var(--ap-line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(46,0,12,.45); padding: .5rem; }
.ap-cc-search { border-radius: 10px; margin-bottom: .4rem; }
.ap-cc-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; }
.ap-cc-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 9px; cursor: pointer; font-size: .95rem; }
.ap-cc-list li .f { font-size: 1.15rem; line-height: 1; }
.ap-cc-list li .n { flex: 1; }
.ap-cc-list li .c { color: var(--ap-muted); font-size: .75rem; font-weight: 700; }
.ap-cc-list li.active { background: var(--ap-burgundy-50); }
.ap-cc-list li.selected { color: var(--ap-burgundy); font-weight: 700; }
.ap-cc-list li.selected::after { content: "✓"; color: var(--ap-burgundy); }
.ap-cc-empty { padding: .7rem; text-align: center; color: var(--ap-muted); }
/* The big residence picker in the wizard shows the flag inside the button. */
.ap-country-select .flag { display: none; }
.ap-country-select .ap-cc-btn { padding-inline-start: 1rem; height: 54px; font-size: 1.05rem; font-weight: 600; border-radius: 14px; }
.ap-country-select .ap-cc-btn .f { font-size: 1.4rem; }

/* ---- Instant document check ---- */
.ap-precheck { margin-top: .6rem; padding: .55rem .75rem; border-radius: 10px; line-height: 1.5; }
.ap-precheck.checking { background: #f3f5ff; color: #3446a8; }
.ap-precheck.checking::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-inline-end: .4rem; border: 2px solid #9fb0f0; border-top-color: #3446a8; border-radius: 50%; animation: ap-pc-spin 1s linear infinite; vertical-align: -1px; }
@keyframes ap-pc-spin { to { transform: rotate(360deg); } }
.ap-precheck.good { background: #e8f7ee; color: #0f7a3d; }
.ap-precheck .head { font-weight: 700; }
.ap-precheck.muted-box { background: #f4f4f6; color: var(--ap-muted); }
/* "Analysing" overlay on the photo while the instant check runs */
.ap-analyzing { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: rgba(32, 10, 18, .58); color: #fff; border-radius: 10px; overflow: hidden; text-align: center; padding: .5rem; }
.ap-analyzing[hidden] { display: none; }
.ap-analyzing strong { font-size: .9rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.ap-analyzing-spin { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: ap-pc-spin .9s linear infinite; }
.ap-analyzing-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ap-gold); box-shadow: 0 0 14px 3px var(--ap-gold); animation: ap-scan 1.8s ease-in-out infinite alternate; }
@keyframes ap-scan { from { top: 4%; } to { top: 94%; } }
.ap-capture.analyzing .ap-capture-ok { display: none; }
@media (prefers-reduced-motion: reduce) { .ap-analyzing-scan { animation: none; display: none; } }
.ap-precheck.warn { background: #fff4d6; color: #8a5a00; }
.ap-precheck.bad { background: #fdecee; color: #a3172f; border: 1px solid #f3b8c1; }
.ap-precheck ul { margin: .25rem 0 0; padding-inline-start: 1.1rem; }
.ap-precheck .muted { color: var(--ap-muted); font-size: .78rem; }
.ap-locked { background-color: var(--bs-secondary-bg, #f1f1f4) !important; cursor: not-allowed; }
.ap-prefilled { background-color: var(--ap-gold-50) !important; border-color: var(--ap-gold) !important; }

/* Example photo above the camera (selfie and video steps) */
.ap-tip-photo { margin: 0 0 .75rem; border-radius: 14px; overflow: hidden; background: #f4f4f6; }
.ap-tip-photo img { display: block; width: 100%; height: auto; }

/* Submission map (admin evidence) */
.ap-geo-map { height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid var(--ap-line); z-index: 0; }
.ap-geo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-inline-end: .25rem; }
.ap-geo-dot.gps { background: #6e0e2a; }
.ap-geo-dot.ip { background: #e3b24a; border: 1px dashed #b07d1a; }

/* Customer verification pages: logo + language only */
.ap-nav-bare { padding: .75rem 0; }
.ap-nav-bare .ap-brand { pointer-events: none; }
body.ap-bare .ap-app-main { padding-bottom: 3rem; }
