@import url('fonts.css'); /* Material Icons (.mi) still used in a few spots */

/* ════════════════════════════════════════════════════════════════
   APKZO — "VAULT" design system
   Dark editorial / arcade-tech. Clash Display + Satoshi + mono.
   ════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0b0e;
  --surface:   #141419;
  --surface-2: #1c1c23;
  --line:      rgba(255,255,255,.09);
  --line-2:    rgba(255,255,255,.16);
  --ink:       #f5f4ef;
  --muted:     #8e8e9c;
  --muted-2:   #6a6a78;

  --accent:    #ff5a1f;   /* tangerine */
  --accent-hi: #ff7a47;
  --accent-ink:#120a05;
  --mint:      #34e6a8;   /* free / verified */

  --maxw: 1240px;
  --radius: 16px;
  --radius-sm: 10px;

  --display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --ui:      'Satoshi', system-ui, -apple-system, sans-serif;
  --mono:    'Sometype Mono', ui-monospace, 'SF Mono', monospace;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }

body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* subtle vault texture: faint grid + top glow */
  background-image:
    radial-gradient(120% 60% at 80% -10%, rgba(255,90,31,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; color: inherit; background: none; border: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }

/* ───────── HEADER ───────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,14,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 70px; padding: 0 28px;
  display: flex; align-items: center; gap: 26px;
}
.header-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { border-radius: 9px; box-shadow: 0 6px 18px rgba(255,90,31,.28); }
.header-logo-text {
  font-family: var(--display);
  font-size: 23px; font-weight: 700; letter-spacing: -.5px;
  text-transform: uppercase; color: var(--ink); line-height: 1;
}
.logo-zo { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav-link {
  position: relative;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--muted); border-radius: 8px;
  transition: color .15s;
}
.header-nav-link:hover { color: var(--ink); }
.header-nav-link.active { color: var(--ink); }
.header-nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

/* Search (keeps IDs the suggest JS needs) */
.header-search {
  flex: 1; max-width: 460px; margin-left: auto;
  display: flex; align-items: center; position: relative;
}
.header-search-back { display: none; }
.header-search-form {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px;
  transition: border-color .15s, background .15s;
}
.header-search-form svg path { fill: var(--muted); }
.header-search-form:focus-within { border-color: var(--line-2); background: var(--surface-2); }
.header-search-input {
  flex: 1; border: none; background: none; outline: none;
  color: var(--ink); font-size: 14px; font-family: var(--ui);
}
.header-search-input::placeholder { color: var(--muted-2); }
.header-search-clear { display: flex; }
.header-search-clear svg path { fill: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 6px; }
.show-mobile { display: none; }
.header-icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background .15s, color .15s;
}
.header-icon-btn svg path { fill: currentColor; }
.header-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
#searchOpenBtn { display: none; }

.btn-ghost {
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink); }

/* Search suggest dropdown */
.search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; display: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); z-index: 50;
}
.search-dropdown.active { display: block; }
.search-dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--line); transition: background .12s;
}
.search-dropdown a:last-child { border-bottom: none; }
.search-dropdown a:hover { background: var(--surface-2); }
.search-dropdown img { width: 36px; height: 36px; border-radius: 9px; }

/* ───────── HERO ───────── */
.hero { padding: 64px 0 30px; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--accent); display: inline-block;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px); line-height: .98; letter-spacing: -1.5px;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 460px; margin-bottom: 30px; }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 480px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 7px 8px 7px 18px;
}
.hero-search svg { flex-shrink: 0; }
.hero-search svg path { fill: var(--muted); }
.hero-search input {
  flex: 1; border: none; background: none; outline: none; color: var(--ink);
  font-size: 16px; font-family: var(--ui);
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search button {
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 14px; padding: 11px 22px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .15s, transform .05s;
}
.hero-search button:hover { background: var(--accent-hi); }
.hero-search button:active { transform: translateY(1px); }

.hero-stats {
  display: flex; gap: 30px; margin-top: 28px; font-family: var(--mono);
}
.hero-stat .n { font-size: 22px; font-weight: 600; color: var(--ink); }
.hero-stat .l { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); }

/* Hero spotlight card */
.spotlight {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.spotlight-art { aspect-ratio: 16/11; background-size: cover; background-position: center; position: relative; }
.spotlight-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,10,13,.92)); }
.spotlight-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 5px 11px; border-radius: 7px; font-weight: 700;
}
.spotlight-body { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.spotlight-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; border: 1px solid var(--line); }
.spotlight-info { flex: 1; min-width: 0; }
.spotlight-name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.3px; }
.spotlight-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 8px; margin-top: 3px; }
.spotlight-meta .star { color: var(--accent); }
.btn-install {
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px;
  padding: 10px 20px; border-radius: 9px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; transition: background .15s;
}
.btn-install:hover { background: var(--accent-hi); }
.btn-install svg path { fill: currentColor; }

