/* ============================================================
   Tem em Casa — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens & Themes ──────────────────────────────────────── */
:root {
  /* Light Theme Colors */
  --gold:          #C9A84C;
  --gold-light:    #E8C96A;
  --gold-dark:     #A07830;
  --gold-bg:       #FAF6EB;
  --gold-glow:     rgba(201, 168, 76, 0.3);
  
  --bg:            #F8F8F6;
  --bg-gradient:   radial-gradient(circle at 10% 20%, #FAF6EB 0%, #F8F8F6 90%);
  --surface:       #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --border:        rgba(0, 0, 0, 0.05);
  
  --gray-light:    #F2F2EF;
  --gray-mid:      #8E8E93;
  --gray-dark:     #48484A;
  
  --text:          #1C1C1E;
  --text-soft:     #636366;
  
  --danger:        #FF3B30;
  --danger-bg:     #FFECEB;
  --danger-glow:   rgba(255, 59, 48, 0.2);
  
  --success:       #34C759;
  --success-bg:    #EAF9EE;
  --success-glow:  rgba(52, 199, 89, 0.2);
  
  --warning:       #FF9500;
  --warning-bg:    #FFF5E5;
  --warning-glow:  rgba(255, 149, 0, 0.2);
  
  /* Layout Metrics */
  --nav-h:         68px;
  --header-h:      60px;
  --radius:        20px;
  --radius-sm:     12px;
  --shadow:        0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg:     0 16px 36px rgba(0, 0, 0, 0.08);
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --backdrop-blur: blur(20px);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Theme Colors */
    --gold:          #D4AF37;
    --gold-light:    #F5E396;
    --gold-dark:     #B59023;
    --gold-bg:       #1E190B;
    --gold-glow:     rgba(212, 175, 55, 0.2);
    
    --bg:            #0A0A0C;
    --bg-gradient:   radial-gradient(circle at top left, #1E190B 0%, #0A0A0C 80%);
    --surface:       #141418;
    --surface-glass: rgba(20, 20, 24, 0.85);
    --border:        rgba(255, 255, 255, 0.06);
    
    --gray-light:    #1E1E22;
    --gray-mid:      #8E8E93;
    --gray-dark:     #AEAEB2;
    
    --text:          #F2F2F7;
    --text-soft:     #A1A1A6;
    
    --danger:        #FF453A;
    --danger-bg:     #2C1211;
    --danger-glow:   rgba(255, 69, 58, 0.15);
    
    --success:       #30D158;
    --success-bg:    #112C16;
    --success-glow:  rgba(48, 209, 88, 0.15);
    
    --warning:       #FF9F0A;
    --warning-bg:    #2C1E07;
    --warning-glow:  rgba(255, 159, 10, 0.15);
    
    --shadow:        0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-lg:     0 20px 48px rgba(0, 0, 0, 0.45);
  }
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ── Custom Scrollbar ────────────────────────────────────── */
.main-content::-webkit-scrollbar {
  width: 5px;
}
.main-content::-webkit-scrollbar-track {
  background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}
.main-content::-webkit-scrollbar-thumb:hover {
  background: var(--gray-mid);
}

/* ── Dynamic Load Animations ────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.summary-card,
.product-card,
.category-card,
.list-item,
.form-body,
.empty-state {
  animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delay classes to make list transitions feel fluid */
.product-list > *:nth-child(1) { animation-delay: 0.02s; }
.product-list > *:nth-child(2) { animation-delay: 0.04s; }
.product-list > *:nth-child(3) { animation-delay: 0.06s; }
.product-list > *:nth-child(4) { animation-delay: 0.08s; }
.product-list > *:nth-child(5) { animation-delay: 0.1s; }

.category-grid > *:nth-child(1) { animation-delay: 0.02s; }
.category-grid > *:nth-child(2) { animation-delay: 0.04s; }
.category-grid > *:nth-child(3) { animation-delay: 0.06s; }
.category-grid > *:nth-child(4) { animation-delay: 0.08s; }

/* ── Splash Screen ───────────────────────────────────────── */
.splash-screen {
  position: fixed; inset: 0; z-index: 999;
  background: #0B0B0D;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.splash-screen.hide {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}
.splash-mascot {
  width: 100px; height: 100px;
  border-radius: 24px;
  animation: splashBounce 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.splash-title {
  color: #fff;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.8px;
  animation: splashFadeUp 0.6s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.splash-subtitle {
  color: var(--gold);
  font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  animation: splashFadeUp 0.6s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes splashBounce {
  0%   { opacity: 0; transform: translateY(30px) scale(0.7); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── App Shell ───────────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; height: 100dvh; }
.app-shell.hidden { display: none; }

/* ── Header ──────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  flex-shrink: 0;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
}
.header-content {
  height: 100%;
  display: flex; align-items: center;
  padding: 0 20px; gap: 14px;
}
.header-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.4px;
  flex: 1;
}
.header-logo { width: 30px; height: 30px; box-shadow: var(--shadow); }
.btn-back {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text);
  transition: all var(--transition);
}
.btn-back:hover { background: var(--gray-light); transform: scale(1.05); }
.btn-back:active { transform: scale(0.95); }
.btn-back.hidden { display: none; }
.header-actions { display: flex; gap: 6px; }

/* ── Main content ────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* ── Bottom Nav ──────────────────────────────────────────── */
.bottom-nav {
  height: var(--nav-h);
  background: var(--surface-glass);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr 80px 1fr 1fr;
  align-items: center;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
  position: sticky; bottom: 0; z-index: 50;
  flex-shrink: 0;
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
}
.nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 6px 4px;
  color: var(--gray-mid);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active { color: var(--gold); }
.nav-item.active::after {
  content: '';
  position: absolute;
  inset: 2px 10px;
  background: var(--gold-bg);
  border-radius: var(--radius-sm);
  z-index: -1;
  animation: navPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes navPop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.nav-icon { width: 22px; height: 22px; transition: transform var(--transition); }
.nav-item:active .nav-icon { transform: scale(0.9); }
.nav-label { font-size: 10px; font-weight: 600; }

.nav-fab {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px var(--gold-glow);
  margin: 0 auto;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; bottom: 14px;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.nav-fab i {
  width: 24px; height: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 24px var(--gold-glow);
}
.nav-fab:hover i {
  transform: rotate(90deg);
}
.nav-fab:active {
  transform: translateY(-1px) scale(0.93);
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Summary Cards (Home) ────────────────────────────────── */
.summary-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 18px 18px 10px;
}
.summary-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.summary-card.wide { grid-column: span 2; }
.summary-card.danger {
  background: linear-gradient(135deg, var(--surface), var(--danger-bg) 250%);
  border-color: rgba(255, 69, 58, 0.15);
}
.summary-card.danger:hover {
  border-color: rgba(255, 69, 58, 0.35);
  box-shadow: 0 10px 25px var(--danger-glow);
}
.summary-card.gold {
  background: linear-gradient(135deg, var(--surface), var(--gold-bg) 250%);
  border-color: rgba(201, 168, 76, 0.15);
}
.summary-card.gold:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 10px 25px var(--gold-glow);
}
.summary-card-value { font-size: 30px; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.summary-card-label { font-size: 12px; color: var(--text-soft); font-weight: 600; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 0 18px 18px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0 10px;
}
.section-title { font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.section-action {
  font-size: 13px; color: var(--gold); font-weight: 600;
  transition: opacity var(--transition);
}
.section-action:hover { opacity: 0.8; }

/* ── Product Card ────────────────────────────────────────── */
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 0, 0, 0.08);
}
.product-card::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 4px; border-radius: 0 4px 4px 0;
}
.product-card.status-ok::before    { background: var(--success); }
.product-card.status-low::before   { background: var(--warning); }
.product-card.status-empty::before { background: var(--danger); }

/* Faint gradient overlays to signify status */
.product-card.status-ok { background: linear-gradient(135deg, var(--surface), var(--success-bg) 280%); }
.product-card.status-low { background: linear-gradient(135deg, var(--surface), var(--warning-bg) 280%); }
.product-card.status-empty { background: linear-gradient(135deg, var(--surface), var(--danger-bg) 280%); }

.product-emoji {
  font-size: 28px; line-height: 1;
  width: 42px; text-align: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.product-card:hover .product-emoji { transform: scale(1.1); }
.product-info { flex: 1; min-width: 0; cursor: pointer; }
.product-name {
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.15px;
}
.product-meta { font-size: 12px; color: var(--text-soft); margin-top: 3px; font-weight: 500; }

.qty-controls {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.qty-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400;
  background: var(--gray-light);
  color: var(--text);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.qty-btn:hover { background: var(--border); transform: scale(1.08); }
.qty-btn:active { transform: scale(0.88); }
.qty-btn.minus:active { background: var(--danger-bg); color: var(--danger); }
.qty-btn.plus:active  { background: var(--success-bg); color: var(--success); }
.qty-value {
  font-size: 16px; font-weight: 700;
  min-width: 32px; text-align: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.qty-value.bumped { transform: scale(1.3); color: var(--gold); }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px;
  line-height: 1.2;
}
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-gold    { background: var(--gold-bg); color: var(--gold-dark); }
.badge-gray    { background: var(--gray-light); color: var(--gray-dark); }

/* ── Category Card ───────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; }
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.category-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 168, 76, 0.25);
}
.category-card:active { transform: scale(0.96); box-shadow: none; }
.category-card .alert-dot {
  position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--danger-bg);
}
.category-emoji { font-size: 34px; line-height: 1; transition: transform var(--transition); }
.category-card:hover .category-emoji { transform: scale(1.1) rotate(-3deg); }
.category-name  { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.category-count { font-size: 12px; color: var(--text-soft); font-weight: 500; }

/* ── Form ────────────────────────────────────────────────── */
.form-body { padding: 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.form-input, .form-select {
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  font-size: 15px; font-weight: 500;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  width: 100%;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--text-soft); }
.emoji-input { font-size: 22px; text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  height: 50px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition);
  width: 100%;
}
.btn i { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: white; box-shadow: 0 4px 12px var(--gold-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--gold-glow); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary { background: var(--gray-light); color: var(--text); }
.btn-secondary:hover { background: var(--border); }
.btn-secondary:active { transform: scale(0.97); }

.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: white; box-shadow: 0 4px 12px var(--danger-glow); }
.btn-danger:active { transform: scale(0.97); }

/* ── SweetAlert2 Custom Styling ──────────────────────────── */
.custom-swal-popup {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 24px !important;
}
.custom-swal-title {
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 700 !important;
}
.custom-swal-html {
  color: var(--text-soft) !important;
  font-family: inherit !important;
}
.custom-swal-container {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--border) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 32px;
  gap: 16px; text-align: center;
}
.empty-state-img { width: 100px; opacity: 0.55; }
.empty-state-title { font-size: 18px; font-weight: 700; color: var(--text); }
.empty-state-text  { font-size: 14px; color: var(--text-soft); line-weight: 1.6; max-width: 280px; }

/* ── Search bar ──────────────────────────────────────────── */
.search-bar {
  padding: 14px 18px 6px;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px; height: 46px;
  transition: all var(--transition);
}
.search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.search-input {
  border: none; outline: none; background: transparent;
  font-size: 15px; flex: 1; color: var(--text);
  font-weight: 500;
}

/* ── Shopping list item ──────────────────────────────────── */
.list-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.list-item.comprado {
  opacity: 0.5;
  background: var(--gray-light);
  border-color: transparent;
}
.list-item-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--gray-mid);
  background: var(--surface);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.list-item-check::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--success);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}
.list-item-check.checked {
  border-color: var(--success);
  box-shadow: 0 0 0 3px var(--success-glow);
}
.list-item-check.checked::after {
  transform: scale(1);
}
.list-item-check i {
  position: relative;
  z-index: 2;
  color: white;
  width: 14px;
  height: 14px;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}
.list-item-check.checked i {
  transform: scale(1);
}

.list-item-info { flex: 1; min-width: 0; cursor: pointer; }
.list-item-name { font-size: 15px; font-weight: 600; transition: color var(--transition); }
.list-item.comprado .list-item-name { text-decoration: line-through; color: var(--text-soft); }
.list-item-meta { font-size: 12px; color: var(--text-soft); margin-top: 3px; font-weight: 500; }
.list-item-remove {
  color: var(--gray-mid);
  padding: 6px;
  border-radius: 50%;
  display: flex; align-items: center;
  transition: all var(--transition);
}
.list-item-remove:hover {
  background: var(--danger-bg);
  color: var(--danger);
  transform: scale(1.08);
}
.list-item-remove:active { transform: scale(0.9); }

/* ── Divider label ───────────────────────────────────────── */
.list-divider {
  font-size: 11px; font-weight: 700;
  color: var(--gray-mid); text-transform: uppercase; letter-spacing: 1.2px;
  padding: 18px 18px 8px;
}

/* ── Floating delete action ──────────────────────────────── */
.action-bar {
  position: sticky; bottom: calc(var(--nav-h) + 14px);
  padding: 0 18px;
  pointer-events: none;
}
.action-bar .btn { pointer-events: all; box-shadow: var(--shadow-lg); }

/* ── Util ────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-gold  { color: var(--gold); }
.text-danger { color: var(--danger); }
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
