/* ============================================================================
   כדאי v35 — Direction Quoty-style
   Rose magenta + mint + Plus Jakarta Sans + bold sans
   Single-source CSS, no v32/v33 layered overrides.
============================================================================ */

/* ============================================================================
   1. RESET & BASE
============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ============================================================================
   2. DESIGN TOKENS
============================================================================ */
:root, [data-theme="light"] {
  --bg:            #FFFFFF;
  --bg-soft:       #F4F5F7;
  --bg-tint:       #FAFBFC;
  --panel:         #FFFFFF;

  --ink:           #0E1A2B;
  --ink-2:         #1C2C42;
  --muted:         #5C6B82;
  --subtle:        #94A3B8;
  --border:        #E8ECF1;
  --border-strong: #D5DCE5;

  --pink:          #FF1A6B;
  --pink-deep:     #D9094C;
  --pink-soft:     #FFE5EF;
  --pink-tint:     #FFF1F6;

  --mint:          #6BD6BA;
  --mint-deep:     #0F6B57;
  --mint-soft:     #C6F0E3;
  --mint-tint:     #E8F8F2;

  --green:         #00B07A;
  --green-soft:    #D4F4E5;
  --amber:         #F59E0B;
  --amber-deep:    #92400E;
  --amber-soft:    #FEF3C7;
  --danger:        #DC2626;
  --danger-soft:   #FEE2E2;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(14, 26, 43, 0.04);
  --shadow-2: 0 8px 24px -6px rgba(14, 26, 43, 0.08), 0 2px 4px rgba(14, 26, 43, 0.04);
  --shadow-3: 0 24px 48px -12px rgba(14, 26, 43, 0.14);
  --shadow-pink: 0 12px 24px -6px rgba(255, 26, 107, 0.35);

  --tx: 200ms cubic-bezier(.4, 0, .2, 1);
  --tx-spring: 380ms cubic-bezier(.34, 1.56, .64, 1);
  --tx-fast: 140ms cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg:            #0B1220;
  --bg-soft:       #131C2D;
  --bg-tint:       #1A2236;
  --panel:         #131C2D;
  --ink:           #F1F5F9;
  --ink-2:         #E2E8F0;
  --muted:         #94A3B8;
  --subtle:        #64748B;
  --border:        #1F2A40;
  --border-strong: #2E3A52;
  --pink-tint:     rgba(255, 26, 107, 0.12);
  --pink-soft:     rgba(255, 26, 107, 0.22);
  --mint-tint:     rgba(107, 214, 186, 0.10);
  --mint-soft:     rgba(107, 214, 186, 0.20);
  --green-soft:    rgba(0, 176, 122, 0.18);
  --amber-soft:    rgba(245, 158, 11, 0.18);
  --shadow-2: 0 8px 24px -6px rgba(0, 0, 0, 0.50);
  --shadow-3: 0 24px 48px -12px rgba(0, 0, 0, 0.60);
}

/* ============================================================================
   3. TYPOGRAPHY
============================================================================ */
body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { letter-spacing: -0.025em; font-weight: 800; }
.tnum { font-variant-numeric: tabular-nums; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 24px; } }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================================
   4. FOCUS-VISIBLE
============================================================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="button"]:focus-visible,
[role="option"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 8px;
}
.toggle input:focus-visible { outline: none; }

/* ============================================================================
   5. ICONS BASE
============================================================================ */
.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 28px; height: 28px; }

/* ============================================================================
   6. TOPBAR
============================================================================ */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .topbar { background: rgba(11, 18, 32, 0.88); }
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-pink);
  flex-shrink: 0;
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.header-actions { display: flex; gap: 4px; }
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tx-fast);
}
.icon-btn:hover {
  background: var(--bg-soft);
  color: var(--pink);
}
.icon-btn .icon { width: 20px; height: 20px; }
.notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
}

.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
}
.lang-picker[hidden] { display: none !important; }
.update-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.update-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(107, 214, 186, 0.7);
  animation: updatePulse 2.4s ease-in-out infinite;
}
@keyframes updatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 214, 186, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(107, 214, 186, 0); }
}

