@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: #D32F2F;
  --secondary: #FF5722;
  --accent: #FF9800;
  --green: #FFC107;
  --white: #FFF8E1;
  --bg: #FFF8E1;
  --bg-card: #FFFFFF;
  --text: #3E2723;
  --text-light: #8D6E63;
  --text-muted: #BCAAA4;
  --border: #FFE0B2;
  --border-light: #FFF3E0;
  --danger: #E53935;
  --danger-light: #FFEBEE;
  --expiring-bg: #FFF9C4;
  --expiring-border: #F9A825;
  --expired-bg: #FFEBEE;
  --expired-border: #EF5350;
  --used-bg: #F5F5F5;
  --shadow-sm: 0 1px 3px rgba(62, 39, 35, 0.06);
  --shadow-md: 0 4px 12px rgba(62, 39, 35, 0.08);
  --shadow-lg: 0 8px 24px rgba(62, 39, 35, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

::selection {
  background: var(--secondary);
  color: var(--text);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============ ANIMATIONS ============ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============ APP LAYOUT ============ */

.app-container {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 80px;
}

/* ============ HEADER ============ */

.app-header {
  padding: 32px 0 24px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

.header-content {
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}

.logo-icon {
  font-size: 2rem;
}

.app-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.app-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
}

/* ============ STATS BAR ============ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.stat-active .stat-number { color: var(--green); }
.stat-expiring .stat-number { color: var(--secondary); }
.stat-expired .stat-number { color: var(--danger); }

.skeleton-stat {
  height: 70px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: none;
}

/* ============ CONTENT HEADER ============ */

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

.btn-add:hover {
  background: #E65100;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.btn-add:active {
  transform: translateY(0);
}

.btn-add-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============ FILTER BAR ============ */

.filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--secondary);
  color: var(--primary);
}

.filter-active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.filter-active:hover {
  background: #E65100;
  color: var(--white);
  border-color: #E65100;
}

/* ============ DEAL LIST ============ */

.deal-list-wrapper {
  animation: fadeInUp 0.5s ease 0.15s both;
}

.deal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  animation: fadeInUp 0.4s ease both;
  border-left: 4px solid var(--green);
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.deal-expired {
  border-left-color: var(--danger);
  background: var(--expired-bg);
  opacity: 0.75;
}

.deal-expiring {
  border-left-color: var(--expiring-border);
  background: var(--expiring-bg);
}

.deal-used {
  border-left-color: var(--text-muted);
  background: var(--used-bg);
  opacity: 0.65;
}

.deal-used .deal-item-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Deal card internals */

.deal-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.deal-store-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-emoji {
  font-size: 1rem;
}

.store-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.deal-discount-badge {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: 20px;
  padding: 4px 12px;
}

.discount-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.discount-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.deal-item-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Coupon code row */

.coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  background: var(--border-light);
  border: 1px dashed var(--secondary);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.coupon-code {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.5px;
  flex: 1;
}

.btn-copy {
  background: var(--secondary);
  color: var(--text);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--primary);
  color: var(--white);
}

/* Deal footer */

.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-date-info {
  flex: 1;
  min-width: 0;
}

.date-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}

.badge-active {
  background: rgba(192, 202, 51, 0.15);
  color: #7C8500;
}

.badge-expiring {
  background: rgba(249, 168, 37, 0.2);
  color: #E65100;
  font-weight: 600;
}

.badge-expired {
  background: rgba(229, 57, 53, 0.12);
  color: var(--danger);
}

.deal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-used {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-used:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-used-active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-used-active:hover {
  background: #9E9D24;
  border-color: #9E9D24;
}

.btn-delete {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-delete:hover {
  background: var(--danger-light);
  border-color: var(--danger);
}

/* ============ EMPTY STATE ============ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease;
}

.empty-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ============ SKELETON ============ */

.skeleton-card {
  height: 140px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
  border: none;
}

/* ============ MODAL ============ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  padding: 16px;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-close-modal:hover {
  background: var(--border-light);
  color: var(--text);
}

/* ============ FORM ============ */

.deal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-group-half {
  flex: 1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  transition: all 0.2s ease;
  outline: none;
}

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

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.12);
}

.form-input-code {
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-cancel {
  flex: 1;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--border-light);
}

