:root {
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #17201d;
  background: #f5f7f3;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #17201d;
  --muted: #65706c;
  --line: #dfe5df;
  --surface: #ffffff;
  --soft: #eef3ed;
  --green: #176b4d;
  --green-dark: #0f4e39;
  --lime: #d8f28d;
  --amber: #9a6415;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7f3; }
button, input, select { font: inherit; }
a { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(23, 107, 77, .28); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { min-height: 100vh; overflow: hidden; }
.topbar { position: relative; width: min(1440px, calc(100% - 64px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: inset 0 0 0 7px rgba(255,255,255,.09); }
.brand-mark::before { content: ""; width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.brand-mark span { position: absolute; width: 5px; height: 5px; background: var(--lime); border-radius: 50%; transform: translate(5px, -5px); }
.tool-navigation { position: absolute; left: 50%; display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.78); transform: translateX(-50%); box-shadow: 0 6px 24px rgba(30,54,45,.04); }
.tool-navigation button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.tool-navigation button.active { background: var(--ink); color: white; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.source-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 600; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ca675; box-shadow: 0 0 0 4px rgba(44,166,117,.12); }
.github-badge { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.75); color: var(--ink); font-size: 11px; font-weight: 750; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.github-badge:hover { color: white; background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.github-badge:focus-visible { outline: 3px solid rgba(23,107,77,.24); outline-offset: 2px; }
.currency-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.75); }
.currency-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 8px; font-size: 12px; font-weight: 750; cursor: pointer; }
.currency-toggle button.active { background: var(--ink); color: white; box-shadow: 0 3px 10px rgba(20,30,27,.14); }
main { width: min(1440px, calc(100% - 64px)); margin: 0 auto; }
.hero { min-height: 570px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; width: 540px; height: 540px; right: -210px; top: -110px; border: 1px solid rgba(23,107,77,.08); border-radius: 50%; box-shadow: 0 0 0 90px rgba(23,107,77,.025), 0 0 0 180px rgba(23,107,77,.018); pointer-events: none; }
.hero-copy { max-width: 780px; position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--green); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .18em; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cbdacf; background: rgba(255,255,255,.58); padding: 9px 12px; border-radius: 999px; }
.hero h1 { margin: 26px 0 20px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(52px, 6vw, 88px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero-copy > p { color: var(--muted); max-width: 650px; margin: 0; font-size: 16px; line-height: 1.9; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 7px; color: #4f5c57; font-size: 12px; font-weight: 650; }
.hero-card { position: relative; z-index: 1; background: var(--ink); color: white; border-radius: 28px; padding: 30px; min-height: 390px; box-shadow: 0 28px 70px rgba(18,36,29,.18); overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -85px; bottom: -110px; border: 1px solid rgba(216,242,141,.18); border-radius: 50%; box-shadow: 0 0 0 45px rgba(216,242,141,.035), 0 0 0 90px rgba(216,242,141,.02); }
.hero-card-top { display: flex; justify-content: space-between; align-items: center; color: #acb8b3; font-size: 12px; }
.rank-badge { color: var(--ink); background: var(--lime); padding: 6px 9px; border-radius: 999px; font-weight: 800; }
.lowest-country { display: flex; align-items: center; gap: 14px; margin-top: 50px; }
.large-flag { font-size: 38px; filter: drop-shadow(0 5px 10px rgba(0,0,0,.18)); }
.lowest-country div { display: flex; flex-direction: column; gap: 4px; }
.lowest-country strong { font-size: 20px; }
.lowest-country span:last-child { color: #94a29d; font-size: 12px; }
.lowest-price { margin-top: 28px; color: var(--lime); font-family: Georgia, serif; font-size: clamp(42px, 5vw, 66px); letter-spacing: -.04em; line-height: 1; }
.lowest-price small { display: block; margin-top: 12px; font: 500 11px/1 Inter, sans-serif; letter-spacing: .1em; color: #899892; }
.local-price-line { width: fit-content; margin-top: 24px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #93a09b; font-size: 12px; }
.local-price-line strong { color: white; margin-left: 5px; }
.hero-card-foot { position: absolute; left: 30px; bottom: 24px; display: flex; align-items: center; gap: 7px; color: #8e9d97; font-size: 10px; z-index: 1; }
.hero-skeleton { height: 150px; margin-top: 58px; border-radius: 18px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sample-banner { display: flex; align-items: center; gap: 9px; margin: -4px 0 24px; padding: 13px 16px; border-radius: 12px; background: #fff7e7; border: 1px solid #eddcb9; color: #805a19; font-size: 12px; }
.error-state { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid #e6c9c6; background: #fff3f2; border-radius: 16px; color: #8c3b34; }
.error-state div { display: flex; flex-direction: column; gap: 4px; }
.error-state span { font-size: 12px; opacity: .8; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.72); overflow: hidden; }
.metric-card { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto auto; align-content: center; column-gap: 12px; }
.metric-card:last-child { border-right: 0; }
.metric-icon { grid-row: 1 / 4; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: var(--soft); border-radius: 10px; align-self: start; }
.metric-card > span { color: var(--muted); font-size: 11px; }
.metric-card > strong { margin: 5px 0 3px; font-family: Georgia, serif; font-size: 24px; font-weight: 600; }
.metric-card > small { color: #8b9591; font-size: 10px; }
.explorer { margin-top: 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 38px; font-weight: 500; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 12px; }
.section-heading p strong { color: var(--ink); }
.controls { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto auto; gap: 10px; margin-bottom: 16px; }
.search-control, .select-control { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.search-control input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-control input::placeholder { color: #9ca6a2; }
.select-control > span { font-size: 10px; font-weight: 800; white-space: nowrap; color: #87928e; }
.select-control select { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; }
.sort-control { background: var(--ink); border-color: var(--ink); color: white; }
.sort-control select { color: white; }
.sort-control option { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 14px 45px rgba(25,48,39,.04); }
table { width: 100%; min-width: 1160px; border-collapse: collapse; text-align: left; }
th { padding: 15px 20px; color: #7a8581; background: #f0f3ef; border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 18px 20px; border-bottom: 1px solid #edf0ed; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #f9fbf8; }
.country-cell { display: flex; align-items: center; gap: 12px; }
.rank { width: 24px; color: #a4ada9; font: 600 10px/1 monospace; }
.flag { font-size: 25px; line-height: 1; }
.country-cell div, .price-card-country div { display: flex; flex-direction: column; gap: 4px; }
.country-cell strong, .price-card-country strong { font-size: 13px; }
.country-cell div span, .price-card-country div span { color: #8a9490; font-size: 10px; }
.local-amount { display: block; font-size: 14px; }
.per-user { display: block; margin-top: 4px; color: #929c98; font-size: 9px; }
.converted-amount { color: var(--green); font: 600 20px/1 Georgia, serif; }
.tax-badge, .status-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 8px; border-radius: 7px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.tax-badge.inclusive { color: #286c53; background: #e8f3ed; }
.tax-badge.exclusive { color: #85601f; background: #fff4dd; }
.status-badge.fresh { color: #356c57; background: #eef6f1; }
.status-badge.stale { color: #98631d; background: #fff5e4; }
.status-badge > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.updated-time { display: block; margin-top: 5px; color: #9aa39f; font-size: 9px; }
.source-link { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--green); transition: .18s ease; }
.source-link:hover { background: var(--green); border-color: var(--green); color: white; transform: translateY(-1px); }
.row-actions { display: flex; align-items: center; gap: 7px; }
.generate-row-button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid #cbdacf; border-radius: 9px; background: #f4f8f2; color: var(--green); font-size: 10px; font-weight: 750; cursor: pointer; white-space: nowrap; transition: .18s ease; }
.generate-row-button:hover { border-color: var(--green); background: var(--green); color: white; transform: translateY(-1px); }
.generate-row-button:disabled { border-color: var(--line); background: #f3f4f2; color: #a8afac; cursor: not-allowed; transform: none; }
.price-cards { display: none; }
.loading-rows { border: 1px solid var(--line); border-radius: 18px; background: white; overflow: hidden; }
.loading-rows span { display: block; height: 76px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fff, #f1f4f0, #fff); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.loading-rows span:last-child { border-bottom: 0; }
.empty-state { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; border: 1px dashed #cdd5d0; border-radius: 18px; color: #8b9691; font-size: 12px; }
.explainers { margin: 90px 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.explainers article { padding: 36px 34px 40px 0; border-right: 1px solid var(--line); }
.explainers article + article { padding-left: 34px; }
.explainers article:last-child { border-right: 0; }
.explainer-number { color: var(--green); font: 700 10px/1 monospace; }
.explainers h3 { margin: 18px 0 10px; font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; font-weight: 600; }
.explainers p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.disclaimer { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border-radius: 16px; background: #ebefea; color: #66716c; }
.disclaimer > svg { flex: 0 0 auto; margin-top: 2px; }
.disclaimer p { margin: 0; font-size: 11px; line-height: 1.8; }
.disclaimer strong { color: var(--ink); }
.disclaimer a { display: inline-flex; align-items: center; gap: 3px; margin-left: 5px; color: var(--green); font-weight: 700; text-decoration: none; }

.generator-page { padding-top: 56px; }
.generator-hero { min-height: 330px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.generator-hero > div:first-child { max-width: 820px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 30px; padding: 0 0 6px; border: 0; border-bottom: 1px solid #b7c3bc; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.generator-hero h1 { margin: 24px 0 18px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(46px, 5vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.generator-hero h1 em { color: var(--green); font-style: normal; }
.generator-hero > div:first-child > p { max-width: 690px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.generator-promise { display: flex; align-items: flex-start; gap: 13px; padding: 22px; border: 1px solid #cfdacf; border-radius: 18px; background: rgba(255,255,255,.68); color: var(--green); box-shadow: 0 15px 40px rgba(28,54,43,.05); }
.generator-promise div { display: flex; flex-direction: column; gap: 6px; }
.generator-promise strong { color: var(--ink); font-size: 13px; }
.generator-promise span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.generator-tool-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 12px; }
.generator-tool-tabs button { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.68); color: var(--muted); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.generator-tool-tabs button:hover { border-color: #b9c8bd; transform: translateY(-1px); }
.generator-tool-tabs button.active { border-color: var(--green); background: var(--green); color: white; box-shadow: 0 9px 22px rgba(23,107,77,.14); }
.generator-tool-tabs button > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.generator-tool-tabs strong { font-size: 11px; }
.generator-tool-tabs small { color: inherit; font-size: 8px; opacity: .72; }
.generator-workspace { display: grid; grid-template-columns: minmax(370px, .8fr) minmax(0, 1.2fr); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: 0 24px 70px rgba(21,48,37,.07); overflow: hidden; }
.generator-form-panel, .generator-result-panel { min-width: 0; padding: 34px; }
.generator-form-panel { border-right: 1px solid var(--line); }
.generator-result-panel { background: #f0f3ef; }
.generator-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.generator-section-head h2 { margin: 7px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.tool-description { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.live-preview { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.live-preview > span { width: 7px; height: 7px; border-radius: 50%; background: #2ca675; box-shadow: 0 0 0 4px rgba(44,166,117,.12); }
.generator-form-panel form { margin-top: 28px; }
.generator-field { display: block; margin-bottom: 18px; }
.generator-field > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.generator-field > span strong { font-size: 12px; }
.generator-field > span small { color: #8a9490; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.generator-field > input, .generator-field > select, .iso-input { width: 100%; height: 49px; border: 1px solid #d7ddd7; border-radius: 11px; background: white; transition: border-color .18s ease, box-shadow .18s ease; }
.generator-field > input, .generator-field > select { padding: 0 13px; color: var(--ink); outline: 0; }
.generator-field > select { cursor: pointer; }
.generator-field > input:focus, .generator-field > select:focus, .iso-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,77,.1); }
.generator-field.has-error > input, .generator-field.has-error > select, .generator-field.has-error .iso-input { border-color: #bd5b4f; }
.generator-field > em { display: block; margin-top: 7px; color: #a74338; font-size: 9px; font-style: normal; }
.token-source-field { margin: 0 0 18px; padding: 0; border: 0; }
.token-source-field legend { margin-bottom: 8px; font-size: 12px; font-weight: 750; }
.token-source-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.token-source-options label { position: relative; display: flex; min-height: 61px; align-items: center; padding: 11px 12px; border: 1px solid #d7ddd7; border-radius: 11px; background: white; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.token-source-options label.active { border-color: var(--green); background: #f1f7f1; box-shadow: 0 0 0 2px rgba(23,107,77,.07); }
.token-source-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.token-source-options label::before { width: 13px; height: 13px; flex: 0 0 auto; margin-right: 9px; border: 1px solid #aab5ae; border-radius: 50%; background: white; content: ""; box-shadow: inset 0 0 0 3px white; }
.token-source-options label.active::before { border-color: var(--green); background: var(--green); }
.token-source-options span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.token-source-options strong { font-size: 10px; }
.token-source-options small { color: #87918d; font-size: 8px; line-height: 1.4; }
.token-value-field { margin-top: -2px; }
.token-value-field > input { font: 600 11px/1.4 "SFMono-Regular", Consolas, monospace; }
.generator-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iso-input { display: grid; grid-template-columns: auto 1fr; align-items: center; }
.iso-input b { padding-left: 12px; color: #87918d; font: 700 9px/1 monospace; }
.iso-input input { width: 100%; height: 47px; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 750 15px/1 monospace; letter-spacing: .12em; text-transform: uppercase; }
.field-note { display: block; min-height: 14px; margin-top: 7px; color: #87918d; font-size: 9px; }
.quick-currency-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -3px; }
.quick-currency-row > span { margin-right: 3px; color: var(--muted); font-size: 9px; }
.quick-currency-row button { padding: 5px 7px; border: 1px solid #d2d9d3; border-radius: 7px; background: white; color: var(--muted); font: 700 9px/1 monospace; cursor: pointer; }
.quick-currency-row button.active, .quick-currency-row button:hover { border-color: var(--green); background: var(--soft); color: var(--green); }
.generate-button { display: flex; width: 100%; align-items: center; gap: 8px; margin-top: 24px; padding: 15px 16px; border: 0; border-radius: 11px; background: var(--ink); color: white; font-size: 12px; font-weight: 750; cursor: pointer; box-shadow: 0 9px 22px rgba(23,32,29,.13); transition: transform .18s ease, background .18s ease; }
.generate-button span { margin-left: auto; }
.generate-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.generator-steps { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.generator-steps > span { color: var(--green); font: 800 9px/1 monospace; letter-spacing: .1em; text-transform: uppercase; }
.generator-steps ol { margin: 12px 0 0; padding-left: 19px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.generator-steps p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.generator-checkbox { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--muted); font-size: 10px; cursor: pointer; }
.generator-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.billing-scope-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; padding: 14px; border: 1px solid #d8dfd9; border-radius: 11px; background: #f3f6f2; color: var(--green); }
.billing-scope-note > svg { flex: 0 0 auto; }
.billing-scope-note div { display: flex; flex-direction: column; gap: 5px; }
.billing-scope-note strong { color: var(--ink); font-size: 11px; }
.billing-scope-note span { color: var(--muted); font-size: 9px; line-height: 1.6; }
.billing-scope-note code { padding: 1px 4px; border-radius: 4px; background: #e4eae4; color: var(--green-dark); font: 700 8px/1 monospace; }
.result-head { align-items: center; }
.code-actions { display: flex; align-items: center; gap: 7px; }
.code-actions button { display: inline-flex; height: 35px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #cbd3cc; border-radius: 9px; background: white; color: var(--ink); font-size: 9px; font-weight: 750; cursor: pointer; }
.code-actions .copy-code { border-color: var(--green); background: var(--green); color: white; }
.code-actions button[aria-disabled="true"] { opacity: .52; }
.code-actions button:hover { transform: translateY(-1px); }
.code-preview { margin-top: 20px; overflow: hidden; border-radius: 16px; background: #151b18; box-shadow: 0 18px 45px rgba(20,30,26,.17); }
.code-titlebar { display: grid; grid-template-columns: 8px 8px 8px 1fr; align-items: center; gap: 6px; height: 39px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.08); background: #1e2521; }
.code-titlebar > span { width: 7px; height: 7px; border-radius: 50%; background: #ef6a5b; }
.code-titlebar > span:nth-child(2) { background: #e7b94f; }
.code-titlebar > span:nth-child(3) { background: #65bd70; }
.code-titlebar small { margin-left: 6px; color: #748079; font: 500 9px/1 monospace; }
.code-preview pre { max-height: 570px; margin: 0; overflow: auto; padding: 20px; scrollbar-color: #48534c #151b18; }
.code-preview code { color: #dfe9df; font: 11px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; tab-size: 2; }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: #77817c; font-size: 9px; }
.result-meta span, .result-meta button { display: inline-flex; align-items: center; gap: 5px; }
.result-meta button { padding: 0 0 4px; border: 0; border-bottom: 1px solid #bdc6bf; background: transparent; color: #67726d; font-size: 9px; cursor: pointer; }
.generator-disclaimer { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #ebefea; color: #66716c; }
.generator-disclaimer svg { flex: 0 0 auto; margin-top: 1px; }
.generator-disclaimer p { margin: 0; font-size: 10px; line-height: 1.8; }
.generator-disclaimer strong { color: var(--ink); }
.generator-toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 12px 15px; border: 1px solid #aabea9; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 750; box-shadow: 0 12px 30px rgba(23,32,29,.16); }
footer { width: min(1440px, calc(100% - 64px)); margin: 80px auto 0; padding: 32px 0 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 30px; color: #88928e; font-size: 9px; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-mark::before { width: 14px; height: 14px; }
footer p { text-align: center; line-height: 1.7; }
footer > span:last-child { text-align: right; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 1040px) {
  .source-pill { display: none; }
  .topbar-actions { gap: 8px; }
  .hero { grid-template-columns: 1fr .8fr; gap: 36px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .controls { grid-template-columns: 1fr 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .generator-hero { gap: 36px; }
  .generator-workspace { grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); }
  .generator-form-panel, .generator-result-panel { padding: 28px; }
  .generator-field-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 760px) {
  .topbar, main, footer { width: min(100% - 32px, 680px); }
  .topbar { height: auto; min-height: 74px; flex-wrap: wrap; gap: 11px; padding: 13px 0; }
  .topbar-actions { gap: 8px; }
  .source-pill { display: none; }
  .brand small { display: none; }
  .tool-navigation { position: static; order: 3; width: 100%; transform: none; }
  .tool-navigation button { flex: 1; justify-content: center; }
  .github-badge { width: 36px; height: 36px; padding: 0; }
  .github-badge span { display: none; }
  .currency-toggle button { padding: 7px 9px; font-size: 10px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 64px 0 46px; }
  .hero::before { width: 360px; height: 360px; right: -250px; }
  .hero h1 { margin-top: 22px; font-size: clamp(45px, 14vw, 68px); }
  .hero-copy > p { font-size: 14px; line-height: 1.8; }
  .hero-notes { gap: 12px 18px; margin-top: 24px; }
  .hero-card { min-height: 365px; padding: 26px; }
  .hero-card-foot { left: 26px; right: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 132px; padding: 18px; grid-template-columns: 30px 1fr; column-gap: 9px; }
  .metric-icon { width: 30px; height: 30px; }
  .metric-card > strong { font-size: 19px; }
  .explorer { margin-top: 64px; }
  .section-heading { align-items: flex-end; }
  .section-heading h2 { font-size: 30px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .sort-control { grid-column: 1 / -1; justify-content: center; }
  .table-wrap { display: none; }
  .price-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .price-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 10px 28px rgba(28,50,42,.04); }
  .price-card-head { display: flex; justify-content: space-between; align-items: center; }
  .mobile-rank { color: var(--green); font: 700 10px/1 monospace; }
  .price-card-country { display: flex; align-items: center; gap: 12px; margin-top: 19px; }
  .price-card-country .flag { font-size: 30px; }
  .mobile-price { margin-top: 20px; color: var(--green); font: 600 34px/1 Georgia, serif; }
  .mobile-price small { display: block; margin-top: 7px; color: #95a09b; font: 500 9px/1 Inter, sans-serif; }
  .mobile-details { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 10px; }
  .mobile-details strong { color: var(--ink); margin-left: 4px; }
  .price-card > a { display: inline-flex; align-items: center; gap: 4px; margin-top: 18px; color: var(--green); font-size: 10px; font-weight: 750; text-decoration: none; }
  .mobile-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .mobile-card-actions button, .mobile-card-actions a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; margin: 0; border: 1px solid #cbdacf; border-radius: 9px; background: #f4f8f2; color: var(--green); font-size: 10px; font-weight: 750; text-decoration: none; }
  .mobile-card-actions button { cursor: pointer; }
  .mobile-card-actions button:disabled { color: #a8afac; cursor: not-allowed; }
  .generator-page { padding-top: 40px; }
  .generator-hero { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-bottom: 42px; }
  .generator-hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .generator-hero > div:first-child > p { font-size: 13px; }
  .generator-workspace { grid-template-columns: 1fr; }
  .generator-tool-tabs { grid-template-columns: 1fr; }
  .generator-tool-tabs button { min-height: 58px; }
  .generator-form-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .generator-field-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .code-preview pre { max-height: 480px; }
  .explainers { grid-template-columns: 1fr; margin-top: 64px; }
  .explainers article, .explainers article + article { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .explainers article:last-child { border-bottom: 0; }
  footer { margin-top: 56px; grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  footer p, footer > span:last-child { text-align: center; margin: 0; }
}

@media (max-width: 430px) {
  .topbar, main, footer { width: calc(100% - 24px); }
  .brand strong { font-size: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { padding-top: 48px; }
  .hero-notes span:last-child { display: none; }
  .metrics { grid-template-columns: 1fr; }
  .metric-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-card:last-child { border-bottom: 0; }
  .controls { grid-template-columns: 1fr; }
  .search-control, .sort-control { grid-column: auto; }
  .section-heading p { display: none; }
  .generator-form-panel, .generator-result-panel { padding: 22px 16px; }
  .generator-tool-tabs button { padding: 11px 13px; }
  .generator-field-grid { grid-template-columns: 1fr; gap: 0; }
  .token-source-options { grid-template-columns: 1fr; }
  .result-head { align-items: flex-end; }
  .code-actions button:first-child { display: none; }
  .code-preview pre { padding: 16px; }
  .code-preview code { font-size: 10px; }
  .result-meta { align-items: flex-start; }
}
