/* ==========================================
   ✨ MARE — Tactile Skeuomorphism Material System
   Inspired by: HAVEN light skeuomorphism spec
   ========================================== */

/* ─── HAVEN Material Tokens ───────────────── */
:root {
  /* Ground */
  --wall: #dcd8cf;
  --wall-dark: #d3cfc6;

  /* Plastic faces */
  --plastic: #f3f1ea;
  --plastic-edge: #c9c5ba;
  --plastic-well: #cfcbc1;

  /* Text */
  --ink: #2b2822;
  --ink-muted: #7c766a;
  --hairline: #c2beb3;

  /* Accent — ONLY for ON/active states */
  --amber: #f5a11c;
  --amber-glow: rgba(245, 161, 28, 0.45);
  --amber-deep: #c97f0e;
  --amber-soft: rgba(245, 161, 28, 0.12);

  /* Semantic aliases (back-compat with existing JS refs) */
  --bg-primary: var(--wall);
  --bg-secondary: var(--plastic-well);
  --panel-bg: var(--plastic);
  --border-color: var(--hairline);
  --text-main: var(--ink);
  --text-muted: var(--ink-muted);
  --primary-color: var(--amber);
  --primary-dark: var(--amber-deep);
  --rose-gold: var(--amber);
  --rose-soft: var(--amber-soft);
  --success: #5d7a5a;
  --warning: var(--amber);
  --danger: #b85c5c;
  --pro-gold: var(--amber);
  --pro-gradient: linear-gradient(135deg, #f5a11c 0%, #f7ba52 50%, #f5a11c 100%);

  /* ── Shadow Recipes ───────────────────────── */
  /* RAISED — eggshell plastic panel lifted off wall */
  --shadow-raised:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -2px 3px rgba(58,54,45,0.10),
    0 2px 3px rgba(58,54,45,0.18),
    0 10px 22px -12px rgba(58,54,45,0.35);

  /* PRESSED — active/selected depressed state */
  --shadow-pressed: inset 0 2px 6px rgba(58,54,45,0.30);

  /* DEBOSSED — inset screen / well */
  --shadow-debossed:
    inset 0 2px 5px rgba(58,54,45,0.28),
    inset 0 -1px 0 rgba(255,255,255,0.70);

  /* Older aliases */
  --shadow-sm: var(--shadow-raised);
  --shadow-md: var(--shadow-raised);

  /* Brushed metal gradient (dial, thumbs, PRO badge) */
  --metal: linear-gradient(180deg, #eceae4 0%, #c8c5bc 55%, #b4b1a8 100%);
}

/* ─── Reset & Base ──────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Karla', sans-serif;
  background: linear-gradient(180deg, var(--wall) 0%, var(--wall-dark) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── App Shell ─────────────────────────────── */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ─── Header ────────────────────────────────── */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
}

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

.brand-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.auth-hero-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.brand-text-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  line-height: 1;
}

.brand-pill-badge {
  font-family: 'Karla', sans-serif;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--amber-soft);
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  padding: 2px 7px;
  border-radius: 10px;
}

.disclaimer-badge {
  background: var(--plastic);
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Grid System ───────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  align-items: start;
}

.left-col, .right-col { display: flex; flex-direction: column; }
.right-col { min-height: 500px; }

/* ─── RAISED Panel Cards ────────────────────── */
.panel {
  background: var(--plastic);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-raised);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.6);
}

.panel-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--ink);
}

/* Micro-label — 11px uppercase Karla */
.micro-label {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* ─── Form Styles ───────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-row { display: flex; gap: 16px; }

label {
  display: block;
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  color: var(--ink-muted);
}

/* DEBOSSED input wells */
select,
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-debossed);
  transition: border-color 0.2s;
}

select:focus,
input:focus {
  border-color: var(--amber);
  box-shadow: var(--shadow-debossed), 0 0 0 3px var(--amber-glow);
}

/* Concern checkboxes — debossed well grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--plastic-well);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-debossed);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

/* ─── Upload Area ───────────────────────────── */
.upload-area {
  border: 2px dashed var(--hairline);
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  padding: 20px;
  text-align: center;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.upload-area:hover, .upload-area.dragover {
  background: var(--plastic);
  border-color: var(--amber);
}

.upload-icon { font-size: 28px; margin-bottom: 8px; }
.upload-text { font-size: 13px; font-weight: 700; color: var(--ink); font-family: 'Karla', sans-serif; }
.upload-subtext { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

.preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  padding: 12px;
  border-radius: 12px;
}

.preview-container img { max-width: 100%; max-height: 150px; object-fit: contain; border-radius: 8px; }

.btn-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  text-decoration: underline;
}

/* ─── THREE-LAYER PUSHABLE BUTTONS ─────────── */
.btn-primary,
.btn-secondary {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  outline: none;
  border-radius: 12px;
  position: relative;
  flex: 1;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #f7ba52 50%, var(--amber) 100%);
  color: #fff;
  box-shadow: var(--shadow-raised);
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  box-shadow: var(--shadow-raised), 0 0 12px var(--amber-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(1px);
  background: var(--amber-deep);
}

.btn-primary:disabled {
  background: var(--plastic-well);
  color: var(--ink-muted);
  box-shadow: var(--shadow-debossed);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--plastic);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-raised);
}

.btn-secondary:hover {
  background: var(--plastic-well);
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-secondary:active {
  box-shadow: var(--shadow-pressed);
  transform: translateY(1px);
}

.form-actions { display: flex; gap: 12px; }

/* ─── Agent Trace Steps ─────────────────────── */
.agent-trace-list { display: flex; flex-direction: column; gap: 12px; }

.agent-step {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-raised);
  transition: all 0.25s;
}

.agent-step.active {
  border-color: var(--amber);
  background: var(--plastic);
  box-shadow: var(--shadow-raised), 0 0 12px var(--amber-glow);
}

.agent-step.completed {
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  border-color: var(--hairline);
}

.step-header { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.step-indicator { font-size: 16px; }
.step-name { color: var(--ink); font-family: 'Karla', sans-serif; }

.step-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--plastic-well);
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
}

.active .step-status {
  background: var(--amber-soft);
  color: var(--amber-deep);
  animation: pulse 1.5s infinite;
}

.completed .step-status {
  background: rgba(93,122,90,0.15);
  color: var(--success);
}

.step-desc {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  padding-left: 26px;
}

/* ─── Dashboard Placeholder ─────────────────── */
.dashboard-placeholder {
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  text-align: center;
  margin: auto 0;
  padding: 48px;
}

/* ─── Vision Analyst Box ─────────────────────── */
.analysis-box {
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
}

.box-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-deep);
  margin-bottom: 6px;
}

