:root {
  color-scheme: dark;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #edf7f7;
  --muted: #8da4b3;
  --muted-2: #668091;
  --base: #07111d;
  --panel: rgba(13, 28, 43, .91);
  --panel-soft: #0c1b2a;
  --line: rgba(150, 182, 198, .15);
  --neon: #2de2a6;
  --neon-dim: rgba(45, 226, 166, .13);
  --blue: #5aa9ff;
  --warn: #ff9b7a;
  --display: 'Space Grotesk', 'Be Vietnam Pro', sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--base); }
body { position: relative; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: radial-gradient(ellipse at 84% 15%, rgba(20, 93, 112, .17), transparent 31rem), radial-gradient(ellipse at 10% 58%, rgba(23, 83, 108, .10), transparent 30rem), var(--base); }
body::before { position: fixed; z-index: 0; inset: 0; pointer-events: none; content: ''; opacity: .18; background-image: linear-gradient(rgba(119, 168, 192, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 168, 192, .075) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
button, input, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; z-index: 0; width: 22rem; height: 22rem; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .13; }
.ambient-one { top: 22%; right: -15rem; background: #21dba3; }
.ambient-two { top: 55%; left: -17rem; background: #247dff; opacity: .12; }
.page-shell { position: relative; z-index: 1; width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(154, 186, 199, .11); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--neon); background: rgba(45, 226, 166, .075); border: 1px solid rgba(45, 226, 166, .2); border-radius: 12px; box-shadow: inset 0 0 18px rgba(45, 226, 166, .06); }
.brand-mark svg { width: 29px; height: 29px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; font-weight: 700; letter-spacing: -.04em; }
.brand-copy small { color: var(--muted-2); font: 600 8px/1 var(--display); letter-spacing: .16em; }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: #b6c9d1; font: 600 9px/1 var(--display); letter-spacing: .13em; }
.live-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px rgba(45, 226, 166, .75); }
.live-dot { animation: pulse 2s infinite; }
.source-link, .footer a { color: #b5c9d2; font-size: 11px; transition: color .2s ease; }
.source-link:hover, .footer a:hover { color: var(--neon); }
.source-link span, .footer a span { color: var(--neon); padding-left: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(470px, 1.05fr); gap: clamp(50px, 8vw, 110px); align-items: center; padding: 82px 0 70px; }
.hero-copy { padding: 8px 0 0 2px; }
.eyebrow, .card-kicker { display: flex; align-items: center; gap: 10px; color: var(--neon); font: 600 9px/1.4 var(--display); letter-spacing: .16em; }
.eyebrow-line { width: 23px; height: 1px; background: var(--neon); box-shadow: 0 0 8px rgba(45, 226, 166, .8); }
h1 { margin: 22px 0 18px; font: 600 clamp(37px, 4vw, 54px)/1.12 var(--display); letter-spacing: -.065em; }
h1 span { color: var(--neon); }
.hero-description { max-width: 390px; margin: 0; color: #96acb9; font-size: 13px; line-height: 1.9; }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin-top: 28px; color: #75909f; font-size: 10px; }
.sparkle { color: var(--neon); font-size: 15px; }
.converter-card { position: relative; padding: 25px 27px 18px; overflow: hidden; background: linear-gradient(145deg, rgba(18, 37, 54, .96), rgba(10, 24, 38, .96)); border: 1px solid rgba(143, 180, 195, .20); border-radius: 21px; box-shadow: 0 24px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035); }
.converter-card::before { position: absolute; top: -95px; right: -82px; width: 190px; height: 190px; content: ''; pointer-events: none; border-radius: 50%; border: 1px solid rgba(45, 226, 166, .1); box-shadow: 0 0 0 20px rgba(45, 226, 166, .018), 0 0 0 41px rgba(45, 226, 166, .014); }
.card-topline { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-kicker { margin-bottom: 6px; color: #7f9aaa; font-size: 8px; letter-spacing: .18em; }
.card-topline h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.icon-button { display: grid; width: 37px; height: 37px; place-items: center; cursor: pointer; color: #9db4c0; background: rgba(146, 178, 192, .07); border: 1px solid rgba(146, 178, 192, .14); border-radius: 11px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.icon-button:hover { color: var(--neon); background: var(--neon-dim); border-color: rgba(45, 226, 166, .35); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.field-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.field-label-row > label { color: #8fa9b7; font: 600 8px/1.2 var(--display); letter-spacing: .14em; }
.field-hint { color: #607988; font-size: 9px; }
.money-field { display: flex; position: relative; min-height: 67px; align-items: center; background: rgba(2, 11, 20, .48); border: 1px solid rgba(137, 173, 189, .18); border-radius: 13px; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.money-field:focus-within { background: rgba(4, 15, 24, .76); border-color: rgba(45, 226, 166, .52); box-shadow: 0 0 0 3px rgba(45, 226, 166, .07); }
.amount-field { padding-left: 16px; }
.amount-field input { width: 100%; min-width: 0; padding: 0 7px 0 0; color: var(--ink); font: 600 26px/1 var(--display); letter-spacing: -.045em; background: transparent; border: 0; outline: 0; }
.amount-field input::-webkit-outer-spin-button, .amount-field input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.amount-field input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.amount-field input::placeholder { color: #526a79; }
.field-divider { width: 1px; height: 31px; flex: 0 0 auto; background: rgba(141, 170, 185, .18); }
.select-wrap { position: relative; display: flex; min-width: 131px; height: 100%; flex: 0 0 142px; align-items: center; }
.select-wrap select { width: 100%; height: 64px; padding: 0 30px 0 13px; overflow: hidden; color: #dce9eb; font: 600 12px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; appearance: none; background: transparent; border: 0; outline: none; }
.select-wrap select:focus-visible { color: var(--neon); }
.select-wrap option, .select-wrap optgroup { color: #e5f1f2; background: #112436; }
.select-chevron { position: absolute; right: 13px; top: 50%; color: var(--neon); font-size: 17px; pointer-events: none; transform: translateY(-55%); }
.field-error { min-height: 12px; margin: 6px 2px -2px; color: var(--warn); font-size: 9px; }
.field-error:empty { visibility: hidden; }
.swap-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 3px; }
.swap-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(133, 166, 180, .17), rgba(133, 166, 180, .05)); }
.swap-line:last-child { transform: rotate(180deg); }
.swap-button { display: grid; width: 31px; height: 31px; place-items: center; color: var(--neon); cursor: pointer; background: rgba(45, 226, 166, .08); border: 1px solid rgba(45, 226, 166, .23); border-radius: 50%; transition: transform .26s ease, background .2s ease, box-shadow .2s ease; }
.swap-button:hover { transform: rotate(180deg); background: rgba(45, 226, 166, .16); box-shadow: 0 0 14px rgba(45, 226, 166, .13); }
.swap-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.receive-label-row { margin-bottom: 9px; }
.target-field { min-height: 72px; padding-left: 16px; border-color: rgba(45, 226, 166, .29); background: linear-gradient(100deg, rgba(45, 226, 166, .075), rgba(2, 11, 20, .5) 43%); }
.converted-amount { width: 100%; min-width: 0; overflow: hidden; color: var(--neon); font: 600 clamp(19px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.055em; text-overflow: ellipsis; white-space: nowrap; }
.target-field .select-wrap { flex-basis: 142px; }
.rate-summary { display: flex; align-items: center; gap: 11px; min-height: 56px; margin-top: 14px; padding: 9px 11px; background: rgba(124, 154, 171, .055); border: 1px solid rgba(145, 174, 188, .10); border-radius: 11px; }
.rate-equals { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; color: var(--neon); font: 600 19px/1 var(--display); background: rgba(45, 226, 166, .08); border-radius: 8px; }
.rate-copy { flex: 1; min-width: 0; color: #dce8e9; font: 500 10px/1.45 var(--display); }
.rate-date { margin-top: 2px; color: #748d9d; font: 400 9px/1.4 'Be Vietnam Pro', sans-serif; }
.rate-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #83bda9; font-size: 8px; }
.rate-status .status-dot { width: 5px; height: 5px; }
.rate-status.is-loading .status-dot { background: #f4bd67; box-shadow: 0 0 8px rgba(244, 189, 103, .5); animation: pulse 1s infinite; }
.rate-status.is-error { color: #ffab92; }
.rate-status.is-error .status-dot { background: #ff826b; box-shadow: 0 0 8px rgba(255, 130, 107, .5); }
.rate-status.is-stale { color: #ffd083; }
.rate-status.is-stale .status-dot { background: #ffbf5b; box-shadow: 0 0 8px rgba(255, 191, 91, .45); }
.card-bottom-note { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #6f8998; font-size: 9px; }
.shield-icon { display: inline-grid; width: 13px; height: 13px; place-items: center; color: var(--neon); font: 700 9px/1 var(--display); border: 1px solid rgba(45, 226, 166, .32); border-radius: 50%; }
.trust-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 6px 0 0; padding: 23px 25px; background: rgba(9, 22, 35, .54); border: 1px solid rgba(145, 174, 188, .12); border-radius: 15px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; color: var(--neon); font: 500 20px/1 var(--display); background: rgba(45, 226, 166, .075); border: 1px solid rgba(45, 226, 166, .13); border-radius: 11px; }
.arrows-icon { font-size: 17px; }
.globe-icon { font-size: 21px; }
.trust-item > div { display: grid; gap: 4px; }
.trust-item strong { color: #dce8ea; font-size: 10px; font-weight: 600; }
.trust-item span:not(.trust-icon) { color: #718a99; font-size: 9px; }
.trust-separator { width: 1px; height: 30px; flex: 0 0 auto; background: rgba(143, 175, 190, .13); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 28px; color: #5e7787; font-size: 9px; }
.footer p { margin: 0; text-align: center; }
.footer a { flex: 0 0 auto; color: #7d96a5; font-size: 9px; }
.is-refreshing .refresh-button svg { animation: spin .9s linear infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .page-shell { width: min(760px, calc(100% - 48px)); }
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 56px 0 45px; }
  .hero-copy { max-width: 620px; }
  h1 { max-width: 600px; }
  .hero-description { max-width: 520px; }
  .converter-card { width: 100%; max-width: 620px; justify-self: center; }
  .trust-strip { gap: 15px; }
  .trust-item { gap: 10px; }
}

@media (max-width: 620px) {
  .page-shell { width: calc(100% - 32px); }
  .topbar { min-height: 72px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-copy strong { font-size: 14px; }
  .topbar-right { gap: 0; }
  .live-indicator { font-size: 8px; letter-spacing: .08em; }
  .source-link { display: none; }
  .hero { gap: 29px; padding: 43px 0 34px; }
  .hero-copy { padding-left: 0; }
  .eyebrow { font-size: 8px; }
  h1 { margin: 17px 0 13px; font-size: clamp(34px, 9vw, 44px); }
  .hero-description { max-width: 440px; font-size: 12px; line-height: 1.8; }
  .hero-footnote { margin-top: 17px; font-size: 9px; }
  .converter-card { padding: 21px 16px 16px; border-radius: 17px; }
  .card-topline { margin-bottom: 21px; }
  .card-topline h2 { font-size: 16px; }
  .field-hint { font-size: 8px; }
  .money-field { min-height: 62px; }
  .amount-field { padding-left: 12px; }
  .amount-field input { font-size: 23px; }
  .select-wrap, .target-field .select-wrap { min-width: 112px; flex-basis: 120px; }
  .select-wrap select { height: 59px; padding-left: 9px; padding-right: 24px; font-size: 11px; }
  .select-chevron { right: 9px; }
  .target-field { min-height: 67px; padding-left: 12px; }
  .converted-amount { font-size: clamp(18px, 5vw, 23px); }
  .rate-summary { gap: 8px; padding: 9px; }
  .rate-copy { font-size: 9px; }
  .rate-date { font-size: 8px; }
  .rate-status { gap: 4px; font-size: 7px; }
  .trust-strip { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 3px; padding: 3px 16px; }
  .trust-item { min-height: 65px; }
  .trust-separator { width: 100%; height: 1px; background: rgba(143, 175, 190, .1); }
  .trust-icon { width: 32px; height: 32px; }
  .trust-item strong { font-size: 9px; }
  .trust-item span:not(.trust-icon) { font-size: 8px; }
  .footer { align-items: flex-start; flex-wrap: wrap; gap: 8px 15px; padding: 20px 0 25px; font-size: 8px; }
  .footer p { order: 3; flex-basis: 100%; text-align: left; line-height: 1.7; }
  .footer a { margin-left: auto; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
