:root{--navy:#02132F;--navy2:#0B2550;--gold:#D4A24C;--gold2:#E9C47A;--cream:#FBF5E8;--ink:#0B1A33;--green:#1DA851;--red:#B3261E}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--navy);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:18px;line-height:1.45;font-weight:500}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.top{display:flex;align-items:center;gap:14px;max-width:560px;margin:0 auto;padding:18px 16px 8px}
.logo{width:84px;height:84px;border-radius:50%;border:3px solid var(--gold);flex:none}
h1{margin:0;color:#fff;font-size:28px;line-height:1.1;font-weight:800;letter-spacing:.2px}
h1 span{color:var(--gold2)}
main{max-width:560px;margin:0 auto;padding:6px 12px 24px}
.card{background:var(--cream);border-radius:18px;padding:18px 16px 20px;margin:12px 0;border:2px solid var(--gold);box-shadow:0 6px 18px rgba(0,0,0,.25)}
h2{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:21px;font-weight:800;color:var(--navy)}
h2.mt{margin-top:22px}
.num{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--navy);color:var(--gold2);font-size:17px;font-weight:800;flex:none}
label{display:block;font-weight:800;color:var(--navy);margin:12px 0 6px;font-size:17px}
.opt{font-weight:600;color:#3B4A63}
input[type=text],input[type=tel]{width:100%;font:inherit;font-size:19px;font-weight:700;color:var(--ink);padding:13px 14px;border:2px solid #8C7650;border-radius:12px;background:#fff}
input::placeholder{color:#6B7486;font-weight:600}
input:focus,.btn:focus-visible,.filebtn:focus-within{outline:3px solid var(--navy2);outline-offset:2px;border-color:var(--navy)}
.help{margin:0 0 10px;color:#22314D;font-weight:600}
.help.small{font-size:15px;margin:8px 0 0}
.center{text-align:center}
.filebtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin:6px 0 0;padding:16px;border:2px dashed var(--navy);border-radius:14px;background:#fff;color:var(--navy);font-size:19px;font-weight:800;cursor:pointer;text-align:center;word-break:break-word}
.filebtn.has{border-style:solid;background:#FFF8E6}
.filebtn-icon{font-size:24px}
.status{margin-top:12px;padding:12px 14px;border-radius:12px;font-weight:700;background:#EAF0FA;color:var(--navy)}
.status.ok{background:#E3F5E8;color:#0E5A2A}
.status.warn{background:#FFF0D6;color:#6A4300}
.status.err{background:#FBE3E1;color:var(--red)}
.spinner{display:inline-block;width:16px;height:16px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px;margin-right:8px}
@keyframes spin{to{transform:rotate(360deg)}}
.weightbox{margin-top:6px}
.weightrow{display:flex;align-items:center;gap:10px}
.weightrow input{font-size:26px!important;max-width:200px}
.unit{font-size:24px;font-weight:800;color:var(--navy)}
.amount-card{text-align:center}
.amount-card h2{justify-content:flex-start}
.amount{margin:4px 0 2px;font-size:46px;line-height:1.1;font-weight:900;color:var(--navy);letter-spacing:.5px}
.note{display:flex;gap:10px;align-items:flex-start;text-align:left;background:var(--navy);color:#fff;border-radius:14px;padding:13px 14px;margin:6px 0 16px;border-left:6px solid var(--gold)}
.note p{margin:0;font-weight:600}
.note strong{color:var(--gold2);font-weight:800}
.note-icon{font-size:22px;line-height:1.2}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:58px;padding:14px 18px;border-radius:14px;border:0;font:inherit;font-size:20px;font-weight:800;text-decoration:none;cursor:pointer}
.btn.gold{background:var(--gold);color:var(--navy);box-shadow:0 4px 0 #9A7228}
.btn.gold:disabled{background:#D9CFBD;color:#4A4F5C;box-shadow:none;cursor:not-allowed}
.btn.whatsapp{background:var(--green);color:#fff;font-size:21px;box-shadow:0 4px 0 #11783A;margin-top:4px}
.btn.outline{background:#fff;color:var(--navy);border:2px solid var(--navy);min-height:50px;font-size:18px;margin-top:12px}
.btn.link{background:none;color:var(--navy);text-decoration:underline;min-height:44px;font-size:17px;margin-top:10px}
.error{color:var(--red);font-weight:800;margin:12px 0 0}
.done{background:#E3F5E8;color:#0E5A2A;border-radius:12px;padding:12px 14px;font-weight:800;margin-bottom:14px}
.done.warn{background:#FFF0D6;color:#6A4300}
.bank{margin:0;background:#fff;border-radius:14px;border:2px solid #E2D3B0;padding:4px 14px}
.bank div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #EDE3CC}
.bank div:last-child{border-bottom:0}
.bank dt{font-weight:700;color:#3B4A63}
.bank dd{margin:0;font-weight:800;color:var(--ink);text-align:right;word-break:break-word}
.bank .accnum{font-size:21px;letter-spacing:.5px}
.bank .payamt dd{font-size:22px;color:var(--navy)}
.foot{text-align:center;color:var(--gold2);font-weight:700;font-size:14px;padding:6px 12px 28px}
@media (max-width:360px){h1{font-size:24px}.amount{font-size:40px}.logo{width:70px;height:70px}}
.perfume-hint{margin:8px 0 0;color:#fff;font-weight:800;background:rgba(212,162,76,.25);border-radius:8px;padding:6px 8px}

/* v3: order details, amount inside step 2, always-visible pay step */
h3{margin:0 0 8px;font-size:19px;font-weight:800;color:var(--navy)}
.orderbox{margin-top:16px;padding:12px 14px 14px;background:#fff;border:2px solid #E2D3B0;border-radius:14px}
.orderbox label{margin:10px 0 4px;font-size:16px}
.orderbox input[readonly]{background:#F3ECDC;border-color:#E2D3B0;color:var(--navy);padding:8px 12px;font-size:19px}
.amount-block{text-align:center;margin-top:18px;padding-top:14px;border-top:2px solid #E2D3B0}
.amount-h{font-size:19px;margin:0}
.bank-h{margin-top:4px}
.after-h{margin-top:22px}
.btn.card-pay{background:var(--navy);color:var(--gold2);border:2px solid var(--gold);margin-top:12px}
#payHint{background:#FFF0D6;color:#6A4300;border-radius:12px;padding:10px 12px;font-weight:700}
[hidden]{display:none!important}

/* v5: perfumes paid with the shipping */
.perfbox{margin-top:16px;padding:12px 14px 14px;background:#fff;border:2px solid var(--gold);border-radius:14px}
.perfbox label{margin:2px 0 8px;font-size:18px}
.perfrow{display:flex;align-items:center;gap:10px}
.perfrow input{font-size:26px!important;max-width:130px;text-align:center}
.perfrow input.invalid{border-color:var(--red);background:#FFF4F3}
.stepbtn{flex:none;width:54px;height:54px;border-radius:12px;border:2px solid var(--navy);background:var(--cream);color:var(--navy);font:inherit;font-size:28px;font-weight:900;line-height:1;cursor:pointer}
.stepbtn:active{background:var(--gold2)}
.perf-honest{margin:10px 0 0;padding:9px 12px;border-radius:10px;background:var(--navy);color:#fff;font-weight:800;font-size:16px;border-left:5px solid var(--gold)}
.perf-suggest{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#FFF0D6;color:#6A4300;font-weight:800;font-size:15px}
.breakdown{text-align:left;background:#fff;border:2px solid #E2D3B0;border-radius:12px;padding:8px 12px;margin:0 0 12px}
.breakdown p{margin:4px 0;font-weight:700;color:#22314D;font-size:17px}
.breakdown strong{color:var(--navy);font-weight:900}
.amount-h{font-size:20px}
