/* iOS 18 Frosted Glassmorphism Stylesheet for 「淘个寂寞」 */
:root {
  --ios-bg-start: #f2f5f9;
  --ios-bg-end: #e5ebf3;
  --ios-blue: #007AFF;
  --ios-pink: #FF2D55;
  --ios-purple: #AF52DE;
  --ios-orange: #FF9500;
  --ios-green: #34C759;
  --ios-gold: #FFD700;
  --ios-gold-grad: linear-gradient(135deg, #FFE259 0%, #FFA751 100%);
  --ios-vip-grad: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
  --ios-dark-gold: linear-gradient(135deg, #2b2518 0%, #151410 100%);
  
  /* Glass tokens */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-hover: rgba(255, 255, 255, 0.85);
  --glass-bg-card: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-border-subtle: rgba(255, 255, 255, 0.35);
  --glass-blur: blur(26px) saturate(190%);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --glass-shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  --glass-specular: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85);
  
  /* Text */
  --text-primary: #1C1C1E;
  --text-secondary: #636366;
  --text-tertiary: #8E8E93;
  --text-white: #FFFFFF;
  
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
  background: radial-gradient(circle at 10% 20%, #e0e9f8 0%, #f7f9fc 50%, #fbe6e8 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Device Shell Simulator on Desktop */
.device-container {
  width: 100%;
  max-width: 440px;
  height: 920px;
  background: #f8fafc;
  border-radius: 54px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.22), 0 0 0 12px #1e2022, 0 0 0 14px #4b4f56;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Fullscreen on real mobile */
@media (max-width: 600px) {
  body {
    background: #f8fafc;
  }
  .device-container {
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* Dynamic Island & Status Bar */
.status-bar {
  height: 48px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  font-size: 11px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.dynamic-island.expanded {
  width: 320px;
  height: 60px;
  border-radius: 30px;
  padding: 0 20px;
  justify-content: space-between;
}

.island-icon {
  font-size: 14px;
  animation: pulse-dopamine 1.5s infinite;
}

.island-text {
  font-size: 11px;
  color: #34C759;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes pulse-dopamine {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

/* Top App Bar with Frosted Glass */
.app-header {
  margin-top: 48px;
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border-subtle);
  position: sticky;
  top: 0;
  z-index: 90;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ios-vip-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
  box-shadow: var(--glass-specular);
}

.header-title {
  display: flex;
  flex-direction: column;
}

.header-title h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-tag {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(0, 122, 255, 0.2);
}

.header-slogan {
  font-size: 11px;
  color: var(--text-secondary);
}

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

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.08);
}

/* User Pill (WeChat Fast Mock Auth) */
.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ios-vip-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.user-name {
  font-size: 11px;
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sassy Banner (Grumpy & Stingy Mode) */
.sassy-banner {
  margin: 12px 16px 6px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.12), rgba(255, 45, 85, 0.08));
  border: 1px solid rgba(255, 149, 0, 0.25);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.sassy-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #92400e;
  font-weight: 500;
}

.sassy-refresh {
  font-size: 11px;
  color: var(--ios-orange);
  font-weight: 700;
  white-space: nowrap;
}

/* Main Content Area */
.main-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 90px; /* Space for bottom dock */
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Search Bar (iOS Glass) */
.search-container {
  padding: 8px 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 10px 14px;
  transition: all 0.25s ease;
}

.search-box:focus-within {
  background: #ffffff;
  border-color: var(--ios-blue);
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.15);
}

.search-icon {
  font-size: 15px;
  color: var(--text-tertiary);
}

.search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

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

.clear-search {
  font-size: 14px;
  color: var(--text-tertiary);
  cursor: pointer;
  display: none;
}

/* Category Filter Bar */
.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 10px;
  scrollbar-width: none;
}

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

.category-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.category-pill.active {
  background: #1C1C1E;
  color: #FFFFFF;
  border-color: #1C1C1E;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Sort Bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 18px 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.sort-options {
  display: flex;
  gap: 12px;
}

.sort-item {
  cursor: pointer;
  padding: 2px 4px;
  position: relative;
  font-weight: 500;
}

.sort-item.active {
  color: var(--ios-blue);
  font-weight: 700;
}

.sort-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--ios-blue);
  border-radius: 2px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 4px 16px 24px;
}

.product-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

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

.product-thumb-wrap {
  width: 100%;
  height: 155px;
  position: relative;
  background: #f0f2f5;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dopamine-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  background: rgba(255, 45, 85, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
}

.virtual-price-block {
  font-size: 14px;
  font-weight: 800;
  color: #1C1C1E;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.3px;
}

.virtual-price-block small {
  font-size: 10px;
  color: var(--ios-orange);
  font-weight: 700;
}

