/* aipricehub · "price ledger": warm ink, amber accent, hairline rules, tabular numbers. */
:root {
  color-scheme: dark;
  --bg:#0e0d0b; --surface:#161512; --surface-2:#1e1c18; --raised:#211f1b; --field:#12110e;
  --text:#f2efe8; --muted:#a8a294; --faint:#78736a;
  --line:#2b2924; --soft-line:#211f1b; --strong-line:#3b382f;
  --accent:#f0b549; --accent-strong:#f0b549; --accent-soft:rgb(240 181 73 / .12); --accent-ink:#1a1205;
  --link:#f2efe8; --focus:#f0b549; --hover:rgb(255 248 230 / .035);
  --ok-bg:rgb(240 181 73 / .14); --ok:#f6c86e; --warn-bg:rgb(240 138 122 / .13); --warn:#f3a093;
  --up:#f08a7a; --down:#7cc9a8;
  --header:rgb(14 13 11 / .9); --shadow:0 16px 36px rgb(0 0 0 / .4);
  --sans:"Twemoji Country Flags",Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  --mono:"Twemoji Country Flags",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#f7f5f0; --surface:#fffdf9; --surface-2:#f0ece3; --raised:#fff; --field:#fffdf9;
  --text:#1b1a17; --muted:#5e594f; --faint:#8a8478;
  --line:#e3ded2; --soft-line:#ece8de; --strong-line:#cfc8b8;
  --accent:#a3620a; --accent-strong:#a3620a; --accent-soft:#f6ead2; --accent-ink:#fff;
  --link:#1b1a17; --focus:#a3620a; --hover:rgb(27 26 23 / .03);
  --ok-bg:#f6ead2; --ok:#8a5208; --warn-bg:#fbe5df; --warn:#9c3a28;
  --up:#b5412c; --down:#1f7a5a;
  --header:rgb(247 245 240 / .92); --shadow:0 16px 36px rgb(27 26 23 / .1);
}

/* ---------- base ---------- */
@font-face{font-family:"Twemoji Country Flags";src:url(/assets/flags.9f04f14429bb.woff2) format("woff2");unicode-range:U+1F1E6-1F1FF;font-display:swap}
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:80px;-webkit-text-size-adjust:100%;background:var(--bg)}
[hidden]{display:none!important}
body{margin:0;min-height:100vh;color:var(--text);background:var(--bg);font:15px/1.6 var(--sans);-webkit-font-smoothing:antialiased;font-feature-settings:"tnum" 1}
a{color:var(--link);text-decoration:none}
a:hover{color:var(--accent)}
button,input,select{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:4px}
svg{display:block;width:1.1rem;height:1.1rem;flex:none}
h1,h2,h3{font-weight:700;letter-spacing:-.01em}
:lang(en) h1{letter-spacing:-.025em}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip:focus{position:fixed;top:.7rem;left:.7rem;z-index:10;padding:.5rem .7rem;border-radius:6px;background:var(--surface);border:1px solid var(--line)}
.container{width:min(1160px,calc(100% - 48px));margin-inline:auto}
.num{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600}
.cur{font:600 .72rem var(--mono);color:var(--faint)}

/* ---------- top bar ---------- */
.top{position:sticky;top:0;z-index:6;border-bottom:1px solid var(--line);background:var(--header);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.top-inner{display:flex;align-items:center;gap:28px;width:min(1160px,calc(100% - 48px));min-height:60px;margin-inline:auto}
.brand,.footer-brand{display:flex;align-items:center;gap:9px;color:var(--text);font-weight:700;letter-spacing:-.02em;white-space:nowrap}
.brand{font-size:1rem}
.brand:hover{color:var(--text)}
.symbol{width:26px;height:26px;display:grid;place-items:center;flex:none;border-radius:6px;background:var(--accent);color:var(--accent-ink)}
.symbol svg{width:16px;height:16px;stroke-width:2.3}
.top-inner nav{display:flex;align-items:stretch;align-self:stretch;gap:2px;flex:1;min-width:0}
.navlink{position:relative;display:inline-flex;align-items:center;padding:0 11px;color:var(--muted);font-size:.86rem;font-weight:500;white-space:nowrap}
.navlink:hover{color:var(--text)}
.navlink.current{color:var(--text);font-weight:600}
.navlink.current::after{content:"";position:absolute;left:11px;right:11px;bottom:-1px;height:2px;background:var(--accent)}
.nav-actions{display:flex;gap:6px;align-items:center;flex:none}
.top-search label{position:relative;display:block}
.top-search svg{position:absolute;left:10px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--faint);pointer-events:none}
.top-search input{width:180px;min-height:32px;padding:4px 10px 4px 31px;border:1px solid var(--line);border-radius:7px;background:var(--field);font-size:.82rem}
.top-search input:focus{width:220px}
.locale{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border:1px solid var(--line);border-radius:7px;background:transparent;color:var(--muted);font-size:.8rem;font-weight:500;cursor:pointer;white-space:nowrap}
.locale:hover{color:var(--text);border-color:var(--strong-line)}