.box-content {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

/* ─── Tabs — Debossed pill track ─────────────── */
.tab-container {
  display: flex;
  background: var(--plastic-well);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  box-shadow: var(--shadow-debossed);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  border: none;
  background: none;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  color: var(--ink-muted);
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}

/* Active tab = raised plastic chip pressed IN with amber pilot */
.tab-btn.active {
  background: var(--plastic);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  position: relative;
}

.tab-btn.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber-glow);
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Routine Timeline ───────────────────────── */
.routine-timeline { display: flex; flex-direction: column; gap: 14px; }

.timeline-step {
  display: flex;
  gap: 14px;
  background: var(--plastic);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-raised);
}

.step-num {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: var(--metal);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: var(--shadow-raised);
}

.step-content { display: flex; flex-direction: column; gap: 4px; }
.step-cat { font-family: 'Familjen Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); }
.step-ingredients { font-size: 11px; font-weight: 700; color: var(--amber-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.step-instruction { font-family: 'Karla', sans-serif; font-size: 12px; color: var(--ink-muted); line-height: 1.45; }

/* ─── Safety Card — Debossed LCD Panel ──────── */
.safety-card {
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}

.safety-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}

.safety-score-container { display: flex; flex-direction: column; }

.safety-score-title {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* Mono numeral for score */
.safety-score-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}

.safety-badge {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
}

.safety-badge.perfect { background: var(--plastic); color: var(--success); }
.safety-badge.caution { background: var(--amber-soft); color: var(--amber-deep); }
.safety-badge.warning { background: rgba(184,92,92,0.12); color: var(--danger); }

.safety-tips-box { padding: 14px 16px; }

.tips-title {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.tips-list { font-family: 'Karla', sans-serif; font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
.tips-list ul { padding-left: 18px; }
.tips-list li { margin-bottom: 6px; }

/* ─── Footer ────────────────────────────────── */
.app-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
}

/* ─── Animations ────────────────────────────── */
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes amberGlow {
  0%, 100% { box-shadow: 0 0 8px var(--amber-glow); }
  50% { box-shadow: 0 0 16px rgba(245,161,28,0.6); }
}

/* ─── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* Authentication Screens Styling */
.auth-screen-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Left Panel: Hero Brand Presentation */
.auth-left-panel {
  flex: 1.2;
  position: relative;
  background: linear-gradient(135deg, #1e1713 0%, #3e2f25 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  color: #fff;
  overflow: hidden;
}

/* Moving radial gradient blobs */
.auth-left-panel::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(192, 158, 134, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  animation: float-slow 18s infinite alternate ease-in-out;
  pointer-events: none;
}

.auth-left-panel::after {
  content: '';
  position: absolute;
  bottom: -15%;
  right: -10%;
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 75%);
  filter: blur(90px);
  animation: float-slow 24s infinite alternate-reverse ease-in-out;
  pointer-events: none;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 20px) scale(1.08); }
  100% { transform: translate(-20px, -40px) scale(0.92); }
}

/* Floating particles */
.floating-particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
}

.floating-particle-1 {
  top: 15%;
  right: 15%;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: float-particle 14s infinite linear;
}

.floating-particle-2 {
  bottom: 25%;
  left: 10%;
  width: 35px;
  height: 35px;
  background: rgba(197, 160, 89, 0.3);
  border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
  animation: float-particle 20s infinite linear;
}

.floating-particle-3 {
  top: 55%;
  right: 25%;
  font-size: 20px;
  animation: float-particle 12s infinite ease-in-out;
}

@keyframes float-particle {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}

/* Hero Branding content - Elevated Glassmorphic Design */
.auth-hero-header {
  display: flex;
  align-items: center;
  z-index: 2;
  margin-bottom: 24px;
}

.auth-hero-brand-card {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 24px;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-hero-brand-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 161, 28, 0.12) 0%, transparent 60%);
  pointer-events: none;
  animation: rotateGlow 12s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-hero-brand-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 161, 28, 0.45);
  box-shadow: 0 16px 40px rgba(245, 161, 28, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.01);
}

.auth-logo-halo {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(245, 161, 28, 0.25) 0%, rgba(255, 255, 255, 0.05) 70%);
  border-radius: 50%;
  border: 1px solid rgba(245, 161, 28, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.auth-hero-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(245, 161, 28, 0.4));
  animation: logoFloat 4s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes logoFloat {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-3px) scale(1.04); }
}

.auth-logo-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(245, 161, 28, 0.4);
  animation: pulseRing 2.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.3; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.auth-title-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-hero-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-hero-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd79d 50%, #f5a11c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(245, 161, 28, 0.3));
  line-height: 1;
  margin: 0;
}

.auth-title-sparkle {
  font-size: 16px;
  animation: sparkleGlow 2s ease-in-out infinite alternate;
}

@keyframes sparkleGlow {
  0% { opacity: 0.6; transform: scale(0.9) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.2) rotate(15deg); filter: drop-shadow(0 0 8px rgba(245, 161, 28, 0.8)); }
}

.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 215, 157, 0.95);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(245, 161, 28, 0.14);
  border: 1px solid rgba(245, 161, 28, 0.35);
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 4px;
  width: fit-content;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: pulseDot 1.5s ease-in-out infinite alternate;
}

@keyframes pulseDot {
  0% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.auth-hero-body {
  margin: auto 0;
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.25;
  color: #fff;
  letter-spacing: 0.5px;
}

.auth-hero-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.auth-hero-feat:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 158, 134, 0.3);
  transform: translateX(5px);
}

.auth-hero-feat-icon {
  font-size: 20px;
  background: rgba(192, 158, 134, 0.2);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ebdcd0;
  flex-shrink: 0;
}

.auth-hero-feat-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.auth-hero-feat-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* Quote slider */
.quote-slider {
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
}

.quote-slide {
  display: none;
  animation: fade-in-slide 0.6s ease forwards;
}

.quote-slide.active {
  display: block;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: #ebdcd0;
  line-height: 1.4;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #c5a059;
}

.quote-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: all 0.3s;
}

.quote-dot.active {
  background: #c5a059;
  width: 16px;
  border-radius: 3px;
}

@keyframes fade-in-slide {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Right Panel: Console */
.auth-right-panel {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  background-color: #faf6f0;
}

.auth-right-panel::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(192, 158, 134, 0.08) 0%, transparent 75%);
  top: 10%;
  right: 5%;
  pointer-events: none;
}

