:root{--ink:#0b1741;--muted:#71809d;--blue:#155cff;--blue-deep:#063dbf;--light:#f3f6fb;--stroke:#e3eaf5;--white:#fff;--red:#d44759;--shadow:0 20px 60px rgba(10,35,86,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--light);color:var(--ink);font-family:Manrope,Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(21,92,255,.32);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.55}[hidden]{display:none!important}.container{max-width:1280px;padding:0 28px;margin:0 auto}
.site-header{background:#fff;border-bottom:1px solid #e9edf6;position:relative;z-index:3}.header-inner{min-height:89px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:18px;text-decoration:none;color:var(--ink)}.brand-logo{width:125px;height:69px;object-fit:contain;object-position:left center}.brand-divider{height:32px;width:1px;background:#cfd8e9}.brand-product{font-size:15px;font-weight:800;letter-spacing:.24em;line-height:1.15}.brand-product small{display:block;font-size:8px;letter-spacing:.18em;font-weight:800;margin-top:6px;color:#6c7e9c}.header-actions{display:flex;align-items:center;gap:14px}.header-caption{color:#8691a6;font-size:12px;margin-right:5px}.icon-button,.settings-button{border:1px solid var(--stroke);background:white;color:var(--ink);border-radius:12px;height:43px;display:flex;justify-content:center;align-items:center;gap:8px;transition:.2s}.icon-button{width:43px}.icon-button svg,.settings-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.settings-button{padding:0 16px;font-weight:700;font-size:12px}.icon-button:hover,.settings-button:hover{border-color:#abc2fa;background:#f4f7ff}
.hero{position:relative;overflow:hidden;min-height:310px;background:linear-gradient(107deg,#073cb5 0%,#145ff5 51%,#337dff 100%);border-radius:0 0 26px 26px;display:flex;align-items:center;padding:43px 62px 46px;box-shadow:0 15px 45px rgba(19,79,193,.13)}.hero-copy{position:relative;z-index:2;max-width:710px}.hero-kicker{color:#bdd6ff;letter-spacing:.22em;font-size:10px;font-weight:800;display:flex;align-items:center;gap:12px}.kicker-spark{display:inline-block;width:7px;height:7px;background:#8dcbff;transform:rotate(45deg);border-radius:2px}.kicker-slash{opacity:.5}.hero h1{font-size:clamp(29px,3.4vw,46px);line-height:1.2;color:white;letter-spacing:-.042em;font-weight:800;margin:23px 0 14px}.hero h1 span{color:#cae0ff}.hero p{color:#d5e5ff;line-height:1.78;font-size:13px;max-width:560px;margin:0}.hero-bottom{display:flex;gap:11px;margin-top:29px}.hero-bullet{display:inline-flex;align-items:center;height:24px;border:1px solid rgba(255,255,255,.28);color:#d7e7ff;border-radius:7px;padding:0 10px;font-size:9px;font-weight:800;letter-spacing:.16em}.hero-art{position:absolute;right:0;top:0;height:100%;width:44%;overflow:hidden;pointer-events:none}.orb{position:absolute;border-radius:50%}.orb-one{width:470px;height:470px;right:-120px;top:-120px;border:1px solid rgba(255,255,255,.14)}.orb-two{width:290px;height:290px;right:-35px;top:5px;border:1px solid rgba(255,255,255,.19)}.hero-wave{position:absolute;width:100%;height:100%;inset:0;opacity:.24}.hero-wave path{fill:none;stroke:#d4e5ff;stroke-width:2}.hero-symbol{position:absolute;right:62px;top:44px;font-size:190px;font-weight:800;color:rgba(255,255,255,.07);letter-spacing:-.12em;transform:rotate(-13deg)}
.overview-section{padding-top:46px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:21px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:.19em;color:var(--blue);margin-bottom:12px}.section-heading h2,.chart-head h2,.lower-section h2{font-size:25px;line-height:1.25;letter-spacing:-.04em;font-weight:800;margin:0}.market-badge{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700;padding:11px 14px;border-radius:50px;border:1px solid #dfebff;color:#2660c5;background:#eaf2ff;white-space:nowrap}.market-badge.market-live{border-color:#cdf3e4;color:#177755;background:#e9fbf3}.market-badge.market-sold{border-color:#f6d7dd;color:#b94658;background:#fff0f2}.status-dot{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px rgba(50,99,219,.08)}
.rates-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.rate-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:20px 22px 19px;border:1px solid #e5ecf5;border-radius:17px;background:#fff;min-height:216px;box-shadow:0 8px 34px rgba(12,40,96,.035);color:var(--ink);transition:transform .2s,box-shadow .2s,border-color .2s}.rate-card:hover{transform:translateY(-3px);box-shadow:0 17px 38px rgba(21,77,184,.09)}.rate-card.selected{border:2px solid #316fff;padding:19px 21px 18px;box-shadow:0 13px 35px rgba(24,93,247,.1)}.rate-card-top{display:flex;align-items:center;gap:11px}.currency-mark{width:43px;height:43px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:23px;font-weight:800}.currency-mark.euro{background:#e8f0ff;color:#155cff}.currency-mark.dollar{background:#ecf5ff;color:#3370ad}.currency-mark.yuan{background:#e6f8f4;color:#178c80}.currency-mark.dirham{background:#f3edff;color:#7b63cb;font-size:13px}.rate-code{display:flex;flex-direction:column;font-size:15px;letter-spacing:.035em;font-weight:800;line-height:1.15}.rate-code small{font-size:10px;color:#8a96ad;font-weight:600;margin-top:5px;letter-spacing:0}.card-chevron{margin-left:auto;color:#bcc7d9;font-size:14px}.rate-value{font-weight:800;font-size:clamp(25px,2.5vw,34px);line-height:1.2;margin-top:23px;letter-spacing:-.06em;font-variant-numeric:tabular-nums}.rate-value.sold{font-size:29px;letter-spacing:.06em;color:#cb5366}.rate-caption{margin-top:5px;font-size:10px;color:#8793a8;min-height:15px}.rate-card-foot{border-top:1px solid #eef2f8;padding-top:14px;margin-top:auto;display:flex;justify-content:space-between;color:#48679c;font-size:10px;font-weight:800}.rate-card-foot span{color:var(--blue);font-size:15px;line-height:0.8}
.chart-section{padding-top:25px}.chart-panel{border:1px solid #e5ecf5;background:#fff;border-radius:20px;padding:28px 30px 21px;box-shadow:var(--shadow)}.chart-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.chart-head h2 span{font-weight:600;color:#8e9aaf;font-size:17px}.chart-subline{display:flex;align-items:center;gap:9px;color:#73819a;font-size:11px;margin-top:9px}.chart-subline #chartDataBadge{color:#3267c5;font-weight:700}.line-separator{color:#c5cfde}.chart-right{display:flex;flex-direction:column;align-items:flex-end;gap:16px}.chart-big-rate{display:flex;align-items:baseline;gap:9px}.chart-big-rate strong{font-size:29px;letter-spacing:-.05em}.chart-big-rate strong.sold{letter-spacing:.04em;color:#cc5466}.chart-big-rate span{font-size:11px;color:#8b98ad;font-weight:600}.period-switch{display:flex;background:#f0f4fa;padding:4px;gap:3px;border-radius:11px}.period{padding:9px 13px;border:0;background:transparent;color:#8a98af;border-radius:8px;font-size:10px;font-weight:800}.period.active{background:#fff;color:#165df3;box-shadow:0 2px 9px rgba(19,52,100,.08)}.chart-body{position:relative;margin-top:23px}.chart-surface{position:relative;height:330px;overflow:hidden}.chart-surface svg{width:100%;height:100%;display:block;overflow:visible}.chart-tooltip{position:absolute;z-index:2;padding:10px 14px;border-radius:10px;background:#0d225b;color:white;pointer-events:none;font-size:11px;font-weight:700;box-shadow:0 12px 26px rgba(11,32,74,.25);white-space:nowrap;transform:translate(-50%,-110%)}.chart-empty{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;text-align:center;color:#7f8ea8}.chart-empty strong{font-size:16px;color:#576b90}.chart-empty p{font-size:12px;margin:0}.empty-icon{font-size:48px;color:#b7c9ec}.chart-footer{border-top:1px solid #edf1f8;padding-top:17px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:10px;color:#8491a8}.legend-line{display:inline-block;width:19px;height:3px;border-radius:3px;background:#2364ff;vertical-align:middle;margin-right:7px}
.lower-section{display:grid;grid-template-columns:1.07fr .93fr;gap:22px;padding-top:24px;padding-bottom:54px}.calc-panel,.info-panel{background:white;border:1px solid #e5ecf5;border-radius:20px;padding:29px 30px;box-shadow:0 11px 40px rgba(10,40,92,.035)}.lower-section h2{margin-bottom:12px}.lower-section p{font-size:12px;line-height:1.75;color:#8390a7;margin:0 0 21px;max-width:510px}.calc-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.calc-fields label,.settings-content label{display:flex;flex-direction:column;gap:9px;font-size:10px;font-weight:800;color:#677998}.calc-fields input,.calc-fields select,.settings-content input,.settings-content select{height:47px;border:1px solid #dfe7f1;border-radius:10px;background:#fbfcff;color:#17305e;padding:0 13px;min-width:0;width:100%;font-size:14px;font-weight:800;outline:none}.calc-fields input:focus,.calc-fields select:focus,.settings-content input:focus,.settings-content select:focus{border-color:#457cf7;box-shadow:0 0 0 3px rgba(33,99,248,.12)}.calc-result{display:flex;flex-direction:column;gap:7px;background:#eff5ff;border-radius:13px;padding:17px 20px;margin:19px 0}.calc-result span{color:#6f87ae;font-weight:700;font-size:11px}.calc-result strong{font-weight:800;color:#154ec7;font-size:30px;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.calc-result small{color:#90a0ba;font-size:10px}.primary-button{border:0;border-radius:11px;background:#1762f2;color:#fff;padding:13px 18px;min-height:44px;display:flex;justify-content:center;align-items:center;gap:15px;font-size:11px;font-weight:800;box-shadow:0 8px 16px rgba(17,90,227,.16)}.primary-button:hover{background:#064ed8}.primary-button span{font-size:15px}.calc-panel>.primary-button{width:100%}.info-panel{background:linear-gradient(150deg,#f7faff,#fff)}.info-panel h2{font-size:24px}.info-rule{padding:13px 0;border-top:1px solid #e5ebf6;display:flex;gap:13px;align-items:center}.rule-number{color:#1a66ed;font-size:12px;font-weight:800}.info-rule div{display:flex;flex-direction:column;gap:3px}.info-rule strong{font-size:12px}.info-rule small{font-size:10px;color:#8a99af}
.footer{border-top:1px solid #e3eaf4;background:#fff}.footer-content{min-height:76px;display:flex;justify-content:space-between;gap:18px;align-items:center;color:#8b9ab3;font-size:9px;font-weight:700;letter-spacing:.03em}.footer-content span:first-child{color:#174db9;letter-spacing:.12em;font-weight:800}.footer-content span:last-child{color:#2f65c7;letter-spacing:.2em}
.modal-backdrop{position:fixed;inset:0;background:rgba(7,19,47,.62);z-index:10;display:flex;justify-content:flex-end;backdrop-filter:blur(3px)}.settings-panel{height:100%;width:min(560px,100%);background:#fff;display:flex;flex-direction:column;box-shadow:-18px 0 60px rgba(0,0,0,.18)}.settings-header{padding:25px 29px 20px;display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e8edf6}.settings-header h2{margin:0;font-size:22px;letter-spacing:-.04em}.close-button{width:36px;height:36px;border-radius:10px;border:1px solid #e1e6f0;background:white;color:#647493;font-size:25px}.settings-content{padding:20px 29px 35px;overflow:auto;display:flex;flex-direction:column;gap:20px}.internal-warning{border-radius:10px;background:#fff8e8;border:1px solid #ffedbb;color:#9b6b1d;font-size:11px;line-height:1.6;padding:13px 14px}.settings-block{border:1px solid #e4eaf5;border-radius:13px;padding:15px 17px 19px;margin:0;min-width:0}.settings-block legend{padding:0 7px;font-size:12px;font-weight:800;color:#17356e}.settings-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}.settings-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:11px}.settings-content input,.settings-content select{height:40px;font-size:12px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:5px;background:#edf2fb;border-radius:10px;padding:4px}.segmented label{display:block}.segmented label input{position:absolute;opacity:0;width:1px;height:1px}.segmented label span{display:block;text-align:center;padding:11px 6px;border-radius:8px;color:#788bac;cursor:pointer;font-size:10px;font-weight:800}.segmented label input:checked+span{background:white;box-shadow:0 2px 7px rgba(28,55,103,.08);color:#1859db}.segmented label input:focus-visible+span{outline:2px solid #165cf5}.setting-help{font-size:10px;line-height:1.65;color:#8897ac;margin:13px 0 0}.settings-subtitle{font-weight:800;color:#1c4cb2;margin-top:18px;font-size:11px}.full-label{margin-top:11px}.settings-actions{display:flex;justify-content:space-between;gap:10px}.settings-actions .primary-button{flex:1}.secondary-button{border:1px solid #d9e3f2;background:#fff;color:#557096;border-radius:11px;padding:11px 15px;font-size:11px;font-weight:800}.toast{position:fixed;z-index:30;left:50%;bottom:26px;background:#132e69;color:white;padding:12px 20px;border-radius:13px;box-shadow:0 15px 35px rgba(9,31,72,.25);font-weight:700;font-size:12px;transform:translate(-50%,100px);opacity:0;transition:all .25s;pointer-events:none}.toast.visible{transform:translate(-50%,0);opacity:1}
@media(max-width:1100px){.hero{padding:45px 42px}.hero-art{width:37%}.rate-card{padding:17px}.rate-card.selected{padding:16px}.rate-card-top{gap:8px}.currency-mark{width:38px;height:38px}.rate-value{font-size:28px}}
@media(max-width:800px){.container{padding-left:20px;padding-right:20px}.header-inner{min-height:77px}.brand-logo{width:112px;height:60px}.header-caption{display:none}.hero{min-height:280px;padding:35px 31px;border-radius:0 0 20px 20px}.hero-art{opacity:.5;width:60%}.hero h1{font-size:35px}.rates-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rate-card{min-height:202px}.chart-head{flex-direction:column}.chart-right{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.chart-surface{height:300px}.lower-section{grid-template-columns:1fr}.footer-content{flex-wrap:wrap;padding-top:18px;padding-bottom:18px}}
@media(max-width:540px){.container{padding-left:15px;padding-right:15px}.header-inner{min-height:72px}.brand{gap:8px}.brand-logo{width:91px;height:54px}.brand-divider{height:28px}.brand-product{font-size:12px;letter-spacing:.13em}.brand-product small{font-size:7px}.settings-button{height:37px;width:37px;padding:0}.settings-button span{display:none}.icon-button{height:37px;width:37px}.header-actions{gap:7px}.hero{padding:34px 24px 33px;min-height:310px}.hero-art{width:90%;opacity:.2}.hero h1{font-size:30px;margin-top:20px}.hero p{font-size:11px}.hero-bottom{margin-top:22px}.overview-section{padding-top:33px}.section-heading{align-items:start}.section-heading h2{font-size:21px}.market-badge{font-size:9px;padding:9px}.rates-grid{gap:10px}.rate-card{padding:15px;min-height:184px;border-radius:14px}.rate-card.selected{padding:14px}.rate-code{font-size:13px}.rate-code small{font-size:9px}.currency-mark{width:34px;height:34px;border-radius:10px;font-size:18px}.rate-card-top{gap:7px}.rate-value{font-size:26px;margin-top:17px}.rate-caption{font-size:9px}.rate-card-foot{font-size:9px;padding-top:11px}.chart-section{padding-top:15px}.chart-panel{padding:23px 16px 17px;border-radius:15px}.chart-head h2{font-size:23px}.chart-head h2 span{font-size:12px}.chart-right{flex-wrap:wrap}.chart-big-rate strong{font-size:25px}.period-switch{width:100%;justify-content:space-between}.period{padding:10px;font-size:10px;flex:1}.chart-surface{height:240px}.chart-footer{font-size:9px;line-height:1.5;align-items:start}.chart-footer>span:last-child{max-width:42%;text-align:right}.lower-section{padding-top:14px;padding-bottom:30px;gap:13px}.calc-panel,.info-panel{padding:23px 19px}.calc-fields{gap:9px}.calc-result strong{font-size:26px}.footer-content{font-size:8px;justify-content:space-between}.footer-content span:nth-child(2){order:3;width:100%}.settings-header{padding:22px 18px 16px}.settings-content{padding:18px;gap:15px}.settings-block{padding:12px}.settings-three{gap:6px}.settings-content label{font-size:9px}.settings-content input{padding:0 8px}}

/* Refined corporate palette and a single, full-width calculator section. */
:root{--blue:#1748ba;--blue-deep:#0b328e}
.hero{background:linear-gradient(108deg,#071b58 0%,#0c328f 51%,#1550be 100%);box-shadow:0 15px 45px rgba(9,41,127,.18)}
.primary-button{background:#1245b4;box-shadow:0 8px 16px rgba(9,53,145,.18)}
.primary-button:hover{background:#0a348e}
.rate-card.selected{border-color:#2359c6;box-shadow:0 13px 35px rgba(10,56,159,.11)}
.currency-mark.euro{color:#164abf}
.rate-card-foot span{color:#164abf}
.calc-result{background:#ecf2fd}
.calc-result strong{color:#113e9d}
.lower-section{grid-template-columns:minmax(0,1fr)}
.calc-panel{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:0 26px}
.calc-panel>.eyebrow,.calc-panel>h2,.calc-panel>p{grid-column:1/-1}
.calc-panel>.calc-fields{grid-column:1;grid-row:4}
.calc-panel>.calc-result{grid-column:2;grid-row:4;margin:0;justify-content:center}
.calc-panel>.primary-button{grid-column:1/-1;justify-self:start;max-width:280px;margin-top:20px}
@media(max-width:700px){.calc-panel{display:block}.calc-panel>.calc-result{margin:19px 0}.calc-panel>.primary-button{max-width:none}}

/* Hero currency navigation: generous frosted-glass cards, responsive on phones. */
.hero-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:min(100%,590px);margin-top:28px}
.hero-bullet{height:64px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:0 17px;border:1px solid rgba(215,231,255,.31);border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.035));box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 8px 22px rgba(0,14,66,.1);text-align:left;cursor:pointer;transition:background .2s,border-color .2s,transform .2s,box-shadow .2s}
.hero-bullet-code{color:#fff;font-size:15px;font-weight:800;letter-spacing:.18em;line-height:1.2}
.hero-bullet-name{color:#bfd5ff;font-size:10px;font-weight:600;letter-spacing:.01em;line-height:1.2}
.hero-bullet:hover{background:rgba(255,255,255,.16);border-color:rgba(245,250,255,.7);transform:translateY(-2px)}
.hero-bullet.is-active{border-color:rgba(255,255,255,.76);background:linear-gradient(145deg,rgba(255,255,255,.19),rgba(255,255,255,.07));box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 9px 26px rgba(0,18,75,.15)}
.hero-bullet:focus-visible{outline:3px solid #bddcff;outline-offset:3px}
@media(max-width:540px){.hero-bottom{gap:7px;margin-top:25px}.hero-bullet{height:54px;padding:0 11px;border-radius:12px}.hero-bullet-code{font-size:12px;letter-spacing:.13em}.hero-bullet-name{font-size:9px}}
@media(max-width:360px){.hero-bullet{padding:0 8px}.hero-bullet-name{display:none}}

/* A small label under each currency code makes the card headers more polished. */
.rate-code small{display:inline-flex;align-self:flex-start;align-items:center;padding:5px 9px;margin-top:8px;border-radius:7px;background:#eaf0fe;color:#2853a6;font-size:10px;font-weight:800;letter-spacing:.01em}
.rate-card[data-currency="USD"] .rate-code small{background:#e9f2fc;color:#33669c}
.rate-card[data-currency="CNY"] .rate-code small{background:#e2f6f0;color:#1a8071}
.rate-card[data-currency="AED"] .rate-code small{background:#f0eafd;color:#7657b3}
@media(max-width:540px){.rate-code small{font-size:9px;padding:4px 7px;margin-top:6px}}

/* Soft, currency-specific glow around the square symbols. */
.currency-mark{--icon-glow:rgba(43,92,206,.19);width:48px;height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.85);box-shadow:0 7px 18px var(--icon-glow),inset 0 1px 0 rgba(255,255,255,.72);transition:transform .22s ease,box-shadow .22s ease}
.currency-mark.euro{--icon-glow:rgba(33,93,224,.26);background:linear-gradient(145deg,#f1f6ff,#dce8ff);color:#154abb}
.currency-mark.dollar{--icon-glow:rgba(54,120,198,.23);background:linear-gradient(145deg,#f3f9ff,#dcecff);color:#276bab}
.currency-mark.yuan{--icon-glow:rgba(35,170,140,.23);background:linear-gradient(145deg,#effdf8,#d5f4e9);color:#138777}
.currency-mark.dirham{--icon-glow:rgba(133,101,200,.23);background:linear-gradient(145deg,#f8f4ff,#eadfff);color:#7456bb}
.rate-card:hover .currency-mark{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 24px var(--icon-glow),inset 0 1px 0 rgba(255,255,255,.85)}
.rate-card.selected .currency-mark{box-shadow:0 9px 23px var(--icon-glow),0 0 0 3px var(--icon-glow),inset 0 1px 0 rgba(255,255,255,.9)}
@media(max-width:540px){.currency-mark{width:41px;height:41px;border-radius:12px;font-size:20px}.currency-mark.dirham{font-size:13px}}
