/* ========== RESET & TOKENS ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Salon (login world) */
  --mech-bg: #faf6f3;
  --mech-surface: #ffffff;
  --mech-panel: #fff7f9;
  --mech-border: #eddde3;
  --mech-orange: #c45c7a;
  --mech-amber: #d4a017;
  --mech-steel: #8a6f78;
  --mech-text: #3a2a32;
  --mech-muted: #8b7380;

  --pep-bg: #f7f9fc;
  --pep-surface: #ffffff;
  --pep-ink: #0c1222;
  --pep-muted: #5a6577;
  --pep-teal: #0d9488;
  --pep-teal-dark: #0f766e;
  --pep-violet: #7c3aed;
  --pep-rose: #e11d48;
  --pep-border: #e2e8f0;
  --pep-soft: #ecfdf5;

  --radius: 16px;
  --shadow: 0 24px 60px rgba(90, 40, 60, 0.12);
  --font-mech-display: "Cormorant Garamond", Georgia, serif;
  --font-mech-body: "DM Sans", system-ui, sans-serif;
  --font-pep-display: "Playfair Display", Georgia, serif;
  --font-pep-body: "Inter", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--mech-bg);
  color: var(--mech-text);
  -webkit-font-smoothing: antialiased;
}

.world { min-height: 100vh; position: relative; }

[hidden] { display: none !important; }

/* ========== SALON WORLD (login) ========== */
.mechanic-world {
  font-family: var(--font-mech-body);
  background: var(--mech-bg);
  color: var(--mech-text);
  overflow-x: hidden;
}

.garage-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 90%, rgba(244, 180, 196, 0.35), transparent 55%),
    radial-gradient(ellipse 55% 45% at 90% 15%, rgba(232, 200, 140, 0.22), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 40%, rgba(255, 255, 255, 0.8), transparent 70%),
    linear-gradient(165deg, #fff9f7 0%, #f7ebe8 45%, #f3e4ec 100%);
}

.garage-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(196, 92, 122, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black, transparent);
  opacity: 0.9;
}

.oil-slick {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
}
.oil-slick.s1 {
  width: 320px; height: 200px;
  bottom: 5%; left: 8%;
  background: radial-gradient(ellipse, rgba(244, 180, 196, 0.55), transparent 70%);
}
.oil-slick.s2 {
  width: 260px; height: 160px;
  bottom: 12%; right: 10%;
  background: radial-gradient(ellipse, rgba(212, 160, 23, 0.18), transparent 70%);
}

.salon-bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.salon-bloom.b1 {
  width: 180px; height: 180px;
  top: 18%; right: 28%;
  background: rgba(236, 160, 180, 0.5);
}
.salon-bloom.b2 {
  width: 140px; height: 140px;
  top: 55%; left: 40%;
  background: rgba(255, 220, 230, 0.7);
}

.spark {
  position: absolute;
  width: 4px; height: 4px;
  background: #e8c070;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.7);
  animation: sparkle 3.5s ease-in-out infinite;
}
.spark.sp1 { top: 24%; right: 20%; animation-delay: 0s; }
.spark.sp2 { top: 38%; right: 28%; animation-delay: 1.1s; }
.spark.sp3 { top: 30%; right: 16%; animation-delay: 2s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.4); }
}

.mech-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--mech-border);
  background: rgba(255, 252, 250, 0.82);
  backdrop-filter: blur(12px);
}

.mech-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.wrench-icon {
  width: 46px; height: 46px;
  color: var(--mech-orange);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #fff0f4);
  border: 1px solid var(--mech-border);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(196, 92, 122, 0.12);
}
.wrench-icon svg { width: 26px; height: 26px; }

.mech-logo {
  display: block;
  font-family: var(--font-mech-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--mech-text);
}

.mech-tagline {
  display: block;
  font-size: 0.72rem;
  color: var(--mech-muted);
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.mech-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--mech-muted);
}
.mech-nav span { cursor: default; }
.mech-nav .nav-active {
  color: var(--mech-orange);
  border-bottom: 2px solid var(--mech-orange);
  padding-bottom: 2px;
  font-weight: 500;
}

.mech-main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  min-height: calc(100vh - 140px);
}

.mech-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mech-orange);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.mech-hero-copy h1 {
  font-family: var(--font-mech-display);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--mech-text);
}
.mech-hero-copy h1 em {
  font-style: italic;
  color: var(--mech-orange);
  font-weight: 500;
}

.mech-sub {
  color: var(--mech-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.mech-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mech-bullets li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mech-steel);
  font-size: 0.95rem;
}
.bullet-ico {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--mech-border);
  border-radius: 50%;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(196, 92, 122, 0.08);
}