/* ============================================================================
   7. GLOBAL SEARCH OVERLAY
============================================================================ */
.global-search {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--panel);
  z-index: 60;
  border-bottom: 1px solid var(--border);
  padding: 14px 0 18px;
  transform: translateY(-100%);
  transition: transform 280ms var(--tx-spring);
  box-shadow: var(--shadow-2);
  max-height: 80vh;
  overflow-y: auto;
}
.global-search.open { transform: translateY(0); }
.gs-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 0 8px 0 14px;
  transition: all var(--tx);
}
.gs-box:focus-within {
  border-color: var(--pink);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--pink-tint);
}
.gs-icon { color: var(--muted); }
.gs-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  padding: 12px 0;
  outline: none;
  color: var(--ink);
  font-family: inherit;
}
.gs-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-close:hover { background: var(--border); color: var(--ink); }
.gs-results { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.gs-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  padding: 12px 4px 4px;
}
.gs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  width: 100%;
  font-family: inherit;
  transition: background var(--tx-fast);
  cursor: pointer;
}
.gs-row:hover { background: var(--pink-tint); }
.gs-row > span:first-child { font-size: 24px; width: 32px; text-align: center; }
.gs-row > span:nth-child(2) { flex: 1; }
.gs-row b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.gs-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; font-weight: 600; }

/* ============================================================================
   8. MAIN & VIEWS
============================================================================ */
.app-main { padding-top: 16px; padding-bottom: 24px; }
.view { display: none; animation: viewIn 280ms var(--tx-spring); }
.view.active { display: block; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-title {
  font-size: clamp(26px, 5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 8px 0 6px;
  color: var(--ink);
}
.view-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
  font-weight: 500;
}

.block { margin-bottom: 28px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 12px;
  gap: 10px;
}
.block-head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.badge-count {
  font-size: 11px;
  font-weight: 800;
  background: var(--pink-soft);
  color: var(--pink-deep);
  padding: 3px 10px;
  border-radius: 999px;
}
.link {
  background: var(--pink-tint);
  border: 1.5px solid var(--pink-soft);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  transition: all var(--tx-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.link:hover { background: var(--pink); color: white; border-color: var(--pink); }
.link .icon { width: 14px; height: 14px; }

/* ============================================================================
   9. HERO DEAL CARD
============================================================================ */
.hero { margin-bottom: 24px; }
.hero-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--tx-spring);
  position: relative;
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-2);
}
.hero-img {
  position: relative;
  height: 200px;
  background:
    radial-gradient(circle at 30% 30%, var(--pink-soft), transparent 60%),
    linear-gradient(135deg, var(--pink-tint), var(--mint-tint));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-emoji {
  font-size: 110px;
  filter: drop-shadow(0 12px 24px rgba(14, 26, 43, 0.15));
  transition: transform var(--tx-spring);
}
.hero-card:hover .hero-emoji { transform: rotate(-3deg) scale(1.05); }
.hero-pct {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pink);
  color: white;
  font-size: 18px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-pink);
}
.hero-body { padding: 22px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 26, 107, 0.6);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 26, 107, 0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 26, 107, 0); }
}
.hero-store {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.hero-store .hero-dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.hero-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 14px;
  font-weight: 500;
}
.hero-prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.hero-new {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.035em;
}
.hero-old { font-size: 15px; color: var(--subtle); text-decoration: line-through; font-weight: 600; }
.hero-save {
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-badge-big {
  background: var(--pink);
  color: white;
  font-size: 16px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 999px;
}
.hero-until {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-top: 10px;
}
.hero-cta { margin-top: 16px; width: 100%; }

/* ============================================================================
   10. STORIES
============================================================================ */
.stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tx-spring);
}
.story:hover .story-ring { transform: scale(1.06); }
.story-inner {
  width: 100%;
  height: 100%;
  background: var(--panel);
  border: 2px solid var(--panel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform var(--tx-spring);
}
.story:hover .story-inner { transform: scale(0.92); }
.story-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================================
   11. STORES GRID
============================================================================ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.store-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
  transition: all var(--tx-fast);
  cursor: pointer;
}
.store-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-2);
}
.st-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.st-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.st-count {
  font-size: 10px;
  font-weight: 800;
  color: var(--pink-deep);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-count.off { color: var(--subtle); }

/* ============================================================================
   12. PROMO CAROUSEL
============================================================================ */
.promo-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-tile {
  flex: 0 0 220px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--tx-fast);
  position: relative;
}
.promo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-2);
}
.promo-tile.super .pt-img { background: linear-gradient(135deg, var(--amber-soft), #FED7AA); }
.pt-super-band {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--pink);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: var(--shadow-pink);
  text-transform: uppercase;
}
.pt-img {
  position: relative;
  height: 110px;
  background: var(--pink-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}
.pt-img span { filter: drop-shadow(0 6px 12px rgba(14, 26, 43, 0.10)); }
.pt-pct {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-pink);
}
.pt-body { padding: 12px 14px 16px; }
.pt-store {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.pt-dot { width: 7px; height: 7px; border-radius: 50%; }
.pt-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pt-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pt-new {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.pt-old { font-size: 12px; color: var(--subtle); text-decoration: line-through; font-weight: 600; }
.pt-badge {
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

/* ============================================================================
   13. DEAL CATS + BIG DEALS
============================================================================ */
.deal-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.deal-cats::-webkit-scrollbar { display: none; }
.deal-cat-pill {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--tx-fast);
  cursor: pointer;
}
.deal-cat-pill:hover { border-color: var(--border-strong); }
.deal-cat-pill.active { background: var(--ink); border-color: var(--ink); color: white; }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.deal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.deal-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-2);
}
.dc-img {
  position: relative;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}
.dc-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.35), transparent 55%);
}
.dc-emoji { font-size: 64px; filter: drop-shadow(0 6px 12px rgba(14, 26, 43, 0.15)); z-index: 1; }
.dc-brand {
  z-index: 1;
  background: rgba(14, 26, 43, 0.45);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
}
.dc-pct {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--pink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: var(--shadow-pink);
}
.dc-body { padding: 12px 14px 16px; }
.dc-store {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.dc-dot { width: 7px; height: 7px; border-radius: 50%; }
.dc-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dc-prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-new { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.dc-old { font-size: 12px; color: var(--subtle); text-decoration: line-through; font-weight: 600; }
.dc-until {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-top: 6px;
}

/* ============================================================================
   14. LIST VIEW
============================================================================ */
.lists-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.lists-tabs::-webkit-scrollbar { display: none; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 16px;
  margin-bottom: 14px;
  transition: all var(--tx-fast);
}
.search-bar:focus-within {
  border-color: var(--pink);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--pink-tint);
}
.sb-icon { color: var(--muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 15px;
  padding: 13px 0;
  outline: none;
  color: var(--ink);
  font-family: inherit;
}
.search-bar input::placeholder { color: var(--subtle); }

.categories-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: none;
}
.categories-row::-webkit-scrollbar { display: none; }
.cat-chip {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--tx-fast);
  cursor: pointer;
}
.cat-chip:hover { border-color: var(--border-strong); }
.cat-chip.active { background: var(--ink); color: white; border-color: var(--ink); }

