/* Peptizen - Mobile-first, ultra-fast stylesheet */
:root {
  --green-dark: #1e5c4f;
  --green: #2d7a68;
  --green-mid: #3d8f7c;
  --green-light: #4aaa96;
  --green-pale: #e6f4f1;
  --green-bg: #f0f9f7;
  --text-dark: #1a2e2b;
  --text-mid: #3d5550;
  --text-light: #6b8c87;
  --white: #ffffff;
  --off-white: #f8fffe;
  --border: #c8e0db;
  --shadow: 0 2px 12px rgba(45,122,104,0.10);
  --shadow-lg: 0 8px 32px rgba(45,122,104,0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 0.18s ease;
}

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

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--green-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo .logo-mark { flex-shrink: 0; display: block; }
.nav-logo .logo-word span { color: var(--green-light); }
.nav-contact { color: var(--text-light); font-size: 0.85rem; text-decoration: none; }
.nav-contact:hover { color: var(--green); }

/* TRUST BAR */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-mid); letter-spacing: 0.02em;
  text-transform: uppercase;
}
.trust-item svg { flex-shrink: 0; }

/* HERO */
.hero {
  background: linear-gradient(160deg, #e6f4f1 0%, #f0f9f7 50%, #dff0ec 100%);
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light), var(--green-dark));
}
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-mid); font-weight: 700; margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2rem; line-height: 1.2;
  color: var(--text-dark); font-weight: normal;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero-sub {
  font-size: 1rem; color: var(--text-mid);
  max-width: 360px; margin: 0 auto 24px;
}
.hero-cta {
  display: inline-block;
  background: var(--green); color: #fff;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(45,122,104,0.3);
  transition: background var(--transition);
}
.hero-cta:hover { background: var(--green-dark); }

/* STEP FLOW */
.step-section {
  background: linear-gradient(180deg, var(--green-bg) 0%, var(--white) 100%);
  padding: 36px 20px 48px;
}
.step-header { text-align: center; margin-bottom: 28px; }
.step-label {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-mid); font-weight: 700; margin-bottom: 6px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.65rem; color: var(--text-dark);
  font-weight: normal; line-height: 1.25;
  letter-spacing: -0.01em;
}
.step-sub { font-size: 0.9rem; color: var(--text-light); margin-top: 6px; }

/* PRODUCT CARDS */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; max-width: 500px; margin: 0 auto 28px;
}
.product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.product-card:active { transform: scale(0.97); }
.product-card.selected {
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: 0 4px 20px rgba(45,122,104,0.2);
}
.product-card .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: white;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
  white-space: nowrap;
}
.product-img { width: 100%; max-width: 100%; height: 240px; object-fit: contain; margin: 0 auto 12px; display: block; }
.product-name {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--text-dark); font-weight: bold;
  margin-bottom: 3px;
}
.product-desc { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; }

/* OPTION CARDS (strength, shipping) */
.options-list { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto 24px; }
.option-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.option-card:active { transform: scale(0.98); }
.option-card.selected {
  border-color: var(--green);
  background: var(--green-pale);
}
.option-left { display: flex; flex-direction: column; gap: 2px; }
.option-name { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.option-desc { font-size: 0.78rem; color: var(--text-light); }
.option-price { font-weight: 700; font-size: 1rem; color: var(--green-dark); white-space: nowrap; }
.option-card .badge-inline {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid var(--border);
  margin-left: 6px;
}

/* COUNTRY SELECT */
.country-select-wrap { max-width: 480px; margin: 0 auto 16px; }
.country-select-wrap label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; display: block; }
.country-select {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: var(--font-body);
  background: var(--white); color: var(--text-dark);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d7a68' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--transition);
}
.country-select:focus { outline: none; border-color: var(--green); }
.shipping-fee-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.shipping-fee-note strong { color: var(--green-dark); }

