/* ─────────────────────────────────────────
   KICKBASE PWA – REDESIGN
   Inspired by official Kickbase app
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap');

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --card: #141414;
  --border: #242424;
  --accent: #00e676;
  --accent2: #00c853;
  --accent-glow: rgba(0,230,118,.15);
  --red: #ff3d3d;
  --orange: #ff6d00;
  --yellow: #ffd600;
  --blue: #448aff;
  --pitch: #2d7a3a;
  --pitch-line: rgba(255,255,255,.25);
  --text: #ffffff;
  --text2: #888888;
  --text3: #444444;
  --radius: 12px;
  --radius-lg: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREENS ── */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: flex; flex-direction: column; }

/* ── LOGIN ── */
.login-bg {
  position: absolute; inset: 0;
  background: #0a0a0a;
}
.login-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,230,118,.15) 0%, transparent 60%);
}

.login-container {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 24px;
  padding-top: calc(var(--safe-top) + 24px);
}

.login-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 48px;
}
.logo-icon { font-size: 32px; }
.logo-text {
  font-size: 26px; font-weight: 900; letter-spacing: -1px;
  color: #fff;
  font-style: italic;
  text-transform: uppercase;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%; max-width: 400px;
}
.login-card h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; letter-spacing: -0.5px; }
.login-subtitle { color: var(--text2); font-size: 13px; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .8px; }
.form-group input {
  width: 100%; padding: 14px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: var(--accent); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; opacity: .4;
}

.btn-primary {
  width: 100%; padding: 15px;
  background: var(--accent); color: #000;
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .1s; margin-top: 8px;
  text-transform: uppercase; letter-spacing: .5px;
}
.btn-primary:active { transform: scale(.98); }
.login-note {
  font-size: 11px; color: var(--text3); text-align: center; margin-top: 16px; line-height: 1.5;
}
.error-msg {
  background: rgba(255,61,61,.12); border: 1px solid rgba(255,61,61,.25);
  color: var(--red); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px;
}
.error-msg.hidden, .hidden { display: none !important; }

/* ── APP HEADER ── */
.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--bg); border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 10;
}
.header-logo {
  font-size: 16px; font-weight: 900; letter-spacing: -0.5px;
  font-style: italic; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.header-logo span { font-size: 18px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.budget-chip {
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  border: 1px solid transparent;
  transition: all .3s;
}
.icon-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); width: 34px; height: 34px; border-radius: 8px;
  cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center;
}

/* ── LEAGUE BAR ── */
.league-bar {
  display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto;
  background: var(--bg); border-bottom: 1px solid var(--border);
  flex-shrink: 0; scrollbar-width: none;
}
.league-bar::-webkit-scrollbar { display: none; }
.league-chip {
  white-space: nowrap; padding: 7px 16px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: all .15s; flex-shrink: 0; text-transform: uppercase; letter-spacing: .3px;
}
.league-chip.active {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.league-loading { color: var(--text3); font-size: 13px; padding: 4px 0; }

/* ── MAIN CONTENT ── */
.app-main {
  flex: 1; overflow-y: auto; padding: 0 0 calc(64px + var(--safe-bottom)) 0;
  background: var(--bg); scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bottom); z-index: 10;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 10px 4px 8px; background: none; border: none; cursor: pointer;
  color: var(--text3); transition: color .15s;
}
.nav-btn.active { color: var(--accent); }
.nav-icon { font-size: 20px; }
.nav-label { font-size: 10px; font-weight: 700; margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }

/* ── LOADING ── */
.loading-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 300px; gap: 16px; color: var(--text3);
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,230,118,.2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner.large { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 10px;
}
.section-title { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.5px; }
.section-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.section-badge {
  background: var(--accent-glow); color: var(--accent);
  border: 1px solid rgba(0,230,118,.3);
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
}

/* ═══════════════════════════════════
   PITCH / FUSSBALLFELD
═══════════════════════════════════ */
.pitch-container {
  margin: 0 12px 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pitch);
  position: relative;
  aspect-ratio: 0.7;
  max-height: 520px;
}

/* Feldlinien */
.pitch-lines {
  position: absolute; inset: 0;
  pointer-events: none;
}
.pitch-lines svg {
  width: 100%; height: 100%;
  opacity: .35;
}