/* Login card */
.login-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff8fa 100%);
  border: 1px solid var(--mech-border);
  border-radius: 20px;
  box-shadow:
    var(--shadow),
    0 1px 0 rgba(255,255,255,0.9) inset;
  overflow: hidden;
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e8a0b4, #d4a017, #c45c7a);
}

.login-card-top {
  padding: 1.75rem 1.75rem 0.5rem;
  text-align: center;
}

.status-lights {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.status-lights .light {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.light.red { background: #f4b4c4; box-shadow: 0 0 6px #f4b4c488; }
.light.amber { background: #e8c070; box-shadow: 0 0 6px #e8c07088; animation: blink 2s infinite; }
.light.green { background: #c45c7a; box-shadow: 0 0 6px #c45c7a66; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.login-card h2 {
  font-family: var(--font-mech-display);
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--mech-text);
}

.login-hint {
  color: var(--mech-muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

#login-form {
  padding: 1.25rem 1.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mech-steel);
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--mech-border);
  border-radius: 12px;
  color: var(--mech-text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: #b8a0aa; }
.field input:focus {
  border-color: var(--mech-orange);
  box-shadow: 0 0 0 3px rgba(196, 92, 122, 0.18);
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 2.75rem; }
.toggle-pw {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.55;
  padding: 0.35rem;
}
.toggle-pw:hover { opacity: 1; }

.login-error {
  color: #b33a55;
  font-size: 0.85rem;
  background: rgba(196, 92, 122, 0.1);
  border: 1px solid rgba(196, 92, 122, 0.28);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.btn-mech {
  margin-top: 0.25rem;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-mech-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #d47894 0%, #c45c7a 55%, #a84866 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(196, 92, 122, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-mech:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(196, 92, 122, 0.4);
}
.btn-mech:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(196, 92, 122, 0.3);
}
.btn-mech.loading .btn-text { opacity: 0.7; }
.btn-mech.loading .btn-spinner {
  display: inline-block !important;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.login-footer {
  padding: 0 1.75rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mech-muted);
}
.login-footer .muted { color: #a8909a; }
.login-footer code {
  background: #fff0f4;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: var(--mech-orange);
  font-size: 0.78rem;
  border: 1px solid var(--mech-border);
}

/* Ultra-secure login extras */
.login-card--secure {
  border-color: rgba(196, 92, 122, 0.35);
  box-shadow:
    0 24px 60px rgba(90, 40, 60, 0.14),
    0 0 0 1px rgba(196, 92, 122, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.secure-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b3a4a;
  background: linear-gradient(180deg, #fff, #fff0f4);
  border: 1px solid var(--mech-border);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}
.secure-badge .lock-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e99;
  animation: blink 2s infinite;
}

.secure-shield {
  width: 48px; height: 56px;
  margin: 0 auto 0.65rem;
  color: var(--mech-orange);
}
.secure-shield svg { width: 100%; height: 100%; }

.secure-meter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.secure-meter-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mech-steel);
  font-weight: 600;
}
.secure-meter-bar {
  height: 6px;
  border-radius: 999px;
  background: #f0e4e8;
  overflow: hidden;
}
.secure-meter-bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a 40%, #c45c7a 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.secure-footer .secure-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: #6b4a55;
  font-weight: 500;
}
.secure-footer .muted {
  margin: 0;
  font-size: 0.75rem;
}

.login-error--lock {
  background: rgba(90, 40, 60, 0.08);
  border-color: rgba(90, 40, 60, 0.25);
  color: #5a3040;
  font-weight: 600;
}

.mech-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-top: 1px solid var(--mech-border);
  font-size: 0.78rem;
  color: var(--mech-muted);
  background: rgba(255, 252, 250, 0.9);
}

/* ========== TRANSITION (soft curtain) ========== */
.transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}
.transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.garage-door {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.3, 1);
}
.transition.active .garage-door {
  transform: translateY(0);
}
.transition.opening .garage-door {
  transform: translateY(-100%);
  transition-delay: 0.35s;
}

.door-panel {
  flex: 1;
  background: linear-gradient(180deg, #f8e8ee, #ecd0da);
  border-bottom: 2px solid rgba(196, 92, 122, 0.15);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.45);
  position: relative;
}
.door-panel::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(196, 92, 122, 0.35);
  font-size: 0.9rem;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
}

.transition-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}
.transition.active .transition-msg { opacity: 1; transition-delay: 0.5s; }
.transition.opening .transition-msg { opacity: 0; transition-delay: 0s; }

.transition-msg p {
  font-family: var(--font-pep-body);
  color: #5a3040;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.pulse-ring {
  width: 48px; height: 48px;
  border: 2px solid var(--pep-teal);
  border-radius: 50%;
  animation: pulse 1.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; box-shadow: 0 0 0 0 rgba(13,148,136,0.5); }
  100% { transform: scale(1.4); opacity: 0; box-shadow: 0 0 0 20px rgba(13,148,136,0); }
}

