:root{--black:#080809;--red:#e30613;--red2:#b9000a;--red3:#ff2330;--white:#fff;--bg:#f5f5f6;--text:#111214;--muted:#6b6f76;--line:#dedfe2;--soft:#f0f0f1}
*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select{font:inherit}.wrap{max-width:1120px;margin:auto;padding:0 22px}
.topbar{background:var(--black);color:white;border-top:5px solid var(--red);border-bottom:1px solid #27272a}.nav{height:64px;display:flex;align-items:center;justify-content:space-between}.nav-accent{width:74px;height:5px;border-radius:99px;background:var(--red);box-shadow:28px 0 0 rgba(227,6,19,.34)}.nav nav{display:flex;gap:5px}.nav-btn{border:0;background:transparent;color:#b9bbc0;padding:10px 14px;border-radius:8px;cursor:pointer;font-weight:800}.nav-btn.active,.nav-btn:hover{color:#fff;background:#242426}.nav-btn.active{box-shadow:inset 0 -2px var(--red)}
.hero{position:relative;overflow:hidden;background:var(--black);color:#fff;padding:54px 0 50px}.hero:after{content:"";position:absolute;right:-110px;top:-180px;width:420px;height:420px;border:64px solid rgba(227,6,19,.14);border-radius:50%;pointer-events:none}.hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:1.5fr .8fr;gap:44px;align-items:center}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:950;color:#ff5059}.eyebrow.red{color:var(--red)}h1{font-size:clamp(36px,5vw,62px);line-height:1.02;letter-spacing:-2px;margin:12px 0 16px;max-width:760px}.hero h1:after{content:"";display:block;width:90px;height:6px;background:var(--red);border-radius:99px;margin-top:20px}.hero p{font-size:18px;color:#c8c9cd;max-width:720px;line-height:1.55}.rates-card{border:1px solid #4a1b1e;border-top:4px solid var(--red);border-radius:16px;background:#151518;padding:18px;box-shadow:0 18px 50px rgba(227,6,19,.08)}.rate-title{font-weight:900;margin-bottom:12px}.rate-row{display:flex;justify-content:space-between;gap:15px;padding:11px 0;border-top:1px solid #2c2c31;color:#cfd0d3}.rate-row b{color:#ff555e;white-space:nowrap}.rate-time{font-size:11px;color:#85878e;margin-top:9px}
main{padding:32px 22px 54px}.view{display:none}.active-view{display:block}.card{background:white;border:1px solid #e4e4e6;border-radius:18px;box-shadow:0 12px 42px rgba(0,0,0,.06);overflow:hidden}.calculator-card{border-top:4px solid var(--red)}.tabs{display:flex;border-bottom:1px solid var(--line)}.tab{flex:1;border:0;background:#fafafa;padding:18px 12px;font-size:16px;font-weight:850;cursor:pointer;color:#555}.tab.active{background:#fff;color:var(--red);box-shadow:inset 0 -4px var(--red)}.grid{display:grid;grid-template-columns:1fr 1fr}.form,.result{padding:30px}.form{border-right:1px solid var(--line)}label{display:block;font-weight:750;margin-bottom:17px;font-size:14px}input,select{width:100%;margin-top:8px;padding:13px 14px;border:1px solid #cacbd0;border-radius:9px;background:white;color:var(--black);outline:none}input:focus,select:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(227,6,19,.11)}.primary{width:100%;border:0;background:var(--red);color:white;padding:15px 18px;border-radius:9px;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 9px 22px rgba(227,6,19,.16)}.primary:hover{background:var(--red2)}.micro{font-size:11px;color:#888b91;line-height:1.45;margin:12px 0 0}.status{display:inline-block;padding:7px 10px;border-radius:999px;background:#fff0f1;color:var(--red2);border:1px solid #ffd1d4;font-size:12px;font-weight:900}.result h2{font-size:21px;margin:22px 0 7px}.big{font-size:clamp(38px,6vw,58px);font-weight:950;letter-spacing:-2px;color:var(--red)}.secondary{margin-top:8px;color:var(--muted);font-weight:650}.breakdown{margin-top:24px;border-top:2px solid #18181a}.row{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.row span:first-child{color:#55585f}.row span:last-child{font-weight:850;text-align:right}.row:last-child span:last-child{color:var(--red2)}.actions{margin-top:18px}.outline{border:1px solid #cfd0d4;background:white;color:var(--black);padding:11px 14px;border-radius:9px;font-weight:800;cursor:pointer}.outline:hover{border-color:var(--red);color:var(--red)}.danger{color:var(--red);border-color:#efb5b7}.lead{margin-top:22px;padding:18px;border:1px solid #f0b7b9;border-left:5px solid var(--red);background:#fff7f7;border-radius:10px}.lead strong{color:var(--red2)}.lead p{color:#606268;font-size:14px;line-height:1.45}.lead input{margin-bottom:8px}.hidden{display:none!important}
.info{padding:32px 2px 0}.info h3{font-size:22px}.info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.info-grid div{position:relative;background:white;border:1px solid var(--line);border-radius:12px;padding:18px;overflow:hidden}.info-grid div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--red)}.info-grid b,.info-grid span{display:block}.info-grid b{font-size:14px}.info-grid span{font-size:13px;color:var(--muted);margin-top:7px;line-height:1.4}
.history-card{padding:28px;border-top:4px solid var(--red)}.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.history-head h2{margin:7px 0}.history-head p{color:var(--muted);max-width:670px}.history-list{margin-top:22px;border-top:1px solid var(--line)}.history-item{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.history-item b,.history-item span{display:block}.history-item span{font-size:12px;color:var(--muted);margin-top:5px}.history-value{font-size:20px;font-weight:950;color:var(--red);white-space:nowrap}.empty{padding:36px 0;color:var(--muted)}footer{padding:28px 0;background:var(--black);border-top:4px solid var(--red);color:#999ba1;font-size:12px}
@media(max-width:800px){.hero-inner,.grid{grid-template-columns:1fr}.form{border-right:0;border-bottom:1px solid var(--line)}.rates-card{margin-top:4px}.info-grid{grid-template-columns:1fr 1fr}.nav-accent{width:44px}.history-head{display:block}.history-head .outline{margin-top:8px}}
@media(max-width:520px){.info-grid{grid-template-columns:1fr}.nav{height:auto;padding-top:11px;padding-bottom:11px}.nav nav{width:100%;justify-content:flex-end}.nav-accent{display:none}.nav-btn{padding:9px 10px}.form,.result{padding:22px}.hero{padding-top:42px}}

/* Collapsible customs payment detail */
.customs-details{border-bottom:1px solid var(--line);background:#fff}
.customs-details summary{list-style:none;display:grid;grid-template-columns:1fr auto 22px;align-items:center;gap:12px;padding:14px 0;cursor:pointer;font-size:14px;font-weight:900;color:var(--black)}
.customs-details summary::-webkit-details-marker{display:none}
.customs-details summary:hover{color:var(--red)}
.customs-total{color:var(--red2);text-align:right;white-space:nowrap}
.chevron{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#fff0f1;color:var(--red);font-size:18px;line-height:1;transition:transform .2s ease}
.customs-details[open] .chevron{transform:rotate(180deg)}
.customs-children{margin:0 0 8px 14px;padding:4px 0 4px 14px;border-left:3px solid var(--red);background:#fffafa}
.subrow{display:flex;justify-content:space-between;gap:18px;padding:10px 12px;font-size:13px;border-bottom:1px solid #f0d9da}
.subrow:last-child{border-bottom:0}
.subrow span:first-child{color:#696b71}
.subrow span:last-child{font-weight:850;text-align:right}

/* Detailed calculation request */
.lead-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 10px}
.lead-field{margin:0;font-size:12px;color:#55585f;font-weight:800}
.lead-field input,.lead-field select{margin-top:6px;background:#fff}
.lead-wide{grid-column:1/-1}
.lead small{display:block;margin-top:10px;color:#676a70;line-height:1.4}
@media(max-width:620px){.lead-grid{grid-template-columns:1fr}.lead-wide{grid-column:auto}}

.primary:disabled{opacity:.65;cursor:wait}.lead small.success-note{color:#19733a;font-weight:800}

/* Live-rate status */
.rate-source{margin-top:8px;font-size:11px;display:flex;gap:7px;flex-wrap:wrap;color:#a8aab0}
.rate-source .src{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;border:1px solid #35353a;background:#111114}
.rate-source .src:before{content:"";width:7px;height:7px;border-radius:50%;background:#7c7f86}
.rate-source .src.live{color:#d9f7e2;border-color:#295638}
.rate-source .src.live:before{background:#22a447}
.rate-source .src.fallback{color:#ffd5d8;border-color:#603034}
.rate-source .src.fallback:before{background:var(--red)}