/* ---------- home ---------- */
.home-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:48px;align-items:start;padding:64px 0 40px}
.hero-copy{padding-top:12px}
.hero-kicker,.eyebrow{margin:0;font:600 .76rem var(--mono);letter-spacing:.06em;color:var(--accent);text-transform:uppercase}
.home-hero h1{margin:18px 0 18px;font-size:clamp(2.3rem,4.6vw,3.6rem);font-weight:800;line-height:1.14}
.home-hero h1 span,.home-hero h1 em{display:block}
.home-hero h1 em{font-style:normal;color:var(--accent)}
.hero-lede{margin:0;max-width:520px;color:var(--muted);font-size:1.02rem;line-height:1.8}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font-weight:600;font-size:.9rem;cursor:pointer}
.btn:hover{color:var(--text);border-color:var(--strong-line);background:var(--surface-2)}
.btn.accent{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.accent:hover{color:var(--accent-ink);filter:brightness(1.06)}
.btn svg{width:16px;height:16px}
.hero-tiles{display:grid;gap:12px}
.tile{border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.tile-head{display:flex;align-items:baseline;gap:12px;padding:14px 16px;color:var(--text)}
.tile-head:hover{color:var(--text)}
.tile-head:hover h2{color:var(--accent)}
.tile-index{font:600 .74rem var(--mono);color:var(--accent)}
.tile-head h2{margin:0;font-size:1rem}
.tile-stat{margin-left:auto;color:var(--faint);font-size:.78rem}
.tile-body{margin:0;padding:0 16px 14px;color:var(--muted);font-size:.86rem}
.tile-body strong{color:var(--text)}
.tile-body .num{font-family:var(--mono);color:var(--text)}
.tile-caption{margin:0;padding:0 16px 6px;color:var(--faint);font-size:.76rem}
.market-preview{padding-bottom:6px}
.market-quote{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:7px 16px;border-top:1px solid var(--soft-line);color:var(--text)}
.market-quote:hover{color:var(--text);background:var(--hover)}
.market-quote:hover strong{color:var(--accent)}
.country-code{display:inline-grid;place-items:center;min-width:30px;height:20px;padding:0 4px;border:1px solid var(--line);border-radius:4px;font:600 .66rem var(--mono);color:var(--muted);letter-spacing:.03em}
.market-name{font-size:.86rem;color:var(--muted)}
.market-quote strong{font:600 .98rem var(--mono)}
.market-quote strong small{font-size:.68rem;color:var(--faint)}
.market-basis{grid-column:2/-1;font-size:.72rem;color:var(--warn)}
.change-strip{display:flex;align-items:center;gap:20px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:.84rem}
.change-strip h2{margin:0;flex:none;font:600 .74rem var(--mono);letter-spacing:.05em;color:var(--accent)}
.change-strip ul{display:flex;flex:1;gap:24px;min-width:0;margin:0;padding:0;list-style:none;overflow-x:auto;scrollbar-width:none}
.change-strip li{display:flex;align-items:baseline;gap:8px;white-space:nowrap}
.change-strip time{font:500 .76rem var(--mono);color:var(--faint)}
.change-strip li a{font-weight:600}
.change-market{color:var(--muted)}
.change-strip .num{font:500 .8rem var(--mono);color:var(--muted)}
.delta{font:700 .78rem var(--mono)}
.delta.up{color:var(--up)}
.delta.down{color:var(--down)}
.change-strip .more{flex:none;color:var(--muted);font-size:.8rem}

/* ---------- headings & sections ---------- */
.heading{padding:44px 0 22px;border-bottom:1px solid var(--line)}
.heading h1{margin:8px 0 8px;font-size:clamp(1.8rem,3.6vw,2.5rem);line-height:1.2}
.heading>p:not(.eyebrow){max-width:760px;margin:0;color:var(--muted)}
.product-title{display:flex;align-items:center;gap:14px}
.block{margin:32px 0 44px}
.section-head{margin-bottom:14px}
.catalog-head h2,.section-head h2{margin:0;font-size:1.2rem;line-height:1.3}
.catalog-head p,.section-head p{margin:4px 0 0;color:var(--muted);font-size:.86rem;max-width:760px}
.catalog{margin-top:48px}
.catalog-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:4px}

/* ---------- product cards ---------- */
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.product{position:relative;display:flex;flex-direction:column;min-width:0;padding:18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--surface)}
.product:hover{background:var(--surface-2)}
.card-top{display:flex;align-items:center;gap:12px}
.card-title{flex:1;min-width:0}
.product-mark{position:relative;z-index:1;display:grid;place-items:center;flex:none;width:40px;height:40px;padding:5px;border-radius:8px;background:#fff;overflow:hidden}
.product-mark-text{padding:0;background:var(--surface-2);color:var(--muted);font-weight:700;font-size:1rem;border:1px solid var(--line)}
.brand-art{display:block;width:100%;height:100%;object-fit:contain}
.product-mark-wide{width:auto;height:40px;padding:6px 10px}
.product-mark-wide .brand-art{width:96px;height:auto}
.product-mark-wide:hover{outline:1px solid var(--accent)}
.vendor{display:block;font-size:.76rem;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product h3{margin:0;font-size:1rem;line-height:1.35}
.product h3 a{color:var(--text)}
.product h3 a::after{content:"";position:absolute;inset:0}
.product:hover h3 a{color:var(--accent)}
.card-desc{flex:1;margin:12px 0 14px;font-size:.84rem;line-height:1.6;color:var(--muted)}
.price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px}
.price .num{font:700 1.2rem/1.2 var(--mono);color:var(--text)}
.price .sub{flex-basis:100%}
.price .plan-caption{order:-1;flex-basis:auto;margin:0 6px 0 0;color:var(--muted);font-size:.74rem}
.price-unit{color:var(--faint);font-size:.76rem}
.price-unknown{color:var(--faint);font-size:.84rem}
.card-facts{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0;padding-top:10px;border-top:1px dashed var(--line)}
.card-facts span{padding:0 7px;border:1px solid var(--line);border-radius:4px;color:var(--faint);font-size:.72rem}
.card-foot{display:none}
.sub{display:block;margin-top:2px;color:var(--faint);font-size:.78rem;line-height:1.5}
.sub a{color:inherit;text-decoration:underline;text-underline-offset:.2em}
.detail,.source-link{font-size:.84rem;font-weight:500;color:var(--accent)}
.badge{display:inline-block;margin:2px 4px 0 0;padding:0 7px;border-radius:4px;background:var(--surface-2);color:var(--muted);font-size:.72rem;font-weight:600;white-space:nowrap}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}