/* Authentication Card Styles */
.auth-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 158, 134, 0.22);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px;
  box-shadow: 0 20px 45px rgba(89, 74, 63, 0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab sliding selector styling */
.auth-tabs {
  display: flex;
  background-color: rgba(112, 100, 92, 0.06);
  border-radius: 30px;
  padding: 4px;
  margin-bottom: 28px;
  position: relative;
  border: none;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2;
  border-radius: 26px;
}

.auth-tab-btn.active {
  color: var(--text-main);
  font-weight: 600;
}

.auth-tabs::after {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background-color: #fff;
  border-radius: 26px;
  box-shadow: 0 4px 8px rgba(112, 100, 92, 0.06);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.auth-tabs.signup-active::after {
  transform: translateX(100%);
}

/* Inputs & wrappers */
.form-group {
  margin-bottom: 18px;
  position: relative;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Left icon: Target ONLY direct child SVG of input-icon-wrapper */
.input-icon-wrapper > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

/* Ensure left padding is ALWAYS enforced so placeholders & typed text never overlap with left icon */
.input-icon-wrapper input[type="text"],
.input-icon-wrapper input[type="email"],
.input-icon-wrapper input[type="password"],
.input-icon-wrapper input {
  width: 100%;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  padding-left: 44px !important;
  padding-right: 16px !important;
  border: 1px solid rgba(112, 100, 92, 0.16);
  background-color: #fff;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

/* Reserve right padding for password fields to clear toggle button */
.input-icon-wrapper input[type="password"] {
  padding-right: 48px !important;
}

.input-icon-wrapper input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 161, 28, 0.18);
}

.input-icon-wrapper input:focus + svg,
.input-icon-wrapper input:focus ~ svg {
  color: var(--amber-deep);
}

/* Password reveal toggle button - aligned perfectly inside input */
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  z-index: 3;
  transition: all 0.2s ease;
  outline: none;
}

.password-toggle-btn:hover {
  color: var(--amber-deep);
  background: rgba(245, 161, 28, 0.12);
}

.password-toggle-btn svg {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 18px !important;
  height: 18px !important;
  color: inherit !important;
  pointer-events: auto !important;
  display: block !important;
}

/* Submit Button & Interactive Elements */
.auth-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(192, 158, 134, 0.25);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-error-msg {
  background-color: rgba(195, 112, 112, 0.08);
  border: 1px solid rgba(195, 112, 112, 0.2);
  color: var(--danger);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

/* Password strength meter */
.password-strength-container {
  margin-top: 8px;
}

.password-strength-bar {
  height: 4px;
  width: 100%;
  background-color: rgba(112, 100, 92, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0;
  background-color: var(--danger);
  transition: all 0.3s ease;
}

.password-strength-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* Onboarding slide transitions */
.onboarding-step {
  display: none;
  animation: slide-in-step 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.onboarding-step.active {
  display: block;
}

@keyframes slide-in-step {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.onboarding-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
}

.onboarding-steps-indicator {
  display: flex;
  gap: 6px;
}

.step-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(112, 100, 92, 0.15);
  transition: all 0.3s ease;
}

.step-indicator-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.step-indicator-dot.completed {
  background-color: var(--success);
}

/* Skin cards selector grid */
.skin-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.skin-type-card {
  background: #fff;
  border: 1px solid rgba(112, 100, 92, 0.14);
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
}

.skin-type-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(192, 158, 134, 0.08);
}

.skin-type-card.active {
  border-color: var(--primary-color);
  background-color: #fffbf8;
  box-shadow: 0 6px 12px rgba(192, 158, 134, 0.12);
}

.skin-type-card.active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.skin-card-icon {
  font-size: 20px;
  background: var(--bg-secondary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.skin-type-card.active .skin-card-icon {
  background: var(--rose-soft);
}

.skin-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.skin-card-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Concern chip tags */
.concerns-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  background-color: rgba(112, 100, 92, 0.02);
  border: 1px dashed rgba(112, 100, 92, 0.12);
  padding: 10px;
  border-radius: 10px;
}

.concern-chip {
  background-color: #fff;
  border: 1px solid rgba(112, 100, 92, 0.14);
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.concern-chip:hover {
  border-color: var(--primary-color);
  background-color: #fffbf8;
}

.concern-chip.active {
  background-color: var(--rose-soft);
  border-color: var(--primary-color);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Budget button selector */
.budget-group {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.budget-btn {
  flex: 1;
  background-color: #fff;
  border: 1px solid rgba(112, 100, 92, 0.14);
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.budget-btn:hover {
  border-color: var(--primary-color);
  background-color: #fffbf8;
}

.budget-btn.active {
  background-color: var(--rose-soft);
  border-color: var(--primary-color);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(192, 158, 134, 0.08);
}

.budget-btn-title {
  font-size: 12px;
  font-weight: 600;
}

.budget-btn-desc {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

/* Onboarding navigation buttons */
.onboarding-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Responsive grid collapsing */
@media (max-width: 900px) {
  .auth-screen-container {
    flex-direction: column;
  }
  .auth-left-panel {
    display: none;
  }
  .auth-right-panel {
    flex: 1;
    padding: 24px;
  }
}

/* User identity dashboard styles */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-dark);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background-color: var(--danger);
  color: white;
}

/* ============================================================
   ⭐ AURA PRO — Subscription Styles
   ============================================================ */

/* --- Pro Gold Token --- */
:root {
  --pro-gold: #c5a059;
  --pro-gold-light: #f5e6c8;
  --pro-gold-dark: #9a7a3a;
  --pro-gradient: linear-gradient(135deg, #c5a059 0%, #e8cb85 50%, #c5a059 100%);
  --lock-overlay: rgba(51, 45, 41, 0.55);
}

/* --- Pro Badge in Header --- */
.user-badge.pro-badge {
  background: var(--pro-gradient);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(197, 160, 89, 0.35);
}

.user-badge .pro-star {
  display: inline-block;
  margin-right: 4px;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}

/* --- Free Tier Usage Bar --- */
.tier-usage-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.tier-usage-bar {
  width: 60px;
  height: 5px;
  background: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
}

.tier-usage-bar-fill {
  height: 100%;
  background: var(--pro-gradient);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.tier-usage-bar-fill.danger {
  background: linear-gradient(90deg, #c37070, #e07070);
}

/* --- Upgrade CTA Button --- */
.btn-upgrade {
  background: var(--pro-gradient);
  border: none;
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 12px rgba(197, 160, 89, 0.4);
  transition: all 0.25s ease;
}

.btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.55);
}

/* ============================================================
   🔒 Feature Lock Overlays
   ============================================================ */
.pro-feature-wrap {
  position: relative;
}

.pro-lock-overlay {
  position: absolute;
  inset: 0;
  background: var(--lock-overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pro-lock-overlay:hover { background: rgba(51, 45, 41, 0.7); }

.pro-lock-icon { font-size: 32px; line-height: 1; }

.pro-lock-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.pro-lock-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

.pro-lock-btn {
  background: var(--pro-gradient);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.45);
  transition: transform 0.2s ease;
}

.pro-lock-btn:hover { transform: scale(1.04); }

/* ============================================================
   💎 Upgrade Modal
   ============================================================ */
#upgradeModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease;
}

#upgradeModal.hidden { display: none !important; }

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

.upgrade-modal-card {
  background: var(--plastic);
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  border: 1px solid var(--hairline);
  animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.upgrade-modal-header {
  background: linear-gradient(135deg, #332d29 0%, #4a3f38 100%);
  padding: 32px 40px 28px;
  text-align: center;
  position: relative;
}

.upgrade-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.upgrade-modal-close:hover { background: rgba(255,255,255,0.25); }

.upgrade-modal-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.upgrade-modal-header p {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}

.upgrade-plans.stripe-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 28px 32px 16px;
}

@media (max-width: 820px) {
  .upgrade-plans.stripe-plans-grid { grid-template-columns: 1fr; padding: 20px; }
}

.plan-tier-card {
  background: var(--plastic);
  border: 2px solid var(--hairline);
  border-radius: 18px;
  padding: 24px 18px;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.plan-tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber);
  box-shadow: var(--shadow-raised), 0 0 10px var(--amber-soft);
}

.plan-tier-card.selected {
  border-color: var(--amber);
  box-shadow: var(--shadow-raised), 0 0 0 3px var(--amber-glow);
  background: #fffdf9;
}

.plan-tier-card.selected::before {
  content: '✓ Selected';
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--amber-deep);
  background: var(--amber-soft);
  padding: 2px 8px;
  border-radius: 10px;
}

.plan-tag-badge,
.plan-popular-badge,
.plan-value-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-raised);
}

.plan-tag-badge { background: var(--plastic-well); color: var(--ink-muted); }
.plan-popular-badge { background: var(--amber); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.plan-value-badge { background: var(--metal); color: var(--ink); border: 1px solid var(--hairline); }

.upgrade-modal-cta-box {
  padding: 0 32px 20px;
  display: flex;
  justify-content: center;
}

.stripe-pay-btn {
  width: 100%;
  max-width: 480px;
  padding: 14px 24px;
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber) 0%, #f7ba52 50%, var(--amber) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-raised), 0 4px 14px var(--amber-glow);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.stripe-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised), 0 6px 20px var(--amber-glow);
}

.stripe-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.plan-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.plan-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li .feat-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 1px;
}

.feat-icon.check { background: #d5eadf; color: #3a7a5a; }
.feat-icon.cross { background: #f0e0e0; color: #c37070; }

.plan-cta {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.plan-cta.free-cta {
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 2px solid var(--border-color);
}

.plan-cta.pro-cta {
  background: var(--pro-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}

.plan-cta.pro-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.55);
}

.plan-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.upgrade-modal-footer {
  text-align: center;
  padding: 0 40px 28px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Upgrade Success Overlay --- */
.pro-upgrade-success {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  pointer-events: none;
}

.pro-upgrade-success-card {
  background: linear-gradient(135deg, #332d29, #4a3f38);
  color: #fff;
  padding: 40px 60px;
  border-radius: 24px;
  text-align: center;
  animation: successBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@keyframes successBounce {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pro-upgrade-success-card .burst-emoji {
  font-size: 56px;
  display: block;
  margin-bottom: 12px;
  animation: burstSpin 0.6s ease;
}

@keyframes burstSpin {
  from { transform: rotate(-180deg) scale(0); }
  to { transform: rotate(0deg) scale(1); }
}

.pro-upgrade-success-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  background: var(--pro-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pro-upgrade-success-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   💬 AI Ingredient Chatbot Panel (Pro)
   ============================================================ */
#chatbotPanel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.chatbot-toggle-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pro-gradient);
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.chatbot-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(197, 160, 89, 0.65);
}

.chatbot-lock-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: #c37070;
  border-radius: 50%;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #fff;
}

.chatbot-window {
  width: 340px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: none;
  flex-direction: column;
}

.chatbot-window.open {
  display: flex;
  animation: slideUpChat 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpChat {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.chatbot-header {
  background: linear-gradient(135deg, #332d29, #4a3f38);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

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

.chatbot-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pro-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chatbot-header-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.chatbot-header-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
}

.chatbot-close-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 88%;
}

.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot { align-self: flex-start; }

.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.55;
}

.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, #c09e86, #8e6c54);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
  background: var(--bg-secondary);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chatbot-input-row {
  padding: 12px 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 9px 13px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  outline: none;
  background: var(--bg-secondary);
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

.chatbot-input:focus { border-color: var(--pro-gold); }

.chatbot-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pro-gradient);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.chatbot-send-btn:hover { transform: scale(1.1); }
.chatbot-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.chat-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.chat-typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* ============================================================
   📋 Routine History Tab (Pro)
   ============================================================ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0;
}

.history-entry {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
}

.history-entry-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.history-entry-header:hover { background: rgba(192, 158, 134, 0.1); }

.history-entry-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.history-entry-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-entry-chevron {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.history-entry.expanded .history-entry-chevron { transform: rotate(180deg); }

.history-entry-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.history-entry.expanded .history-entry-body { max-height: 500px; }

.history-routine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 16px;
}

.history-routine-col h5 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.history-routine-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-routine-col ul li {
  font-size: 11px;
  color: var(--text-main);
  padding: 4px 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
}

/* ============================================================
   📊 Limit Warning Banner
   ============================================================ */
.limit-warning-banner {
  background: linear-gradient(135deg, #fff4e0, #fff8ec);
  border: 1px solid var(--pro-gold-light);
  border-left: 4px solid var(--pro-gold);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.limit-warning-banner p {
  font-size: 13px;
  color: var(--text-main);
  flex: 1;
}

.limit-warning-banner strong { color: var(--pro-gold-dark); }

/* ============================================================
   🔔 Pro Benefits Recall Modal
   ============================================================ */
#proRecallModal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease;
}

#proRecallModal.hidden { display: none !important; }

.pro-recall-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-raised), 0 20px 50px rgba(0,0,0,0.35);
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 36px 32px 28px;
  position: relative;
  animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pro-recall-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pro-recall-close:hover { color: var(--ink); background: var(--plastic); }

.pro-recall-header {
  text-align: center;
  margin-bottom: 24px;
}

.pro-recall-badge {
  display: inline-block;
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber-soft);
  color: var(--amber-deep);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-raised);
}

.pro-recall-header h2 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.25;
}

.pro-recall-header p {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}

.pro-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width: 520px) {
  .pro-benefits-grid { grid-template-columns: 1fr; }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  border: 1px solid var(--hairline);
  padding: 14px;
  border-radius: 14px;
  transition: transform 0.2s ease;
}

.benefit-item:hover {
  transform: translateY(-2px);
  background: #fffdfa;
  border-color: var(--amber);
}

.benefit-icon {
  font-size: 22px;
  background: var(--plastic);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-raised);
}

.benefit-info h4 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.benefit-info p {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.pro-recall-footer {
  display: flex;
  gap: 12px;
}

.recall-upgrade-btn { flex: 1.5; }
.recall-dismiss-btn { flex: 1; }

/* ─── Refresh Subscription Button ─────────────────────── */
.btn-refresh-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  background: var(--plastic);
  color: var(--ink-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: transform 0.3s ease, color 0.2s;
  line-height: 1;
  padding: 0;
}
.btn-refresh-sub:hover { color: var(--amber); transform: rotate(180deg); }
.btn-refresh-sub:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ─── Pro Badge Expiry Text ───────────────────────────── */
.pro-expiry {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
  white-space: nowrap;
}

/* ─── Chatbot Toggle — Locked State ──────────────────── */
.chatbot-toggle-btn {
  position: relative;
  cursor: pointer;
}
.chatbot-toggle-locked {
  opacity: 0.7;
  filter: grayscale(40%);
}
.chatbot-toggle-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}
.chatbot-lock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 13px;
  line-height: 1;
  background: var(--plastic);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-raised);
  border: 1.5px solid var(--hairline);
}

/* ─── Button Spinner ─────────────────────────────────── */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* ─── Toast Notifications ────────────────────────────── */
.toast-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 600;
  max-width: 340px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.12);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast-notification.toast-visible {
  opacity: 1;
  transform: translateX(0);
}
.toast-success { background: linear-gradient(135deg, #2e7d32cc, #43a047cc); color: #fff; }
.toast-error   { background: linear-gradient(135deg, #b71c1ccc, #c62828cc); color: #fff; }
.toast-info    { background: linear-gradient(135deg, #1565c0cc, #1976d2cc); color: #fff; }
.toast-warning { background: linear-gradient(135deg, #e65100cc, #ef6c00cc); color: #fff; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg  { line-height: 1.4; }

/* ─── Pro Upgrade Success Banner ─────────────────────── */
.pro-upgrade-success {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(245,161,28,0.22) 0%, rgba(0,0,0,0.55) 100%);
  animation: fadeInOverlay 0.4s ease;
  pointer-events: none;
}
@keyframes fadeInOverlay {
  from { opacity: 0; } to { opacity: 1; }
}
.pro-upgrade-success-card {
  background: linear-gradient(135deg, #2b2822 0%, #3d3830 100%);
  border: 2px solid var(--amber);
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 0 60px var(--amber-glow), 0 20px 60px rgba(0,0,0,0.5);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.burst-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
  animation: spin1 0.8s ease;
}
@keyframes spin1 {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}
.pro-upgrade-success-card h3 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 10px;
}
.pro-upgrade-success-card p {
  font-family: 'Karla', sans-serif;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 4px;
}
.success-sub {
  font-size: 12px !important;
  color: rgba(255,255,255,0.55) !important;
  margin-top: 8px !important;
}

/* ─── Upgrade Button flex alignment ─────────────────── */
#upgradeBtn {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════
   💬 CHATBOT PANEL — Full styles
   ═══════════════════════════════════════════════════════ */

/* Outer container — fixed to bottom-right corner */
#chatbotPanel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* ── Toggle Button ──────────────────────────────────── */
.chatbot-toggle-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--pro-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow:
    0 6px 20px rgba(245,161,28,0.45),
    0 2px 6px rgba(0,0,0,0.20),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chatbot-toggle-btn:hover {
  transform: scale(1.10);
  box-shadow:
    0 10px 30px rgba(245,161,28,0.55),
    0 4px 10px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.chatbot-toggle-btn:active { transform: scale(0.95); }

/* Locked state */
.chatbot-toggle-locked {
  background: linear-gradient(135deg, #b0a898 0%, #9e9488 100%) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  opacity: 0.82;
  filter: grayscale(30%);
}
.chatbot-toggle-locked:hover {
  transform: scale(1.05) !important;
}

/* Lock badge */
.chatbot-lock-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--plastic);
  border: 2px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-raised);
  line-height: 1;
}

/* ── Chat Window ────────────────────────────────────── */
.chatbot-window {
  width: 360px;
  max-height: 500px;
  background: var(--plastic);
  border-radius: 20px;
  box-shadow: var(--shadow-raised), 0 20px 60px rgba(0,0,0,0.25);
  border: 1.5px solid var(--hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.chatbot-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Chat Header ────────────────────────────────────── */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2b2822 0%, #3d3830 100%);
  border-bottom: 1.5px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pro-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(245,161,28,0.35);
  flex-shrink: 0;
}
.chatbot-header-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.2;
}
.chatbot-header-sub {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: rgba(245,240,232,0.55);
  margin-top: 1px;
}
.chatbot-close-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.7);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.chatbot-close-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Messages Area ──────────────────────────────────── */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 4px; }

.chat-msg {
  display: flex;
  animation: chatFadeIn 0.2s ease;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot  { justify-content: flex-start; }

.chat-bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.user .chat-bubble {
  background: var(--pro-gradient);
  color: #1a1612;
  font-weight: 600;
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(245,161,28,0.30);
}
.chat-msg.bot .chat-bubble {
  background: var(--plastic-well);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-debossed);
}

/* Typing indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* ── Input Row ──────────────────────────────────────── */
.chatbot-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1.5px solid var(--hairline);
  background: var(--plastic);
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: var(--plastic-well);
  box-shadow: var(--shadow-debossed);
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.chatbot-input:focus { border-color: var(--amber); }
.chatbot-input::placeholder { color: var(--ink-muted); }

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pro-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #1a1612;
  box-shadow: 0 2px 8px rgba(245,161,28,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}
.chatbot-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(245,161,28,0.45);
}
.chatbot-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 480px) {
  #chatbotPanel { bottom: 16px; right: 16px; }
  .chatbot-window { width: calc(100vw - 32px); height: 440px; right: 16px; bottom: 76px; }
}

/* ============================================================
   💬 FLOATING PERSONAL AI CHATBOT ASSISTANT (HAVEN STYLING)
   ============================================================ */
.floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 30px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-chat-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(245, 161, 28, 0.3);
  border-color: var(--amber);
}

.chat-btn-icon {
  font-size: 18px;
}

.chat-pro-pill {
  background: var(--pro-gradient);
  color: #1a1612;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.chat-lock-dot {
  font-size: 12px;
  margin-left: 2px;
}

.chatbot-toggle-locked {
  opacity: 0.85;
}

.chatbot-window {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), var(--shadow-raised);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--wall) 0%, var(--plastic) 100%);
  border-bottom: 1px solid var(--hairline);
}

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

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.chat-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
}

