:root {
  --primary: #0891b2;
  --primary-dark: #0e7490;
  --primary-light: #e0f2fe;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

/* App Header */
.app-header {
  background: linear-gradient(135deg, #0e7490, #0284c7);
  color: #ffffff;
  padding: max(16px, env(safe-area-inset-top)) 16px 14px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

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

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 11px;
  opacity: 0.85;
}

.network-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Main Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px;
}

/* Card Common */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Capture Action Section */
.capture-card {
  text-align: center;
  padding: 20px 16px;
  background: #ffffff;
  border: 2px dashed #0284c7;
  position: relative;
  overflow: hidden;
}

.capture-title {
  font-size: 17px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 4px;
}

.capture-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.strip-btn-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.25));
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-accent {
  background: #0f172a;
  color: #ffffff;
}

.choose-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.choose-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.choose-link:hover,
.choose-link:active {
  color: var(--primary);
}

.choose-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

/* Viewfinder Reticle Overlay Modal */
.viewfinder-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 100;
  flex-direction: column;
}

.viewfinder-modal.active {
  display: flex;
}

.camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reticle-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reticle-box {
  width: 80px;
  height: 65%;
  border: 2px dashed #22c55e;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px 0;
}

.reticle-notch {
  width: 65%;
  height: 24px;
  margin: 0 auto;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

.notch-label {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.3px;
  pointer-events: none;
  white-space: nowrap;
}

.reticle-band-notch {
  width: 70%;
  height: 12px;
  margin: 0 auto;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px dashed rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reticle-band-notch::after {
  content: "INDICATOR STRIPE";
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.reticle-guide-text {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(8px);
}

.camera-controls-bottom {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 20px;
}

.shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  cursor: pointer;
}

.shutter-btn:active {
  transform: scale(0.92);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
}

/* Sample Quick-Test Scroller */
.samples-bar {
  margin-bottom: 14px;
}

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

.samples-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.samples-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.sample-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}

.sample-chip:active, .sample-chip.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* LSI Hero Card */
.lsi-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border-left: 6px solid #16a34a;
}

.lsi-card.red {
  border-left-color: var(--danger);
  background: #fffafa;
}

.lsi-card.amber {
  border-left-color: var(--warning);
  background: #fffdf5;
}

.lsi-card.green {
  border-left-color: var(--success);
  background: #f7fef9;
}

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

.lsi-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.lsi-score {
  font-size: 26px;
  font-weight: 800;
}

.lsi-status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin-top: 4px;
}

.lsi-status-badge.green {
  background: var(--success-bg);
  color: var(--success);
}

.lsi-status-badge.amber {
  background: var(--warning-bg);
  color: var(--warning);
}

.lsi-status-badge.red {
  background: var(--danger-bg);
  color: var(--danger);
}

/* 6 Full-Width Parameter & LSI Cards */
.parameters-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.param-card {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.param-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.param-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.param-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
}

.param-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.param-val {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.param-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.param-chip.ideal {
  background: var(--success-bg);
  color: var(--success);
}

.param-chip.low {
  background: var(--danger-bg);
  color: var(--danger);
}

.param-chip.high {
  background: #f3e8ff;
  color: #7e22ce;
}

.param-target {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Treatment Plan Section */
.treatment-section {
  margin-bottom: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.treatment-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-color);
}

.treatment-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.treatment-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.treatment-step {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin-bottom: 6px;
}

.treatment-step:last-child {
  margin-bottom: 0;
}

.treatment-step::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 800;
  color: #0284c7;
}

.treatment-warning {
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}

/* Visual Image Comparison Section (Collapsible) */
.cv-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin: 4px 0 12px 0;
}

.cv-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cv-toggle-btn:hover,
.cv-toggle-btn:active {
  background: #f1f5f9;
  color: #0284c7;
  border-color: #94a3b8;
}

.image-preview-card {
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.cv-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cv-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cv-legend-box {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: rgba(15, 23, 42, 0.08);
}

.cv-legend-box.core {
  border: 2px solid #00e600;
}

.cv-legend-box.pad {
  border: 2px solid #eab308;
}

.cv-legend-box.crop {
  border: 2px solid #0284c7;
}

.preview-img {
  max-width: 100%;
  max-height: 380px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  object-fit: contain;
}

.linear-strip-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 16px;
  font-weight: 700;
}

.loading-subtext {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}

/* ==========================================================================
   E-Commerce 1-Tap Balancing Bundle & Cart Styles
   ========================================================================== */