/* ---------- forms ---------- */
label{display:grid;gap:5px;min-width:0;color:var(--faint);font-size:.75rem;font-weight:500}
input,select{width:100%;min-width:0;min-height:38px;border:1px solid var(--line);border-radius:7px;padding:6px 12px;background:var(--field);color:var(--text);font-size:.88rem}
input:hover,select:hover{border-color:var(--strong-line)}
input:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
input::placeholder{color:var(--faint);opacity:1}
select{appearance:none;padding-right:30px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 15px) 52%,calc(100% - 11px) 52%;background-size:4px 4px;background-repeat:no-repeat}
.catalog-search{width:min(280px,100%)}
.catalog-search .search{position:relative}
.catalog-search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--faint);pointer-events:none}
.catalog-search input{padding-left:33px}
.filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:20px 0 8px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.filters>label{flex:1 1 180px}
.indicator{margin:8px 0;color:var(--faint);font-size:.78rem;min-height:1.3em}
.table-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.table-summary a{font-size:.8rem;color:var(--accent)}
.notice,.empty{margin:14px 0;padding:12px 16px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:6px;background:var(--surface);color:var(--muted);font-size:.88rem}
.currency-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:20px 0 4px}
.currency-pick{display:flex;align-items:center;gap:10px;font-size:.84rem;color:var(--muted)}
.currency-pick span{white-space:nowrap}
.currency-pick select{width:auto;min-width:108px;min-height:36px;font:600 .88rem var(--mono);background-color:var(--surface)}
.currency-note{margin:0;color:var(--faint);font-size:.78rem}
.filter-chip{margin-left:auto;padding:4px 10px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:.8rem;font-weight:600}

