﻿:root {
  color-scheme: light;
  --bg: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --surface-3: #edf4fd;
  --text: #11264b;
  --muted: #7b8ba7;
  --line: #dfe8f3;
  --line-2: #edf3fa;
  --blue: #0f78ff;
  --blue-2: #42a8ff;
  --blue-3: #eaf4ff;
  --green: #2bb24c;
  --green-soft: #ecf9ef;
  --amber: #dd8b00;
  --amber-soft: #fff5df;
  --red: #e35656;
  --shadow-sm: 0 10px 26px rgba(27, 69, 118, 0.08);
  --shadow-md: 0 24px 70px rgba(21, 55, 96, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(78, 161, 255, 0.22), transparent 22rem),
    linear-gradient(180deg, #f7fbff 0%, #eef3f9 72%, #ebf1f8 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { min-height: 100dvh; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(15, 120, 255, 0.22);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.app-shell {
  width: min(100%, 680px);
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,253,255,.96));
}

@media (min-width: 700px) {
  body { padding: 18px 0; }
  .app-shell {
    min-height: calc(100dvh - 36px);
    border: 1px solid rgba(223, 232, 243, 0.98);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(21, 55, 96, 0.16);
  }
}

.topbar {
  min-height: calc(88px + var(--safe-top));
  padding: calc(16px + var(--safe-top)) 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 252, 255, 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid rgba(223, 232, 243, 0.95);
}

.brand-block, .toolbar-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-button, .back-button, .install-button, .filter-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  border-radius: 16px;
  height: 50px;
  min-width: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.icon-button:hover, .back-button:hover, .install-button:hover, .filter-button:hover {
  background: var(--surface-2);
  border-color: #cfdced;
}
.icon-button svg, .back-button svg, .install-button svg, .filter-button svg,
.store-subline svg, .detail-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button.is-spinning svg { animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.lang-switch {
  height: 50px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(240, 245, 252, 0.94);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 96px;
  box-shadow: var(--shadow-sm);
}
.lang-button {
  min-width: 42px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
  color: var(--muted);
  cursor: pointer;
}
.lang-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #3d8dff 100%);
  box-shadow: 0 10px 20px rgba(15,120,255,.24);
}

.app-main {
  padding: 20px 18px 26px;
  min-height: calc(100dvh - 164px);
}
@media (min-width: 430px) {
  .app-main { padding: 22px 22px 30px; }
}

.page-heading {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(24px, 7.2vw, 34px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.page-kicker {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}
.live-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.live-pill, .hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: #178137;
  font-weight: 800;
  border: 1px solid rgba(43, 178, 76, .25);
}
.live-pill.offline, .hero-live.offline {
  background: #fff4f4;
  color: var(--red);
  border-color: rgba(227, 86, 86, 0.2);
}
.live-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(23,129,55,0.12);
}
.live-pill.offline .live-dot, .hero-live.offline .live-dot {
  box-shadow: 0 0 0 4px rgba(227, 86, 86, 0.12);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 16px;
  min-height: 178px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #0a67f6 0%, #2491ff 58%, #51b2ff 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  align-items: end;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .24;
}
.hero-content, .hero-art { position: relative; z-index: 1; }
.hero-label {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  opacity: .96;
}
.hero-value {
  margin-top: 10px;
  font-size: clamp(34px, 10.4vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
}
.hero-meta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-updated {
  font-size: 13px;
  opacity: .96;
}
.hero-art {
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: end;
}
.sparkline {
  width: 100%;
  max-width: 280px;
  height: 105px;
  overflow: visible;
}
.sparkline-area {
  fill: url(#sparkFill);
}
.sparkline-line {
  fill: none;
  stroke: rgba(255,255,255,.95);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(255,255,255,.22));
}
.sparkline-dot {
  fill: #fff;
  stroke: rgba(255,255,255,.55);
  stroke-width: 4;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 22px;
}
.status-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-card.processed { border-color: rgba(43,178,76,0.16); }
.status-card.unprocessed { border-color: rgba(221,139,0,0.16); }
.status-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
}
.status-card.processed .status-icon { background: var(--green-soft); color: var(--green); }
.status-card.unprocessed .status-icon { background: var(--amber-soft); color: var(--amber); }
.status-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.status-value {
  margin-top: 4px;
  font-size: clamp(24px, 7vw, 36px);
  font-weight: 900;
  letter-spacing: -.03em;
}
.status-card.processed .status-value { color: var(--green); }
.status-card.unprocessed .status-value { color: var(--amber); }

.section-title {
  margin: 6px 0 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}
.section-caption {
  color: var(--muted);
  font-size: 13px;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.concept-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}