.search-results {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.sr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background var(--tx-fast);
  cursor: pointer;
}
.sr-row:last-child { border-bottom: 0; }
.sr-row:hover { background: var(--pink-tint); }
.sr-icon { font-size: 24px; width: 32px; text-align: center; }
.sr-info { flex: 1; min-width: 0; }
.sr-info b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.sr-info small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.sr-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-pink);
}
.sr-add .icon { width: 16px; height: 16px; stroke-width: 2.5; }

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.browse-tile {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 12px;
  text-align: center;
  font-family: inherit;
  transition: all var(--tx-fast);
  position: relative;
  cursor: pointer;
}
.browse-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pink-soft);
  box-shadow: var(--shadow-2);
}
.bt-icon { font-size: 32px; margin-bottom: 8px; }
.bt-name { font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.35; }
.bt-price { font-size: 14px; font-weight: 800; color: var(--pink-deep); letter-spacing: -0.02em; }
.bt-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--pink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pink);
}
.bt-add .icon { width: 14px; height: 14px; stroke-width: 2.5; }

/* Cart */
.cart-section { margin-top: 16px; }
.cart-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.cart { display: flex; flex-direction: column; gap: 8px; }
.cart-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: all var(--tx-fast);
}
.cart-row:hover { border-color: var(--pink-soft); }
.cart-row.done { opacity: 0.55; }
.cart-row.done .ci-name { text-decoration: line-through; }
.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--tx-spring);
  cursor: pointer;
  font-size: 0;
}
.check:hover { border-color: var(--pink); }
.check.checked {
  background: var(--green);
  border-color: var(--green);
  animation: checkPop 0.4s var(--tx-spring);
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }
@keyframes checkPop {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.ci-icon {
  width: 36px;
  height: 36px;
  background: var(--pink-tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ci-info { min-width: 0; }
.ci-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.ci-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ci-store {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.005em;
}
.ci-price { font-size: 11px; font-weight: 700; color: var(--muted); }
.ci-qty { display: flex; align-items: center; gap: 4px; }
.q-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--panel);
  color: var(--ink-2);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.q-btn:hover { border-color: var(--pink); color: var(--pink); }
.q-btn .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.q-val { min-width: 24px; text-align: center; font-size: 13px; font-weight: 800; color: var(--ink); }
.ci-total { font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; letter-spacing: -0.02em; }
.ci-rm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ci-rm:hover { background: var(--danger-soft); color: var(--danger); }
.ci-rm .icon { width: 16px; height: 16px; stroke-width: 2; }

.cart-summary {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--pink-tint), var(--bg));
  border: 1.5px solid var(--pink-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.cs-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cs-store { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.cs-dot { width: 12px; height: 12px; border-radius: 50%; }
.cs-total { font-size: 32px; font-weight: 800; color: var(--pink-deep); letter-spacing: -0.035em; }
.cs-save {
  font-size: 12px;
  color: var(--green);
  font-weight: 800;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.cart-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================================
   15. FAVORITES
============================================================================ */
.favs-list { display: flex; flex-direction: column; gap: 10px; }
.fav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  transition: all var(--tx-fast);
}
.fav-row:hover { border-color: var(--pink-soft); box-shadow: var(--shadow-1); }
.fav-icon {
  width: 48px;
  height: 48px;
  background: var(--pink-tint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.fav-info { flex: 1; min-width: 0; }
.fav-name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.fav-meta { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.fav-promo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fav-heart {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
  transition: transform var(--tx-spring);
}
.fav-heart:hover { transform: scale(1.15); }
.fav-heart .icon { width: 22px; height: 22px; fill: var(--pink); stroke: var(--pink); }

/* ============================================================================
   16. MORE VIEW (Mon compte)
============================================================================ */
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 16px;
}
.profile-head .view-title { margin: 0; }
.settings-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.settings-btn:hover { background: var(--pink-soft); color: var(--pink); }
.settings-btn .icon { width: 20px; height: 20px; }

/* Stats card (Shopmium "Mes achats" style) */
.stats-card {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 6px 0;
  margin-bottom: 18px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.stats-card .stat-row:last-child { border-bottom: 0; }
.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.stat-label .icon { color: var(--muted); }
.stat-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.stat-value.green { color: var(--green); }

/* Profile single row (replaces the old tools-grid) */
.profile-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  margin-bottom: 18px;
  transition: all var(--tx-fast);
}
.profile-row:hover {
  border-color: var(--pink-soft);
  background: var(--pink-tint);
}
.profile-row-label {
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.profile-row-meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--pink-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.profile-row .legal-ico { color: var(--pink); }

.user-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  background: linear-gradient(135deg, var(--bg), var(--pink-tint));
  border: 1px solid var(--pink-soft);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.us-avatar {
  grid-row: 1 / span 2;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-pink);
}
.us-info { display: flex; flex-direction: column; gap: 2px; }
.us-name { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.us-loc { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.us-level { font-size: 11px; color: var(--ink-2); margin-top: 6px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.us-progress { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.us-progress-fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-deep)); border-radius: 999px; }
.us-stats { grid-column: 1 / span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.us-stat { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.us-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--pink-deep); letter-spacing: -0.02em; }
.us-stat small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.premium-teaser {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  border: 0;
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--tx-fast);
}
.premium-teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.premium-teaser::after {
  content: "";
  position: absolute;
  top: 0;
  right: -40px;
  width: 120px;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 26, 107, 0.30), transparent 60%);
  pointer-events: none;
}
.pt-crown { font-size: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--pink); }
.pt-crown .icon { width: 28px; height: 28px; fill: var(--pink); stroke: var(--pink); stroke-width: 1.5; }
.pt-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pt-title { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.pt-sub { font-size: 11px; opacity: 0.7; font-weight: 600; }
.pt-arrow { display: inline-flex; align-items: center; color: rgba(255,255,255,0.55); }
.pt-arrow .icon { width: 18px; height: 18px; }

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.tool {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  font-family: inherit;
  text-align: left;
  transition: all var(--tx-fast);
  cursor: pointer;
  position: relative;
}
.tool:not([aria-disabled="true"]):hover {
  border-color: var(--pink-soft);
  background: var(--pink-tint);
  transform: translateY(-2px);
}
.tool-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  margin-bottom: 6px;
  transition: all var(--tx-fast);
}
.tool-ico .icon { width: 20px; height: 20px; }
.tool:not([aria-disabled="true"]):hover .tool-ico { background: var(--pink); color: white; }
.tool b { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: -0.015em; }
.tool small { font-size: 11px; color: var(--muted); font-weight: 500; }
.badge-soon {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 4px;
}
.badge-soon.inline { margin: 0 8px 0 auto; }
.tool[aria-disabled="true"],
.legal-row[aria-disabled="true"] {
  cursor: default;
  opacity: 0.6;
}
.tool[aria-disabled="true"]:hover,
.legal-row[aria-disabled="true"]:hover { transform: none; background: var(--panel); }
.legal-row[aria-disabled="true"]:hover { background: transparent; }
.tool[aria-disabled="true"] .tool-ico { background: var(--bg-soft); color: var(--muted); }

.settings-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 18px;
  overflow: hidden;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: 0; }
.setting-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.setting-row b { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.setting-row small { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 500; }

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
}
.toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background var(--tx-fast);
  pointer-events: none;
}
.toggle-track::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(14, 26, 43, 0.20);
  transition: transform var(--tx-spring);
}
.toggle input:checked + .toggle-track { background: var(--pink); }
.toggle input:checked + .toggle-track::before { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 4px var(--pink-tint); }