/* ---------- tables ---------- */
.table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
table{width:100%;min-width:640px;border-collapse:collapse;text-align:left;font-variant-numeric:tabular-nums}
th,td{padding:11px 16px;border-bottom:1px solid var(--soft-line);font-size:.875rem;vertical-align:top}
th{padding-top:10px;padding-bottom:10px;color:var(--faint);font-size:.74rem;font-weight:600;letter-spacing:.02em;white-space:nowrap;border-bottom-color:var(--line);background:var(--surface-2)}
td:first-child{min-width:130px}
td:last-child{min-width:140px}
tbody tr:hover{background:var(--hover)}
tbody tr:last-child td{border-bottom:0}
.item-name{color:var(--text);font-weight:600}
.item-name:hover{color:var(--accent)}
td .num{font-family:var(--mono);font-weight:600}
.prices-table table{min-width:340px}
.prices-table.regional table{min-width:520px}
.prices-table td:first-child{min-width:100px}
.prices-table td:last-child{min-width:0}
.prices-table th:nth-child(n+3),.prices-table td:nth-child(n+3){text-align:right}
.prices-table td:nth-child(4) .num{color:var(--muted)}
.rank-detail{display:block;margin-top:2px;font-size:.75rem;color:var(--faint)}
.prices-table.regional tr[data-rank="1"]{background:var(--accent-soft)}
.prices-table.regional tr[data-rank="1"] td:nth-child(4) .num{color:var(--accent)}
.api-table td:nth-child(n+2):not(:last-child){font-family:var(--mono);font-size:.85rem}
.api-table td:last-child{font-size:.82rem;color:var(--muted)}
.api-table th:nth-child(2),.api-table th:nth-child(3),.api-table th:nth-child(4),.api-table td:nth-child(2),.api-table td:nth-child(3),.api-table td:nth-child(4){text-align:right}