.virtual-tag-pill,
.real-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(255, 59, 48, 0.08);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.sales-tag {
  font-size: 10px;
  color: var(--text-tertiary);
}

.add-cart-mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ios-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 122, 255, 0.35);
}

.add-cart-mini-btn:active {
  transform: scale(0.85);
}

/* Floating iOS Frosted Glass Tab Bar */
.bottom-dock {
  position: absolute;
  bottom: 14px;
  left: 18px;
  right: 18px;
  height: 64px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), var(--glass-specular);
  z-index: 100;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 4px 10px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-icon {
  font-size: 21px;
  transition: transform 0.2s ease;
}

.dock-item.active {
  color: var(--ios-blue);
}

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

.dock-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: var(--ios-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(255, 45, 85, 0.4);
  animation: badge-pop 0.3s ease;
}

@keyframes badge-pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Modals & Sheets (iOS Style) */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.action-sheet {
  width: 100%;
  max-height: 85%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-top: 1px solid var(--glass-border);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sheet-header-pill {
  width: 40px;
  height: 5px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  margin: 10px auto 4px;
}

.sheet-header {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
}

.sheet-body {
  padding: 12px 20px 24px;
  overflow-y: auto;
  flex: 1;
}

/* Apple Pay Simulated Modal Sheet */
.apple-pay-card {
  background: linear-gradient(135deg, #1f1f24 0%, #0a0a0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.apple-pay-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.card-logo {
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}

.card-chip {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd700, #ffae19);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}

.card-number {
  font-size: 16px;
  letter-spacing: 2px;
  font-family: monospace;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
}

.card-holder {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.card-limit {
  font-size: 11px;
  color: #34C759;
  font-weight: 700;
}

/* Pay Bill Breakdown */
.pay-breakdown {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.breakdown-row.highlight {
  font-size: 16px;
  font-weight: 800;
  color: var(--ios-green);
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 0;
}

/* Face ID Animation Box */
.face-id-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.face-id-icon {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ios-blue);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  animation: scan-pulse 2s infinite ease-in-out;
}

@keyframes scan-pulse {
  0% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(0, 122, 255, 0); }
  100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

.face-id-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Big Satisfying Buttons */
.btn-primary {
  width: 100%;
  height: 54px;
  background: var(--ios-blue);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.35);
  transition: all 0.2s ease;
}

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

.btn-success {
  background: linear-gradient(135deg, #34C759, #28a745);
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.35);
}

.btn-gold {
  background: var(--ios-gold-grad);
  color: #4a2800;
  box-shadow: 0 10px 24px rgba(255, 167, 81, 0.4);
}

/* Random Address Picker Card */
.address-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.address-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.address-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(0, 122, 255, 0.12);
  color: var(--ios-blue);
  border-radius: 6px;
}

.address-recipient {
  font-size: 14px;
  font-weight: 700;
}

.address-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.address-refresh-btn {
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 11px;
  font-weight: 600;
  color: var(--ios-blue);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

/* Toast Notifications */
.ios-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(28, 28, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.ios-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Order Success Confetti Modal */
.success-screen {
  text-align: center;
  padding: 20px 10px;
}

.success-badge-icon {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #34C759, #30B0C7);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(52, 199, 89, 0.4);
  animation: bounce-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--ios-green);
  font-weight: 700;
  margin-bottom: 18px;
}

/* Order History List */
.order-card {
  background: var(--glass-bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--glass-shadow);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-id {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: monospace;
}

.order-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--ios-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-items-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

.order-item-info {
  flex: 1;
}

.order-item-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.order-item-qty {
  font-size: 11px;
  color: var(--text-secondary);
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.order-savings {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-savings strong {
  color: var(--ios-pink);
}

.order-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Consumption Report Page */
.report-hero {
  background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
  border-radius: 26px;
  padding: 24px;
  color: #fff;
  margin: 12px 16px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.report-hero::after {
  content: '🎉';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 64px;
  opacity: 0.15;
}

.report-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.report-big-amount {
  font-size: 32px;
  font-weight: 800;
  color: #FFE66D;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.report-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.report-stat-box {
  display: flex;
  flex-direction: column;
}

.report-stat-val {
  font-size: 16px;
  font-weight: 700;
}

.report-stat-val.green {
  color: #34C759;
}

.report-stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

/* Canvas Poster Container */
.poster-preview-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  margin: 10px auto;
  max-width: 320px;
  overflow: hidden;
}

.poster-canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* Tracking Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(0, 0, 0, 0.1);
}

.timeline-step {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ios-green);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.timeline-step:not(:first-child) .timeline-dot {
  background: var(--text-tertiary);
}

.timeline-time {
  font-size: 11px;
  color: var(--text-tertiary);
}

.timeline-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