/* Spieler auf dem Feld */
.pitch-players {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-evenly;
  padding: 12px 8px;
}
.pitch-row {
  display: flex; justify-content: space-evenly; align-items: center;
}
.pitch-player {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; width: 68px;
}
.pitch-player-img {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,0,0,.4);
  border: 2px solid rgba(255,255,255,.3);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s, border-color .15s;
}
.pitch-player-img:active { transform: scale(.92); }
.pitch-player-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.pitch-player-img .fallback {
  font-size: 22px; color: rgba(255,255,255,.6);
}
.pitch-player-name {
  font-size: 10px; font-weight: 800; color: #fff;
  text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 68px;
  background: rgba(0,0,0,.5);
  padding: 1px 5px; border-radius: 4px;
}
.pitch-player-pts {
  font-size: 11px; font-weight: 900; color: var(--accent);
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.pitch-player-pts.zero { color: rgba(255,255,255,.5); }

/* Total points on pitch */
.pitch-total {
  position: absolute; bottom: 12px; right: 14px;
  text-align: right;
}
.pitch-total-pts {
  font-size: 28px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5); line-height: 1;
}
.pitch-total-label {
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .5px;
}

/* ═══════════════════════════════════
   PLAYER LIST (Kader-Style)
═══════════════════════════════════ */
.pos-section { margin-bottom: 4px; }
.pos-section-title {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .8px;
  padding: 10px 16px 6px;
}
.player-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer; transition: background .1s;
}
.player-list-item:active { background: var(--bg3); }
.pli-img {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg3); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.pli-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pli-info { flex: 1; min-width: 0; }
.pli-name {
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: -.2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pli-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
.pli-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pli-trend {
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; gap: 3px;
}
.pli-trend.up { color: var(--accent); }
.pli-trend.down { color: var(--red); }
.pli-trend.neutral { color: var(--text2); }
.pli-mv { font-size: 11px; color: var(--text2); }

/* ═══════════════════════════════════
   LIVE TAB
═══════════════════════════════════ */
.matchday-header {
  background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px;
}
.matchday-info { display: flex; align-items: center; gap: 12px; }
.live-badge {
  background: var(--red); color: #fff; font-size: 10px; font-weight: 900;
  padding: 3px 8px; border-radius: 4px; letter-spacing: .5px;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.matchday-pts { font-size: 36px; font-weight: 900; color: var(--accent); line-height: 1; }
.matchday-sub { font-size: 13px; color: var(--text2); margin-top: 3px; }

.live-players-list { padding: 0 12px; }
.live-player-row {
  display: flex; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px;
  gap: 12px; cursor: pointer; transition: border-color .15s;
}
.live-player-row:active { border-color: rgba(0,230,118,.3); }
.lp-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp-info { flex: 1; }
.lp-name { font-size: 13px; font-weight: 800; text-transform: uppercase; }
.lp-club { font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.lp-score { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lp-points { font-size: 22px; font-weight: 900; }
.lp-points.positive { color: var(--accent); }
.lp-points.negative { color: var(--red); }
.lp-points.neutral { color: var(--text2); }
.lp-grade { font-size: 11px; color: var(--text2); }

.no-matchday {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; gap: 12px; text-align: center;
}
.no-matchday .icon { font-size: 56px; }
.no-matchday p { color: var(--text2); }

/* ═══════════════════════════════════
   MARKET TAB
═══════════════════════════════════ */
.market-filters {
  display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none;
}
.market-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap; padding: 7px 14px; border-radius: 20px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 11px; font-weight: 700; cursor: pointer;
  flex-shrink: 0; transition: all .15s; text-transform: uppercase; letter-spacing: .3px;
}
.filter-chip.active {
  background: var(--accent); border-color: var(--accent); color: #000;
}
.market-list { padding: 0 12px 16px; }
.market-player-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color .15s;
}
.market-player-card:active { border-color: rgba(0,230,118,.3); }
.mp-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.mp-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mp-info { flex: 1; min-width: 0; }
.mp-name { font-size: 13px; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-meta { font-size: 11px; color: var(--text2); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.mp-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mp-price { font-size: 14px; font-weight: 800; color: var(--accent); }
.mp-trend.up { color: var(--accent); font-size: 11px; }
.mp-trend.down { color: var(--red); font-size: 11px; }
.mp-expires { font-size: 10px; color: var(--text3); }

.buy-btn, .sell-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 11px; font-weight: 800;
  cursor: pointer; border: none; transition: opacity .15s; text-transform: uppercase;
}
.buy-btn { background: var(--accent); color: #000; }
.sell-btn { background: var(--red); color: #fff; }

/* ═══════════════════════════════════
   TABLE TAB
═══════════════════════════════════ */
.table-container { padding: 0 12px 16px; }
.league-table {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.table-head, .table-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px 50px 60px 40px;
  gap: 4px; align-items: center; padding: 10px 12px;
}
.table-head {
  font-size: 9px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .8px;
  border-bottom: 1px solid var(--border);
}
.table-row { border-bottom: 1px solid rgba(255,255,255,.04); transition: background .1s; }
.table-row:last-child { border-bottom: none; }
.table-row:active { background: var(--bg3); }
.table-row.is-me { background: var(--accent-glow); }
.table-row.is-me .tr-name { color: var(--accent); font-weight: 800; }
.tr-rank { font-size: 12px; font-weight: 800; color: var(--text3); text-align: center; }
.tr-rank.top3 { color: var(--yellow); }
.tr-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg3); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.tr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tr-user { display: flex; align-items: center; gap: 8px; }
.tr-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-val { font-size: 11px; font-weight: 600; text-align: right; color: var(--text2); }
.tr-pts { font-size: 13px; font-weight: 900; color: var(--accent); text-align: right; }
.tr-place { font-size: 11px; color: var(--text2); text-align: right; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.hidden { display: none; }
.modal-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 500px; max-height: 85vh;
  overflow-y: auto; padding: 24px; padding-bottom: calc(24px + var(--safe-bottom));
  animation: slideUp .2s ease;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-drag-handle {
  width: 40px; height: 4px; background: var(--border);
  border-radius: 2px; margin: 0 auto 20px;
}
.modal-player-header {
  display: flex; gap: 16px; align-items: center; margin-bottom: 20px;
}
.modal-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg3); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0; overflow: hidden;
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.modal-player-name { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.5px; }
.modal-player-sub { font-size: 13px; color: var(--text2); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.modal-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 20px;
}
.modal-stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.modal-stat-label { font-size: 10px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.modal-stat-val { font-size: 22px; font-weight: 900; color: var(--accent); margin-top: 4px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; padding: 14px; border-radius: var(--radius); font-size: 13px; font-weight: 800; cursor: pointer; border: none; text-transform: uppercase; letter-spacing: .3px; }
.modal-btn-buy { background: var(--accent); color: #000; }
.modal-btn-sell { background: var(--red); color: #fff; }
.modal-btn-close { background: var(--bg3) !important; color: var(--text2) !important; border: 1px solid var(--border) !important; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: calc(72px + var(--safe-bottom) + 12px); left: 50%; transform: translateX(-50%);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 20px; border-radius: 20px;
  font-size: 13px; font-weight: 700; z-index: 200;
  animation: fadeInUp .2s ease; white-space: nowrap;
}
.toast.hidden { display: none; }
.toast.success { border-color: rgba(0,230,118,.4); color: var(--accent); }
.toast.error { border-color: rgba(255,61,61,.4); color: var(--red); }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── EMPTY STATE ── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; gap: 10px; text-align: center;
}
.empty-state .icon { font-size: 48px; }
.empty-state p { color: var(--text2); font-size: 13px; }

/* ── UTILS ── */
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-muted { color: var(--text2); }
.fw-bold { font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 0 16px; }

.pos-badge {
  display: inline-block; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .3px;
}
.pos-badge.GK  { background: rgba(255,214,0,.15); color: var(--yellow); border: 1px solid rgba(255,214,0,.2); }
.pos-badge.DEF { background: rgba(68,138,255,.15); color: var(--blue); border: 1px solid rgba(68,138,255,.2); }
.pos-badge.MID { background: rgba(0,230,118,.15); color: var(--accent); border: 1px solid rgba(0,230,118,.2); }
.pos-badge.FWD { background: rgba(255,61,61,.15); color: var(--red); border: 1px solid rgba(255,61,61,.2); }

.refresh-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 8px 14px; border-radius: var(--radius);
  font-size: 11px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .3px;
}
.refresh-btn:active { border-color: var(--accent); color: var(--accent); }

.price-input {
  flex: 1; padding: 10px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px; font-family: inherit;
  outline: none;
}
.price-input:focus { border-color: var(--accent); }
.price-input-row { display: flex; gap: 8px; align-items: center; }

/* ── PWA INSTALL BANNER ── */
.pwa-banner {
  position: fixed; bottom: calc(64px + var(--safe-bottom) + 12px); left: 12px; right: 12px;
  background: var(--card); border: 1px solid var(--accent);
  border-radius: var(--radius-lg); padding: 16px;
  z-index: 50; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,230,118,.15);
  animation: slideUp .3s ease;
}
.pwa-banner.hidden { display: none; }
.pwa-banner-icon { font-size: 32px; flex-shrink: 0; }
.pwa-banner-text { flex: 1; }
.pwa-banner-title { font-size: 14px; font-weight: 800; }
.pwa-banner-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.pwa-banner-btns { display: flex; gap: 8px; margin-top: 10px; }
.pwa-btn-install {
  flex: 1; padding: 10px; background: var(--accent); color: #000;
  border: none; border-radius: 10px; font-size: 13px; font-weight: 800;
  cursor: pointer; text-transform: uppercase;
}
.pwa-btn-dismiss {
  padding: 10px 14px; background: var(--bg3); color: var(--text2);
  border: 1px solid var(--border); border-radius: 10px; font-size: 13px;
  cursor: pointer;
}

/* ── SORT BUTTONS ── */
.sort-btn.active { background: var(--accent); border-color: var(--accent); color: #000; }