.chat-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.chat-close-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  overflow-x: auto;
  background: var(--wall-dark);
  border-bottom: 1px solid var(--hairline);
  scrollbar-width: none;
}

.chat-quick-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  white-space: nowrap;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.chip-btn:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wall);
}

.chat-msg {
  display: flex;
  width: 100%;
}

.chat-msg.user {
  justify-content: flex-end;
}

.chat-msg.bot {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chat-msg.user .chat-bubble {
  background: var(--pro-gradient);
  color: #1a1612;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
  background: var(--plastic);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 4px;
}

.chat-msg.bot .chat-bubble strong {
  color: var(--amber-deep);
  font-weight: 700;
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.chat-typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--plastic);
  border-top: 1px solid var(--hairline);
}

.chat-input-area input {
  flex: 1;
  background: var(--wall);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 9px 14px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}

.chat-input-area input:focus {
  border-color: var(--amber);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pro-gradient);
  border: none;
  color: #1a1612;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245, 161, 28, 0.35);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── Female Voice Assistant Styles ─────────────────────── */
.voice-toggle-btn {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  color: var(--amber-deep);
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-toggle-btn:hover {
  background: var(--amber);
  color: #1a1612;
}

.voice-toggle-btn.muted {
  background: var(--wall-dark);
  border-color: var(--hairline);
  color: var(--ink-muted);
}

.chat-mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-mic-btn:hover {
  border-color: var(--amber);
  background: var(--amber-soft);
}

.chat-mic-btn.listening {
  background: #b85c5c;
  color: #fff;
  border-color: #b85c5c;
  animation: pulseMic 1.2s infinite ease-in-out;
}

@keyframes pulseMic {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(184, 92, 92, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(184, 92, 92, 0); }
}

.voice-stop-btn {
  background: #b85c5c;
  border: 1px solid #b85c5c;
  color: #ffffff;
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: pulseStopBtn 1.5s infinite ease-in-out;
}

.voice-stop-btn:hover {
  background: #964848;
  border-color: #964848;
}

@keyframes pulseStopBtn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.voice-lang-select {
  background: var(--wall-dark);
  border: 1px solid var(--amber);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.voice-lang-select:hover {
  background: var(--amber-soft);
}

/* ============================================================
   🔑 GOOGLE OAUTH BUTTON & AUTH DIVIDER STYLING
   ============================================================ */
.google-auth-wrapper {
  margin-bottom: 16px;
  width: 100%;
}

.btn-google {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--plastic);
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-google:hover {
  background: #ffffff;
  border-color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.btn-google:active {
  transform: translateY(0);
}

.google-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--hairline);
}

.auth-divider span {
  padding: 0 14px;
  white-space: nowrap;
}

/* ============================================================
   🛍️ MARE BRAND STORE & PRODUCTS CATALOG STYLING
   ============================================================ */

/* Navigation Bar Tabs */
.main-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--plastic-well);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-debossed);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}

