/* ═══════════════════════════════════════════════
   PRECISION PEPTIDES — style.css
   Dark pharmaceutical aesthetic
   Mobile-first PWA
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg-primary: #070b12;
  --bg-card: #0e1420;
  --bg-surface: #141c2b;
  --bg-input: #1a2235;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a8b8;
  --text-muted: #6b7385;
  --accent: #c0c0c0;
  --accent-bright: #ffffff;
  --border: #1e2a3d;
  --border-light: #2a3650;

  /* Category colors */
  --cat-glp1: #2233aa;
  --cat-healing: #22aa44;
  --cat-growth: #6633cc;
  --cat-cognitive: #cc6600;
  --cat-skin: #cc3399;
  --cat-longevity: #999900;
  --cat-essentials: #556677;
  --cat-immune: #3388aa;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.4);
  --transition: 0.2s ease;

  --shipping-rate: 17;
  --payment-email: "pptides@gmail.com";
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, .heading {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ── Compliance Gate ── */
.compliance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.compliance-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.compliance-box img {
  width: 80px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: brightness(1.1);
}

.compliance-box h1 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.compliance-box p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.compliance-box .disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.compliance-btn {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
}

.compliance-btn.confirm {
  background: var(--accent);
  color: var(--bg-primary);
  margin-bottom: 0.6rem;
}

.compliance-btn.confirm:hover {
  background: var(--accent-bright);
}

.compliance-btn.deny {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #cc3333;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 500;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty,
.cart-badge[data-count="0"] {
  display: none;
}

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.3rem 0.8rem;
  transition: var(--transition);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.nav-item.active {
  color: var(--accent-bright);
}

/* ── Main Content ── */
.app-content {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  min-height: 100vh;
}

.page {
  display: none;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.page.active {
  display: block;
}

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

/* ── Category Filters ── */
.category-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.cat-pill {
  flex-shrink: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cat-pill.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.cat-pill:not(.active):hover {
  border-color: var(--text-muted);
}

/* ── Search ── */
.search-bar {
  position: relative;
  margin-bottom: 0.5rem;
}

.search-bar input {
  width: 100%;
  padding: 0.7rem 2.2rem 0.7rem 2.6rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--accent);
}

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

.search-bar svg {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

.search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.search-clear:hover {
  color: var(--text-primary);
}

/* ── Google Places Autocomplete Dropdown ── */
.pac-container {
  background: #141a26 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  z-index: 10000 !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 4px !important;
}
.pac-item {
  background: #141a26 !important;
  color: #c8ccd4 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
}
.pac-item:hover,
.pac-item-selected {
  background: #1c2538 !important;
}
.pac-item-query {
  color: #ffffff !important;
  font-weight: 500 !important;
}
.pac-icon,
.pac-icon-marker,
.pac-icon-search,
.hdpi .pac-icon,
.pac-item > .pac-icon,
.pac-item > span:first-child:not(.pac-item-query),
[class*="pac-icon"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  background-image: none !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}
.pac-item {
  padding-left: 12px !important;
}
.pac-logo::after {
  display: none !important;
}
/* Force no background images on autocomplete input */
#custAddress {
  background-image: none !important;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

.product-card-body {
  padding: 0.7rem;
}

.product-card-cat {
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.product-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--accent-bright);
  line-height: 1.1;
}

.product-card-dose {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.15rem;
}

.product-card-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  margin-top: 0.1rem;
}

.product-card-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--accent);
  margin-top: 0.4rem;
}

/* ── Product Detail Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-sheet {
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease;
}

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

.modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  line-height: 1;
}

.modal-body {
  padding: 1.2rem;
}

.modal-img {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
  display: block;
  border-radius: var(--radius-sm);
}

.modal-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--accent-bright);
  text-align: center;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.modal-price {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.detail-section {
  margin-bottom: 1rem;
}

.detail-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(30,42,61,0.5);
}

.detail-row .label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.detail-row .value {
  color: var(--text-primary);
  font-weight: 400;
  text-align: right;
  max-width: 60%;
}

.detail-notes {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  background: var(--bg-surface);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-light);
}

/* ── Modal Buy Row (qty + add to cart) ── */
.modal-buy-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.modal-qty-stepper,
.stack-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-qty-stepper button,
.stack-qty-stepper button {
  width: 2rem;
  height: 2rem;
  border: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-qty-stepper button:hover,
.stack-qty-stepper button:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

.modal-qty-stepper span,
.stack-qty-stepper span {
  width: 2rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  line-height: 2rem;
}

.stack-qty-stepper {
  margin-top: 0.3rem;
}

.stack-qty-stepper button {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8rem;
}

.stack-qty-stepper span {
  width: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.5rem;
}

.stack-confirm {
  font-size: 0.7rem;
  color: #22cc66;
  font-weight: 600;
  text-align: center;
  margin-top: 0.3rem;
}

.add-to-cart-btn {
  flex: 1;
  padding: 0.9rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0;
}

.add-to-cart-btn:hover {
  background: var(--accent-bright);
}

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

/* ── Dosing Guide ── */
.dosing-category {
  margin-bottom: 1.5rem;
}

.dosing-category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.6rem;
}