/* ORDER SUMMARY */
.order-summary {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  max-width: 480px; margin: 0 auto 20px;
  box-shadow: var(--shadow);
}
.summary-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); font-weight: 600; margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px solid #f0f0f0; }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; color: var(--text-dark); padding-top: 10px; margin-top: 4px; border-top: 1.5px solid var(--border); border-bottom: none; }
.summary-row .label { color: var(--text-mid); }
.summary-row .value { color: var(--text-dark); font-weight: 500; }

/* PAYMENT METHODS */
.payment-methods { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto 20px; }
.payment-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: var(--shadow);
}
.payment-card.selected { border-color: var(--green); }
.payment-header {
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; background: var(--white);
  transition: background var(--transition);
}
.payment-header:active { background: var(--green-pale); }
.payment-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.payment-card.selected .payment-radio { border-color: var(--green); }
.payment-radio-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); display: none;
}
.payment-card.selected .payment-radio-dot { display: block; }
.payment-label { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.payment-icons { margin-left: auto; display: flex; gap: 4px; }
.payment-icon { height: 20px; border-radius: 3px; }
.payment-body { display: none; padding: 14px 16px; background: var(--green-pale); border-top: 1px solid var(--border); }
.payment-card.selected .payment-body { display: block; }

/* FORM FIELDS */
.field-group { display: flex; flex-direction: column; gap: 10px; max-width: 480px; margin: 0 auto 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); }
.field input {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body);
  background: var(--white); color: var(--text-dark);
  transition: border-color var(--transition);
}
.field input:focus { outline: none; border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* BUTTONS */
.btn-primary {
  display: block; width: 100%; max-width: 480px; margin: 0 auto;
  padding: 16px 24px;
  background: var(--green);
  color: white; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border: none; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(45,122,104,0.3);
}
.btn-primary:active { transform: translateY(1px); box-shadow: 0 2px 8px rgba(45,122,104,0.2); }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #aaa; cursor: not-allowed; box-shadow: none; }

.btn-back {
  display: block; width: 100%; max-width: 480px; margin: 10px auto 0;
  padding: 12px 24px;
  background: transparent; color: var(--text-light);
  font-size: 0.85rem; border: none; cursor: pointer;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--green); }

/* PROGRESS */
.progress-bar {
  max-width: 480px; margin: 0 auto 24px;
  display: flex; gap: 4px;
}
.progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border); transition: background 0.3s ease;
}
.progress-step.active { background: var(--green); }
.progress-step.done { background: var(--green-light); }