.legal-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 18px; }
.legal-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--tx-fast);
}
.legal-row:not([aria-disabled="true"]):hover { background: var(--pink-tint); }
.legal-ico {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-deep);
}
.legal-label { font-weight: 600; }
.lr-arrow { display: inline-flex; align-items: center; justify-content: center; color: var(--subtle); }
.lr-arrow .icon { width: 16px; height: 16px; }

.version-foot {
  font-size: 11px;
  color: var(--subtle);
  text-align: center;
  padding: 14px 0 28px;
  font-weight: 600;
}

/* ============================================================================
   16bis. CATEGORIES VIEW
============================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px;
  font-family: inherit;
  text-align: left;
  transition: all var(--tx-fast);
  cursor: pointer;
}
.cat-tile:hover {
  border-color: var(--pink-soft);
  background: var(--pink-tint);
  transform: translateY(-2px);
}
.cat-tile-emoji {
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  margin-bottom: 4px;
}
.cat-tile:hover .cat-tile-emoji {
  background: white;
}
.cat-tile b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.cat-tile small {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cat-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.cat-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tx-fast);
  flex-shrink: 0;
}
.cat-back:hover { background: var(--pink-soft); color: var(--pink); }
.cat-back .icon { width: 18px; height: 18px; }
.cat-detail-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.cat-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

/* ============================================================================
   17. BOTTOM NAV
============================================================================ */
.nav-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 10px 4px max(10px, env(safe-area-inset-bottom));
}