.bundle-section {
  margin-top: 18px;
}

.bundle-card {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.12);
  margin-bottom: 20px;
}

.bundle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.bundle-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.bundle-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.bundle-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.btn-reset-qty {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reset-qty:hover,
.btn-reset-qty:active {
  text-decoration: underline;
}

.bundle-badge {
  background: #dbeafe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.pool-profile-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border: 1.5px solid #38bdf8;
  color: #0369a1;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
  transition: all 0.15s ease;
  text-align: left;
}

.pool-profile-pill:hover,
.pool-profile-pill:active {
  background: #bae6fd;
  border-color: #0284c7;
}

.pool-profile-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pool-profile-drawer {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.profile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.profile-drawer-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-saved-badge {
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.profile-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  outline: none;
}

.profile-select:focus {
  border-color: #0284c7;
}

.bundle-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.bundle-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  gap: 10px;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.bundle-item-card.item-skipped {
  opacity: 0.62;
  background: #f1f5f9;
  border-style: dashed;
}

.bundle-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.bundle-item-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.bundle-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.bundle-item-size {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  margin-top: 1px;
}

.bundle-item-qty-badge {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  margin-right: 4px;
}

.bundle-item-qty-badge.badge-skipped {
  background: #e2e8f0;
  color: #64748b;
}

.bundle-item-dosage {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  margin-top: 2px;
}

.bundle-item-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.qty-btn:hover,
.qty-btn:active {
  background: #e0f2fe;
  color: #0284c7;
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  padding: 0 4px;
}

.bundle-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.bundle-item-unit-price {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

/* Test Strip Addon Box */
.strip-addon-box {
  background: #eff6ff;
  border: 1.5px dashed #3b82f6;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

.strip-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.strip-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #0284c7;
  cursor: pointer;
}

.strip-checkbox-content {
  flex: 1;
}

.strip-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a8a;
}

.strip-price {
  margin-left: auto;
  font-weight: 800;
  color: #1e3a8a;
}

.strip-desc {
  font-size: 11px;
  color: #3b82f6;
  margin-top: 4px;
  line-height: 1.35;
}

/* Price Summary & Footer */
.bundle-summary-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.discount-line {
  color: #16a34a;
  font-weight: 600;
}

.free-shipping {
  color: #16a34a;
  font-weight: 700;
}

.summary-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.summary-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.total-label {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.total-price {
  font-size: 20px;
  font-weight: 900;
  color: #0284c7;
}

/* Apple Pay & Amazon Cart Buttons */
.btn-apple-pay {
  width: 100%;
  background: #000000;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-apple-pay:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.btn-amazon-cart {
  width: 100%;
  background: linear-gradient(180deg, #ffd814 0%, #f7ca00 100%);
  color: #0f1111;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #fcd200;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 17, 17, 0.15);
  transition: transform 0.15s, background 0.15s, opacity 0.15s;
}

.btn-amazon-cart:hover {
  background: linear-gradient(180deg, #f7ca00 0%, #f0b800 100%);
}

.btn-amazon-cart:active {
  transform: scale(0.98);
}

.prime-badge {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd;
  letter-spacing: 0.3px;
}

.asin-link {
  color: #0284c7;
  font-weight: 700;
  text-decoration: none;
  font-size: 10.5px;
}

.asin-link:hover {
  text-decoration: underline;
}

.amazon-cart-hint {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #0369a1;
  margin-top: 8px;
}

.apple-logo {
  font-size: 17px;
  font-weight: 600;
}

.guarantee-text {
  text-align: center;
  font-size: 10.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.35;
}

/* Receipt Modal */
.receipt-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.receipt-modal.active {
  display: flex;
}

.receipt-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.receipt-badge-icon {
  font-size: 42px;
  margin-bottom: 8px;
}

.receipt-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.receipt-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  margin-bottom: 16px;
}

.receipt-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #475569;
  margin-bottom: 6px;
}

.receipt-row:last-child {
  margin-bottom: 0;
}

.tracking-code {
  font-family: monospace;
  font-weight: 700;
  color: #0284c7;
}

.receipt-total {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.receipt-verification-box {
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
}

.receipt-verification-title {
  font-size: 12px;
  font-weight: 800;
  color: #047857;
  margin-bottom: 4px;
}

.receipt-verification-body {
  font-size: 11px;
  color: #065f46;
  line-height: 1.35;
}