.dosing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.dosing-card-header {
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.dosing-card-header h3 {
  font-size: 1rem;
  font-family: 'Bebas Neue', sans-serif;
}

.dosing-card-header .chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  font-size: 0.8rem;
}

.dosing-card.open .chevron {
  transform: rotate(180deg);
}

.dosing-card-body {
  display: none;
  padding: 0 1rem 1rem;
}

.dosing-card.open .dosing-card-body {
  display: block;
}

/* ── Reconstitution Calculator ── */
.calc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1rem;
}

.calc-section h2 {
  margin-bottom: 1rem;
}

.calc-row {
  margin-bottom: 0.8rem;
}

.calc-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.calc-row input,
.calc-row select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
}

.calc-row input:focus,
.calc-row select:focus {
  border-color: var(--accent);
}

.calc-result {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.8rem;
  text-align: center;
}

.calc-result .big-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--accent-bright);
}

.calc-result .big-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Cart ── */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  stroke: var(--border-light);
  fill: none;
  stroke-width: 1;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--accent-bright);
}

.cart-item-detail {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--accent);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--accent);
}

.qty-count {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem;
  flex-shrink: 0;
}

.cart-remove:hover {
  color: #cc3333;
}

/* ── Cart Summary & Checkout ── */
.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent-bright);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.8rem;
}

.checkout-btn:hover {
  background: var(--accent-bright);
}

/* ── Checkout Page ── */
.checkout-steps {
  counter-reset: step;
}

.checkout-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 3.2rem;
}

.checkout-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--accent);
}

.checkout-step h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.checkout-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.5;
}

.email-highlight {
  display: inline-block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--accent-bright);
  margin: 0.5rem 0;
  user-select: all;
  cursor: pointer;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  margin-left: 0.3rem;
  transition: var(--transition);
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* ── Syringe Visualization ── */
.syringe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem auto 0.5rem;
}

.syringe-svg {
  width: 120px;
  height: auto;
}

.syringe-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

.syringe-sublabel {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.2rem;
}

/* ── Dose Unit Toggle ── */
.dose-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dose-input-group input {
  flex: 1;
}
.unit-toggle {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.unit-toggle button {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  border: none;
  padding: 0.65rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 48px;
  min-height: 44px;
}
.unit-toggle button.active {
  background: var(--accent-bright);
  color: var(--bg-dark);
}

/* ── Free BAC Water Nudge ── */
.bac-nudge {
  background: linear-gradient(135deg, rgba(34,204,102,0.1), rgba(34,204,102,0.05));
  border: 1px solid rgba(34,204,102,0.25);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 0.8rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: #ccd6e0;
}
.bac-nudge strong {
  color: #22cc66;
}

/* ── Commonly Stacked ── */
.stacks-section {
  margin-top: 1.2rem;
}
.stack-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem;
  margin-bottom: 0.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: border-color 0.2s;
}
.stack-img,
.stack-info {
  cursor: pointer;
}
.stack-card:active {
  border-color: rgba(255,255,255,0.15);
}
.stack-upsell {
  border-color: rgba(34,204,102,0.2);
  background: rgba(34,204,102,0.04);
}
.stack-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.stack-info {
  flex: 1;
  min-width: 0;
}
.stack-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
}
.stack-dose {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}
.stack-reason {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 0.1rem;
}
.stack-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.stack-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  color: var(--accent-bright);
}
.stack-add-btn {
  background: var(--accent-bright);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
}
.stack-upsell .stack-add-btn {
  background: #22cc66;
}

/* ── Install Banner ── */
.install-banner {
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0 0.8rem;
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.install-banner-content {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #111826, #0d1420);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.install-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}
.install-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.install-banner-text strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
}
.install-banner-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.install-banner-btn {
  background: var(--accent-bright);
  color: var(--bg-dark);
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 44px;
}
.install-banner-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.3rem;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── iOS Install Overlay ── */
.ios-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ios-install-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
}
.ios-install-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--text-main);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.ios-install-steps {
  text-align: left;
}
.ios-step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}
.ios-step strong {
  color: var(--text-main);
}
.ios-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-bright);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ── Contact Form ── */
.contact-form {
  margin-top: 0.8rem;
}

.contact-form .calc-row {
  margin-bottom: 0.6rem;
}

.contact-form input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus {
  border-color: var(--accent);
}

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

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  font-size: 0.82rem;
  color: var(--accent-bright);
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

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

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