/* Central tab: pink fill highlight even when inactive (like Shopmium "Rembourser") */
.nav-tab-center .nt-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tx-fast);
  position: relative;
  z-index: 1;
}
.nav-tab-center .nt-ico .icon { stroke-width: 2; }
.nav-tab-center.active .nt-ico {
  background: var(--pink);
  color: white;
  box-shadow: var(--shadow-pink);
  transform: translateY(-4px);
}
.nav-tab-center.active::before { display: none; }
.nav-tab-center .nt-lab { color: var(--ink); font-weight: 800; }
.nav-tab-center.active .nt-lab { color: var(--pink); }
[data-theme="dark"] .nav-bottom { background: rgba(19, 28, 45, 0.92); }
.nav-tab {
  background: none;
  border: 0;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-family: inherit;
  position: relative;
  transition: color var(--tx-fast);
  cursor: pointer;
}
.nav-tab .nt-ico {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.nav-tab .nt-ico .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.nav-tab .nt-lab {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.nav-tab.active { color: var(--pink); }
.nav-tab.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--pink-soft);
}
.nav-tab.active .icon { stroke-width: 2.2; }
.nt-badge {
  position: absolute;
  top: 0;
  right: calc(50% - 20px);
  min-width: 16px;
  height: 16px;
  background: var(--pink);
  color: white;
  font-size: 9px;
  font-weight: 800;
  border-radius: 999px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  z-index: 2;
}

