/* ═══════════════ APP SHELL ═══════════════ */
#app-shell { display: none; flex-direction: column; min-height: 100vh; }
#app-shell.visible { display: flex; }

/* ─── Header ─── */
.header {
  background: var(--navy);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky; top: 0; z-index: 100;
  flex-shrink: 0;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; background: #fff; padding: 3px; }
.logo-text { color: #fff; font-size: 15px; font-weight: 600; line-height: 1; }
.logo-sub { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 400; margin-top: 2px; }
.header-right { display: flex; align-items: center; gap: 8px; }
.header-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.header-btn:hover { background: rgba(255,255,255,.15); }
.header-btn i { font-size: 15px; }
#lang-select {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-radius: 8px; padding: 6px 8px;
  font-size: 12px; font-weight: 600; cursor: pointer; outline: none;
}
#lang-select option { color: #000; }

/* ─── WhatsApp-style Nav Tabs ─── */
.nav-tabs-wrap {
  background: var(--navy2);
  position: relative;
  flex-shrink: 0;
}
.nav-tabs {
  display: flex;
  position: relative;
}
.nav-tab {
  flex: 1 1 0;
  color: rgba(255,255,255,.5);
  padding: 13px 4px 12px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: color .15s;
  text-align: center;
  user-select: none;
}
.nav-tab i { font-size: 18px; }
.nav-tab:active { color: rgba(255,255,255,.9); }
.nav-tab.active { color: #fff; }
.nav-indicator {
  position: absolute;
  bottom: 0; height: 3px;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  transition: left .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
}

/* ─── Main ─── */
.main { flex: 1; padding: 20px; max-width: 1100px; width: 100%; margin: 0 auto; }

/* ─── Panels ─── */
.panel { display: none; }
.panel.active { display: block; }

/* ─── Summary Strip ─── */
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.summary-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.summary-val { font-size: 22px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.summary-lbl { font-size: 11px; color: var(--text3); font-weight: 500; margin-top: 2px; }
.si-blue { background: var(--blue-light); color: var(--blue); }
.si-green { background: var(--green-light); color: var(--green); }
.si-amber { background: var(--amber-light); color: var(--amber); }
.si-red { background: var(--red-light); color: var(--red); }
.sv-blue { color: var(--blue); } .sv-green { color: var(--green); } .sv-amber { color: var(--amber); } .sv-red { color: var(--red); }


/* ─── Summary cards: text scales with the card's own width (container queries) ─── */
.summary-card { container-type: inline-size; padding: clamp(8px, 2.4vw, 16px); gap: clamp(6px, 2vw, 12px); min-width: 0; }
.summary-card > div:not(.summary-icon) { min-width: 0; flex: 1; }
.summary-icon { width: clamp(30px, 17cqw, 42px); height: clamp(30px, 17cqw, 42px); font-size: clamp(15px, 8cqw, 20px); }
.summary-val { font-size: clamp(15px, 9.5cqw, 22px); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-lbl { font-size: clamp(9.5px, 5.4cqw, 12px); line-height: 1.25; overflow-wrap: anywhere; }
.coffee-mini-title { font-size: clamp(11.5px, 6.6cqw, 14px); line-height: 1.2; }
.coffee-mini-sub { font-size: clamp(9.5px, 5cqw, 11px); }