.nav-tab-btn.active {
  background: var(--plastic);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  border: 1px solid var(--hairline);
}

.nav-tab-icon {
  font-size: 15px;
}

/* Products Section Container */
.products-section-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero Banner */
.products-hero-banner {
  background: linear-gradient(135deg, rgba(245, 161, 28, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%), var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: var(--shadow-raised);
}

.products-hero-badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.products-hero-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.products-hero-desc {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 720px;
  line-height: 1.5;
}

/* Filter Bar */
/* Filter Bar */
.products-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-raised);
  margin-bottom: 20px;
}

.filter-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.filter-chips-group::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--wall-dark);
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.filter-chip:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.filter-chip:active {
  transform: scale(0.96);
}

.filter-chip.active {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber-deep);
  box-shadow: 0 2px 8px rgba(245, 161, 28, 0.25);
}

.filter-inputs-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.product-select-filter {
  background: var(--wall-dark);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  flex: 1;
  min-height: 42px;
}

.product-search-input {
  background: var(--wall-dark);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  flex: 1.2;
  outline: none;
  min-height: 42px;
}

.product-search-input:focus {
  border-color: var(--amber);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.product-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-badge-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(243, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--amber-deep);
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid var(--amber-soft);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
}

.product-brand-tag {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}

.product-category-tag {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.product-name {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 3px 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-tagline {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-ingredients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.ingredient-pill {
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
}

.ingredient-pill.more {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.product-skin-types {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.skin-type-micro-tag {
  font-size: 10px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  color: var(--ink-muted);
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 6px;
}

.product-card-footer {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  margin-top: auto;
}

.product-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.product-price {
  font-family: 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.product-original-price {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  text-decoration: line-through;
  color: var(--ink-muted);
  margin-left: 4px;
}

.product-rating {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-deep);
}

.product-actions {
  display: flex;
  gap: 6px;
}

.btn-product-detail {
  flex: 0.8;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--wall-dark);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-product-buy {
  flex: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: var(--pro-gradient);
  color: #1a1612;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 161, 28, 0.25);
  transition: all 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--wall-dark);
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-product-detail:hover {
  background: var(--plastic-well);
  border-color: var(--ink-muted);
}

.btn-product-buy {
  flex: 1.2;
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: var(--pro-gradient);
  color: #1a1612;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 161, 28, 0.25);
  transition: all 0.2s ease;
}

.btn-product-buy:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(245, 161, 28, 0.4);
}

/* Product Detail Modal */
.product-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.product-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.product-modal-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.product-modal-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.product-modal-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0 2px 0;
}

.product-modal-tagline {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  color: var(--ink-muted);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .product-modal-grid { grid-template-columns: 1fr; }
}

.product-modal-col h4 {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 8px 0;
}

.modal-ing-item {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 4px;
}

.modal-skin-types-box {
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.modal-usage-text {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}

.clinical-notes-box {
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 14px;
  padding: 12px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: var(--amber-deep);
  margin-top: 16px;
}

.modal-purchase-box {
  margin-top: 20px;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
}

/* ============================================================
   🛒 SHOPPING CART DRAWER & POPULAR BRAND CARDS STYLING
   ============================================================ */

/* Header Cart Button */
.btn-cart-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: 16px;
  color: var(--ink);
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
  transition: all 0.2s ease;
  position: relative;
}

.btn-cart-header:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
}

.cart-header-icon {
  font-size: 16px;
}

.cart-badge-count {
  background: var(--pro-gradient);
  color: #1a1612;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(245, 161, 28, 0.3);
}

/* Cart Drawer Overlay */
.cart-drawer-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10005;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
}

.cart-drawer-panel {
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: var(--plastic);
  border-left: 1px solid var(--hairline);
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer-panel {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}

.cart-drawer-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.cart-drawer-close {
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}

.cart-drawer-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Cart Items Container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 40px 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-debossed);
}