.concept-card:hover { transform: translateY(-1px); }
.concept-logo-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.concept-logo {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
.concept-name {
  margin-top: 10px;
  color: #5c6d89;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.concept-sales {
  margin-top: 8px;
  font-size: clamp(21px, 4.8vw, 28px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
}
.card-chevron {
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-3);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  line-height: 1;
}

.summary-card {
  margin-top: 4px;
  padding: 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,255,.94));
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}
.concept-summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.summary-logo-box {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: inset 0 0 0 10px #fbfdff, var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-logo-box img {
  max-width: 74%;
  max-height: 56px;
  object-fit: contain;
}
.summary-name {
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
}
.summary-label { margin-top: 6px; color: var(--muted); font-size: 13px; }
.summary-sales {
  margin-top: 10px;
  font-size: clamp(34px, 8.5vw, 52px);
  line-height: 1;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.045em;
}
.mini-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-status {
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.mini-status span { display: block; color: var(--muted); font-size: 13px; }
.mini-status strong { display: block; margin-top: 4px; font-size: 22px; }
.mini-status.processed strong { color: var(--green); }
.mini-status.unprocessed strong { color: var(--amber); }

.search-panel {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 12px;
  margin: 18px 0 10px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.search-icon { color: #8da3c0; display: inline-flex; }
.search-input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}
.search-input::placeholder { color: #96a6bd; }
.filter-button { width: 56px; color: var(--blue); }

.list-meta {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.store-list { display: grid; gap: 14px; }
.store-card {
  width: 100%;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.store-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f3f8ff 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.02em;
}
.store-badge span { display: block; margin-top: 3px; font-size: 18px; }
.store-copy { min-width: 0; }
.store-name {
  font-size: clamp(18px, 4.7vw, 24px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.03em;
}
.store-subline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.store-subline svg { width: 16px; height: 16px; }
.store-amount {
  font-size: clamp(18px, 5vw, 28px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.store-side {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-badge {
  min-width: 56px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 1px solid transparent;
}
.status-badge.processed { background: var(--green-soft); color: var(--green); border-color: rgba(43,178,76,.18); }
.status-badge.unprocessed { background: var(--amber-soft); color: var(--amber); border-color: rgba(221,139,0,.16); }
.side-chevron {
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}

.store-identity {
  padding: 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.store-identity-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.store-identity-logo img { max-width: 74%; max-height: 64px; object-fit: contain; }
.store-identity-concept {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--blue);
}
.store-identity-name {
  margin-top: 6px;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -.04em;
}
.store-identity-city {
  margin-top: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.store-identity-city svg { width: 18px; height: 18px; }

.kpi-panel {
  margin-top: 16px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #0b67f5 0%, #0f79ff 42%, #42a8ff 100%);
  color: #fff;
}
.kpi-main {
  padding: 18px 18px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: end;
}
.kpi-main-label {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}
.kpi-main-value {
  margin-top: 8px;
  font-size: clamp(34px, 10vw, 58px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
}
.kpi-main-chart { display: flex; justify-content: flex-end; align-items: end; }
.kpi-main-chart .sparkline { max-width: 160px; height: 72px; }
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.18);
}
.kpi-cell {
  min-height: 118px;
  padding: 16px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  border-right: 1px solid rgba(255,255,255,.12);
}
.kpi-cell:nth-child(2n) { border-right: 0; }
.kpi-chip {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.kpi-chip svg { width: 22px; height: 22px; stroke: currentColor; }
.kpi-chip.is-processed { background: rgba(43,178,76,.22); }
.kpi-chip.is-unprocessed { background: rgba(221,139,0,.22); }
.kpi-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255,255,255,.84);
}
.kpi-value {
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
}
.kpi-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6be25f;
}
.kpi-status-dot.unprocessed { background: #ffc04d; }
.kpi-status-text { font-size: 18px; }

.details-card {
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.detail-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.detail-row:last-child { border-bottom: 0; }
.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.detail-icon svg { width: 21px; height: 21px; }
.detail-label {
  color: #8898b2;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.detail-value {
  font-size: clamp(18px, 4.7vw, 25px);
  font-weight: 900;
  text-align: right;
  line-height: 1.15;
}

.loading-state, .error-state, .empty-state {
  min-height: 55dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 18px;
}
.state-icon {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 14px;
  background: #edf4ff; color: var(--blue);
  display: grid; place-items: center;
  font-size: 30px; font-weight: 900;
}
.state-title { font-size: 23px; font-weight: 900; }
.state-text { margin-top: 8px; color: var(--muted); max-width: 340px; }
.primary-button {
  margin-top: 18px;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, #3989ff 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(15,120,255,.24);
  cursor: pointer;
}

.app-footer {
  padding: 24px 18px calc(18px + var(--safe-bottom));
  color: #7d8daa;
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(223, 232, 243, 0.9);
}
.app-footer strong {
  display: block;
  margin-top: 6px;
  color: #114eaf;
  font-size: 18px;
  letter-spacing: .16em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  max-width: min(90vw, 440px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(17, 38, 75, 0.92);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 80;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 43, 0.38);
  display: grid;
  align-items: end;
  z-index: 60;
}
.sheet {
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 16px 20px calc(22px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(13, 24, 43, 0.18);
}
.sheet-handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #d5dfec;
  margin: 0 auto 16px;
}
.sheet-icon-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: #f4f8ff;
  display: grid;
  place-items: center;
}
.sheet h2 { margin: 0; text-align: center; font-size: 22px; }
.sheet p { margin: 12px 0 0; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-art { justify-content: flex-start; }
  .hero-art .sparkline { max-width: 100%; height: 88px; }
  .summary-sales, .hero-value, .kpi-main-value, .concept-sales, .store-amount, .detail-value { word-break: break-word; }
}

@media (max-width: 430px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .brand-icon { width: 46px; height: 46px; }
  .icon-button, .back-button, .install-button, .filter-button { min-width: 46px; height: 46px; }
  .lang-switch { min-width: 88px; height: 46px; }
  .app-main { padding: 18px 14px 24px; }
  .status-grid, .concept-grid, .mini-status-row { gap: 12px; }
  .concept-card { padding: 16px 14px 14px; }
  .store-card {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }
  .store-amount {
    grid-column: 2;
    margin-top: 2px;
  }
  .store-side {
    grid-column: 2;
    justify-content: space-between;
  }
  .summary-card { padding: 16px; }
  .concept-summary { grid-template-columns: 76px 1fr; gap: 14px; }
  .summary-logo-box { width: 76px; height: 76px; }
  .store-identity { grid-template-columns: 76px 1fr; padding: 16px; }
  .store-identity-logo { width: 76px; height: 76px; }
  .kpi-main { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .detail-row { grid-template-columns: 46px 1fr auto; }
}

/* RC3 senior UI polish */
.app-shell {
  position: relative;
  isolation: isolate;
}
.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 14%, rgba(61, 141, 255, .10), transparent 18rem),
    radial-gradient(circle at 82% 30%, rgba(36, 145, 255, .08), transparent 22rem);
}

.hero-card::after,
.kpi-panel::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 220%;
  top: -58%;
  left: -60%;
  transform: rotate(14deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  animation: heroSweep 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroSweep {
  0%, 58% { left: -65%; opacity: 0; }
  66% { opacity: .8; }
  86% { left: 125%; opacity: 0; }
  100% { left: 125%; opacity: 0; }
}

.live-dot { animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(43,178,76,.30); }
  65% { box-shadow: 0 0 0 8px rgba(43,178,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,178,76,0); }
}

.sparkline-line {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: drawSpark 1.3s cubic-bezier(.2,.7,.2,1) forwards;
}
.sparkline-dot {
  opacity: 0;
  animation: revealDot .35s ease 1.1s forwards, dotPulse 2s ease-in-out 1.5s infinite;
}
@keyframes drawSpark { to { stroke-dashoffset: 0; } }
@keyframes revealDot { to { opacity: 1; } }
@keyframes dotPulse {
  0%,100% { filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { filter: drop-shadow(0 0 8px rgba(255,255,255,.9)); }
}

.concept-card,
.store-card,
.status-card,
.summary-card,
.store-identity,
.kpi-panel,
.details-card {
  animation: cardIn .48s cubic-bezier(.2,.72,.2,1) both;
}
.concept-card { animation-delay: calc(var(--i, 0) * 55ms); }
.store-card { animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.concept-card,
.store-card,
.icon-button,
.back-button,
.install-button,
.filter-button,
.status-badge {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.concept-card:active,
.store-card:active,
.icon-button:active,
.back-button:active,
.install-button:active,
.filter-button:active {
  transform: scale(.985);
}

.summary-card {
  position: relative;
  overflow: hidden;
}
.summary-glow {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,153,255,.16) 0%, rgba(59,153,255,0) 68%);
  pointer-events: none;
}
.summary-card > *:not(.summary-glow) { position: relative; z-index: 1; }

/* Store list: deliberately conservative grid so long names cannot collide with amounts. */
.store-card {
  grid-template-columns: 64px minmax(0, 1fr) 62px;
  grid-template-rows: auto;
  align-items: center;
  gap: 14px;
  padding: 15px 14px;
  min-height: 112px;
}
.store-badge {
  width: 58px;
  height: 58px;
  align-self: center;
}
.store-copy {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.store-name {
  display: block;
  max-width: 100%;
  font-size: clamp(17px, 4.6vw, 22px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
}
.store-lower {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.store-subline {
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.store-subline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-amount {
  flex: 0 0 auto;
  font-size: clamp(17px, 4.5vw, 22px);
  color: #0e2c5a;
  white-space: nowrap;
}
.store-side {
  width: 62px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.status-badge {
  min-width: 50px;
  min-height: 32px;
  padding: 0 9px;
  font-size: 12px;
}
.side-chevron {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #edf5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}
.store-card:hover {
  border-color: #cbdcf0;
  box-shadow: 0 16px 34px rgba(27,69,118,.12);
}

.filter-button {
  position: relative;
}
.filter-button.active {
  color: #fff;
  background: linear-gradient(135deg, #0f78ff, #47a8ff);
  border-color: transparent;
}
.filter-dot {
  display: none;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.filter-button.active .filter-dot { display: block; }

.summary-logo-box img {
  max-width: 82%;
  max-height: 66px;
}

/* Stronger concept logos; size is based on the visual area, not filename dimensions. */
.concept-logo-wrap {
  min-height: 72px;
  align-items: center;
}
.concept-logo {
  max-width: 92%;
  max-height: 66px;
  width: auto;
  height: auto;
}
.concept-card[data-concept="sport-vision"] .concept-logo { max-width: 96%; max-height: 66px; }
.concept-card[data-concept="sport-reality"] .concept-logo { max-width: 92%; max-height: 60px; }
.concept-card[data-concept="buzz"] .concept-logo { max-width: 92%; max-height: 68px; }
.concept-card[data-concept="outlet"] .concept-logo { max-width: 90%; max-height: 62px; }
.concept-card[data-concept="nike"] .concept-logo { max-width: 78%; max-height: 64px; }
.concept-card[data-concept="online"] .concept-logo { max-width: 84%; max-height: 62px; }

/* Detail screen: more depth and visible hierarchy. */
.store-identity {
  position: relative;
  overflow: hidden;
}
.store-identity::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -85px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,120,255,.10), transparent 67%);
}
.store-identity > * { position: relative; z-index: 1; }
.kpi-panel { position: relative; }
.kpi-cell:hover { background: rgba(255,255,255,.05); }
.detail-row:hover .detail-icon {
  transform: scale(1.06);
  background: #e3f0ff;
}
.detail-icon { transition: transform .18s ease, background .18s ease; }

@media (min-width: 520px) {
  .summary-card {
    grid-template-columns: minmax(0, 1fr) 170px;
    align-items: center;
  }
  .mini-status-row { grid-template-columns: 1fr; }
  .concept-summary { grid-template-columns: 104px minmax(0, 1fr); }
  .summary-logo-box { width: 104px; height: 104px; }
  .summary-logo-box img { max-height: 76px; }
}

@media (max-width: 420px) {
  .topbar {
    min-height: calc(76px + var(--safe-top));
    padding-top: calc(12px + var(--safe-top));
    padding-bottom: 10px;
    gap: 8px;
  }
  .brand-block, .toolbar-title-block { gap: 9px; }
  .brand-name { font-size: 16px; }
  .brand-subtitle { font-size: 10px; }
  .brand-icon { width: 42px; height: 42px; border-radius: 13px; }
  .icon-button, .back-button, .install-button { min-width: 40px; width: 40px; height: 40px; border-radius: 13px; }
  .lang-switch { min-width: 76px; height: 40px; border-radius: 13px; }
  .lang-button { min-width: 34px; font-size: 12px; border-radius: 10px; }

  .page-heading { align-items: center; }
  .page-heading h1 { font-size: 25px; }
  .detail-heading .live-row { font-size: 10px; gap: 4px; }
  .detail-heading .live-pill { min-height: 28px; padding: 0 9px; font-size: 11px; }

  .summary-card { padding: 15px; gap: 14px; }
  .concept-summary { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .summary-logo-box { width: 64px; height: 64px; }
  .summary-logo-box img { max-width: 84%; max-height: 48px; }
  .summary-name { font-size: 22px; }
  .summary-label { font-size: 11px; }
  .summary-sales { margin-top: 6px; font-size: 30px; }
  .mini-status { padding: 11px 12px; border-radius: 18px; }
  .mini-status span { font-size: 11px; }
  .mini-status strong { font-size: 18px; }

  .search-panel { grid-template-columns: 1fr 48px; gap: 9px; }
  .search-wrap { height: 50px; padding: 0 14px; border-radius: 18px; }
  .filter-button { width: 48px; min-width: 48px; height: 50px; border-radius: 18px; }
  .list-meta { font-size: 10px; }

  .store-card {
    grid-template-columns: 52px minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 13px 11px;
    min-height: 104px;
  }
  .store-badge { width: 48px; height: 48px; font-size: 12px; }
  .store-badge span { font-size: 15px; }
  .store-name { font-size: 16px; line-height: 1.04; }
  .store-lower {
    margin-top: 7px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .store-subline { font-size: 10px; }
  .store-subline svg { width: 13px; height: 13px; }
  .store-amount { font-size: 17px; }
  .store-side { width: 50px; gap: 8px; }
  .status-badge { min-width: 44px; min-height: 28px; padding: 0 7px; font-size: 10px; }
  .side-chevron { width: 26px; height: 26px; font-size: 22px; }

  .concept-logo-wrap { min-height: 62px; }
  .concept-logo { max-height: 56px; }
  .concept-card { min-height: 154px; }
}

@media (max-width: 350px) {
  .toolbar-actions { gap: 5px; }
  .install-button { display: none; }
  .store-card { grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 8px; }
  .store-badge { width: 44px; height: 44px; }
  .store-side { width: 44px; }
  .store-name { font-size: 15px; }
  .store-amount { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ========================================================================== */
/* PAZARI BDS RC3 — premium responsive polish                                 */
/* ========================================================================== */
.app-main { animation: pageIn .34s cubic-bezier(.2,.8,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.topbar {
  box-shadow: 0 6px 28px rgba(40, 76, 123, .045);
}

.hero-card {
  isolation: isolate;
  background-size: 160% 160%;
  animation: heroFlow 10s ease-in-out infinite alternate;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  filter: blur(2px);
  z-index: 0;
}
@keyframes heroFlow { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.hero-live .live-dot, .live-pill .live-dot { animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(43,178,76,.12); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(43,178,76,0); }
}
.sparkline-line {
  stroke-dasharray: 680;
  stroke-dashoffset: 680;
  animation: drawLine 1.15s cubic-bezier(.2,.75,.2,1) forwards;
}
.sparkline-dot { animation: dotPop .5s .85s both; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes dotPop { from { opacity: 0; transform: scale(.2); transform-origin: center; } to { opacity: 1; transform: scale(1); } }

.reveal-card {
  opacity: 0;
  transform: translateY(10px) scale(.985);
  animation: revealCard .42s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0ms);
}
@keyframes revealCard { to { opacity: 1; transform: translateY(0) scale(1); } }

.status-card, .concept-card, .summary-card, .store-card, .store-identity, .details-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.concept-card:active, .store-card:active { transform: scale(.985); }
@media (hover:hover) {
  .concept-card:hover, .store-card:hover {
    transform: translateY(-3px);
    border-color: #cddcf0;
    box-shadow: 0 18px 38px rgba(31,75,129,.12);
  }
}

/* Dashboard concept cards: let the brands breathe. */
.concept-card {
  min-height: 196px;
  padding: 18px 18px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.concept-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 8%, rgba(44,139,255,.10), transparent 46%);
  opacity: .9;
}
.concept-card:nth-child(2n)::before { background: radial-gradient(circle at 90% 6%, rgba(0,171,255,.10), transparent 46%); }
.concept-card:nth-child(3n)::before { background: radial-gradient(circle at 8% 12%, rgba(92,109,137,.10), transparent 48%); }
.concept-logo-wrap {
  position: relative;
  z-index: 1;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
}
.concept-logo {
  width: auto;
  height: auto;
  max-width: 94%;
  max-height: 78px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 5px 10px rgba(21,55,96,.06));
}
.concept-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.concept-card-copy { min-width: 0; }
.concept-name { margin-top: 0; }
.concept-sales { margin-top: 6px; }
.card-chevron { position: static; flex: 0 0 38px; width: 38px; height: 38px; }

/* Concept header mirrors the approved blueprint, without crushing wide logos. */
.summary-card {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0,1fr) 170px;
  align-items: center;
  padding: 22px;
}
.summary-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,120,255,.14), transparent 68%);
}
.concept-summary { grid-template-columns: 124px minmax(0,1fr); position: relative; z-index: 1; }
.summary-logo-box {
  width: 124px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}
.summary-logo-box img { max-width: 88%; max-height: 76px; }
.mini-status-row { grid-template-columns: 1fr; position: relative; z-index: 1; }

/* Store list: deliberately uses independent zones so text can never overlap money/status. */
.store-card {
  grid-template-columns: 76px minmax(0,1fr) minmax(132px, auto);
  grid-template-areas: "badge copy metrics";
  gap: 16px;
  min-height: 108px;
  padding: 16px 18px;
  overflow: hidden;
}
.store-badge { grid-area: badge; }
.store-copy { grid-area: copy; min-width: 0; }
.store-card-metrics {
  grid-area: metrics;
  min-width: 0;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 10px;
}
.store-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.store-amount { font-size: clamp(18px,4.6vw,25px); }
.store-side { justify-content: flex-end; }
.status-badge { min-width: 52px; min-height: 36px; }
.side-chevron {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

/* Store detail: richer visual hierarchy. */
.store-identity {
  position: relative;
  overflow: hidden;
  grid-template-columns: 112px minmax(0,1fr);
  padding: 22px;
}
.store-identity::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(15,120,255,.10), transparent 68%);
}
.store-identity-logo { width: 112px; height: 100px; position: relative; z-index: 1; }
.store-identity-logo img { max-width: 88%; max-height: 82px; }
.store-identity-copy { position: relative; z-index: 1; }
.kpi-panel { position: relative; isolation: isolate; }
.kpi-panel::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  z-index: -1;
}
.kpi-main { min-height: 150px; padding: 24px 22px 18px; }
.kpi-grid { grid-template-columns: repeat(4,1fr); }
.kpi-cell {
  min-height: 130px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-right: 1px solid rgba(255,255,255,.16);
}
.kpi-cell:last-child { border-right: 0; }
.details-card { padding: 8px 20px; }

/* Larger phones and tablets. */
@media (min-width: 540px) {
  .concept-logo-wrap { min-height: 100px; }
  .concept-logo { max-height: 84px; }
}

/* Normal phones. This is the important anti-overlap layout. */
@media (max-width: 520px) {
  .summary-card { grid-template-columns: 1fr; gap: 14px; }
  .mini-status-row { grid-template-columns: 1fr 1fr; }

  .store-card {
    grid-template-columns: 68px minmax(0,1fr);
    grid-template-areas:
      "badge copy"
      "badge metrics";
    align-items: center;
    gap: 9px 14px;
    min-height: 118px;
    padding: 15px 16px;
  }
  .store-card-metrics {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .store-amount { min-width: 0; font-size: clamp(18px,5.2vw,24px); }
  .store-side { flex: 0 0 auto; gap: 8px; }
  .store-name { font-size: clamp(17px,5vw,22px); }
  .store-subline { margin-top: 5px; }

  .store-identity { grid-template-columns: 88px minmax(0,1fr); padding: 18px; }
  .store-identity-logo { width: 88px; height: 86px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-cell:nth-child(2) { border-right: 0; }
  .kpi-cell:nth-child(3) { border-top: 1px solid rgba(255,255,255,.16); }
}

/* Compact 320–390px phones. */
@media (max-width: 390px) {
  .topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .brand-block, .toolbar-title-block { gap: 9px; }
  .brand-icon { width: 42px; height: 42px; border-radius: 13px; }
  .brand-name { font-size: 16px; }
  .brand-subtitle { font-size: 10px; }
  .toolbar-actions { gap: 5px; }
  .icon-button, .back-button, .install-button { min-width: 40px; width: 40px; height: 42px; border-radius: 13px; }
  .lang-switch { min-width: 72px; width: 72px; height: 42px; padding: 3px; border-radius: 13px; }
  .lang-button { min-width: 30px; font-size: 12px; }

  .concept-grid { gap: 10px; }
  .concept-card { min-height: 160px; padding: 13px 12px; border-radius: 20px; }
  .concept-logo-wrap { min-height: 70px; padding: 0; }
  .concept-logo { max-width: 96%; max-height: 60px; }
  .concept-name { font-size: 11px; }
  .concept-sales { font-size: clamp(17px,5.1vw,21px); }
  .card-chevron { width: 32px; height: 32px; flex-basis: 32px; }

  .concept-summary { grid-template-columns: 86px minmax(0,1fr); }
  .summary-logo-box { width: 86px; height: 76px; }
  .summary-logo-box img { max-height: 58px; }
  .summary-name { font-size: 22px; }
  .summary-sales { font-size: 32px; }

  .store-card {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 8px 12px;
    padding: 14px 13px;
  }
  .store-badge { width: 54px; height: 54px; font-size: 12px; }
  .store-badge span { font-size: 16px; }
  .store-name { font-size: 17px; line-height: 1.08; }
  .store-amount { font-size: 18px; }
  .status-badge { min-width: 46px; min-height: 32px; padding: 0 10px; font-size: 12px; }
  .side-chevron { width: 28px; height: 28px; font-size: 23px; }

  .page-heading.detail-heading { align-items: flex-start; }
  .live-row { font-size: 10px; gap: 5px; }
  .live-pill { min-height: 30px; padding: 0 10px; }
  .store-identity { grid-template-columns: 76px minmax(0,1fr); gap: 13px; padding: 15px; }
  .store-identity-logo { width: 76px; height: 74px; }
  .store-identity-name { font-size: 23px; }
  .kpi-main { grid-template-columns: 1fr; min-height: 0; }
  .kpi-main-chart { justify-content: flex-start; }
  .kpi-main-chart .sparkline { max-width: 100%; height: 66px; }
  .detail-row { grid-template-columns: 44px minmax(0,1fr); grid-template-areas: "icon label" "icon value"; padding: 10px 0; }
  .detail-icon { grid-area: icon; }
  .detail-label { grid-area: label; }
  .detail-value { grid-area: value; text-align: left; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* RC3.1 visual depth pass */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -60% -30%;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.13) 48%, transparent 62%);
  transform: translateX(-40%);
  animation: heroSheen 7s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes heroSheen {
  0%,35% { transform: translateX(-38%); opacity: 0; }
  50% { opacity: .75; }
  72%,100% { transform: translateX(38%); opacity: 0; }
}
.hero-value, .summary-sales, .kpi-main-value { white-space: nowrap; }
.hero-value { font-size: clamp(32px, 8.45vw, 54px); }

.status-card {
  position: relative;
  overflow: hidden;
}
.status-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  right: -64px;
  bottom: -72px;
  background: currentColor;
  opacity: .028;
}

.concept-card {
  box-shadow: 0 12px 30px rgba(30,69,118,.07), inset 0 1px 0 rgba(255,255,255,.9);
}
.concept-logo-wrap::after {
  content: "";
  position: absolute;
  width: 76%;
  height: 36px;
  left: 12%;
  bottom: 2px;
  background: radial-gradient(ellipse, rgba(28,79,143,.11), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.summary-card {
  background:
    radial-gradient(circle at 100% 100%, rgba(63,166,255,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,255,.98));
}
.summary-logo-box {
  background: radial-gradient(circle at 50% 35%, #fff 0%, #f7fbff 72%, #eef5ff 100%);
}

.store-card {
  position: relative;
  box-shadow: 0 12px 28px rgba(30,69,118,.07);
}
.store-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #52b6ff, #0f78ff);
  opacity: .62;
}
.store-badge {
  box-shadow: inset 0 0 0 5px rgba(239,246,255,.72), 0 8px 20px rgba(36,82,139,.07);
}

.kpi-panel {
  padding-bottom: 14px;
  background:
    radial-gradient(circle at 88% 6%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(135deg, #075fe9 0%, #0f78ff 46%, #3fa8ff 100%);
}
.kpi-grid {
  gap: 10px;
  padding: 0 14px;
  border-top: 0;
}
.kpi-cell {
  min-height: 126px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.kpi-chip {
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.kpi-main-chart .sparkline-line { stroke-width: 3.5; }

.details-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,253,255,.98));
}
.detail-row { transition: background .15s ease; }
@media (hover:hover) { .detail-row:hover { background: #f8fbff; } }

@media (max-width: 390px) {
  .hero-value { font-size: clamp(31px, 9.1vw, 36px); }
  .hero-card { border-radius: 24px; padding: 18px 16px 15px; }
  .summary-card { border-radius: 24px; }
  .kpi-panel { border-radius: 26px; }
  .kpi-grid { gap: 8px; padding: 0 10px; }
  .kpi-cell { min-height: 116px; padding: 13px; border-radius: 18px; }
}

/* Auto-refresh heartbeat — communicates that the app is actively polling. */
.topbar { overflow: hidden; }
.refresh-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #0f78ff, #52b6ff);
  box-shadow: 0 0 10px rgba(15,120,255,.45);
  animation: refreshProgress var(--refresh-seconds, 30s) linear forwards;
  pointer-events: none;
}
@keyframes refreshProgress { to { transform: scaleX(1); } }

.concept-sales {
  white-space: nowrap;
  font-size: clamp(16px, 4.45vw, 23px);
  letter-spacing: -.045em;
}
.concept-card-footer {
  display: block;
  padding-right: 38px;
}
.card-chevron {
  position: absolute;
  right: 13px;
  bottom: 13px;
}
@media (max-width: 390px) {
  .concept-sales { font-size: clamp(15px, 4.55vw, 18px); }
  .concept-card-footer { padding-right: 33px; }
  .card-chevron { right: 10px; bottom: 11px; }
}

/* ================================================================
   RC6A — DATE NAVIGATION + CLEAN STORE LIST
   Existing Living Glass visual language is intentionally preserved.
   ================================================================ */
.page-eyebrow {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.store-count-orb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(15,120,255,.14);
  box-shadow: 0 14px 34px rgba(28,83,148,.09), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
}
.store-count-orb strong {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}
.store-count-orb span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.date-dock {
  position: relative;
  z-index: 5;
  margin: -2px 0 16px;
  padding: 11px;
  border: 1px solid rgba(206,221,240,.86);
  border-radius: 23px;
  background:
    radial-gradient(circle at 10% -20%, rgba(66,168,255,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,251,255,.92));
  box-shadow: 0 14px 36px rgba(28,69,121,.07), inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.date-primary-row {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 44px;
  gap: 9px;
  align-items: stretch;
}
.date-nav-button {
  width: 44px;
  min-width: 44px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(28,69,121,.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, opacity .16s ease;
}
.date-nav-button svg,
.date-calendar-icon svg,
.date-calendar-quick svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.date-nav-button:not(:disabled):active { transform: scale(.94); }
.date-nav-button:disabled { opacity: .28; cursor: default; }

.date-main-button {
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 8px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(135deg, rgba(239,247,255,.96), rgba(255,255,255,.98));
  border: 1px solid rgba(15,120,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.98), 0 9px 22px rgba(31,81,139,.06);
}
.date-main-button::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 38%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: dateGlassSheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dateGlassSheen {
  0%, 62% { left: -38%; opacity: 0; }
  72% { opacity: .72; }
  88%,100% { left: 112%; opacity: 0; }
}
.date-calendar-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: rgba(15,120,255,.08);
}
.date-main-copy { min-width: 0; display: grid; line-height: 1.1; }
.date-main-copy small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.date-main-copy strong {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.native-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}
.date-quick-row {
  margin-top: 9px;
  display: grid;
  grid-template-columns: .8fr .8fr 1.4fr;
  gap: 8px;
}
.date-quick-button {
  position: relative;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.78);
  color: #637694;
  font-size: 11px;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  overflow: hidden;
}
.date-quick-button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0871ff, #37a5ff);
  box-shadow: 0 8px 20px rgba(15,120,255,.20);
}
.date-calendar-quick svg { width: 15px; height: 15px; }

.compact-date-dock {
  min-height: 56px;
  padding: 7px;
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 40px auto;
  gap: 7px;
  align-items: center;
}
.compact-date-dock .date-nav-button {
  width: 40px;
  min-width: 40px;
  height: 42px;
  border-radius: 13px;
}
.compact-date-main {
  min-height: 42px;
  padding: 5px 9px;
  justify-content: flex-start;
}
.compact-date-main .date-calendar-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
}
.compact-date-main strong { font-size: 13px; }
.compact-date-main small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}
.date-today-mini {
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(15,120,255,.16);
  border-radius: 13px;
  background: #eef6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.hero-live.historical,
.live-pill.historical {
  color: #556b8b;
  background: rgba(245,249,255,.95);
  border-color: rgba(114,139,175,.24);
}
.history-symbol { font-size: 15px; line-height: 1; }

/* Store list without the redundant per-store badge/logo. */
.store-card {
  grid-template-columns: minmax(0,1fr) minmax(132px,auto) !important;
  grid-template-areas: "copy metrics" !important;
  gap: 14px 18px !important;
  min-height: 98px;
  padding: 16px 18px 16px 21px;
  align-items: center;
}
.store-card .store-copy { grid-area: copy; }
.store-card .store-card-metrics { grid-area: metrics; }
.store-card .store-name {
  font-size: clamp(17px, 4.8vw, 22px);
  line-height: 1.09;
}
.store-card .store-amount { white-space: nowrap; }

@media (hover:hover) {
  .date-nav-button:not(:disabled):hover,
  .date-main-button:hover,
  .date-quick-button:hover,
  .date-today-mini:hover {
    border-color: rgba(15,120,255,.26);
    box-shadow: 0 11px 28px rgba(23,92,171,.11);
  }
}

@media (max-width: 520px) {
  .store-card {
    grid-template-columns: minmax(0,1fr) minmax(112px,auto) !important;
    grid-template-areas: "copy metrics" !important;
    gap: 10px 12px !important;
    min-height: 102px;
    padding: 14px 14px 14px 18px;
  }
  .store-card-metrics {
    width: auto;
    display: grid;
    justify-items: end;
    gap: 7px;
  }
  .compact-date-dock { grid-template-columns: 38px minmax(0,1fr) 38px auto; }
  .compact-date-dock .date-nav-button { width: 38px; min-width: 38px; }
}

@media (max-width: 390px) {
  .store-count-orb { width: 52px; height: 52px; flex-basis: 52px; border-radius: 17px; }
  .store-count-orb strong { font-size: 18px; }
  .date-dock { padding: 9px; border-radius: 20px; }
  .date-primary-row { grid-template-columns: 40px minmax(0,1fr) 40px; gap: 7px; }
  .date-nav-button { width: 40px; min-width: 40px; height: 50px; border-radius: 14px; }
  .date-main-button { min-height: 50px; padding: 7px 9px; }
  .date-calendar-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .date-main-copy strong { font-size: 13px; }
  .date-quick-row { gap: 6px; }
  .date-quick-button { min-height: 34px; padding: 0 7px; font-size: 10px; }
  .compact-date-dock {
    grid-template-columns: 36px minmax(0,1fr) 36px;
    grid-template-areas: "prev main next" "today today today";
    gap: 6px;
  }
  .compact-date-dock > .date-nav-button:first-child { grid-area: prev; }
  .compact-date-dock > .compact-date-main { grid-area: main; }
  .compact-date-dock > .date-nav-button:nth-of-type(2) { grid-area: next; }
  .compact-date-dock > .date-today-mini { grid-area: today; width: 100%; height: 34px; }
  .compact-date-dock .date-nav-button { width: 36px; min-width: 36px; height: 42px; }
  .compact-date-main { min-height: 42px; }
}

@media (max-width: 350px) {
  .store-card {
    grid-template-columns: 1fr !important;
    grid-template-areas: "copy" "metrics" !important;
    gap: 10px !important;
  }
  .store-card-metrics {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .date-quick-row { grid-template-columns: 1fr 1fr; }
  .date-calendar-quick { grid-column: 1 / -1; }
}

/* ================================================================
   RC6B — MOBILE DENSITY / DATE PICKER / BRAND COLOR PASS
   - Dashboard starts directly with the primary KPI.
   - Date controls sit below KPI.
   - Native date input is invoked programmatically (no invisible overlay).
   - Concept tiles use brand-aware ambient color to reduce white dominance.
   ================================================================ */
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(39,131,255,.20), transparent 24rem),
    radial-gradient(circle at 88% 22%, rgba(83,185,255,.12), transparent 22rem),
    linear-gradient(180deg, #eaf1f9 0%, #e5edf7 100%);
}
.app-shell {
  background:
    radial-gradient(circle at 88% 16%, rgba(81,177,255,.09), transparent 22rem),
    linear-gradient(180deg, #f5f9fe 0%, #edf4fb 100%);
}
.app-main {
  background:
    linear-gradient(180deg, rgba(248,251,255,.54), rgba(237,244,251,.72));
}

.dashboard-hero {
  margin-top: 0;
  box-shadow:
    0 22px 50px rgba(13,111,244,.20),
    0 8px 18px rgba(22,74,133,.08),
    inset 0 1px 0 rgba(255,255,255,.18);
}

/* Date dock now lives after the KPI. */
.dashboard-hero + .date-dock {
  margin-top: 13px;
}
.date-dock {
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 14% -30%, rgba(30,139,255,.15), transparent 48%),
    linear-gradient(145deg, rgba(236,245,255,.94), rgba(247,251,255,.90));
  border-color: rgba(178,205,236,.76);
  box-shadow:
    0 12px 30px rgba(28,69,121,.07),
    inset 0 1px 0 rgba(255,255,255,.82);
}
.date-main-button,
.date-quick-button,
.date-nav-button,
.date-today-mini {
  appearance: none;
  -webkit-appearance: none;
}
/* The picker is no longer an invisible layer over the UI. */
.native-date-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  left: 50% !important;
  bottom: 2px !important;
  inset: auto auto 2px 50% !important;
  opacity: 0.001 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.status-card {
  background:
    linear-gradient(145deg, rgba(244,249,255,.92), rgba(235,244,252,.84));
  box-shadow:
    0 14px 34px rgba(34,78,127,.07),
    inset 0 1px 0 rgba(255,255,255,.84);
}
.status-card.processed {
  background:
    radial-gradient(circle at 8% 18%, rgba(43,178,76,.11), transparent 42%),
    linear-gradient(145deg, rgba(241,250,246,.95), rgba(234,245,250,.88));
}
.status-card.unprocessed {
  background:
    radial-gradient(circle at 8% 18%, rgba(242,161,27,.11), transparent 42%),
    linear-gradient(145deg, rgba(252,249,240,.95), rgba(239,246,251,.88));
}

.dashboard-concept-grid {
  margin-top: 4px;
}
.concept-card {
  isolation: isolate;
  border-color: rgba(190,207,227,.68);
  background: linear-gradient(145deg, rgba(242,247,253,.96), rgba(232,241,250,.92));
  box-shadow:
    0 15px 34px rgba(27,68,116,.09),
    inset 0 1px 0 rgba(255,255,255,.76);
}
.concept-card::before {
  inset: 0;
  opacity: 1;
  z-index: 0;
  background: radial-gradient(circle at 78% 12%, rgba(15,120,255,.16), transparent 52%);
}
.concept-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -1px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15,120,255,.46);
  box-shadow: 0 0 18px rgba(15,120,255,.25);
  pointer-events: none;
  z-index: 2;
}
.concept-card[data-concept="sport-vision"] {
  background:
    radial-gradient(circle at 84% 8%, rgba(239,41,55,.17), transparent 44%),
    linear-gradient(145deg, rgba(248,244,247,.98), rgba(238,242,248,.94));
  border-color: rgba(225,150,159,.34);
}
.concept-card[data-concept="sport-vision"]::after { background: rgba(236,38,55,.76); box-shadow: 0 0 20px rgba(236,38,55,.30); }
.concept-card[data-concept="sport-reality"] {
  background:
    radial-gradient(circle at 86% 8%, rgba(0,155,225,.20), transparent 46%),
    linear-gradient(145deg, rgba(239,248,253,.98), rgba(230,242,250,.95));
  border-color: rgba(78,170,217,.34);
}
.concept-card[data-concept="sport-reality"]::after { background: rgba(0,149,218,.78); box-shadow: 0 0 20px rgba(0,149,218,.30); }
.concept-card[data-concept="buzz"] {
  background:
    radial-gradient(circle at 84% 8%, rgba(76,84,94,.18), transparent 46%),
    linear-gradient(145deg, rgba(244,246,248,.98), rgba(231,237,243,.95));
  border-color: rgba(119,129,142,.34);
}
.concept-card[data-concept="buzz"]::after { background: rgba(80,89,100,.72); box-shadow: 0 0 20px rgba(80,89,100,.24); }
.concept-card[data-concept="outlet"] {
  background:
    radial-gradient(circle at 86% 8%, rgba(229,36,43,.17), transparent 46%),
    linear-gradient(145deg, rgba(249,244,246,.98), rgba(239,241,247,.95));
  border-color: rgba(219,123,132,.32);
}
.concept-card[data-concept="outlet"]::after { background: rgba(220,32,42,.76); box-shadow: 0 0 20px rgba(220,32,42,.28); }
.concept-card[data-concept="nike"] {
  background:
    radial-gradient(circle at 85% 8%, rgba(247,70,42,.20), transparent 46%),
    linear-gradient(145deg, rgba(250,246,244,.98), rgba(239,242,247,.95));
  border-color: rgba(230,134,112,.34);
}
.concept-card[data-concept="nike"]::after { background: rgba(244,67,39,.80); box-shadow: 0 0 20px rgba(244,67,39,.30); }
.concept-card[data-concept="online"] {
  background:
    radial-gradient(circle at 86% 8%, rgba(0,112,255,.19), transparent 46%),
    linear-gradient(145deg, rgba(239,247,255,.98), rgba(229,240,251,.95));
  border-color: rgba(75,147,231,.34);
}
.concept-card[data-concept="online"]::after { background: rgba(0,112,255,.78); box-shadow: 0 0 20px rgba(0,112,255,.30); }
.concept-card .concept-logo-wrap,
.concept-card .concept-card-footer { position: relative; z-index: 1; }
@media (hover:hover) {
  .concept-card:hover {
    transform: translateY(-4px) scale(1.008);
    box-shadow:
      0 21px 44px rgba(25,68,119,.14),
      0 0 34px rgba(15,120,255,.08),
      inset 0 1px 0 rgba(255,255,255,.86);
  }
  .concept-card[data-concept="sport-vision"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(236,38,55,.12); }
  .concept-card[data-concept="sport-reality"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(0,149,218,.14); }
  .concept-card[data-concept="buzz"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(80,89,100,.10); }
  .concept-card[data-concept="outlet"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(220,32,42,.12); }
  .concept-card[data-concept="nike"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(244,67,39,.13); }
  .concept-card[data-concept="online"]:hover { box-shadow: 0 21px 44px rgba(25,68,119,.12), 0 0 34px rgba(0,112,255,.13); }
}

/* Concept page filter now drives the summary; keep it visually connected. */
.summary-card {
  background:
    radial-gradient(circle at 95% 0%, rgba(24,126,255,.13), transparent 45%),
    linear-gradient(145deg, rgba(242,248,254,.97), rgba(232,242,251,.94));
  border-color: rgba(182,205,232,.72);
}
.search-wrap {
  background: rgba(242,248,254,.92);
}
.store-card {
  background:
    linear-gradient(145deg, rgba(246,250,254,.96), rgba(237,245,252,.92));
  border-color: rgba(193,210,230,.76);
}

@media (max-width: 390px) {
  .dashboard-hero + .date-dock { margin-top: 11px; }
  .status-grid { margin-top: 13px; margin-bottom: 16px; }
  .dashboard-concept-grid { margin-top: 1px; }
}

/* ================================================================
   RC6C — UNIFIED MOBILE DATE UI / ROUTE HEADER STATUS / GLASS PASS
   - Live + refreshed status moves into the sticky route header.
   - Concept and store detail pages no longer repeat their page title.
   - The same premium rounded date navigator is used on every screen.
   - Custom calendar replaces the browser-native date picker.
   - Concept/store screens use a softer blue-grey glass environment.
   ================================================================ */

.route-topbar {
  min-height: calc(98px + var(--safe-top));
  padding-bottom: 30px;
}
.topbar-route-status {
  position: absolute;
  right: 18px;
  bottom: 7px;
  z-index: 2;
}
.topbar-route-status .live-row {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.topbar-route-status .live-pill {
  min-height: 26px;
  padding: 0 10px;
  gap: 6px;
  font-size: 10px;
}
.topbar-route-status .live-dot {
  width: 8px;
  height: 8px;
}

.route-concept,
.route-store {
  position: relative;
  background:
    radial-gradient(circle at 88% 6%, rgba(56,157,255,.12), transparent 23rem),
    radial-gradient(circle at 8% 42%, rgba(80,181,255,.08), transparent 20rem),
    linear-gradient(180deg, rgba(236,244,252,.92), rgba(230,239,249,.96));
}
.route-concept::before,
.route-store::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.19) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  opacity: .42;
}
.route-concept > *,
.route-store > * {
  position: relative;
  z-index: 1;
}

/* Unified date component: same geometry on dashboard/list/detail. */
.premium-date-dock {
  margin: 0 0 15px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(169,198,231,.72);
  background:
    radial-gradient(circle at 82% 12%, rgba(80,180,255,.13), transparent 43%),
    linear-gradient(145deg, rgba(243,249,255,.96), rgba(232,242,252,.93));
  box-shadow:
    0 14px 34px rgba(27,68,116,.09),
    inset 0 1px 0 rgba(255,255,255,.92);
}
.premium-date-dock .date-primary-row {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 48px;
  gap: 8px;
  align-items: center;
}
.premium-date-dock .date-nav-button {
  width: 48px;
  min-width: 48px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(235,244,253,.9));
  border: 1px solid rgba(173,198,228,.72);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 19px rgba(30,78,134,.07);
}
.premium-date-dock .date-main-button {
  min-height: 54px;
  border-radius: 19px;
  justify-content: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(78,178,255,.14), transparent 50%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,245,255,.94));
  border-color: rgba(99,165,239,.30);
}
.premium-date-dock .date-calendar-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(224,241,255,.98), rgba(245,250,255,.95));
  box-shadow: 0 7px 18px rgba(15,120,255,.10);
}
.premium-date-dock .date-main-copy {
  text-align: left;
}
.premium-date-dock .date-main-copy strong {
  font-size: 15px;
}
.premium-date-dock .date-quick-row {
  margin-top: 9px;
  gap: 7px;
  grid-template-columns: .82fr .82fr 1.36fr;
}
.premium-date-dock .date-quick-button {
  min-height: 38px;
  border-radius: 14px;
  background: rgba(246,250,255,.78);
  border-color: rgba(174,198,226,.72);
}
.premium-date-dock .date-quick-button.active {
  background: linear-gradient(135deg, #0871ff, #39aaff);
  box-shadow: 0 9px 24px rgba(15,120,255,.22), 0 0 20px rgba(64,181,255,.12);
}
.premium-date-dock .date-quick-button svg {
  width: 15px;
  height: 15px;
}

/* Concept summary + list: less white, more depth. */
.route-concept .summary-card {
  margin-top: 2px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 2%, rgba(41,139,255,.17), transparent 44%),
    linear-gradient(145deg, rgba(238,247,255,.97), rgba(226,239,251,.94));
  border-color: rgba(153,192,232,.72);
  box-shadow:
    0 18px 40px rgba(27,68,116,.11),
    0 0 34px rgba(42,144,255,.05),
    inset 0 1px 0 rgba(255,255,255,.88);
}
.route-concept .summary-card[data-concept="sport-vision"] {
  background:
    radial-gradient(circle at 8% 30%, rgba(239,41,55,.11), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(41,139,255,.15), transparent 44%),
    linear-gradient(145deg, rgba(241,247,253,.98), rgba(226,239,251,.95));
}
.route-concept .search-wrap,
.route-concept .filter-button,
.route-concept .store-card {
  background: linear-gradient(145deg, rgba(239,247,254,.96), rgba(228,239,250,.93));
  border-color: rgba(165,195,228,.70);
}
.route-concept .store-card {
  box-shadow: 0 12px 28px rgba(28,72,124,.075), inset 0 1px 0 rgba(255,255,255,.82);
}
.route-concept .store-card::before {
  box-shadow: 0 0 15px rgba(15,120,255,.22);
}

/* Detail page cards keep the blue hero, but surrounding surfaces are tinted. */
.route-store .store-identity,
.route-store .details-card {
  background:
    radial-gradient(circle at 92% 2%, rgba(43,146,255,.12), transparent 44%),
    linear-gradient(145deg, rgba(241,248,254,.97), rgba(229,240,251,.94));
  border-color: rgba(166,196,229,.72);
  box-shadow: 0 16px 36px rgba(28,72,124,.09), inset 0 1px 0 rgba(255,255,255,.86);
}
.route-store .store-identity[data-concept="sport-vision"] {
  background:
    radial-gradient(circle at 12% 32%, rgba(239,41,55,.10), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(43,146,255,.11), transparent 44%),
    linear-gradient(145deg, rgba(242,248,254,.98), rgba(229,240,251,.95));
}
.route-store .detail-row:hover {
  background: rgba(230,241,252,.72);
}
.route-store .detail-icon {
  background: linear-gradient(145deg, rgba(222,240,255,.98), rgba(242,248,255,.96));
  box-shadow: 0 7px 17px rgba(15,120,255,.08);
}

/* Custom modern calendar. */
.calendar-open { overflow: hidden; }
.calendar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  padding-top: max(20px, var(--safe-top));
  background: rgba(13,28,52,.42);
  backdrop-filter: blur(10px) saturate(125%);
  animation: calendarBackdropIn .18s ease-out;
}
@keyframes calendarBackdropIn { from { opacity: 0; } to { opacity: 1; } }
.calendar-sheet {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 11px 18px calc(22px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  border: 1px solid rgba(183,208,237,.84);
  border-bottom: 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(65,165,255,.16), transparent 38%),
    linear-gradient(165deg, rgba(248,252,255,.98), rgba(232,242,252,.98));
  box-shadow: 0 -22px 70px rgba(14,48,91,.20), inset 0 1px 0 rgba(255,255,255,.96);
  animation: calendarSheetIn .24s cubic-bezier(.2,.82,.2,1);
}
@keyframes calendarSheetIn { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.calendar-sheet-handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  margin: 0 auto 13px;
  background: linear-gradient(90deg, #c8d7e9, #a9c3df);
}
.calendar-sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.calendar-sheet-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.calendar-sheet-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.calendar-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(170,198,229,.78);
  border-radius: 15px;
  background: rgba(246,250,255,.88);
  color: #5f7291;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.calendar-shortcuts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.calendar-shortcut {
  min-height: 43px;
  border: 1px solid rgba(168,197,230,.72);
  border-radius: 15px;
  background: rgba(242,248,254,.90);
  color: #627694;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.calendar-shortcut.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0871ff, #39aaff);
  box-shadow: 0 9px 22px rgba(15,120,255,.20);
}
.calendar-month-bar {
  margin-top: 15px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}
.calendar-month-bar strong {
  text-align: center;
  font-size: 17px;
  text-transform: capitalize;
}
.calendar-month-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(169,198,231,.70);
  border-radius: 15px;
  background: rgba(245,250,255,.88);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.calendar-month-nav svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.calendar-month-nav:disabled { opacity: .25; cursor: default; }
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  margin: 4px 0 6px;
  color: #8192ab;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}
.calendar-weekdays span { padding: 7px 0; }
.calendar-grid { gap: 4px; }
.calendar-day {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #21375d;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.calendar-day span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.calendar-day.outside { color: #aeb9ca; }
.calendar-day.today span {
  box-shadow: inset 0 0 0 1px rgba(15,120,255,.34);
  color: var(--blue);
}
.calendar-day.selected span {
  color: #fff;
  background: linear-gradient(135deg, #0871ff, #3aabff);
  box-shadow: 0 8px 18px rgba(15,120,255,.26), 0 0 18px rgba(68,183,255,.12);
}
.calendar-day:disabled { opacity: .25; cursor: default; }
@media (hover:hover) {
  .calendar-day:not(:disabled):hover span { background: rgba(15,120,255,.09); }
  .calendar-day.selected:hover span { background: linear-gradient(135deg, #0871ff, #3aabff); }
  .calendar-close:hover,
  .calendar-month-nav:not(:disabled):hover,
  .calendar-shortcut:hover { border-color: rgba(15,120,255,.32); }
}

@media (max-width: 430px) {
  .route-topbar {
    min-height: calc(94px + var(--safe-top));
    padding-bottom: 28px;
  }
  .topbar-route-status { right: 15px; bottom: 6px; }
  .topbar-route-status .live-row { gap: 7px; font-size: 9px; }
  .premium-date-dock { padding: 9px; border-radius: 22px; }
  .premium-date-dock .date-primary-row { grid-template-columns: 42px minmax(0,1fr) 42px; gap: 7px; }
  .premium-date-dock .date-nav-button { width: 42px; min-width: 42px; height: 50px; border-radius: 16px; }
  .premium-date-dock .date-main-button { min-height: 50px; border-radius: 17px; padding: 6px 8px; }
  .premium-date-dock .date-calendar-icon { width: 32px; height: 32px; flex-basis: 32px; }
  .premium-date-dock .date-main-copy strong { font-size: 13px; }
  .premium-date-dock .date-quick-button { min-height: 35px; padding: 0 7px; font-size: 10px; }
  .calendar-sheet { padding-left: 15px; padding-right: 15px; }
  .calendar-sheet-heading h2 { font-size: 22px; }
  .calendar-day { border-radius: 12px; }
  .calendar-day span { width: 31px; height: 31px; border-radius: 11px; }
}

@media (max-width: 350px) {
  .premium-date-dock .date-quick-row { grid-template-columns: 1fr 1fr; }
  .premium-date-dock .date-calendar-quick { grid-column: 1 / -1; }
  .calendar-grid { gap: 2px; }
  .calendar-day span { width: 29px; height: 29px; }
}

/* ================================================================
   RC6D — CONSISTENT DATE POSITION
   Date navigator always follows the primary KPI/summary block:
   Dashboard hero -> date, Concept summary -> date, Store KPI -> date.
   ================================================================ */
.dashboard-hero + .premium-date-dock,
.route-concept .summary-card + .premium-date-dock,
.route-store .kpi-panel + .premium-date-dock {
  margin-top: 14px;
}

@media (max-width: 390px) {
  .dashboard-hero + .premium-date-dock,
  .route-concept .summary-card + .premium-date-dock,
  .route-store .kpi-panel + .premium-date-dock {
    margin-top: 11px;
  }
}

/* ================================================================
   RC6E — REAL MTD + SQL HOURLY TREND
   ================================================================ */
.dashboard-hero {
  grid-template-columns: minmax(0, .95fr) minmax(190px, 1.05fr);
  align-items: stretch;
}
.dashboard-hero .hero-art {
  align-items: center;
  min-width: 0;
}
.hourly-trend {
  width: 100%;
  min-width: 0;
  padding: 9px 10px 7px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 28px rgba(0,55,145,.12);
  backdrop-filter: blur(8px);
}
.hourly-trend-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.hourly-trend-title strong {
  color: #fff;
  font-size: 12px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.hourly-trend-svg {
  width: 100%;
  height: 82px;
  overflow: visible;
  display: block;
}
.hourly-trend-area { fill: url(#hourlyTrendFill); }
.hourly-trend-line {
  fill: none;
  stroke: #fff;
  stroke-width: 3.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: rc6eTrendDraw 1.05s cubic-bezier(.2,.8,.2,1) forwards;
  filter: drop-shadow(0 6px 9px rgba(255,255,255,.20));
}
.hourly-trend-dot {
  fill: #fff;
  stroke: rgba(255,255,255,.38);
  stroke-width: 4;
  transform-origin: center;
  animation: rc6eTrendDot .85s ease-out .6s both;
}
.hourly-trend-axis {
  margin-top: -2px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 800;
}
.hourly-trend-axis span:nth-child(2) { text-align: center; }
.hourly-trend-axis span:last-child { text-align: right; }
@keyframes rc6eTrendDraw { to { stroke-dashoffset: 0; } }
@keyframes rc6eTrendDot {
  from { opacity: 0; transform: scale(.45); }
  to { opacity: 1; transform: scale(1); }
}

.mtd-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 13px;
  padding: 16px;
  border-radius: 25px;
  border: 1px solid rgba(158,191,228,.72);
  background:
    radial-gradient(circle at 8% -20%, rgba(52,153,255,.19), transparent 46%),
    radial-gradient(circle at 96% 115%, rgba(32,105,215,.12), transparent 44%),
    linear-gradient(145deg, rgba(234,244,254,.97), rgba(218,233,248,.94));
  box-shadow:
    0 16px 36px rgba(28,72,124,.10),
    inset 0 1px 0 rgba(255,255,255,.88);
}
.mtd-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.18) 42%, transparent 65%);
  transform: translateX(-125%);
  animation: rc6eMtdShimmer 8s ease-in-out infinite;
}
.mtd-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -82px;
  top: -92px;
  border-radius: 50%;
  background: rgba(38,137,255,.15);
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}
.mtd-card.positive .mtd-glow { background: rgba(42,186,96,.15); }
.mtd-card.negative .mtd-glow { background: rgba(227,86,86,.14); }
@keyframes rc6eMtdShimmer {
  0%, 72%, 100% { transform: translateX(-125%); }
  82% { transform: translateX(125%); }
}
.mtd-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mtd-heading > div {
  display: grid;
  gap: 3px;
}
.mtd-kicker {
  color: #6e83a2;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .075em;
}
.mtd-heading strong {
  color: #18345f;
  font-size: 15px;
  letter-spacing: -.025em;
}
.mtd-cutoff {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #2276d6;
  background: rgba(231,242,255,.88);
  border: 1px solid rgba(66,143,231,.18);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.mtd-years {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr);
  gap: 8px;
  align-items: center;
}
.mtd-year {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 17px;
  background: rgba(244,249,255,.72);
  border: 1px solid rgba(164,195,229,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}
.mtd-year span {
  display: block;
  color: #7d90ab;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.mtd-year strong {
  display: block;
  margin-top: 4px;
  color: #17335d;
  font-size: clamp(16px, 4.3vw, 20px);
  line-height: 1.05;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.mtd-year.current {
  background: linear-gradient(145deg, rgba(229,242,255,.95), rgba(239,248,255,.78));
  border-color: rgba(73,150,238,.38);
}
.mtd-year.current strong { color: #0f6fe7; }
.mtd-vs {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6f84a1;
  background: rgba(235,243,252,.82);
  border: 1px solid rgba(165,194,226,.62);
  font-size: 9px;
  font-weight: 950;
  box-shadow: 0 7px 15px rgba(35,77,129,.06);
}
.mtd-delta {
  margin-top: 11px;
  min-height: 43px;
  padding: 8px 11px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(232,241,251,.76);
  border: 1px solid rgba(165,194,226,.48);
}
.mtd-delta-percent,
.mtd-delta-money {
  font-weight: 900;
  white-space: nowrap;
}
.mtd-delta-percent { font-size: 14px; }
.mtd-delta-money { font-size: 12px; color: #687f9f; }
.mtd-card.positive .mtd-delta-percent { color: #199447; }
.mtd-card.negative .mtd-delta-percent { color: #d64d4d; }
.mtd-card.neutral .mtd-delta-percent { color: #55708f; }

/* MTD always follows the same date dock on all three routes. */
.premium-date-dock + .mtd-card { margin-top: 11px; }
.mtd-card + .status-grid,
.mtd-card + .search-panel,
.mtd-card + .details-card { margin-top: 16px; }

.kpi-main-single {
  grid-template-columns: 1fr;
  min-height: 112px;
  align-items: center;
}
.kpi-main-single > div {
  position: relative;
  z-index: 1;
}
.kpi-main-single::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -95px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  filter: blur(2px);
}
.kpi-main { position: relative; overflow: hidden; }

@media (max-width: 560px) {
  .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-hero .hero-art { margin-top: 4px; }
  .hourly-trend { padding: 8px 10px 6px; }
  .hourly-trend-svg { height: 76px; }
}

@media (max-width: 390px) {
  .mtd-card { padding: 13px; border-radius: 22px; }
  .mtd-years { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); gap: 6px; }
  .mtd-vs { width: 28px; height: 28px; font-size: 8px; }
  .mtd-year { padding: 9px 9px; border-radius: 15px; }
  .mtd-year strong { font-size: 15px; }
  .mtd-delta { padding: 8px 9px; }
  .mtd-delta-percent { font-size: 12px; }
  .mtd-delta-money { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hourly-trend-line,
  .hourly-trend-dot,
  .mtd-card::after { animation: none !important; }
  .hourly-trend-line { stroke-dasharray: none; stroke-dashoffset: 0; }
}


/* ================================================================
   RC6F — HEADER STATUS + HOME NAV + SAFE HERO TREND + FULL-MONTH MTD
   ================================================================ */
.brand-status {
  margin-top: 5px;
  min-height: 24px;
}
.brand-status .live-row {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand-status .live-pill {
  min-height: 23px;
  padding: 0 8px;
  gap: 5px;
  font-size: 9.5px;
}
.brand-status .live-dot {
  width: 7px;
  height: 7px;
}

.route-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.home-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: #12315f;
}
.route-nav-buttons .back-button {
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
}
.home-button:hover {
  background: var(--surface-2);
  border-color: #cfdced;
}
.home-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Never allow the live SQL chart to collide with the money value. */
.dashboard-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(170px, .88fr);
}
.dashboard-hero .hero-content,
.dashboard-hero .hero-art {
  min-width: 0;
}
.dashboard-hero .hero-content {
  overflow: hidden;
}
.dashboard-hero .hero-value {
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(31px, 6.2vw, 44px);
}

@media (max-width: 640px) {
  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    align-items: stretch;
  }
  .dashboard-hero .hero-value {
    font-size: clamp(38px, 11vw, 49px);
  }
  .dashboard-hero .hero-art {
    width: 100%;
    align-items: stretch;
  }
  .dashboard-hero .hourly-trend {
    width: 100%;
    box-sizing: border-box;
  }
  .dashboard-hero .hourly-trend-svg {
    height: 74px;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding-left: 11px;
    padding-right: 11px;
    gap: 7px;
  }
  .toolbar-title-block {
    gap: 7px;
  }
  .route-nav-buttons {
    gap: 4px;
  }
  .route-nav-buttons .back-button,
  .route-nav-buttons .home-button,
  .route-topbar .toolbar-actions .icon-button,
  .route-topbar .toolbar-actions .install-button {
    height: 40px;
    min-width: 40px;
    border-radius: 13px;
  }
  .route-topbar .brand-name {
    font-size: 16px;
  }
  .route-topbar .brand-subtitle {
    font-size: 9px;
  }
}


/* ================================================================
   RC6G — UNIFIED TOPBAR STATUS POSITION
   Uživo/Istorijski pregled + Osvježeno occupy the exact same slot
   on Dashboard, Lista radnji and Detalj radnje.
   ================================================================ */
.topbar.has-unified-status {
  min-height: calc(98px + var(--safe-top));
  padding-bottom: 30px;
}
.topbar-unified-status {
  position: absolute;
  right: 18px;
  bottom: 7px;
  z-index: 4;
  max-width: calc(100% - 36px);
}
.topbar-unified-status .live-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.topbar-unified-status .live-pill {
  min-height: 26px;
  padding: 0 10px;
  gap: 6px;
  font-size: 10px;
}
.topbar-unified-status .live-dot {
  width: 8px;
  height: 8px;
}

/* Old per-route/dashboard status containers are intentionally unused in RC6G. */
.brand-status,
.topbar-route-status {
  display: none !important;
}

@media (max-width: 430px) {
  .topbar.has-unified-status {
    min-height: calc(94px + var(--safe-top));
    padding-bottom: 28px;
  }
  .topbar-unified-status {
    right: 12px;
    bottom: 7px;
    max-width: calc(100% - 24px);
  }
  .topbar-unified-status .live-row {
    gap: 7px;
    font-size: 9px;
  }
  .topbar-unified-status .live-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9px;
  }
}


/* ================================================================
   RC6H — TOTAL KPI OPENS ALL STORES
   The primary dashboard KPI is an intentional navigation target.
   ================================================================ */
.dashboard-hero-link {
  width: 100%;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-hero-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 48px rgba(2,78,189,.24), inset 0 1px 0 rgba(255,255,255,.16);
}
.dashboard-hero-link:active { transform: translateY(0) scale(.997); }
.dashboard-hero-link:focus-visible {
  outline: 3px solid rgba(44,148,255,.34);
  outline-offset: 3px;
}
.hero-open-all {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.hero-open-all span {
  font-size: 18px;
  line-height: 9px;
  transform: translateY(-1px);
}
.route-all .summary-logo-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 15px;
}


/* ================================================================
   RC6I — CLICKABLE KPI CLEANUP
   - Primary KPI keeps white typography while remaining fully clickable.
   - Remove redundant “Sve radnje” helper text.
   - Prevent overlap on the All Stores summary card.
   ================================================================ */
.dashboard-hero-link {
  color: #fff;
}
.dashboard-hero-link .hero-label,
.dashboard-hero-link .hero-value {
  color: #fff;
}
.dashboard-hero .hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.dashboard-hero .hero-value {
  text-shadow: 0 2px 10px rgba(8, 45, 111, .14);
}
.hero-open-all {
  display: none !important;
}

.route-all .summary-card {
  grid-template-columns: 1fr;
  gap: 14px;
}
.route-all .concept-summary {
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.route-all .summary-logo-box {
  width: 84px;
  height: 84px;
}
.route-all .summary-logo-box img {
  max-width: 82%;
  max-height: 60px;
}
.route-all .summary-name {
  font-size: clamp(22px, 6.2vw, 36px);
}
.route-all .summary-sales {
  font-size: clamp(30px, 8.6vw, 46px);
}
.route-all .mini-status-row {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 520px) {
  .dashboard-hero {
    gap: 12px;
  }
  .dashboard-hero .hero-art {
    margin-top: 2px;
  }
  .dashboard-hero .hourly-trend {
    padding: 8px 9px 6px;
  }
  .route-all .summary-card {
    padding: 16px;
  }
  .route-all .concept-summary {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
  }
  .route-all .summary-logo-box {
    width: 70px;
    height: 70px;
  }
  .route-all .summary-logo-box img {
    max-height: 50px;
  }
  .route-all .summary-sales {
    font-size: clamp(28px, 8.9vw, 40px);
  }
}

@media (max-width: 390px) {
  .dashboard-hero .hero-value {
    font-size: clamp(34px, 10.2vw, 42px);
  }
  .route-all .summary-name {
    font-size: 20px;
  }
  .route-all .summary-sales {
    font-size: clamp(27px, 8.7vw, 34px);
  }
  .route-all .mini-status {
    padding: 12px 13px;
  }
}


/* ================================================================
   RC6J — TOTAL KPI BUTTON RESET + CONCEPT-CARD HOVER
   - Removes browser button border/background artifacts around KPI.
   - KPI keeps approved blue hero styling and white typography.
   - Hover/press motion matches concept cards.
   ================================================================ */
.dashboard-hero-link {
  border: 0 !important;
  outline: 0;
  background: linear-gradient(135deg, #0a67f6 0%, #2491ff 58%, #51b2ff 100%);
  box-shadow:
    0 22px 50px rgba(13,111,244,.20),
    0 8px 18px rgba(22,74,133,.08),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.dashboard-hero-link:hover {
  transform: translateY(-4px) scale(1.008);
  border-color: transparent;
  box-shadow:
    0 21px 44px rgba(25,68,119,.14),
    0 0 34px rgba(15,120,255,.12),
    inset 0 1px 0 rgba(255,255,255,.20);
}
.dashboard-hero-link:active {
  transform: scale(.985);
}
.dashboard-hero-link:focus-visible {
  outline: 3px solid rgba(15,120,255,.24);
  outline-offset: 3px;
}