/* ───────── CATEGORY TABS ───────── */
.cat-tabs { display: flex; gap: 10px; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.cat-tab {
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: all .15s;
}
.cat-tab:hover { color: var(--ink); border-color: var(--line); }
.cat-tab.active { color: var(--accent-ink); background: var(--ink); border-color: var(--ink); }

/* ───────── SECTION HEADERS ───────── */
.sec { padding: 48px 0 0; }
.sec-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.sec-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sec-title { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.6px; line-height: 1; }
.sec-sub { color: var(--muted); font-size: 14px; margin-top: 7px; }
.sec-more { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.sec-more:hover { color: var(--accent); }
.sec-more svg path { fill: currentColor; }

/* ───────── BENTO FEATURED ───────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s, border-color .2s; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.bento-card:first-child { grid-column: span 2; grid-row: span 1; }
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.bento-art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bento-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,14,.1) 0%, rgba(11,11,14,.55) 55%, rgba(11,11,14,.96) 100%); }
.bento-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  background: rgba(11,11,14,.7); border: 1px solid var(--line-2); color: var(--ink);
  padding: 5px 10px; border-radius: 7px; backdrop-filter: blur(6px);
}
.bento-body { position: relative; z-index: 2; padding: 16px; display: flex; align-items: center; gap: 12px; }
.bento-icon { width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0; border: 1px solid var(--line-2); }
.bento-info { flex: 1; min-width: 0; }
.bento-name { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-dev { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-btn {
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 12px;
  padding: 8px 16px; border-radius: 8px; flex-shrink: 0; transition: background .15s;
}
.bento-card:hover .bento-btn { background: var(--accent); color: var(--accent-ink); }

/* ───────── TOP CHARTS (ranked) ───────── */
.chart-tabs-nav { display: flex; gap: 8px; margin-bottom: 20px; }
.chart-tab-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line);
  transition: all .15s;
}
.chart-tab-btn:hover { color: var(--ink); }
.chart-tab-btn.active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.chart-panel { display: none; }
.chart-panel.active { display: block; }
.chart-list-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 36px; }
.chart-item {
  display: flex; align-items: center; gap: 16px; padding: 12px 10px; min-width: 0;
  border-bottom: 1px solid var(--line); transition: background .12s; border-radius: 8px;
}
.chart-item:hover { background: var(--surface); }
.chart-rank {
  font-family: var(--display); font-weight: 700; font-size: 26px; width: 34px; text-align: center;
  color: var(--muted-2); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.chart-item:hover .chart-rank { color: var(--accent); }
.chart-item img { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; border: 1px solid var(--line); }
.chart-info { flex: 1; min-width: 0; }
.chart-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-rating { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chart-rating .star, .chart-rating .mi { color: var(--accent); font-size: 15px; }

/* ───────── ICON SCROLLER ───────── */
.icon-row {
  display: flex; gap: 18px; max-width: 100%;
  overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.icon-row::-webkit-scrollbar { height: 6px; }
.icon-row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.icon-tile { flex: 0 0 104px; min-width: 0; width: 104px; text-align: center; scroll-snap-align: start; }
.icon-tile img { width: 104px; height: 104px; border-radius: 24px; border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.icon-tile:hover img { transform: translateY(-4px); border-color: var(--accent); }
.icon-tile-name { font-size: 13px; font-weight: 600; margin-top: 10px; max-width: 104px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-tile-rating { font-family: var(--mono); font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; }
.icon-tile-rating .star, .icon-tile-rating .mi { color: var(--accent); font-size: 14px; }

/* ───────── APP CARDS (screenshot grid) ───────── */
.ss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ss-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s;
}
.ss-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.ss-card-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface-2); }
.ss-card-meta { display: flex; align-items: center; gap: 12px; padding: 14px; }
.ss-card-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; border: 1px solid var(--line); }
.ss-card-info { min-width: 0; flex: 1; }
.ss-card-info .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-card-info .sub { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.ss-card-info .sub .star, .ss-card-info .sub .mi { color: var(--accent); font-size: 14px; }

/* star svg helper */
.star { display: inline-flex; }
.star svg { width: 14px; height: 14px; }
.star svg path { fill: var(--accent); }

/* ───────── FOOTER ───────── */
footer { margin-top: 90px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
.footer-brand { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px 10px; }
.footer-wordmark {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(56px, 12vw, 150px); line-height: .85; letter-spacing: -3px;
  color: transparent; -webkit-text-stroke: 1.4px var(--line-2);
}
.footer-wordmark span { color: var(--accent); -webkit-text-stroke: 0; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px 28px; display: flex; flex-wrap: wrap; gap: 60px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
}
.footer-bottom a { transition: color .15s; }
.footer-bottom a:hover { color: var(--ink); }

/* ───────── BOTTOM NAV (mobile) ───────── */
.bottom-nav { display: none; }

/* ════════ APP DETAIL PAGE (.ad-*) ════════ */
.ad-hero { position: relative; padding: 40px 0 26px; }
.ad-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: saturate(1.1); }
.ad-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,14,.6), var(--bg)); }
.ad-hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; gap: 28px; align-items: flex-end; }
.ad-icon { width: 124px; height: 124px; border-radius: 28px; flex-shrink: 0; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.ad-head { flex: 1; min-width: 0; }
.ad-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -1px; line-height: 1; }
.ad-dev { color: var(--accent); font-weight: 600; margin-top: 10px; }
.ad-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.ad-statbar { display: flex; gap: 0; margin: 26px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 620px; }
.ad-stat { flex: 1; padding: 16px 20px; border-right: 1px solid var(--line); text-align: center; }
.ad-stat:last-child { border-right: none; }
.ad-stat .v { font-family: var(--display); font-weight: 600; font-size: 19px; display: inline-flex; align-items: center; gap: 5px; }
.ad-stat .v .star svg path { fill: var(--accent); }
.ad-stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.ad-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ps-btn-install {
  background: var(--accent); color: var(--accent-ink); border: none; border-radius: 12px;
  padding: 15px 44px; font-size: 16px; font-weight: 800; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 8px 26px rgba(255,90,31,.32);
  transition: background .15s, transform .05s;
}
.ps-btn-install:hover { background: var(--accent-hi); }
.ps-btn-install:active { transform: translateY(1px); }
.ps-btn-install svg path { fill: currentColor; }
.ps-btn-share, .ps-btn-wishlist {
  width: 50px; height: 50px; border-radius: 12px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: border-color .15s, color .15s;
}
.ps-btn-share:hover, .ps-btn-wishlist:hover { color: var(--ink); border-color: var(--ink); }
.ps-btn-share svg path, .ps-btn-wishlist svg path { fill: currentColor; }