.cart-item-img-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-brand {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-deep);
}

.cart-item-name {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 3px 6px;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  color: var(--amber-deep);
}

.qty-num {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.cart-item-remove-btn:hover {
  opacity: 1;
}

/* Cart Footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--hairline);
  background: var(--plastic);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
}

.cart-total-row {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px dashed var(--hairline);
  padding-top: 8px;
  margin-top: 4px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  margin-top: 6px;
}

/* Product Card Image Container */
.product-img-box {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.product-icon-fallback {
  font-size: 48px;
}

.product-brand-tag {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-deep);
}

.product-modal-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   🛍️ E-COMMERCE CHECKOUT MODAL & RAZORPAY STYLING
   ============================================================ */

.checkout-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.checkout-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.checkout-steps-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  padding: 4px;
  border-radius: 16px;
}

.step-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-tab.active {
  background: var(--plastic);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
}

.step-tab.active .step-num {
  background: var(--amber-soft);
  color: var(--amber-deep);
  border-color: var(--amber);
}

.form-section-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 12px 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 550px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.checkout-input {
  width: 100%;
  background: var(--wall-dark);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.checkout-input:focus {
  border-color: var(--amber);
}

.checkout-order-summary-box {
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.summary-shipping-preview {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 10px;
}

.summary-shipping-preview strong {
  color: var(--ink);
}

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

.summary-item-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
}

.summary-grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-deep);
}

