:root{--accent:#6937b3;--accent-dark:#412174;--soft:#f1ebfa;--ink:#202737;--muted:#596476;--line:#dce2eb;--paper:#fff;--bg:#f6f7fb;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}body[data-site=ghanamerica]{--accent:#c55a11;--accent-dark:#853208;--soft:#fff0e3}a{color:var(--accent)}button,input,select,textarea{font:inherit}button,.button{border:0;border-radius:9px;background:var(--accent);color:white;padding:12px 18px;cursor:pointer;font-weight:600;text-decoration:none;display:inline-block}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}button.secondary,.button.secondary{background:var(--soft);color:var(--accent-dark)}button.danger{background:#a42635}input,select,textarea{width:100%;border:1px solid #b8c2d2;border-radius:8px;background:white;padding:11px;color:var(--ink)}input[readonly]{background:#edf0f5;color:var(--muted)}input[type=checkbox]{width:auto;min-width:18px;height:18px;accent-color:var(--accent)}label{display:grid;gap:7px;font-size:.9rem;font-weight:600}label small{font-weight:400;color:var(--muted);line-height:1.5}h1{font-size:clamp(1.8rem,4vw,2.7rem);line-height:1.16;margin:8px 0 14px;letter-spacing:-.035em}h2{font-size:1.3rem;margin:0 0 16px}p{line-height:1.65}.eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:.16em;font-weight:700;color:var(--accent)}.topbar{height:84px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:15px max(5vw,20px);gap:20px}.topbar img{max-height:55px;max-width:180px;object-fit:contain}.topbar nav{display:flex;gap:20px;align-items:center}.topbar nav a{text-decoration:none;font-weight:600;font-size:.9rem}.wrap{max-width:1240px;margin:36px auto;padding:0 24px}.narrow{max-width:800px}.card{background:var(--paper);padding:28px;border:1px solid var(--line);border-radius:16px;margin-bottom:22px;box-shadow:0 3px 16px #26344905}.hero{background:linear-gradient(120deg,var(--accent-dark),var(--accent));color:white;padding:30px;border-radius:17px;margin-bottom:22px}.hero p{opacity:.9;margin-bottom:0}.hero .eyebrow{color:#fff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px}.wide{grid-column:1/-1}.check{display:flex;align-items:flex-start;gap:10px;font-weight:400;line-height:1.6}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}.muted{color:var(--muted);font-size:.91rem}.notice{padding:15px 18px;background:var(--soft);border-left:4px solid var(--accent);border-radius:7px;line-height:1.55;margin:18px 0}.error{padding:14px 18px;border:1px solid #e4a2a9;border-radius:9px;background:#fff0f1;color:#8d2531;margin:14px 0;white-space:pre-line}.success{padding:14px 18px;background:#ecf7ee;border-radius:9px;color:#236b38}.steps{display:flex;gap:10px;justify-content:space-between;margin:20px 0 25px;list-style:none;padding:0;color:var(--muted);font-size:.85rem}.steps strong{color:var(--accent)}.dob{display:flex;gap:8px}.dob input{min-width:0}.dob input:last-child{flex:1.4}.pinned{position:sticky;top:0;z-index:5;background:white;border-bottom:1px solid var(--line);padding:18px 22px;border-radius:14px;margin-bottom:20px;box-shadow:0 4px 15px #2222220c}.linkrow{display:flex;align-items:center;justify-content:space-between;gap:20px}.sharelink{font-size:clamp(1rem,2.4vw,1.5rem);font-weight:800;overflow-wrap:anywhere}.tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:10px;margin:20px 0}.tabs button{white-space:nowrap;background:#e9edf4;color:var(--muted)}.tabs button.active{background:var(--accent);color:white}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:23px}.metric{padding:22px;background:white;border:1px solid var(--line);border-radius:14px}.metric strong{display:block;font-size:1.8rem;margin-top:10px}.filters{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:12px;align-items:end;margin:15px 0}.table-scroll{overflow:auto;max-height:660px}table{border-collapse:collapse;width:100%;font-size:.88rem}th{background:#eff2f7;text-align:left;white-space:nowrap;position:sticky;top:0;z-index:1}th,td{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top}td small{display:block;color:var(--muted);margin-top:5px}.money{white-space:nowrap}.pill{display:inline-block;border-radius:20px;padding:5px 10px;background:var(--soft);color:var(--accent-dark);font-size:.78rem;white-space:nowrap}.totals{padding:15px 0;color:var(--muted);font-size:.9rem;line-height:1.8}.empty{padding:45px;text-align:center;color:var(--muted)}.terms h2{margin-top:28px}.terms p{line-height:1.7;font-size:.95rem}.camera{position:relative;max-width:680px;margin:auto;background:#151a22;border-radius:14px;overflow:hidden;min-height:270px}.camera video,.camera img{display:block;width:100%;max-height:520px;object-fit:contain}.capture-progress{display:flex;gap:12px;margin-bottom:18px}.capture-progress span{padding:9px 14px;border-radius:20px;background:#e9edf4}.capture-progress .done{background:#d9f1df;color:#1b5d2c}.capture-progress .current{background:var(--soft);color:var(--accent)}.footer{text-align:center;padding:25px 20px 40px;color:var(--muted);font-size:.85rem}.count{font-size:.8rem;color:var(--muted);text-align:right}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.help-grid h3{margin:5px 0}.help-grid .card{margin:0}.terms strong{color:var(--ink)}@media(max-width:740px){.wrap{margin-top:24px;padding:0 14px}.card,.hero{padding:20px}.grid,.help-grid{grid-template-columns:1fr}.metrics{gap:8px}.metric{padding:13px}.metric strong{font-size:1.25rem}.metric .muted{font-size:.75rem}.filters{grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}.linkrow{align-items:flex-start;flex-direction:column;gap:12px}.topbar{height:74px;padding:12px 15px}.topbar img{max-width:120px}.topbar nav{gap:12px}.topbar nav a{font-size:.8rem}.pinned{padding:16px}.steps{font-size:.72rem}.capture-progress{font-size:.8rem;gap:5px}.capture-progress span{padding:8px}.actions button{flex-grow:1}.terms{overflow-wrap:anywhere}}

/* Affiliate signup usability fixes — 2026-09-10b */
.dob-date{display:grid;grid-template-columns:minmax(72px,1fr) minmax(72px,1fr) minmax(118px,1.45fr);gap:8px;width:100%}.dob-date select{min-width:0;width:100%}.dob-date .birth-year{min-width:118px}.ghana-card-number{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}.ghana-card-number span{font-weight:700;white-space:nowrap}.capture-wrap{width:100%;max-width:860px;overflow-x:clip}.capture-card{overflow:hidden}.camera{width:100%;max-width:680px;min-height:0;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}.camera video{width:100%;height:100%;max-height:none;object-fit:cover}.camera.selfie-camera{max-width:520px;aspect-ratio:3/4}.capture-status{text-align:center;margin-top:12px}.capture-actions{justify-content:center}.capture-actions .capture-primary{min-width:230px}.capture-help{text-align:center;margin-bottom:0}.final-preview{width:min(100%,360px);margin:18px auto;border-radius:14px;overflow:hidden;background:#151a22}.final-preview img{display:block;width:100%;max-height:430px;object-fit:contain}.final-capture{text-align:left}
@media(max-width:740px){html,body{max-width:100%;overflow-x:hidden}.wrap,.capture-wrap{width:100%;max-width:100%;margin:16px auto;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.capture-wrap .hero,.capture-wrap .card{padding:16px;border-radius:13px}.capture-wrap .hero{margin-bottom:14px}.capture-wrap .hero p{font-size:.9rem}.capture-wrap h1{font-size:1.65rem}.capture-wrap h2{font-size:1.15rem}.dob-date{grid-template-columns:minmax(64px,1fr) minmax(64px,1fr) minmax(108px,1.45fr)}.dob-date .birth-year{min-width:108px}.camera{max-width:100%;width:100%;max-height:52svh;aspect-ratio:4/3}.camera.selfie-camera{max-width:min(100%,420px);max-height:56svh;aspect-ratio:3/4}.capture-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.capture-progress span{min-width:0;text-align:center;padding:8px 4px;font-size:.75rem}.capture-actions{display:grid;grid-template-columns:1fr;width:100%;gap:9px}.capture-actions button,.capture-actions .capture-primary{width:100%;min-width:0;min-height:48px}.topbar{height:auto;min-height:70px;flex-wrap:wrap;justify-content:center;padding:10px 12px}.topbar>a{display:flex;justify-content:center}.topbar img{max-width:112px;max-height:45px}.topbar nav{width:100%;justify-content:center;gap:8px;flex-wrap:wrap}.topbar nav a{font-size:.76rem}.steps{gap:4px}.steps li{min-width:0;text-align:center;flex:1}.final-preview{width:min(100%,320px)}}
@media(max-width:380px){.capture-wrap .hero,.capture-wrap .card{padding:13px}.dob-date{grid-template-columns:62px 62px minmax(106px,1fr);gap:6px}.dob-date .birth-year{min-width:106px}.capture-wrap h1{font-size:1.45rem}.capture-progress span{font-size:.69rem}.topbar nav a{font-size:.72rem}}

/* Affiliate capture flow R3 — viewport-fit, portrait-layout, permissive capture. */
.dob-date{grid-template-columns:minmax(72px,1fr) minmax(72px,1fr) minmax(132px,1.55fr)}
.dob-date .birth-year{min-width:132px}
body.affiliate-capture-mode{height:100dvh;min-height:100dvh;max-height:100dvh;overflow:hidden;overscroll-behavior:none;background:var(--bg)}
body.affiliate-capture-mode .topbar,body.affiliate-capture-mode .footer{display:none!important}
body.affiliate-capture-mode #affiliate-app.capture-wrap{height:100dvh;min-height:0;max-height:100dvh;width:min(100%,860px);margin:0 auto;padding:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden;display:flex;align-items:stretch}
body.affiliate-capture-mode .capture-card,body.affiliate-capture-mode .final-capture{width:100%;height:100%;min-height:0;margin:0;padding:clamp(10px,1.8vh,18px);display:flex;flex-direction:column;gap:clamp(5px,1.1vh,11px);overflow:hidden}
.capture-brand{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 auto}
.capture-step-label{font-size:.78rem;font-weight:700;color:var(--muted);white-space:nowrap}
body.affiliate-capture-mode .capture-progress{margin:0;flex:0 0 auto}
body.affiliate-capture-mode .capture-copy{flex:0 0 auto;text-align:center}
body.affiliate-capture-mode .capture-copy h2{margin:0 0 4px;font-size:clamp(1rem,2.3vh,1.28rem)}
body.affiliate-capture-mode .capture-copy p{margin:0;line-height:1.35;font-size:clamp(.78rem,1.8vh,.92rem)}
body.affiliate-capture-mode .camera{flex:1 1 auto;min-height:100px;max-height:none;width:100%;height:auto;aspect-ratio:auto;margin:0 auto;border-radius:12px;background:#111820;display:flex;align-items:center;justify-content:center;overflow:hidden}
body.affiliate-capture-mode .camera.selfie-camera,body.affiliate-capture-mode .camera.id-camera{max-width:none;max-height:none;aspect-ratio:auto}
body.affiliate-capture-mode .camera video{display:block;width:100%;height:100%;min-height:0;max-height:none;object-fit:contain;background:#111820}
body.affiliate-capture-mode .capture-status{margin:0;flex:0 0 auto;text-align:center;line-height:1.3;font-size:clamp(.74rem,1.6vh,.88rem)}
body.affiliate-capture-mode .capture-actions{margin:0;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:100%}
body.affiliate-capture-mode .capture-actions button,body.affiliate-capture-mode .capture-actions .capture-primary{width:100%;min-width:0;min-height:44px;padding:10px 14px}
body.affiliate-capture-mode .capture-help{margin:0;text-align:center;line-height:1.25;font-size:clamp(.7rem,1.45vh,.82rem);flex:0 0 auto}
body.affiliate-capture-mode .error,body.affiliate-capture-mode .success{position:fixed;z-index:1000;top:max(8px,env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));margin:0 auto;max-width:720px;max-height:28dvh;overflow:auto;box-shadow:0 8px 30px #0003}
body.affiliate-capture-mode .final-preview{flex:1 1 auto;min-height:80px;width:min(100%,360px);margin:0 auto;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#111820}
body.affiliate-capture-mode .final-preview img{width:100%;height:100%;max-height:none;object-fit:contain}
@media(max-width:740px){
  .dob-date{grid-template-columns:minmax(62px,1fr) minmax(62px,1fr) minmax(122px,1.65fr)}
  .dob-date .birth-year{min-width:122px}
  body.affiliate-capture-mode #affiliate-app.capture-wrap{width:100%;margin:0;padding:max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
  body.affiliate-capture-mode .capture-card,body.affiliate-capture-mode .final-capture{padding:10px;border-radius:11px}
  body.affiliate-capture-mode .capture-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  body.affiliate-capture-mode .capture-progress span{padding:5px 3px;font-size:.69rem;text-align:center;min-width:0}
}
@media(max-height:650px){
  body.affiliate-capture-mode .capture-card,body.affiliate-capture-mode .final-capture{gap:4px;padding:7px 9px}
  body.affiliate-capture-mode .capture-brand .eyebrow{font-size:.64rem}
  body.affiliate-capture-mode .capture-step-label{font-size:.66rem}
  body.affiliate-capture-mode .capture-copy h2{font-size:.95rem;margin-bottom:2px}
  body.affiliate-capture-mode .capture-copy p{font-size:.72rem}
  body.affiliate-capture-mode .capture-help{display:none}
  body.affiliate-capture-mode .capture-actions button{min-height:40px;padding:8px 12px}
}
/* If a mobile browser refuses the Screen Orientation API, keep the capture UI in
   a centered portrait-shaped column rather than reflowing it into a wide layout. */
@media(orientation:landscape) and (pointer:coarse) and (max-width:1100px){
  body.affiliate-capture-mode #affiliate-app.capture-wrap{width:min(560px,100vw);max-width:560px;margin:0 auto}
  body.affiliate-capture-mode .capture-card,body.affiliate-capture-mode .final-capture{border-radius:10px}
  body.affiliate-capture-mode .capture-help{display:none}
}