/* ============================================================================
   18. FAB CHAT
============================================================================ */
.fab-chat {
  position: fixed;
  right: 16px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
  border: 0;
  font-size: 0;
  z-index: 70;
  box-shadow: var(--shadow-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tx-spring);
  cursor: pointer;
}
.fab-chat:hover { transform: scale(1.10); }
.fab-chat:active { transform: scale(0.95); }
.fab-chat .icon { width: 26px; height: 26px; color: white; }
.fab-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  opacity: 0.35;
  animation: fabPulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50%      { transform: scale(1.30); opacity: 0; }
}

/* ============================================================================
   19. PANELS / MODALS
============================================================================ */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 43, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  transition: opacity 240ms ease;
  display: flex;
}
.panel-overlay.show { opacity: 1; }
.panel { background: var(--panel); color: var(--ink); display: flex; flex-direction: column; }

.panel-side {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  transform: translateX(100%);
  transition: transform 380ms var(--tx-spring);
  overflow-y: auto;
  box-shadow: -16px 0 48px rgba(0,0,0,0.25);
}
.panel-overlay.show .panel-side { transform: translateX(0); }

.panel-modal {
  margin: auto 16px;
  width: 100%;
  max-width: 480px;
  border-radius: var(--r-lg);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-3);
  transform: scale(0.92) translateY(20px);
  transition: transform 360ms var(--tx-spring);
}
.panel-overlay.show .panel-modal { transform: scale(1) translateY(0); }

.panel-chat {
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 88vh;
  max-height: 720px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 380ms var(--tx-spring);
}
@media (min-width: 700px) {
  .panel-chat { right: 16px; left: auto; width: 440px; bottom: calc(86px + 20px); height: 75vh; border-radius: var(--r-lg); }
}
.panel-overlay.show .panel-chat { transform: translateY(0); }

.panel-onboarding {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transform: scale(0.92);
  transition: transform 360ms var(--tx-spring);
}
.panel-overlay.show .panel-onboarding { transform: scale(1); }

.p-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
}
.p-head h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p-head h3 .icon { color: var(--pink); }
.p-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.p-close:hover { background: var(--pink-soft); color: var(--pink); }
.p-close .icon { width: 18px; height: 18px; }
.p-actions { padding: 12px 22px 4px; display: flex; justify-content: flex-end; }
.p-body { padding: 12px 22px 28px; flex: 1; overflow-y: auto; }
.p-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin: 18px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.p-foot { text-align: center; font-size: 11px; color: var(--muted); padding-top: 20px; font-weight: 500; }

