/* ============================================================
   CRM BARES — Design System
   Identidad visual propia. Nada de templates genéricos.
   ============================================================ */

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === PALETA === */
  /* Base oscura — no negro puro, sino tonos cálidos */
  --bg-primary: #0D0D0D;
  --bg-secondary: #1A1714;
  --bg-card: #232019;
  --bg-elevated: #2C2820;
  --bg-input: #1A1714;

  /* Superficie interactiva */
  --bg-hover: #33302A;
  --bg-active: #3D3830;
  --bg-selected: rgba(227, 167, 68, 0.12);

  /* Acento principal — ámbar/dorado cálido */
  --accent: #E3A744;
  --accent-hover: #F0B955;
  --accent-muted: rgba(227, 167, 68, 0.20);
  --accent-subtle: rgba(227, 167, 68, 0.08);

  /* Acentos secundarios */
  --success: #4ADE80;
  --success-muted: rgba(74, 222, 128, 0.15);
  --warning: #F59E0B;
  --warning-muted: rgba(245, 158, 11, 0.15);
  --danger: #EF4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --info: #60A5FA;
  --info-muted: rgba(96, 165, 250, 0.15);

  /* Textos */
  --text-primary: #F5F0E8;
  --text-secondary: #A8A094;
  --text-muted: #6B6560;
  --text-inverse: #0D0D0D;
  --text-accent: #E3A744;

  /* Bordes */
  --border: #2C2820;
  --border-light: #33302A;
  --border-accent: rgba(227, 167, 68, 0.30);

  /* === TIPOGRAFÍA === */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'SF Mono', monospace;

  /* Tamaños */
  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.5rem;      /* 40px */

  /* Pesos */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* === ESPACIADO === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* === RADIOS === */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* === SOMBRAS === */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 20px rgba(227, 167, 68, 0.15);

  /* === TRANSICIONES === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* === MOBILE FRAME === */
  --phone-width: 390px;
  --phone-height: 844px;
}

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* === ICON SYSTEM (SVG inline via CSS) === */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

/* === MICRO-INTERACTIONS === */

/* Fade-in stagger for lists */
.stagger-in > * {
  opacity: 0;
  transform: translateY(12px);
  animation: staggerFadeIn 0.4s ease forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }

@keyframes staggerFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Number count-up feel */
.stat-value, .cash-total-amount, .payment-total-amount {
  animation: countPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes countPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Press effect for interactive cards */
.table-card:active,
.product-card:active,
.product-item:active,
.payment-method:active,
.category-row:active,
.template-card:active,
.staff-card:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* Glow pulse for active states */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 167, 68, 0.3); }
  50% { box-shadow: 0 0 16px 2px rgba(227, 167, 68, 0.15); }
}

.table-card.occupied {
  animation: glowPulse 3s ease infinite;
}

