/* ==========================================================================
   SlipStash Interactive Web Demo Styles
   100% On-Device Private Receipt & Return Vault
   © 2026 SlipStash
   ========================================================================== */
:root {
  --bg: #070C18;
  --card-bg: #0E172A;
  --card-bg-elevated: #142038;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(56, 189, 248, 0.4);
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  --hero-gradient: linear-gradient(135deg, #13234A 0%, #1E3A8A 100%);
  --cyan: #38BDF8;
  --emerald: #10B981;
  --gold: #F59E0B;
  --red: #EF4444;
  --purple: #8B5CF6;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  background: #030712;
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  padding: 0 0 100px;
}

/* Top Floating Demo Header */
.demo-top-bar {
  width: 100%;
  max-width: 440px;
  background: rgba(14, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 101;
}

.demo-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px #10B981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.demo-tagline {
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.demo-store-pills {
  display: flex;
  gap: 6px;
}

.store-badge-mini {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.store-badge-mini:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* iPhone Shell Frame */
.iphone-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: #070C18;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

/* Navigation Toolbar */
.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  background: rgba(7, 12, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 54px;
}

.toolbar-left { display: flex; align-items: center; gap: 10px; }
.nav-back-btn {
  display: none;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}
.toolbar-logo-icon { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.toolbar-app-name { font-size: 18px; font-weight: 800; color: #FFFFFF; letter-spacing: -0.3px; }

.toolbar-right { display: flex; align-items: center; gap: 10px; }
.pro-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.gear-btn { background: transparent; border: none; color: #FFFFFF; font-size: 18px; cursor: pointer; }

/* Screens */
.screen-container { display: none; padding: 16px; flex-direction: column; gap: 18px; }
.screen-container.active { display: flex; }

/* Brand Hero Title */
.brand-hero-title { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.brand-hero-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }
.brand-hero-text { font-size: 30px; font-weight: 900; color: #FFFFFF; letter-spacing: -0.5px; }

/* Executive Hero Stats Card */
.executive-stats-card {
  background: var(--hero-gradient);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-stats-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-stats-value-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.hero-stats-big {
  font-size: 36px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.hero-recovered-badge {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-mini-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mini-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-stat-texts {
  display: flex;
  flex-direction: column;
}

.mini-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.mini-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

/* Quick Actions Bar */
.quick-actions-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.quick-action-btn {
  background: var(--card-bg-elevated);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.quick-action-btn:active {
  transform: scale(0.97);
  border-color: var(--primary);
}
.quick-action-icon {
  font-size: 20px;
}

/* Urgent Countdown Reminders */
.urgent-banner-card {
  background: #142038;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.urgent-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.urgent-banner-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.urgent-item-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.urgent-item-pill:active {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--primary);
}
.urgent-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* 2-Column Folders Grid */
.folders-grid-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.folder-card-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.folder-card-tile:active {
  transform: scale(0.97);
  border-color: var(--cyan);
}

.folder-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.folder-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.folder-tile-name {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.folder-tile-total {
  font-size: 15px;
  font-weight: 900;
  color: var(--cyan);
}

/* Feature Showcase Cards (Why SlipStash Wins) */
.feature-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-info-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.feature-info-texts { display: flex; flex-direction: column; gap: 2px; }
.feature-info-title { font-size: 13.5px; font-weight: 800; color: #FFFFFF; }
.feature-info-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* Status Badges */
.status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.status-badge.urgent { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.status-badge.warning { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.status-badge.safe { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.status-badge.returned { background: rgba(255, 255, 255, 0.08); color: #94A3B8; }
.status-badge.closed { background: rgba(255, 255, 255, 0.06); color: #64748B; }

/* Receipt Item Row in Folder */
.receipt-item-row {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.receipt-item-row:active {
  transform: scale(0.98);
  border-color: var(--primary);
}
.receipt-thumb-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.receipt-title-str { font-size: 14px; font-weight: 700; color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.receipt-sub-str { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* Gauge Card */
.gauge-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gauge-circle {
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  border: 8px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

/* Cashier Barcode Plate */
.barcode-plate-card {
  background: #FFFFFF;
  color: #000000;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.barcode-svg-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.barcode-numeric-str {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #111827;
}

/* Paper Receipt Preview */
.receipt-paper-specimen {
  background: #F8FAFC;
  color: #1E293B;
  border-radius: 12px;
  padding: 16px;
  font-family: monospace;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: all 0.15s;
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.btn-secondary:active { transform: scale(0.98); background: rgba(255, 255, 255, 0.12); }
.btn-full { width: 100%; }

/* Conversion Bottom Dock */
.conversion-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  background: rgba(7, 12, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(56, 189, 248, 0.4);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.dock-copy {
  display: flex;
  flex-direction: column;
}
.dock-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFFFFF;
}
.dock-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}
.dock-actions {
  display: flex;
  gap: 8px;
}
.dock-btn {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}