/* Notifs */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--bg-soft);
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  transition: background var(--tx-fast);
}
.notif:hover { background: var(--pink-tint); }
.notif.unread { background: var(--pink-tint); }
.notif.unread::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--pink);
  border-radius: 50%;
}
.n-icon {
  width: 44px;
  height: 44px;
  background: var(--panel);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.n-info { flex: 1; min-width: 0; }
.n-title { font-size: 14px; font-weight: 800; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.n-text { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; font-weight: 500; }
.n-time { font-size: 11px; color: var(--muted); margin-top: 5px; font-weight: 600; }

/* Profile */
.prof-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.prof-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: var(--shadow-pink);
  flex-shrink: 0;
}
.prof-info { flex: 1; min-width: 0; }
.prof-name { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.prof-loc { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.prof-level { font-size: 11px; color: var(--ink-2); margin-top: 8px; font-weight: 700; }
.prof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.ps { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.ps b { display: block; font-size: 18px; font-weight: 800; color: var(--pink-deep); letter-spacing: -0.025em; }
.ps small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.premium-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-family: inherit;
  cursor: pointer;
}
.premium-row .pr-crown { display: inline-flex; color: var(--pink); }
.premium-row .pr-crown .icon { width: 22px; height: 22px; fill: var(--pink); stroke: var(--pink); }
.premium-row b { font-size: 14px; font-weight: 800; letter-spacing: -0.015em; }
.premium-row small { font-size: 11px; opacity: 0.75; margin-left: auto; font-weight: 600; }

.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.ach.locked { opacity: 0.55; filter: grayscale(0.6); }
.ach-icon { font-size: 28px; margin-bottom: 4px; filter: drop-shadow(0 4px 8px rgba(14, 26, 43, 0.10)); }
.ach-title { font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ach-desc { font-size: 10px; color: var(--muted); line-height: 1.3; font-weight: 500; margin-top: 2px; }
.ach-meta {
  font-size: 9px;
  color: var(--pink-deep);
  font-weight: 800;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

/* Premium card */
.prem-card {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: 30px 0 24px;
  position: relative;
  overflow: hidden;
}
.prem-close { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,0.10); color: white; }
.prem-close:hover { background: rgba(255, 26, 107, 0.30); color: white; }
.prem-hero { text-align: center; padding: 0 24px 18px; }
.prem-crown {
  font-size: 0;
  display: inline-flex;
  filter: drop-shadow(0 8px 24px rgba(255, 26, 107, 0.50));
  animation: crownFloat 3s ease-in-out infinite;
}
.prem-crown svg { width: 64px; height: 64px; }
@keyframes crownFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.prem-hero h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.035em; margin-top: 12px; }
.prem-hero h2 span:not([lang]) { color: var(--pink); }
.prem-hero p { color: rgba(255,255,255,0.65); font-size: 14px; margin-top: 8px; font-weight: 500; }
.prem-features {
  list-style: none;
  padding: 0 28px;
  margin: 14px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prem-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.prem-features li svg { flex-shrink: 0; color: var(--pink); }
.prem-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px; }
.prem-plan {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
  color: white;
  font-family: inherit;
  position: relative;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.prem-plan:hover { background: rgba(255,255,255,0.10); }
.prem-plan.reco {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  border-color: transparent;
  box-shadow: var(--shadow-pink);
}
.prem-plan.reco:hover { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.pp-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  background: var(--mint);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}
.pp-name { font-size: 12px; font-weight: 700; opacity: 0.80; }
.pp-price { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; margin-top: 2px; }
.pp-price span { font-size: 12px; opacity: 0.65; font-weight: 700; }
.pp-sub { font-size: 11px; margin-top: 4px; opacity: 0.80; font-weight: 600; }
.prem-foot { text-align: center; font-size: 11px; color: rgba(255,255,255,0.50); margin-top: 16px; padding: 0 24px; font-weight: 500; }

/* Chat */
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
}
.chat-head .p-close { background: rgba(255,255,255,0.20); color: white; }
.chat-head .p-close:hover { background: rgba(255,255,255,0.30); }
.chat-meta { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.chat-avatar svg { width: 22px; height: 22px; }
.chat-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.chat-status { font-size: 11px; opacity: 0.90; display: flex; align-items: center; gap: 4px; font-weight: 600; }
.chat-dot {
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
  animation: chatDot 2s ease infinite;
}
@keyframes chatDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-soft);
}
.msg { max-width: 80%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; font-weight: 500; }
.msg.ai {
  background: var(--panel);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.msg.me {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg.typing { display: flex; gap: 4px; padding: 14px; align-items: center; }
.msg.typing span {
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1.4s ease infinite;
}
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(-4px); opacity: 1; } }
.chat-sugg {
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.sugg-btn {
  background: var(--pink-tint);
  border: 1px solid var(--pink-soft);
  color: var(--pink-deep);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tx-fast);
}
.sugg-btn:hover { background: var(--pink); color: white; border-color: var(--pink); }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--panel);
  border-top: 1px solid var(--border);
}
.chat-input input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--ink);
}
.chat-input input:focus { border-color: var(--pink); background: var(--bg); }
.chat-input .btn.primary {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 0;
  font-size: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-input .btn.primary .icon { width: 18px; height: 18px; }

/* Onboarding */
.onb-card {
  background: var(--panel);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 420px;
  padding: 32px 24px 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.40);
  position: relative;
}
.onb-screens { min-height: 320px; }
.onb-screen { display: none; text-align: center; }
.onb-screen.active { display: block; animation: onbIn 380ms var(--tx-spring); }
@keyframes onbIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.onb-emoji {
  font-size: 64px;
  margin-bottom: 14px;
  animation: onbBounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(255, 26, 107, 0.30));
}
@keyframes onbBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
.onb-screen h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.03em; }
.onb-screen p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; font-weight: 500; }
.onb-screen p strong { color: var(--pink-deep); font-weight: 800; }
.onb-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 150px; overflow-y: auto; }
.onb-store {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}
.onb-store.selected { border-color: var(--pink); background: var(--pink-tint); color: var(--pink-deep); }
.oss {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.onb-dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0 14px; }
.onb-dot { width: 8px; height: 8px; background: var(--border); border-radius: 50%; transition: all var(--tx-fast); }
.onb-dot.active { width: 26px; background: var(--pink); border-radius: 999px; }
.onb-nav { display: flex; gap: 8px; }
.onb-nav .btn.primary { flex: 1; }
.onb-nav .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Product detail */
.pd-card { background: var(--panel); border-radius: var(--r-lg); position: relative; padding: 24px; }
.pd-close { position: absolute; top: 16px; right: 16px; }
.pd-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.pd-emoji {
  width: 64px;
  height: 64px;
  background: var(--pink-tint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.pd-info { flex: 1; min-width: 0; }
.pd-name { font-size: 19px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.pd-cat { font-size: 12px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.pd-promo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--pink-deep);
  background: var(--pink-soft);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pd-heart {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--tx-fast);
}
.pd-heart.on { background: var(--pink-tint); border-color: var(--pink-soft); color: var(--pink); }
.pd-heart .icon { width: 18px; height: 18px; }
.pd-heart.on .icon { fill: var(--pink); stroke: var(--pink); }
.pd-section {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  margin-bottom: 10px;
}
.pd-prices { display: flex; flex-direction: column; gap: 6px; }
.pd-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pd-row.best { background: var(--green-soft); border-color: var(--green); }
.pd-store { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.pd-dot { width: 10px; height: 10px; border-radius: 50%; }
.pd-price { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.025em; }
.pd-tag {
  font-size: 10px;
  font-weight: 800;
  background: var(--green);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pd-actions { margin-top: 16px; display: flex; gap: 8px; }
.pd-add { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Confirm dialog */
.confirm-card { background: var(--panel); border-radius: var(--r-lg); padding: 28px 24px 24px; text-align: center; }
.confirm-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.confirm-card:not(.danger) .confirm-icon { background: var(--pink-soft); color: var(--pink-deep); }
.confirm-icon svg { width: 28px; height: 28px; }
.confirm-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.025em; }
.confirm-text { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; font-weight: 500; }
.confirm-actions { display: flex; gap: 8px; justify-content: stretch; }
.confirm-actions .btn { flex: 1; }

/* ============================================================================
   20. BUTTONS
============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--tx-fast);
  line-height: 1;
  letter-spacing: -0.01em;
}
.btn .icon { width: 16px; height: 16px; }
.btn.primary { background: var(--pink); color: white; box-shadow: var(--shadow-pink); }
.btn.primary:hover {
  background: var(--pink-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -8px rgba(255, 26, 107, 0.5);
}
.btn.primary:active { transform: translateY(0); }
.btn.dark { background: var(--ink); color: white; }
.btn.dark:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn.ghost { background: var(--bg-soft); color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--border); }
.btn.danger { background: var(--danger); color: white; }
.btn.danger:hover { background: #B91C1C; transform: translateY(-1px); }

/* ============================================================================
   21. TOAST
============================================================================ */
.toast {
  position: fixed;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 320ms var(--tx-spring);
  white-space: nowrap;
  z-index: 300;
  box-shadow: var(--shadow-3);
  max-width: calc(100% - 32px);
  letter-spacing: -0.01em;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================================
   22. EMPTY STATES + SKELETONS
============================================================================ */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.empty-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  filter: grayscale(0.25);
  display: inline-block;
  animation: emptyFloat 3.5s ease-in-out infinite;
}
@keyframes emptyFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(14, 26, 43, 0.05) 25%,
    rgba(14, 26, 43, 0.10) 50%,
    rgba(14, 26, 43, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================================================================
   23. SCROLLBAR + REDUCED MOTION
============================================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
::selection { background: var(--pink); color: white; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   24. DESKTOP (>=960px) 2-col on Plus, broader tools grid
============================================================================ */
@media (min-width: 960px) {
  .view-more.active {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    column-gap: 32px;
  }
  .view-more.active > .view-title,
  .view-more.active > .view-sub,
  .view-more.active > .profile-head { grid-column: 1 / -1; }
  .view-more.active > .user-summary,
  .view-more.active > .stats-card,
  .view-more.active > #btn-premium { grid-column: 1; align-self: start; }
  .view-more.active > .profile-row,
  .view-more.active > .settings-card,
  .view-more.active > .legal-list { grid-column: 2; align-self: start; }
  .view-more.active > .version-foot { grid-column: 1 / -1; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 640px) and (max-width: 959px) {
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