/* ---------- evidence / calculator ---------- */
.evidence{margin:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.evidence summary{display:flex;align-items:center;gap:10px;padding:13px 16px;cursor:pointer;font-weight:600;list-style:none}
.evidence summary::-webkit-details-marker{display:none}
.evidence summary::before{content:"";width:6px;height:6px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(-45deg);transition:transform .15s}
.evidence[open] summary::before{transform:rotate(45deg)}
.evidence summary span{margin-left:auto;color:var(--faint);font:600 .75rem var(--mono)}
.evidence .table-scroll{border:0;border-top:1px solid var(--line);border-radius:0}
.calculator{margin:22px 0 14px;padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.form-grid input{font-family:var(--mono)}
.calculator .btn{margin-top:18px;margin-right:12px;background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
#calc-status{display:inline-block;color:var(--muted);font-size:.85rem}
#calc-result{margin-top:12px}
#calc-result table{min-width:300px}
#calc-result td:last-child,#calc-result th:last-child{text-align:right}
#calc-result td.num{font-family:var(--mono);color:var(--accent)}
.estimate-note{white-space:normal;font-family:inherit;font-weight:400}
.trend{display:flex;align-items:center;gap:6px;white-space:nowrap}
.trend.up{color:var(--up)}
.trend.down{color:var(--down)}

/* ---------- product page ---------- */
.product-head{display:flex;gap:22px;align-items:center;padding:40px 0 26px;border-bottom:1px solid var(--line)}
.product-head .product-mark{width:72px;height:72px;border-radius:14px;padding:8px}
.product-head .product-mark-text{font-size:1.9rem;padding:0}
.product-head .product-mark-wide{width:auto;height:52px;padding:8px 14px}
.product-head .product-mark-wide .brand-art{width:130px}
.product-head-body{min-width:0}
.product-head h1{margin:0 0 4px;font-size:clamp(1.8rem,3.4vw,2.4rem);line-height:1.15}
.product-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 8px;color:var(--muted);font-size:.9rem}
.chip{display:inline-flex;align-items:center;padding:0 8px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:.74rem;font-weight:600}
.product-desc{margin:0;max-width:760px;color:var(--muted)}
.section-nav{position:sticky;top:60px;z-index:4;display:flex;gap:4px;margin:0 -2px;padding:10px 0;border-bottom:1px solid var(--line);background:var(--bg);overflow-x:auto;scrollbar-width:none}
.section-nav a{padding:4px 10px;border-radius:6px;color:var(--muted);font-size:.86rem;font-weight:500;white-space:nowrap}
.section-nav a:hover{color:var(--text);background:var(--hover)}
.product-section{scroll-margin-top:120px}
.plan-board{margin-top:4px}
.board-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.plan-tabs{display:flex;flex-wrap:wrap;gap:0;border-bottom:1px solid var(--line)}
.plan-tab{display:inline-flex;align-items:center;gap:7px;margin-bottom:-1px;padding:9px 14px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:.9rem;font-weight:500;cursor:pointer}
.plan-tab:hover{color:var(--text)}
.plan-tab[aria-selected="true"]{border-bottom-color:var(--accent);color:var(--text);font-weight:700}
.period{display:inline-block;padding:0 5px;border:1px solid var(--line);border-radius:4px;color:var(--faint);font:600 .68rem/1.5 var(--mono);vertical-align:middle}
.board-bar .currency-bar{margin:0;flex:none}
.panel-grid{display:grid;gap:20px;align-items:start}
.panel-grid.has-side{grid-template-columns:minmax(0,1fr) 320px}
.panel-main{display:grid;gap:16px;min-width:0}
.table-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.table-card .table-scroll{border:0;border-radius:0}
.table-card table{min-width:520px}
.table-card-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 14px;padding:14px 16px 12px;border-bottom:1px solid var(--line)}
.table-card-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:1rem}
.table-card-head>span{color:var(--faint);font-size:.78rem}
.table-card td{vertical-align:middle}
.table-card td:first-child{min-width:0}
.table-card.ranked td:first-child,.table-card.ranked th:first-child{width:72px;color:var(--faint);font-family:var(--mono);white-space:nowrap}
.table-card td .country-code{margin-right:10px}
.table-card th[data-conv],.table-card td:has([data-eur]){text-align:right}
.table-card.ranked th:nth-child(3),.table-card.ranked td:nth-child(3){text-align:right}
.table-card.ranked tr[data-rank="1"]{background:var(--accent-soft)}
.table-card.ranked tr[data-rank="1"] td:nth-child(4) .num{color:var(--accent)}
.buy-guide{position:sticky;top:120px;padding:18px;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:10px;background:var(--surface)}
.buy-guide h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 12px;font-size:.95rem}
.buy-guide h3 span{color:var(--faint);font-size:.78rem;font-weight:500}
.buy-guide dl{margin:0}
.buy-guide dl>div{padding:10px 0;border-top:1px solid var(--soft-line)}
.buy-guide dt{margin-bottom:3px;color:var(--faint);font-size:.74rem}
.buy-guide dd{margin:0;color:var(--muted);font-size:.84rem;line-height:1.55}
.buy-guide dd a{color:var(--accent)}
.buy-guide .country-code{margin-right:6px}
.guide-value{display:block;margin-top:2px;color:var(--text)}
.guide-value .num{font:700 1.15rem var(--mono)}
.buy-guide dl>div:first-child .guide-value .num{color:var(--accent);font-size:1.5rem}
.guide-note{margin:8px 0 0;color:var(--faint);font-size:.74rem;line-height:1.5}
.store-prices{margin-top:18px}
.store-note{margin:0;padding:0 16px 12px;color:var(--faint);font-size:.8rem}
.store-prices .table-scroll{border-top:1px solid var(--line)}
.store-prices td:last-child,.store-prices th:last-child{text-align:right}