.ad-body { max-width: var(--maxw); margin: 0 auto; padding: 26px 28px 0; display: grid; grid-template-columns: 1fr 320px; gap: 44px; }
.ad-shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.ad-shots img { height: 380px; border-radius: 16px; border: 1px solid var(--line); flex-shrink: 0; }
.ad-section-title { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.4px; margin: 36px 0 14px; }
.ad-about { color: #cfcfd8; line-height: 1.7; }
.ad-aside { }
.ad-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ad-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ad-info-row:last-child { border-bottom: none; }
.ad-info-row .k { color: var(--muted); }
.ad-info-row .v { font-family: var(--mono); color: var(--ink); text-align: right; }

/* ════════ SEARCH PAGE ════════ */
.search-head { padding: 44px 0 10px; }
.search-head h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.8px; }
.search-head h1 em { font-style: normal; color: var(--accent); }
.search-head .count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 8px; }
.search-empty { text-align: center; padding: 90px 0; color: var(--muted); }
.search-empty .star svg { width: 40px; height: 40px; opacity: .5; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .spotlight { max-width: 460px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card:first-child { grid-column: span 2; }
  .chart-list-3col { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
  .ss-grid { grid-template-columns: repeat(2, 1fr); }
  .ad-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap, .header-inner { padding-left: 18px; padding-right: 18px; }
  .header-nav { display: none; }
  .header-search { position: fixed; inset: 0 0 auto 0; height: 70px; max-width: none; margin: 0;
    background: var(--bg); padding: 14px 16px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .2s; z-index: 200; }
  .header.search-active .header-search { transform: translateY(0); }
  .header-search-back { display: flex; margin-right: 6px; }
  .header-search-back svg path { fill: var(--muted); }
  #searchOpenBtn { display: inline-flex; }
  .btn-ghost.hide-mobile { display: none; }
  .show-mobile { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .bento { grid-template-columns: 1fr; }
  .bento-card:first-child { grid-column: span 1; }
  .chart-list-3col { grid-template-columns: 1fr; }
  .ss-grid { grid-template-columns: 1fr; }
  .ad-hero-inner { flex-direction: column; align-items: flex-start; }
  .ad-icon { width: 92px; height: 92px; }
  .ad-statbar { max-width: none; }
  .ad-shots img { height: 300px; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }

  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    background: #101015; border-top: 1px solid var(--line);
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  }
  .bottom-nav-link { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 10px; font-weight: 600; letter-spacing: .2px; color: var(--muted); }
  .bottom-nav-link svg { width: 23px; height: 23px; fill: currentColor; }
  .bottom-nav-link span { line-height: 1; }
  .bottom-nav-link.active { color: var(--accent); }
  body { padding-bottom: 76px; }
}