.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wall-dark);
  border: 1.5px solid var(--hairline);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  border-color: var(--amber);
}

.payment-method-card.active {
  background: var(--amber-soft);
  border-color: var(--amber);
  box-shadow: 0 4px 12px rgba(245, 161, 28, 0.15);
}

.payment-method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-method-info strong {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.payment-method-info span {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
}

.razorpay-badge {
  background: #0c2340;
  color: #528ff0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.06em;
}

/* ============================================================
   🚚 ORDER TRACKER TIMELINE & ORDERS HISTORY STYLING
   ============================================================ */

.orders-section-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInView 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.orders-hero-banner {
  background: linear-gradient(135deg, rgba(245, 161, 28, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%), var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px 36px;
  box-shadow: var(--shadow-raised);
}

.orders-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card-row {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-raised);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.order-status-badge {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber-deep);
  border: 1px solid var(--amber);
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 4px;
}

.order-card-id {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px 0;
}

.order-card-date {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
}

.order-card-price {
  display: block;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.order-card-method {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
}

.order-card-items-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-item-chip {
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink);
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 12px;
  margin-top: 4px;
}

/* Order Tracker Modal */
.order-tracker-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10012;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.order-tracker-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-tracker-close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.tracker-header-box {
  margin-bottom: 20px;
}

.tracker-order-id {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 2px 0;
}

/* 4-Stage Order Progress Timeline */
.order-tracker-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 20px 16px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wall-dark);
  border: 2px solid var(--hairline);
  color: var(--ink-muted);
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.timeline-step.completed .step-circle {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber-deep);
}

.timeline-step.current .step-circle {
  background: var(--amber-deep);
  border-color: var(--amber);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 161, 28, 0.25);
  animation: pulseCircle 1.8s infinite;
}