/* ---------- currency picker (Tom Select theme) ---------- */
.currency-pick .ts-wrapper{position:relative;min-width:132px;font:600 .88rem var(--mono)}
.currency-pick .ts-wrapper.single .ts-control{display:flex;align-items:center;min-height:36px;padding:5px 32px 5px 11px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);box-shadow:none;cursor:pointer}
.currency-pick .ts-wrapper.single .ts-control::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;margin-top:-5px;border:0;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
.currency-pick .ts-wrapper.dropdown-active .ts-control::after{margin-top:-1px;transform:rotate(225deg)}
.currency-pick .ts-wrapper:hover .ts-control{border-color:var(--strong-line)}
.currency-pick .ts-wrapper.focus .ts-control,.currency-pick .ts-wrapper.dropdown-active .ts-control{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.currency-pick .ts-control>input{display:none!important}
.cur-item,.cur-opt{display:flex;align-items:center;gap:8px;min-width:0}
.cur-flag{font-size:1.05rem;line-height:1}
.currency-pick .ts-dropdown{top:calc(100% + 6px)!important;right:0;left:auto!important;width:260px!important}
.ts-dropdown{position:absolute;z-index:20;margin:0;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--raised);color:var(--text);box-shadow:var(--shadow);overflow:hidden;font:500 .88rem var(--sans)}
.ts-dropdown .dropdown-input-wrap{padding:8px;border-bottom:1px solid var(--line)}
.ts-dropdown .dropdown-input{width:100%;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--text);font-size:.86rem;box-shadow:none}
.ts-dropdown .dropdown-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.ts-dropdown-content{max-height:320px;overflow-y:auto;padding:4px;scrollbar-width:thin;scrollbar-color:var(--strong-line) transparent}
.ts-dropdown .optgroup-header{padding:8px 10px 4px;background:none;color:var(--faint);font-size:.7rem;font-weight:700;letter-spacing:.05em;cursor:default}
.ts-dropdown .option{display:flex;align-items:center;padding:7px 10px;border-radius:6px;color:var(--text);cursor:pointer}
.ts-dropdown .option b{font-family:var(--mono);font-weight:700;min-width:36px}
.ts-dropdown .cur-name{margin-left:auto;color:var(--faint);font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ts-dropdown .option.active{background:var(--surface-2);color:var(--text)}
.ts-dropdown .option.selected{background:var(--accent-soft);color:var(--accent)}
.ts-dropdown .option.selected .cur-name{color:var(--accent)}
.ts-dropdown .option.selected::after{content:"";flex:none;width:8px;height:4px;margin-left:8px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
.ts-dropdown .no-results{padding:12px 10px;color:var(--faint)}
.ts-dropdown .highlight{background:none;color:var(--accent);border-radius:0}

/* ---------- footer ---------- */
footer{margin-top:80px;border-top:1px solid var(--line)}
.foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:26px 0 40px}
.footer-brand .symbol{width:22px;height:22px;border-radius:5px}
.footer-brand .symbol svg{width:14px;height:14px}
.footer-brand strong{display:block;font-size:.92rem;line-height:1.2}
.footer-brand div span{display:block;font-size:.78rem;color:var(--faint);font-weight:400}
.foot-links{display:flex;flex-wrap:wrap;gap:22px;font-size:.84rem}
.foot-links a{color:var(--muted)}
.foot-links a:hover{color:var(--text)}

/* ---------- responsive ---------- */
@media(max-width:1040px){
  .top-search input,.top-search input:focus{width:140px}
}
@media(max-width:960px){
  .home-hero{grid-template-columns:1fr;gap:32px;padding-top:44px}
  .panel-grid.has-side{grid-template-columns:1fr}
  .buy-guide{position:static;order:-1}
  .board-bar{flex-direction:column-reverse;align-items:stretch}
  .board-bar .currency-bar{align-self:flex-start}
  .board-bar .ts-dropdown,.currency-bar .ts-dropdown{left:0!important;right:auto}
  .change-strip{flex-wrap:wrap;gap:8px 16px}
  .change-strip ul{flex-basis:100%;order:3}
}
@media(max-width:860px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .top{position:static}
  .top-inner{display:grid;grid-template-columns:1fr auto;gap:0 12px;min-height:0;padding-top:10px}
  .nav-actions{grid-column:2;grid-row:1}
  .top-search{display:none}
  .top-inner nav{grid-column:1/-1;grid-row:2;margin:6px 0 0;overflow-x:auto;scrollbar-width:none}
  .top-inner nav::-webkit-scrollbar{display:none}
  .navlink{flex:none;padding-block:10px}
  .section-nav{top:0}
}
@media(max-width:680px){
  .container,.top-inner{width:calc(100% - 32px)}
  .catalog-head{flex-direction:column;align-items:stretch;gap:12px}
  .catalog-search{width:100%}
  .product-head{flex-direction:column;align-items:flex-start;gap:14px;padding-top:28px}
  .product-head .product-mark{width:56px;height:56px}
  .plan-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .plan-tab{flex:none}
  .table-card table{min-width:460px}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .cards{grid-template-columns:1fr}
  .home-hero h1{font-size:clamp(2rem,10vw,2.5rem)}
  .form-grid{grid-template-columns:1fr}
  th,td{padding:10px 12px}
}
@media(prefers-reduced-motion:no-preference){a,button,input,select,.product{transition:background-color .15s,border-color .15s,color .15s}}

/* ---------- subscriptions overview ---------- */
.overview{margin-top:12px}
.overview table{min-width:760px}
.overview td{vertical-align:middle}
.overview .group-row th{padding:16px 16px 8px;background:var(--surface);border-bottom:1px solid var(--line);color:var(--text);font-size:.95rem;letter-spacing:0}
.overview tbody .group-row:not(:first-child) th{border-top:1px solid var(--strong-line)}
.overview .group-row a{display:inline-flex;align-items:center;gap:10px;color:var(--text)}
.overview .group-row a:hover span:first-of-type{color:var(--accent)}
.overview .group-row .product-mark{width:26px;height:26px;padding:3px;border-radius:6px}
.overview .group-row .product-mark-text{font-size:.8rem;padding:0}
.overview .group-row .vendor{display:inline;font-weight:400}
.overview tbody tr:not(.group-row) td:first-child{padding-left:52px}
.overview td:nth-child(2),.overview th:nth-child(2){text-align:right}
.overview td .country-code{margin-right:8px}
.overview td:nth-child(3) .sub .num{font-size:.8rem;color:var(--accent)}
.overview .gap{font:700 .82rem var(--mono);color:var(--accent)}
.overview .gap.flat{color:var(--faint);font:500 .8rem var(--sans)}
.overview .count{font-family:var(--mono);color:var(--muted)}
.overview .muted-cell{color:var(--faint);font-size:.82rem}
.overview td:last-child,.overview th:last-child{min-width:0;text-align:right}
.row-link{padding:3px 10px;border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:.8rem;white-space:nowrap}
.row-link:hover{border-color:var(--accent);color:var(--accent)}
.overview-more{margin:14px 0 0;font-size:.86rem}
.overview-more a{color:var(--accent)}
.overview .group-row th{text-align:left!important}
.product-mark.product-mark-app{padding:0!important;background:none!important;border:0}
.product-mark-app .brand-art{object-fit:cover}

/* generic dropdowns (API filter, calculator) share the currency picker's look */
label .ts-wrapper:not(.currency-pick .ts-wrapper){width:100%;font:500 .88rem var(--sans);color:var(--text)}
label .ts-wrapper.single:not(.currency-pick .ts-wrapper) .ts-control{position:relative;display:flex;align-items:center;min-height:38px;padding:6px 32px 6px 12px;border:1px solid var(--line);border-radius:7px;background:var(--field);color:var(--text);box-shadow:none;cursor:pointer}
label .ts-wrapper.single:not(.currency-pick .ts-wrapper) .ts-control::after{content:"";position:absolute;right:14px;top:50%;width:6px;height:6px;margin-top:-5px;border:0;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s}
label .ts-wrapper.dropdown-active:not(.currency-pick .ts-wrapper) .ts-control::after{margin-top:-1px;transform:rotate(225deg)}
label .ts-wrapper:not(.currency-pick .ts-wrapper):hover .ts-control{border-color:var(--strong-line)}
label .ts-wrapper.focus:not(.currency-pick .ts-wrapper) .ts-control,label .ts-wrapper.dropdown-active:not(.currency-pick .ts-wrapper) .ts-control{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
label .ts-wrapper:not(.currency-pick .ts-wrapper) .ts-control>input{display:none!important}
label .ts-wrapper .item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
label .ts-dropdown{top:calc(100% + 6px)!important;margin:0}
.ts-hidden-accessible{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.country-flag{display:inline-block;width:1.5em;margin-right:8px;font-size:1.15rem;line-height:1;text-align:center;vertical-align:-.12em}
.market-quote .country-flag{margin-right:0}
.buy-guide .country-flag{margin-right:4px}
.flag-indent{padding-left:calc(1.5em*1.15 + 8px)}
.change-market .country-flag,.sub .country-flag{margin-right:4px;font-size:1rem;width:auto}
.lowest-tag{display:inline-block;padding:1px 7px;border-radius:4px;background:var(--accent);color:var(--accent-ink);font:700 .72rem var(--sans);letter-spacing:.02em}
