/* ── APP SHELL ── */
.app { position:relative; z-index:1; min-height:100vh; display:flex; flex-direction:column; }

/* ── HEADER ── */
header {
  position:sticky; top:0; z-index:100; min-height:62px;
  background:linear-gradient(180deg, rgba(11,20,37,.98), rgba(8,16,32,.95));
  border-bottom:1px solid var(--border-bright);
  display:flex; align-items:center; justify-content:space-between;
  padding-top:max(12px, env(safe-area-inset-top));
  padding-bottom:12px;
  padding-left:max(24px, env(safe-area-inset-left));
  padding-right:max(24px, env(safe-area-inset-right));
  backdrop-filter:blur(10px);
  box-shadow:0 4px 30px rgba(0,0,0,.6), 0 1px 0 rgba(26,111,255,.15);
}
.header-logo   { display:flex; align-items:center; gap:14px; }
.logo-mark     { width:42px; height:42px; flex-shrink:0; }
.header-title  { font-family:'Orbitron',sans-serif; font-size:17px; font-weight:700; letter-spacing:3px; text-transform:uppercase; color:white; }
.header-title span { color:var(--highlight); }
.header-actions { display:flex; gap:8px; align-items:center; }

/* ── MAIN ── */
main { flex:1; padding:24px; max-width:1700px; margin:0 auto; width:100%; }

/* ── STAT CARDS ── */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:0; }
.stat-card  {
  background:var(--bg-card); border:1px solid var(--border); border-radius:12px;
  padding:13px 17px; position:relative; overflow:hidden;
  transition:border-color .2s, box-shadow .2s;
  box-shadow:0 0 18px rgba(26,111,255,.07), 0 2px 8px rgba(0,0,0,.35);
}
.stat-card:hover { border-color:var(--border-bright); box-shadow:0 0 28px rgba(26,111,255,.14), 0 4px 16px rgba(0,0,0,.4); }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--accent), var(--highlight)); }
.stat-label { font-size:10px; text-transform:uppercase; letter-spacing:2.5px; color:var(--text-dim); margin-bottom:6px; }
.stat-value { font-family:'Orbitron',sans-serif; font-size:22px; font-weight:700; color:#fff; line-height:1; }
.stat-value.hl    { color:var(--highlight); }
.stat-value.green { color:var(--success); }
.stat-sub   { font-size:11px; color:var(--text-muted); margin-top:4px; }

/* ── YEAR BANNER ── */
.year-banner {
  background:rgba(26,111,255,.04); border:1px solid rgba(26,111,255,.12);
  border-left:3px solid var(--accent); border-radius:8px;
  padding:10px 16px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.yb-nav   { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.yb-badges { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.yb-year  { font-family:'Orbitron',sans-serif; font-size:20px; font-weight:700; color:#fff; line-height:1; }
.yb-arrow { background:none; border:none; color:var(--text-dim); font-size:14px; cursor:pointer; padding:2px 6px; line-height:1; transition:color .15s; border-radius:4px; }
.yb-arrow:hover { color:var(--accent); background:rgba(26,111,255,.1); }
.yb-badge { font-size:11px; font-weight:600; border-radius:20px; padding:3px 10px; white-space:nowrap; }
.yb-gift  { color:var(--success);   background:rgba(0,255,153,.07); border:1px solid rgba(0,255,153,.15); }
.yb-div   { color:var(--highlight); background:rgba(0,212,255,.07); border:1px solid rgba(0,212,255,.15); }

/* ── RESPONSIVE ── */
@media (max-width:900px) {
  .stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px) {
  main           { padding:14px; }
  header         { padding-top:max(10px, env(safe-area-inset-top)); padding-bottom:10px; padding-left:14px; padding-right:14px; }
  .header-title  { font-size:13px; letter-spacing:2px; }
  .stat-value    { font-size:24px; }
  .stats-grid    { gap:10px; }
  .btn-primary span { display:none; }
  .settings-panel { width:100vw; right:-100vw; }
  .year-banner   { padding:10px 12px; }
  .yb-nav        { gap:8px; }
  .yb-badges     { gap:6px; }
  .yb-year       { font-size:18px; }
  .yb-badge      { padding:3px 7px; font-size:10px; }
}