/* SUCCESS */
.success-screen {
  text-align: center;
  padding: 40px 20px;
  min-height: calc(100vh - 100px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.success-icon {
  width: 70px; height: 70px; background: var(--green-pale);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--green);
}
.success-screen h2 {
  font-family: var(--font-display);
  font-size: 1.6rem; color: var(--text-dark); margin-bottom: 10px;
}
.success-screen p { color: var(--text-light); font-size: 0.9rem; max-width: 300px; line-height: 1.6; }
.order-id-box {
  background: var(--green-pale); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 20px;
  margin: 16px auto; font-size: 0.85rem;
}
.order-id-box strong { display: block; font-size: 1.1rem; color: var(--green-dark); letter-spacing: 0.08em; }

/* CRYPTO DETAILS */
.crypto-select { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.crypto-btn {
  padding: 8px 14px; border: 2px solid var(--border);
  border-radius: 20px; background: var(--white);
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  color: var(--text-mid); transition: all var(--transition);
}
.crypto-btn.active { border-color: var(--green); color: var(--green-dark); background: var(--green-pale); }
.wallet-display {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.wallet-label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.wallet-address {
  font-family: 'Courier New', monospace; font-size: 0.78rem;
  color: var(--green-dark); word-break: break-all; line-height: 1.5;
  cursor: pointer;
}
.wallet-copy-hint { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }

/* BANK DETAILS */
.bank-table { width: 100%; font-size: 0.85rem; }
.bank-table tr td { padding: 5px 0; }
.bank-table tr td:first-child { color: var(--text-light); width: 40%; font-size: 0.78rem; }
.bank-table tr td:last-child { font-weight: 500; color: var(--text-dark); }

/* FOOTER */
.footer {
  text-align: center; padding: 24px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-light);
  line-height: 1.8;
}
.footer a { color: var(--text-light); text-decoration: underline; }
.footer a:hover { color: var(--green); }
.footer-fineprint {
  margin-top: 14px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  font-size: 0.66rem;
  line-height: 1.7;
  color: #9aa8a4;
  text-align: left;
}
.footer-fineprint strong { color: #7d8c88; font-weight: 700; }
.footer-fineprint a { color: #7d8c88; }

/* LEGAL PAGES */
.legal-wrap {
  max-width: 760px; margin: 0 auto; padding: 40px 22px 56px;
  background: linear-gradient(180deg, var(--green-bg) 0%, var(--white) 220px);
}
.legal-wrap h1 {
  font-family: var(--font-display); font-weight: normal;
  font-size: 1.9rem; color: var(--text-dark); margin-bottom: 6px;
}
.legal-updated { font-size: 0.8rem; color: var(--text-light); margin-bottom: 28px; }
.legal-wrap h2 {
  font-family: var(--font-display); font-weight: normal;
  font-size: 1.2rem; color: var(--green-dark); margin: 28px 0 8px;
}
.legal-wrap p, .legal-wrap li { font-size: 0.92rem; color: var(--text-mid); line-height: 1.75; }
.legal-wrap ul { margin: 8px 0 8px 20px; }
.legal-wrap li { margin-bottom: 4px; }
.legal-callout {
  background: var(--green-pale); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0;
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.7;
}
.legal-back { display: inline-block; margin-bottom: 22px; font-size: 0.85rem; color: var(--green); text-decoration: none; }
.legal-back:hover { color: var(--green-dark); }

/* HIDDEN */
.hidden { display: none !important; }

/* ADMIN PANEL */
.admin-body { background: #f5f7fa; min-height: 100vh; }
.admin-nav {
  background: var(--green-dark); color: white;
  padding: 0 20px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-nav h1 { font-size: 1.1rem; font-family: var(--font-display); }
.admin-nav a { color: #a0d4c8; font-size: 0.85rem; text-decoration: none; }
.admin-main { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.admin-section { background: white; border-radius: var(--radius); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.admin-section h2 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 8px 10px; background: var(--green-pale); color: var(--text-mid); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table td { padding: 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.admin-table tr:hover td { background: var(--green-bg); }
.status-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d1e7dd; color: #0a3622; }
.status-shipped { background: #cfe2ff; color: #084298; }
.status-completed { background: #d1e7dd; color: #0a3622; }
.admin-input { width: 100%; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.9rem; margin-top: 4px; }
.admin-btn { padding: 8px 16px; background: var(--green); color: white; border: none; border-radius: 6px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.admin-btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.admin-btn-danger { background: #dc3545; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Collapsible admin sections (accordion) */
.admin-section > h2 {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 28px;
  transition: color var(--transition);
}
.admin-section > h2:hover { color: var(--green); }
.admin-section > h2::after {
  content: '';
  position: absolute;
  right: 6px; top: 7px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.admin-section.collapsed > h2 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.admin-section.collapsed > h2::after { transform: rotate(-45deg); top: 10px; }
.admin-section.collapsed > *:not(h2) { display: none !important; }

/* DESKTOP */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.6rem; }
  .step-title { font-size: 2rem; }
  .product-grid { grid-template-columns: 1fr 1fr; max-width: 420px; }
  .product-img { max-width: 100%; height: 280px; }
  .trust-bar { gap: 32px; }
  .trust-item { font-size: 0.75rem; }
  .step-section { padding: 48px 24px 60px; }
  .field-row { grid-template-columns: 1fr 1fr; }
}