/* ========== PEPTIDE WORLD ========== */
.peptide-world {
  font-family: var(--font-pep-body);
  background: var(--pep-bg);
  color: var(--pep-ink);
  animation: fadeInWorld 0.6s ease;
}

@keyframes fadeInWorld {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pep-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.pep-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vial-mark {
  width: 40px; height: 40px;
  color: var(--pep-teal);
  display: grid;
  place-items: center;
}
.vial-mark svg { width: 28px; height: 34px; }

.pep-logo {
  display: block;
  font-family: var(--font-pep-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pep-ink);
}

.pep-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--pep-muted);
  letter-spacing: 0.04em;
}

.pep-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.pep-nav a {
  text-decoration: none;
  color: var(--pep-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.pep-nav a:hover,
.pep-nav a.active { color: var(--pep-teal-dark); }

.btn-logout {
  padding: 0.5rem 1rem;
  border: 1px solid var(--pep-border);
  background: var(--pep-surface);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pep-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}
.btn-logout:hover {
  border-color: var(--pep-teal);
  color: var(--pep-teal-dark);
}

/* Hero */
.pep-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 2.5rem 3rem;
}

.pep-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pep-teal);
  margin-bottom: 0.85rem;
}

.pep-hero-copy h1 {
  font-family: var(--font-pep-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem;
  color: var(--pep-ink);
}

.pep-lead {
  color: var(--pep-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.pep-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.btn-pep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-pep.primary {
  background: linear-gradient(135deg, var(--pep-teal), var(--pep-teal-dark));
  color: white;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}
.btn-pep.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.4);
}
.btn-pep.ghost {
  background: transparent;
  color: var(--pep-ink);
  border: 1px solid var(--pep-border);
}
.btn-pep.ghost:hover {
  border-color: var(--pep-teal);
  color: var(--pep-teal-dark);
}

.trust-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.trust-item strong {
  font-size: 1.15rem;
  color: var(--pep-ink);
}
.trust-item span {
  font-size: 0.78rem;
  color: var(--pep-muted);
}

/* Vial CSS art */
.pep-hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 340px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 80%, rgba(13, 148, 136, 0.12), transparent 70%);
  position: relative;
}

.vial-showcase {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  perspective: 600px;
}

.vial {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 20px 30px rgba(12, 18, 34, 0.18));
  animation: floatVial 5s ease-in-out infinite;
}
.vial-md { animation-delay: -1.5s; }
.vial-sm { animation-delay: -3s; }

@keyframes floatVial {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.vial-cap {
  width: 36px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: #334155;
}
.vial-lg .vial-cap { width: 48px; height: 18px; }
.vial-md .vial-cap { width: 40px; height: 15px; }
.vial-sm .vial-cap { width: 32px; height: 12px; }

.cap-teal { background: linear-gradient(180deg, #14b8a6, #0f766e); }
.cap-violet { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.cap-rose { background: linear-gradient(180deg, #fb7185, #e11d48); }

.vial-neck {
  width: 22px;
  height: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,0.15), rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border-left: 1px solid rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.4);
  background-color: rgba(226, 232, 240, 0.35);
  backdrop-filter: blur(2px);
}
.vial-lg .vial-neck { width: 28px; height: 22px; }
.vial-md .vial-neck { width: 24px; height: 18px; }
.vial-sm .vial-neck { width: 18px; height: 14px; }

.vial-body {
  width: 56px;
  height: 140px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(226,232,240,0.25));
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255,255,255,0.3);
}
.vial-lg .vial-body { width: 72px; height: 180px; border-radius: 0 0 16px 16px; }
.vial-md .vial-body { width: 60px; height: 150px; }
.vial-sm .vial-body { width: 48px; height: 120px; border-radius: 0 0 10px 10px; }

.vial-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 42%;
  border-radius: 0 0 12px 12px;
}
.liq-teal {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.5), rgba(13, 148, 136, 0.85));
}
.liq-violet {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.5), rgba(124, 58, 237, 0.85));
}
.liq-rose {
  background: linear-gradient(180deg, rgba(251, 113, 133, 0.5), rgba(225, 29, 72, 0.85));
}

.vial-label {
  position: absolute;
  top: 28%;
  left: 8%;
  right: 8%;
  background: rgba(255,255,255,0.92);
  border-radius: 4px;
  padding: 0.35rem 0.25rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.vial-label span {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pep-ink);
}
.vial-lg .vial-label span { font-size: 0.65rem; }
.vial-label small {
  font-size: 0.5rem;
  color: var(--pep-muted);
}

.vial-reflection {
  position: absolute;
  /* placed via parent relative on vial - skip if nested wrong */
}

/* Catalog */
.catalog {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 2.5rem 4rem;
}