.btn-save {
  flex: 1.5;
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

.btn-save:hover:not(:disabled) {
  background: #E65100;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ RESPONSIVE ============ */

@media (min-width: 641px) {
  .app-container {
    padding: 0 24px 80px;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius-xl);
  }
}

@media (max-width: 640px) {
  .app-title {
    font-size: 1.6rem;
  }

  .stat-card {
    padding: 12px 8px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .deal-card {
    padding: 14px;
  }

  .deal-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .deal-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .stat-card {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    padding: 10px;
  }
}

/* ============ FOCUS STYLES ============ */

.btn-add:focus-visible,
.btn-copy:focus-visible,
.btn-used:focus-visible,
.btn-delete:focus-visible,
.btn-save:focus-visible,
.btn-cancel:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-input:focus-visible {
  outline: none;
}

<!-- WALKTHROUGH_SCRIPT:
[
  {"step": 1, "narration": "Welcome to DealVault — your personal coupon and deal tracker. You'll see stats at the top showing your active, expiring, and expired deals at a glance.", "view": "user", "highlight_selector": ".stats-bar", "wait_for": "tap_to_continue"},
  {"step": 2, "narration": "Tap the '+ Add Deal' button to save a new coupon or deal.", "view": "user", "highlight_selector": ".btn-add", "wait_for": "user_interaction"},
  {"step": 3, "narration": "Fill in the store name, item description, discount percentage, expiration date, and optionally a coupon code. Then tap 'Save Deal'.", "view": "user", "highlight_selector": ".deal-form", "wait_for": "user_interaction"},
  {"step": 4, "narration": "Your deals are sorted by expiration date — soonest first. Deals expiring within 3 days are highlighted in yellow, and expired deals are flagged in red.", "view": "user", "highlight_selector": ".deal-list", "wait_for": "tap_to_continue"},
  {"step": 5, "narration": "Use the filter buttons to quickly view only active, expiring soon, expired, or used deals.", "view": "user", "highlight_selector": ".filter-bar", "wait_for": "tap_to_continue"},
  {"step": 6, "narration": "Tap 'Copy' to copy a coupon code to your clipboard. Tap 'Mark Used' when you've redeemed a deal, or the trash icon to delete it.", "view": "user", "highlight_selector": ".deal-actions", "wait_for": "tap_to_continue"}
]
-->

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
}

.auth-logo {
  font-size: 3rem;
  margin-bottom: 12px;
}

.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.auth-text {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-google-auth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
}

.btn-google-auth:hover {
  background: #E65100;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
}

.user-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.user-welcome {
  font-size: 0.9rem;
  color: var(--text-light);
}

.btn-signout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-signout:hover {
  background: var(--border-light);
  border-color: var(--secondary);
  color: var(--primary);
}

.deal-meta-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--border-light);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.category-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-light);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover {
  border-color: var(--secondary);
  color: var(--primary);
}

.category-pill-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.deal-search-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.search-icon {
  font-size: 0.95rem;
  color: var(--text-light);
  flex: 0 0 auto;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  min-width: 0;
}

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

.search-clear {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
}

.search-clear:hover {
  background: var(--border-light);
  color: var(--text);
}

@media (max-width: 640px) {
  .deal-search-panel {
    gap: 10px;
  }
}

.savings-summary-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.savings-summary-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings-summary-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.savings-summary-label {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.92;
}

.savings-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeInUp 0.5s ease 0.1s both;
}

.savings-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.savings-chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.savings-chart-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.savings-chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.4;
}

.savings-chart-canvas {
  width: 100% !important;
  height: 180px !important;
}

.savings-chart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 24px 12px;
}

.skeleton-chart {
  min-height: 240px;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border: none;
}

@media (max-width: 640px) {
  .savings-charts-grid {
    grid-template-columns: 1fr;
  }

  .savings-summary-row {
    justify-content: stretch;
  }

  .savings-summary-card {
    width: 100%;
  }
}

.deal-share-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deal-share-copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.share-link-icon {
  font-size: 0.95rem;
  color: var(--text-light);
  flex: 0 0 auto;
}

.share-link-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
}

.btn-share-copy,
.btn-share-native {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-share-copy {
  background: var(--secondary);
  color: var(--text);
}

.btn-share-native {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.22);
}

.btn-share-copy:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-share-native:hover {
  background: #E65100;
  transform: translateY(-1px);
}

.deal-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-hint {
  font-size: 0.78rem;
  color: var(--text-light);
}

@media (max-width: 640px) {
  .deal-share-copy-field {
    flex-wrap: wrap;
  }

  .share-link-input {
    width: 100%;
    order: 3;
  }

  .deal-share-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.flyer-extract-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.flyer-input {
  min-height: 96px;
  resize: vertical;
}

.flyer-actions {
  margin-top: 0;
}

.ai-status {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

.ai-status-error {
  color: var(--danger);
}

.extracted-deals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
