/* ============================================================
   Pak Doodh Wala - Mobile Application Styles
   PWA-optimized, touch-friendly, offline-aware
   ============================================================ */

:root {
  --primary: #1a5f2a;
  --primary-dark: #0d3d18;
  --primary-light: #2d8a3e;
  --accent: #f5a623;
  --accent-dark: #d48b1a;
  --danger: #e74c3c;
  --success: #27ae60;
  --warning: #f39c12;
  --info: #3498db;
  --dark: #1a1a2e;
  --gray-900: #2d2d44;
  --gray-700: #4a4a6a;
  --gray-500: #7a7a9a;
  --gray-300: #b8b8c8;
  --gray-100: #f0f0f5;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: 56px;
  --nav-height: 64px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-100);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

body.offline::before {
  content: 'Offline Mode';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--warning);
  color: var(--white);
  text-align: center;
  padding: 4px;
  font-size: 12px;
  font-weight: 600;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}

.app-header .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
}

.header-btn:active {
  background: rgba(255,255,255,0.3);
  transform: scale(0.95);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-nav-toggle {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

body.nav-open .mobile-nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.nav-open .mobile-nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: var(--white);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

body.nav-open .mobile-nav {
  transform: translateX(0);
}

.nav-header {
  padding: 24px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
}

.nav-header .user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.nav-header .user-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 2px;
}

.nav-header .user-role {
  font-size: 13px;
  opacity: 0.8;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.nav-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
}

.nav-section-title {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 15px;
  transition: background var(--transition);
  position: relative;
}

.nav-item:active {
  background: var(--gray-100);
}

.nav-item.active {
  color: var(--primary);
  background: rgba(26, 95, 42, 0.06);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

.nav-item .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}

.nav-footer .app-version {
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

.main-content {
  padding-top: var(--header-height);
  padding-bottom: var(--nav-height);
  min-height: 100vh;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: var(--safe-bottom);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 16px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
  flex: 1;
}

.bottom-nav-item .icon {
  font-size: 22px;
  transition: transform var(--transition);
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item.active .icon {
  transform: translateY(-2px);
}

.bottom-nav-item:active {
  color: var(--primary-light);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
}

.card-body {
  padding: 0 16px 16px;
}

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

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
}

.stat-card .stat-change {
  font-size: 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.stat-card .stat-change.up {
  color: var(--success);
}

.stat-card .stat-change.down {
  color: var(--danger);
}

.stat-card.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.stat-card.primary .stat-label,
.stat-card.primary .stat-value {
  color: var(--white);
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
}

.product-card .product-info {
  padding: 12px;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card .product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.product-card .product-unit {
  font-size: 12px;
  color: var(--gray-500);
}

.product-card .add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.product-card .add-btn:active {
  background: var(--primary-dark);
}

.order-list {
  padding: 0 16px;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.order-card .order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-card .order-id {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.order-card .order-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.confirmed { background: #d1ecf1; color: #0c5460; }
.order-status.preparing { background: #e2e3f3; color: #383d41; }
.order-status.out-for-delivery { background: #cce5ff; color: #004085; }
.order-status.delivered { background: #d4edda; color: #155724; }
.order-status.cancelled { background: #f8d7da; color: #721c24; }

.order-card .order-items {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.order-card .order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.order-card .order-total {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.order-card .order-time {
  font-size: 12px;
  color: var(--gray-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  -webkit-appearance: none;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:active {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:active {
  background: rgba(26, 95, 42, 0.08);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237a7a9a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 16px;
  right: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-danger { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--info); }

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--success); color: white; }
.toast-warning .toast-icon { background: var(--warning); color: white; }
.toast-danger .toast-icon { background: var(--danger); color: white; }
.toast-info .toast-icon { background: var(--info); color: white; }

.install-banner {
  position: fixed;
  bottom: calc(var(--nav-height) + 12px);
  left: 16px;
  right: 16px;
  z-index: 1001;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  animation: slideUp 0.3s ease;
}

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

.install-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.install-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.install-text strong {
  font-size: 15px;
  color: var(--dark);
}

.install-text span {
  font-size: 13px;
  color: var(--gray-500);
}

.btn-install {
  padding: 10px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-banner {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 16px;
  right: 16px;
  z-index: 1001;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.update-banner button {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.update-banner #update-app {
  background: var(--white);
  color: var(--primary);
}

.update-banner #dismiss-update {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content {
  width: 100%;
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  font-size: 20px;
  color: var(--gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull-refresh {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  z-index: 999;
  transform: translateY(-60px);
  transition: transform 0.2s;
}

.pull-refresh.active {
  transform: translateY(0);
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, #e8e8f0 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state .empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state .empty-text {
  font-size: 14px;
  color: var(--gray-500);
  max-width: 280px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-primary { background: rgba(26, 95, 42, 0.1); color: var(--primary); }
.badge-success { background: rgba(39, 174, 96, 0.1); color: var(--success); }
.badge-warning { background: rgba(243, 156, 18, 0.1); color: var(--warning); }
.badge-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger); }

.search-bar {
  position: relative;
  margin: 0 16px 16px;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.1);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gray-500);
}

.section {
  padding: 16px;
}

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

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.section-action {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.scroll-x {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
  display: none;
}

.scroll-x > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.category-pill {
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition);
}

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

.category-pill:active {
  transform: scale(0.95);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-100);
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.qty-stepper button:active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.qty-stepper .qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gray-100);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
}

.timeline-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item.completed::before {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success);
}

.timeline-time {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 14px;
  color: var(--gray-700);
}

.timeline-item.active .timeline-text {
  color: var(--primary);
  font-weight: 600;
}

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

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

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-nav { width: 320px; }
  .modal-content {
    max-width: 480px;
    border-radius: var(--radius-lg);
    margin: auto;
    transform: translateY(20px) scale(0.95);
  }
  .modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media print {
  .app-header, .bottom-nav, .mobile-nav, .nav-overlay, .install-banner, .update-banner {
    display: none !important;
  }
  .main-content { padding: 0; }
}

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