.section-head {
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-family: var(--font-pep-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.section-head p {
  color: var(--pep-muted);
  font-size: 0.95rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--pep-border);
  background: var(--pep-surface);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pep-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter:hover { border-color: var(--pep-teal); color: var(--pep-teal-dark); }
.filter.active {
  background: var(--pep-ink);
  border-color: var(--pep-ink);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--pep-surface);
  border: 1px solid var(--pep-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(12, 18, 34, 0.1);
  border-color: #cbd5e1;
}

.product-visual {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f0fdfa, #f8fafc);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.product-visual .mini-vial {
  transform: scale(0.75);
  animation: none;
  filter: drop-shadow(0 8px 16px rgba(12, 18, 34, 0.12));
}

.product-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: white;
  color: var(--pep-teal-dark);
  border: 1px solid var(--pep-border);
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-meta {
  font-size: 0.82rem;
  color: var(--pep-muted);
  line-height: 1.45;
  flex: 1;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pep-border);
}
.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pep-ink);
}
.product-purity {
  font-size: 0.75rem;
  color: var(--pep-teal-dark);
  font-weight: 600;
}

/* Quality */
.quality {
  background: linear-gradient(180deg, #0c1222 0%, #152036 100%);
  color: white;
  padding: 4.5rem 2.5rem;
}

.quality-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.quality .pep-eyebrow { color: #5eead4; }
.quality h2 {
  font-family: var(--font-pep-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.quality-copy > p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.qa-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qa-list li {
  padding-left: 1.5rem;
  position: relative;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.qa-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px #2dd4bf88;
}

.coa-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.coa-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #94a3b8;
}
.coa-badge {
  background: #0d9488;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
}
.coa-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.coa-row span { color: #64748b; }
.coa-row strong { color: #f1f5f9; font-weight: 600; text-align: right; }
.coa-row .good { color: #2dd4bf; }
.coa-stamp {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-pep-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(45, 212, 191, 0.25);
  border: 3px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  padding: 0.2rem 0.75rem;
  transform: rotate(-12deg);
  letter-spacing: 0.1em;
}

/* About */
.about {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}
.about > h2 {
  font-family: var(--font-pep-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.about-grid article {
  background: var(--pep-surface);
  border: 1px solid var(--pep-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.about-grid article:hover {
  box-shadow: 0 12px 32px rgba(12, 18, 34, 0.08);
}
.about-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.about-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.about-grid p {
  color: var(--pep-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.pep-footer {
  border-top: 1px solid var(--pep-border);
  padding: 2.5rem 2.5rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}
.pep-footer-brand {
  margin-bottom: 1rem;
}
.pep-footer-brand strong {
  display: block;
  font-family: var(--font-pep-display);
  letter-spacing: 0.12em;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.pep-footer-brand span {
  font-size: 0.85rem;
  color: var(--pep-muted);
}
.disclaimer {
  font-size: 0.75rem;
  color: #94a3b8;
  max-width: 40rem;
  margin: 0 auto 1rem;
  line-height: 1.55;
}
.pep-footer-meta {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 34, 0.55);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  width: 36px; height: 36px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--pep-muted);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-visual {
  background: linear-gradient(160deg, #f0fdfa, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 280px;
}
.modal-vial {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 16px 24px rgba(12, 18, 34, 0.15));
}
.modal-vial .vial-cap { width: 52px; height: 20px; }
.modal-vial .vial-neck { width: 30px; height: 24px; }
.modal-vial .vial-body {
  width: 80px;
  height: 200px;
  border-radius: 0 0 18px 18px;
}
.modal-vial .vial-label span { font-size: 0.7rem; }
.modal-vial .vial-label small { font-size: 0.55rem; }

.modal-body {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pep-teal);
}
.modal-body h3 {
  font-family: var(--font-pep-display);
  font-size: 1.6rem;
  font-weight: 600;
}
.modal-body > p {
  color: var(--pep-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0.5rem 0;
}
.modal-specs div {
  background: var(--pep-bg);
  border-radius: 10px;
  padding: 0.65rem;
  text-align: center;
}
.modal-specs span {
  display: block;
  font-size: 0.68rem;
  color: var(--pep-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.modal-specs strong {
  font-size: 0.85rem;
  color: var(--pep-ink);
}
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
}
.cart-toast {
  font-size: 0.85rem;
  color: var(--pep-teal-dark);
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .mech-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }
  .mech-nav { display: none; }
  .pep-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pep-lead { margin-left: auto; margin-right: auto; }
  .pep-cta-row { justify-content: center; }
  .trust-row { justify-content: center; }
  .quality-inner {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-visual { min-height: 180px; }
}

@media (max-width: 560px) {
  .mech-header, .pep-header {
    padding: 1rem;
  }
  .mech-main, .pep-hero, .catalog, .about {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .pep-nav a:not(.active) { display: none; }
  .modal-specs { grid-template-columns: 1fr; }
}
