@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#122f40;--muted:#657983;--line:#dbe4e8;--green:#bafa76;--surface:#fff;--bg:#f3f6f7;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #45841b;outline-offset:4px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1,h2,.brand,.rate-value,output{font-family:Manrope,system-ui,sans-serif}.topbar{height:91px;max-width:1000px;margin:auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:23px;font-weight:800;letter-spacing:-1px;text-decoration:none;color:var(--ink)}.brand-light{font-weight:500}.brand-mark{font:700 25px system-ui;background:var(--ink);color:var(--green);width:36px;height:36px;display:grid;place-items:center;border-radius:11px;letter-spacing:0}.icon-button{background:transparent;border:1px solid var(--line);border-radius:50%;width:40px;height:40px;display:grid;place-items:center}.icon-button:hover{background:#e6edef}main{max-width:840px;margin:0 auto;padding:43px 30px 22px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.eyebrow{font-size:12px;letter-spacing:1.8px;font-weight:700;color:var(--muted);margin-bottom:9px;text-transform:uppercase}h1{font-size:34px;line-height:1.2;letter-spacing:-1.4px;font-weight:700}.rates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rate-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;background:var(--surface);padding:20px;border:1px solid var(--line);border-radius:18px;text-align:left;transition:border-color .15s,transform .15s}.rate-card:hover{transform:translateY(-2px);border-color:#97b0a0}.rate-card.selected{border:2px solid var(--ink);padding:19px}.rate-card.selected:after{content:'✓';position:absolute;right:17px;top:17px;color:var(--ink);font-size:14px;background:var(--green);width:21px;height:21px;border-radius:50%;text-align:center;line-height:21px}.currency-icon{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:700;margin-bottom:13px}.usd{background:#e6f3df;color:#3c6d36}.eur{background:#e8edf9;color:#456ba5}.usdt{background:#e1f2ee;color:#268c76}.rate-label{font-weight:700;font-size:16px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}.rate-label small{font-weight:500;font-size:11px;color:var(--muted);background:#f2f5f6;border-radius:4px;padding:3px 5px}.rate-value{font-size:34px;font-weight:800;line-height:1.35;letter-spacing:-1.3px;margin-top:8px;font-variant-numeric:tabular-nums}.rate-unit{font-size:13px;color:var(--muted)}.rate-date{font-size:11px;color:var(--muted);margin-top:13px}.status{min-height:40px;font-size:12px;text-align:center;color:var(--muted);padding:12px 0 5px}.status.warning,.rate-date.warning{color:#986013}.calculator{background:var(--ink);border-radius:24px;color:white;padding:28px 32px 26px;margin-top:13px;box-shadow:0 14px 40px #16384913}.calc-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}h2{font-size:21px;font-weight:650;letter-spacing:-.7px}.calc-badge{font-size:10px;letter-spacing:1.7px;color:#bad0d9}.amount-box{background:#ffffff09;border:1px solid #58707b;border-radius:14px;padding:17px 19px}.amount-box label,.result-top label{font-size:14px;color:#c0d0d7}.amount-row{display:flex;align-items:center;gap:10px;margin-top:8px}.amount-row input{font-family:Manrope,system-ui,sans-serif;font-size:39px;font-weight:600;width:100%;min-width:0;padding:0;border:0;background:transparent;color:#fff;outline:none;font-variant-numeric:tabular-nums}.amount-row select,.result-top select{border:0;border-radius:8px;background:#244253;color:#fff;padding:9px 29px 9px 12px;max-width:175px;font-size:14px;font-weight:600}.amount-row select option,.result-top select option{background:#244253}.swap-row{display:flex;align-items:center;gap:13px;margin:8px 0}.swap-row span{height:1px;background:#ffffff13;flex:1}.swap-row button{display:grid;place-items:center;background:var(--ink);border:1px solid #607580;color:#dbedda;width:40px;height:40px;border-radius:50%;transition:background .2s}.swap-row button:hover{background:#2a4c5d}.result-box{background:var(--green);color:var(--ink);border-radius:15px;padding:19px 20px 23px}.result-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.result-top label{color:#37512b}.result-top select{background:#a5e666;color:#173629}.result-box output{display:block;font-size:52px;line-height:1.25;font-weight:800;letter-spacing:-2px;margin:15px 0 8px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.result-box p{font-size:12px;color:#38562b;min-height:16px}.calc-warning{font-size:13px;line-height:1.5;color:#f1d693;margin-top:12px}.field-error{font-size:13px;color:#ffc4bb;margin-top:8px}.secondary-actions{display:flex;gap:14px;margin-top:20px}.secondary-actions button{display:flex;align-items:center;gap:10px;flex:1;border:1px solid var(--line);border-radius:12px;padding:15px 17px;background:#fff;font-size:14px;font-weight:500}.secondary-actions button:hover{background:#eaf0ed}.secondary-actions button>span{margin-left:auto;color:#72848d}.secondary-actions svg{width:19px;height:19px;color:#597681}.install{display:block;width:100%;background:transparent;border:0;text-align:center;padding:20px 10px 0;font-size:14px;color:#376b2e}.install[hidden]{display:none}footer{display:flex;justify-content:space-between;gap:12px;padding:30px 3px 0;font-size:12px;color:#88959b}footer>span:first-child{font-weight:700}dialog{width:calc(100% - 24px);max-width:540px;border:1px solid var(--line);border-radius:22px;color:var(--ink);padding:0;box-shadow:0 20px 90px #0003;max-height:88dvh}dialog::backdrop{background:#112e4099;backdrop-filter:blur(3px)}.dialog-header{position:sticky;top:0;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:20px 23px;border-bottom:1px solid var(--line);z-index:1}.close{border:0;border-radius:50%;width:34px;height:34px;background:#f0f4f5;font-size:27px;font-weight:400;line-height:1}.dialog-body{padding:22px 23px}.prose{line-height:1.65}.prose p{margin-bottom:17px;font-size:15px;color:#425d6b}.prose h3{font-size:16px;margin:4px 0 7px}.prose a{color:#236440;text-underline-offset:3px}.fineprint{font-size:12px!important;line-height:1.5;color:var(--muted)!important;margin-top:16px!important}#history-form label,.block-label{display:block;font-size:14px;font-weight:600}#history-form select,#history-form input,.block-label select{width:100%;padding:12px;border:1px solid #c5d3db;border-radius:9px;background:#fff;color:var(--ink);margin:7px 0 15px;min-width:0}.date-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.primary{display:block;width:100%;border:0;border-radius:10px;background:var(--ink);color:white;padding:13px;font-weight:600}.primary:hover{background:#254e62}#history-status{font-size:14px;color:var(--muted);margin:20px 0 12px}#history-chart svg{width:100%;height:160px;stroke-width:2;overflow:visible}.table-wrap{max-height:230px;overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:12px 8px;text-align:left;border-bottom:1px solid var(--line)}td:last-child,th:last-child{text-align:right}thead{position:sticky;top:0;background:#fff}.toggle-label{display:flex;align-items:center;justify-content:space-between;margin:20px 0;font-weight:600}.toggle-label input{accent-color:#275d40;width:24px;height:24px}.block-label{margin:20px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border:1px solid #426171;border-radius:14px;padding:15px 21px;box-shadow:0 8px 30px #0003;max-width:calc(100% - 32px);width:max-content;font-size:14px;z-index:10}.refresh-action.busy svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}@media(min-width:1100px){main{padding-top:49px}.calculator{margin-top:20px}.rates{gap:17px}.rate-card{padding:23px}.rate-card.selected{padding:22px}}
@media(max-width:600px){.topbar{height:73px;padding:0 22px}.brand{font-size:21px}main{padding:30px 18px 24px}h1{font-size:29px}.eyebrow{font-size:11px;letter-spacing:1.3px}.section-heading{margin-bottom:19px}.rates{gap:8px}.rate-card{padding:13px 10px;border-radius:13px}.rate-card.selected{padding:12px 9px}.rate-card.selected:after{right:8px;top:10px;width:17px;height:17px;line-height:17px;font-size:11px}.currency-icon{width:27px;height:27px;font-size:18px;margin-bottom:11px}.rate-label{font-size:14px;display:block}.rate-label small{display:block;background:none;padding:0;margin-top:3px;font-size:10px}.rate-value{font-size:clamp(20px,5.4vw,30px);letter-spacing:-.8px;margin-top:10px}.rate-unit{font-size:10px}.rate-date{font-size:10px;margin-top:10px}.status{font-size:11px;padding:11px 0 0;min-height:36px}.calculator{border-radius:19px;padding:22px 17px 21px;margin-top:10px}.calc-heading{margin-bottom:18px}h2{font-size:19px}.calc-badge{display:none}.amount-box{padding:15px}.amount-row input{font-size:33px}.amount-row select,.result-top select{font-size:13px;padding:9px 7px;max-width:145px}.result-box{padding:17px 16px 20px}.result-box output{font-size:43px;letter-spacing:-1.6px}.secondary-actions{gap:9px;margin-top:16px}.secondary-actions button{padding:14px 12px;font-size:13px;gap:7px}footer{padding-top:26px}.dialog-header,.dialog-body{padding:19px}dialog{max-height:90dvh}.date-fields{gap:9px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.header-actions{display:flex;align-items:center;gap:9px}.sun-icon{display:none}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e8f4f4;--muted:#a9bec6;--line:#294454;--surface:#162d3b;--bg:#0b1720}
:root[data-theme="dark"] .sun-icon{display:block}:root[data-theme="dark"] .moon-icon{display:none}
:root[data-theme="dark"] .brand-mark{background:var(--green);color:#132d3a}
:root[data-theme="dark"] .icon-button:hover{background:#23404e}
:root[data-theme="dark"] .rate-card:hover{border-color:#79a294}
:root[data-theme="dark"] .rate-label small{background:#25404c}
:root[data-theme="dark"] .rate-card.selected:after{color:#183628}
:root[data-theme="dark"] .calculator{background:#183342;box-shadow:0 14px 40px #0003}
:root[data-theme="dark"] .swap-row button{background:#183342;color:#e8f4f4;border-color:#77909b}
:root[data-theme="dark"] .swap-row button:hover{background:#2b4b5b}
:root[data-theme="dark"] .result-box{color:#122f40}
:root[data-theme="dark"] .secondary-actions button{background:var(--surface);color:var(--ink)}
:root[data-theme="dark"] .secondary-actions button:hover{background:#254353}
:root[data-theme="dark"] .secondary-actions svg{color:#a6cbd4}
:root[data-theme="dark"] .install{color:#bafa76}
:root[data-theme="dark"] footer{color:#a9bec6}
:root[data-theme="dark"] footer a{color:#bafa76}
:root[data-theme="dark"] dialog{background:var(--surface);color:var(--ink)}
:root[data-theme="dark"] .dialog-header{background:var(--surface)}
:root[data-theme="dark"] .close{background:#294454;color:var(--ink)}
:root[data-theme="dark"] .prose p{color:#c1d4dc}
:root[data-theme="dark"] .prose a{color:#bafa76}
:root[data-theme="dark"] #history-form select,:root[data-theme="dark"] #history-form input,:root[data-theme="dark"] .block-label select{background:#102532;color:var(--ink);border-color:#47606c}
:root[data-theme="dark"] .primary{background:#bafa76;color:#122f40}
:root[data-theme="dark"] .primary:hover{background:#a7e469}
:root[data-theme="dark"] thead{background:var(--surface)}
:root[data-theme="dark"] .toast{background:#254353;color:var(--ink)}

/* Copy action for the conversion result. */
.result-value-row{display:flex;align-items:center;gap:14px;margin:15px 0 8px}
.result-value-row output{flex:1;min-width:0;margin:0}
.copy-result{display:flex;align-items:center;gap:7px;flex:0 0 auto;border:1px solid #52733f;border-radius:12px;background:#fff;color:#173629;padding:11px 13px;font-size:13px;font-weight:750;box-shadow:0 3px 10px #244b1d1c;transition:transform .15s,background .15s}
.copy-result:hover{background:#f5fff0;transform:translateY(-1px)}
.copy-result:disabled{cursor:not-allowed;opacity:.48}
.copy-result.copied{background:#173629;color:#fff}
.copy-result svg{width:18px;height:18px}
@media(max-width:600px){.result-value-row{align-items:flex-end;gap:9px;flex-wrap:wrap}.copy-result{margin-left:auto;padding:10px 12px;border-radius:10px}}
:root[data-theme="dark"] .status.warning,:root[data-theme="dark"] .rate-date.warning{color:#f2c879}


/* Header, share menu and clearer controls. */
.refresh-action{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);padding:9px 13px;font-size:13px;font-weight:700;white-space:nowrap}.refresh-action:hover{background:#e6edef}.refresh-action svg{width:18px;height:18px}.share-header{background:var(--ink);color:var(--green);border-color:var(--ink)}.share-header:hover{background:#254e62}.compact-dialog{max-width:460px}.menu-list,.share-options{display:grid;gap:10px}.menu-list button,.menu-list a,.share-option{width:100%;display:flex;align-items:center;gap:13px;text-align:left;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);padding:14px 15px;text-decoration:none;font-weight:650}.menu-list button:hover,.menu-list a:hover,.share-option:hover:not(:disabled){background:#eef3f4}.menu-icon,.share-option-icon{width:39px;height:39px;border-radius:11px;background:#e9f1ed;display:grid;place-items:center;flex:0 0 auto}.menu-icon svg,.share-option-icon svg{width:20px;height:20px}.menu-note{font-size:12px;color:var(--muted);padding:2px 5px}.share-option>span:last-child{display:grid;gap:4px}.share-option strong{font-size:15px}.share-option small{font-size:12px;line-height:1.45;color:var(--muted);font-weight:400}.share-option:disabled{cursor:not-allowed;opacity:.62}.action-copy{display:flex;flex-direction:column;gap:2px;margin-left:0!important;align-items:flex-start}.action-copy small{color:var(--muted);font-size:10px;font-weight:500}.instagram-link{display:flex;align-items:center;gap:6px;color:inherit;text-decoration:none}.instagram-link svg{width:16px;height:16px}.secondary-actions button>span:last-child{margin-left:auto}.secondary-actions button>.action-copy{margin-left:0}.theme-button{width:auto;height:auto}
:root[data-theme="dark"] .refresh-action{background:var(--surface)}:root[data-theme="dark"] .refresh-action:hover,:root[data-theme="dark"] .menu-list button:hover,:root[data-theme="dark"] .menu-list a:hover,:root[data-theme="dark"] .share-option:hover:not(:disabled){background:#254353}:root[data-theme="dark"] .menu-icon,:root[data-theme="dark"] .share-option-icon{background:#294454}:root[data-theme="dark"] .share-header{background:var(--green);color:#122f40}
@media(max-width:600px){.topbar{padding:0 18px}.brand{gap:8px}.brand-mark{width:34px;height:34px}.header-actions{gap:7px}.refresh-action{padding:9px 11px}.refresh-action span{display:none}.section-heading{gap:12px}.secondary-actions .action-copy{line-height:1.2}footer{flex-wrap:wrap}.instagram-link{width:100%}}
@media(max-width:360px){.brand{font-size:19px}.brand-mark{width:32px;height:32px;font-size:22px}.icon-button{width:38px;height:38px}.topbar{padding:0 14px}.rate-card{padding:11px 8px}.rate-card.selected{padding:10px 7px}.secondary-actions{flex-direction:column}}

.action-copy{color:inherit!important}