@keyframes pulseCircle {
  0% { box-shadow: 0 0 0 0 rgba(245, 161, 28, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(245, 161, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 161, 28, 0); }
}

.step-label {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.step-sub {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  color: var(--ink-muted);
}

.timeline-line {
  flex: 0.8;
  height: 3px;
  background: var(--hairline);
  margin-top: 14px;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}

.timeline-line.active {
  background: var(--amber);
}

.tracker-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tracker-info-card {
  background: var(--wall-dark);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tracker-info-label {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tracker-info-value {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.tracker-details-box {
  background: var(--plastic-well);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
}

/* ============================================================
   ❌ ORDER CANCELLATION MODAL & BUTTON STYLING
   ============================================================ */

.cancel-order-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 12, 10, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10014;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cancel-order-card {
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cancel-reason-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wall-dark);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.cancel-reason-option:hover {
  border-color: #e53935;
}

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid #ffcdd2;
  color: #c62828;
  border-radius: 12px;
  padding: 8px 16px;
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-outline:hover {
  background: #fff3f3;
  border-color: #e53935;
}

.btn-secondary-danger {
  background: var(--wall-dark);
  border: 1px solid #ffcdd2;
  color: #c62828;
  border-radius: 10px;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-danger:hover {
  background: #fff3f3;
  border-color: #e53935;
}

.btn-danger-action {
  background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.btn-danger-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 57, 53, 0.35);
}

.status-cancelled {
  background: #fff3f3 !important;
  color: #c62828 !important;
  border-color: #ffcdd2 !important;
}

.cancelled-card {
  opacity: 0.85;
  border-color: #ffcdd2;
}

/* ============================================================
   📱 MOBILE RESPONSIVE ALIGNMENT & TOUCH SCROLL POLISH
   ============================================================ */

/* Enable momentum touch scrolling inside all modal containers */
.order-tracker-card,
.checkout-card,
.cancel-order-card,
.chatbot-window {
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Mobile Header & Navbar Alignment Polish (< 768px) */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 14px;
  }

  .main-nav-tabs {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--plastic-well);
    border: 1px solid var(--hairline);
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
  }

  .nav-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .orders-hero-banner {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .order-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .order-card-header > div:last-child {
    text-align: left !important;
  }

  .tracker-info-grid {
    grid-template-columns: 1fr;
  }

  .floating-chat-btn {
    bottom: 16px;
    right: 14px;
    padding: 8px 14px;
  }

  .chat-btn-text {
    font-size: 12px;
  }

  .checkout-card, .order-tracker-card, .cancel-order-card {
    padding: 20px 16px;
    border-radius: 20px;
    width: calc(100% - 20px);
    margin: 10px;
  }
}

/* Mobile Timeline Progress Bar (< 520px) Vertical Collapse */
@media (max-width: 520px) {
  .order-tracker-timeline {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 12px;
    align-items: center;
  }

  .timeline-line {
    width: 3px;
    height: 14px;
    margin: -4px 0 -4px 14px;
  }

  .step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .step-label {
    font-size: 13px;
  }

  .step-sub {
    font-size: 11px;
    margin-left: auto;
  }
}

/* ============================================================
   💫 DOUBLE-TAP CONFLICT PREVENTION & PROCESSING OVERLAY
   ============================================================ */

.action-loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  animation: fadeInView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.pulse-ring-spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 161, 28, 0.25) 0%, rgba(245, 161, 28, 0) 70%);
  border: 3px solid rgba(245, 161, 28, 0.2);
  border-top-color: var(--amber-deep);
  border-right-color: var(--amber);
  animation: spinPulse 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 20px rgba(245, 161, 28, 0.3);
}

.spinner-core {
  font-size: 22px;
  animation: bounceCore 1.5s ease-in-out infinite alternate;
}

@keyframes spinPulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes bounceCore {
  0% { transform: scale(0.85); }
  100% { transform: scale(1.15); }
}

.loading-overlay-title {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.loading-overlay-sub {
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 340px;
  line-height: 1.4;
}

/* ============================================================
   👤 SINGLE USER PROFILE DROPDOWN TOGGLE STYLING
   ============================================================ */

.user-profile-menu-wrap {
  position: relative;
  display: inline-block;
}

.user-profile-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.user-profile-toggle-btn:hover {
  background: var(--wall-dark);
  border-color: var(--amber);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245, 161, 28, 0.2) 0%, rgba(212, 131, 8, 0.2) 100%);
  border: 1px solid var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.user-display-name {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-pro-mini-badge {
  background: linear-gradient(135deg, #f5a11c 0%, #d48308 100%);
  color: #fff;
  font-family: 'Karla', sans-serif;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

.dropdown-chevron {
  font-size: 11px;
  color: var(--ink-muted);
}

.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--plastic);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 10px;
  z-index: 10020;
  animation: fadeInView 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-user-header {
  padding: 8px 10px;
}

.dropdown-user-name {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.dropdown-user-status {
  font-family: 'Karla', sans-serif;
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: var(--hairline);
  margin: 6px 0;
}

.dropdown-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.dropdown-menu-item:hover {
  background: var(--wall-dark);
}

.dropdown-menu-item.logout-item {
  color: #c62828;
}

.dropdown-menu-item.logout-item:hover {
  background: #fff3f3;
}

/* ============================================================
   📱 MOBILE NATIVE WEB APP OVERHAUL & BREAKPOINTS (< 768px)
   ============================================================ */

@media (max-width: 768px) {
  .app-container {
    padding: 12px 14px 80px 14px !important;
    max-width: 100% !important;
  }

  /* Header Overhaul - Non-Sticky, Single Line Alignment */
  .main-header {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    padding: 8px 12px !important;
    margin-bottom: 16px !important;
    border-radius: 16px !important;
    background: var(--plastic) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--hairline) !important;
    box-shadow: var(--shadow-raised) !important;
  }

  .brand {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .brand-logo-img {
    height: 30px !important;
    width: auto !important;
    flex-shrink: 0 !important;
  }

  .brand-title {
    font-size: 16px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
  }

  .brand-pill-badge {
    display: none !important;
  }

  .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
  }

  /* Desktop nav tabs hidden on mobile (handled by sticky bottom dock) */
  .main-nav-tabs {
    display: none !important;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .btn-cart-header {
    display: none !important;
  }

  .tier-usage-bar-wrap {
    display: none !important;
  }

  .btn-upgrade {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  /* Auth Screen Responsive Stack */
  .auth-screen-container {
    flex-direction: column !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow-y: auto !important;
    padding: 16px 12px !important;
  }

  .auth-left-panel {
    width: 100% !important;
    padding: 24px 16px !important;
    min-height: auto !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  .auth-hero-brand-card {
    padding: 10px 16px !important;
    gap: 12px !important;
    border-radius: 18px !important;
    max-width: 100% !important;
  }

  .auth-hero-title {
    font-size: 24px !important;
  }

  .auth-hero-badge {
    font-size: 9px !important;
    padding: 2px 7px !important;
  }

  .auth-hero-tagline {
    font-size: 16px !important;
  }

  .auth-hero-features {
    gap: 12px !important;
  }

  .auth-hero-feat-desc {
    font-size: 12px !important;
  }

  .quote-slider {
    display: none !important;
  }

  .auth-right-panel {
    width: 100% !important;
    padding: 0 !important;
  }

  .auth-card {
    padding: 20px 16px !important;
    border-radius: 20px !important;
    width: 100% !important;
  }

  /* Main Grid Stack */
  .main-grid {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  .left-col, .right-col {
    width: 100% !important;
    min-height: auto !important;
  }

  .panel {
    padding: 16px !important;
    border-radius: 16px !important;
    margin-bottom: 14px !important;
  }

  .panel-title {
    font-size: 15px !important;
    margin-bottom: 12px !important;
  }

  /* Form Controls & Touch Targets */
  select, input[type="text"], input[type="email"], input[type="password"] {
    padding: 12px 14px !important;
    font-size: 15px !important; /* Prevents auto-zoom on mobile focus */
    border-radius: 12px !important;
  }

  .btn-primary, .btn-secondary {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  button:active, .btn-primary:active, .btn-secondary:active, .nav-tab-btn:active, .mobile-nav-btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.1s ease !important;
  }

  /* Market Store Mobile 2-Column Grid Overhaul */
  .products-hero-banner {
    padding: 20px 16px !important;
    border-radius: 18px !important;
    margin-bottom: 14px !important;
  }

  .products-hero-title {
    font-size: 20px !important;
  }

  .products-hero-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 16px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  .product-img-box {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin-bottom: 8px !important;
    border-radius: 12px !important;
  }

  .product-name {
    font-size: 12px !important;
    line-height: 1.3 !important;
    min-height: 32px !important;
    margin: 2px 0 4px 0 !important;
  }

  .product-tagline {
    display: none !important;
  }

  .product-ingredients-wrap, .product-skin-types {
    display: none !important;
  }

  .product-price {
    font-size: 15px !important;
  }

  .product-rating {
    font-size: 10px !important;
  }

  .btn-product-detail {
    display: none !important;
  }

  .btn-product-buy {
    width: 100% !important;
    font-size: 11px !important;
    padding: 8px 4px !important;
    min-height: 36px !important;
  }

  .products-filter-bar {
    padding: 14px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }

  .filter-inputs-group {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .product-select-filter, .product-search-input {
    width: 100% !important;
    font-size: 15px !important;
  }

  /* Sticky Mobile Bottom Navigation Dock */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 64px !important;
    background: rgba(243, 241, 234, 0.94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-top: 1px solid rgba(194, 190, 179, 0.7) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 10000 !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  }

  .mobile-nav-btn {
    flex: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    color: var(--ink-muted) !important;
    font-family: 'Karla', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    gap: 2px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
  }

  .mobile-nav-btn.active {
    color: var(--amber-deep) !important;
  }

  .mobile-nav-btn.active .mobile-nav-icon {
    transform: translateY(-2px) scale(1.15) !important;
  }

  .mobile-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 16px;
    height: 3px;
    background: var(--amber);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--amber-glow);
  }

  .mobile-nav-icon {
    font-size: 19px !important;
    transition: transform 0.2s ease !important;
  }

  .mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
  }

  .mobile-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: var(--amber-deep) !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    padding: 1px 5px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 6px rgba(201, 127, 14, 0.4) !important;
  }

  /* Mobile Bottom Sheet Modals */
  .checkout-modal-overlay,
  .order-tracker-modal-overlay,
  .cancel-order-modal-overlay,
  .product-modal-overlay,
  #upgradeModal,
  #proRecallModal {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .checkout-card,
  .order-tracker-card,
  .cancel-order-card,
  .product-modal-card,
  .upgrade-modal-card,
  .pro-recall-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    margin: 0 !important;
    max-height: 88vh !important;
    padding: 22px 18px 28px 18px !important;
    animation: slideUpBottomSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25) !important;
  }

  .plans-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  @keyframes slideUpBottomSheet {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* Hidden on desktop (> 768px) */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}