/* Smooth slide for bottom sheets */
.order-bottom-sheet,
.order-panel {
  animation: sheetSlide 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes sheetSlide {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Badge bounce */
.hh-badge {
  animation: badgeBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badgeBounce {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Chip hover glow */
.chip:hover {
  filter: brightness(1.2);
  transition: filter 0.2s ease;
}

/* Button press ripple feel */
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

.btn-primary:active {
  box-shadow: 0 0 20px rgba(227, 167, 68, 0.3);
}

/* Timer urgency pulse */
@keyframes urgencyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ticket.urgent .ticket-time-value {
  animation: urgencyPulse 1.2s ease infinite;
}

/* === GLOBAL === */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: #111;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* === PHONE FRAME (para preview en browser) === */
.phone-frame {
  width: var(--phone-width);
  height: var(--phone-height);
  background: var(--bg-primary);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 3px #2C2820,
    0 0 0 6px #1A1714,
    var(--shadow-lg);
  margin: 40px auto;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 34px;
  background: #0D0D0D;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

.screen {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 54px; /* status bar */
  scrollbar-width: none;
}

.screen::-webkit-scrollbar { display: none; }

/* === STATUS BAR === */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--space-6) var(--space-2);
  z-index: 99;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* === HEADER / NAV === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.header-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-actions {
  display: flex;
  gap: var(--space-2);
}

/* === ICON BUTTON === */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.icon-btn.accent {
  background: var(--accent-muted);
  border-color: var(--border-accent);
  color: var(--accent);
}

.icon-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--danger);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger-muted);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  font-size: 1.1em;
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-body {
  padding: var(--space-4) var(--space-5);
}

.card-header {
  padding: var(--space-4) var(--space-5) var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.card-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === INPUTS === */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-fast);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.input::placeholder {
  color: var(--text-muted);
}

.search-input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B6560' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* === TAB BAR (bottom navigation) === */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 84px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: var(--space-2);
  padding-bottom: 20px; /* home indicator */
  z-index: 50;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.tab-item .tab-icon {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.tab-item .tab-label {
  font-size: 10px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.tab-item.active .tab-icon {
  color: var(--accent);
}

.tab-item.active .tab-label {
  color: var(--accent);
}

/* === BADGES / CHIPS === */
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.badge-dot.green { background: var(--success); }
.badge-dot.yellow { background: var(--warning); }
.badge-dot.red { background: var(--danger); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.chip-success {
  background: var(--success-muted);
  color: var(--success);
}
.chip-warning {
  background: var(--warning-muted);
  color: var(--warning);
}
.chip-danger {
  background: var(--danger-muted);
  color: var(--danger);
}
.chip-info {
  background: var(--info-muted);
  color: var(--info);
}
.chip-accent {
  background: var(--accent-muted);
  color: var(--accent);
}

/* === STAT CARD (dashboard KPIs) === */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-value.accent { color: var(--accent); }

.stat-change {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-top: var(--space-1);
}
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* === SECTION === */
.section {
  padding: var(--space-5);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* === TABLE MAP SPECIFIC === */
.zone-tabs {
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  overflow-x: auto;
  scrollbar-width: none;
}

.zone-tabs::-webkit-scrollbar { display: none; }

.zone-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.zone-tab.active {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--border-accent);
}

.zone-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-5);
}

.table-card {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  background: var(--bg-card);
}

.table-card:hover {
  transform: scale(1.03);
  border-color: var(--border-light);
}

.table-card.available {
  border-color: rgba(74, 222, 128, 0.25);
}

.table-card.occupied {
  border-color: var(--border-accent);
  background: var(--accent-subtle);
}

.table-card.billing {
  border-color: rgba(239, 68, 68, 0.3);
  background: var(--danger-muted);
}

.table-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  line-height: 1;
}

.table-info {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.table-amount {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--accent);
}

.table-time {
  font-size: 10px;
  color: var(--text-muted);
}

/* === ORDER SCREEN === */
.categories-rail {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.categories-rail::-webkit-scrollbar { display: none; }

.category-pill {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.category-pill.active {
  background: var(--accent);
  color: var(--text-inverse);
}

.product-list {
  padding: var(--space-3) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-item:hover {
  border-color: var(--border-accent);
  background: var(--accent-subtle);
}

.product-item:active {
  transform: scale(0.98);
}

.product-name {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.product-price {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--accent);
}

/* Order panel (bottom sheet) */
.order-panel {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-4) var(--space-5);
  position: absolute;
  bottom: 84px;
  left: 0;
  right: 0;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) 0;
}

.order-item-qty {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  min-width: 30px;
}

.order-item-name {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.order-item-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.order-total-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
}

.order-total-value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

/* === PAYMENT SCREEN === */
.payment-total {
  text-align: center;
  padding: var(--space-8) var(--space-5);
}

.payment-total-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.payment-total-amount {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--text-primary);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: 0 var(--space-5);
}

.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-method:hover {
  border-color: var(--border-accent);
}

.payment-method.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: var(--shadow-glow);
}

.payment-method-icon {
  font-size: 1.8rem;
}

.payment-method-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.tip-options {
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-5);
  margin-top: var(--space-6);
}

.tip-option {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tip-option.active {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.tip-option-pct {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.tip-option-amount {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* === DASHBOARD === */
.greeting {
  padding: var(--space-5);
}

.greeting-hello {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.greeting-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-top: var(--space-1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  padding: 0 var(--space-5);
}

/* Chart placeholder */
.chart-area {
  height: 160px;
  background: linear-gradient(180deg, var(--accent-muted) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.chart-area svg {
  width: 100%;
  height: 100%;
}

/* === LIST ITEMS === */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  transition: background var(--transition-fast);
}

.list-item:hover {
  background: var(--bg-hover);
}

.list-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
}

.list-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.list-trailing {
  text-align: right;
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) var(--space-5);
}

/* === PAGE LAYOUT HELPER === */
.page-content {
  padding-bottom: 100px; /* space for tab bar */
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.4s ease forwards;
}

/* Multiple phone frames side by side */
.mockup-gallery {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.mockup-label {
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
