:root {
  --bg: #F8F4EF;
  --bg-warm: #F2EBE0;
  --bg-deep: #EDE5D6;
  --paper: #FFFFFF;
  --paper-soft: rgba(255, 255, 255, 0.7);

  --ink: #1A1614;
  --ink-rich: #211C1A;
  --ink-soft: #4A413B;
  --muted: #7A6F69;
  --line: rgba(33, 28, 26, 0.07);
  --line-strong: rgba(33, 28, 26, 0.14);

  --champagne: #B58C67;
  --champagne-light: #D4B896;
  --champagne-deep: #8E6B47;

  --lavender: #BBA7FF;
  --lavender-light: #E5DBFF;
  --lavender-deep: #8B73E0;

  --rose: #E8C4B8;
  --pearl: #F4EDE2;
  --dark: #2A2433;

  --error: #B84A4A;
  --success: #6B9B6F;

  --grad-aura: linear-gradient(135deg, #F8E8DC 0%, #EFE0F2 50%, #E8D9F5 100%);
  --grad-warm: linear-gradient(135deg, #F4EDE2 0%, #E8D5C0 100%);
  --grad-champagne: linear-gradient(135deg, #D4B896 0%, #B58C67 50%, #8E6B47 100%);
  --grad-lavender: linear-gradient(135deg, #D4C5FF 0%, #BBA7FF 100%);
  --grad-mix: linear-gradient(135deg, #B58C67 0%, #BBA7FF 100%);
  --grad-luxe: linear-gradient(135deg, #8E6B47 0%, #B58C67 30%, #BBA7FF 70%, #8B73E0 100%);

  --shadow-sm: 0 4px 12px rgba(33, 28, 26, 0.05);
  --shadow-md: 0 12px 32px rgba(33, 28, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(33, 28, 26, 0.10);
  --shadow-xl: 0 40px 100px rgba(33, 28, 26, 0.14);
  --shadow-glow: 0 16px 48px rgba(181, 140, 103, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --radius: 12px;
  --cream: #F4EDE2;
  --border: rgba(33, 28, 26, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: -0.011em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(212, 184, 150, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 25%, rgba(212, 197, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(244, 237, 226, 0.6) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: var(--champagne); color: var(--paper); }

.view { display: none; position: relative; z-index: 1; }
.view.active { display: block; }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.05;
  color: var(--ink);
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--champagne-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .star { color: var(--champagne); font-size: 14px; }

/* ============== NAV ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(248, 244, 239, 0.78);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-luxe);
  box-shadow: 0 6px 16px rgba(181, 140, 103, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5) 0%, transparent 60%);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.logo-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  transition: color 0.3s var(--ease);
  padding: 0;
  font-weight: 500;
}
.nav-link:hover { color: var(--champagne-deep); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.credit-pill {
  background: var(--grad-champagne);
  color: white;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(181, 140, 103, 0.30), inset 0 1px 0 rgba(255,255,255,0.25);
}
.credit-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 10px rgba(255,255,255,0.9);
}

/* ============== THEME SWITCHER ============== */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
  outline: none;
}
.theme-dot:hover { transform: scale(1.25); }
.theme-dot.active { border-color: var(--ink); }
.theme-dot[data-theme="champagne"] { background: #B58C67; }
.theme-dot[data-theme="rose"]      { background: #C87B8E; }
.theme-dot[data-theme="ocean"]     { background: #4A90C4; }

/* ============== NAV PROFILE DROPDOWN ============== */
.nav-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  transition: border-color 0.18s, background 0.18s;
  user-select: none;
}
.nav-profile:hover { border-color: var(--champagne-deep); background: #f6f0ea; }
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-champagne);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.nav-profile-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-profile-chevron { color: var(--muted); transition: transform 0.2s; }
.nav-profile.open .nav-profile-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(90,70,50,0.14);
  z-index: 200;
  overflow: hidden;
}
.nav-profile.open .nav-dropdown { display: block; }
.nav-dropdown-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.nav-dropdown-name { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 2px; }
.nav-dropdown-email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-dropdown-credits { font-size: 12px; font-weight: 600; color: var(--champagne-deep); margin-top: 6px; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: none;
  border: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-dropdown-item:hover { background: #f6f0ea; }
.nav-dropdown-item.danger { color: #c0392b; }
.nav-dropdown-item.danger:hover { background: #fdf3f2; }
.nav-dropdown-sep { height: 1px; background: var(--line); margin: 4px 0; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-champagne);
  color: white;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(181, 140, 103, 0.40), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.8s var(--ease);
}
.btn-primary:hover::after { left: 100%; }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-large { height: 56px; padding: 0 32px; font-size: 15px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0;
  height: auto;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--champagne-deep); }
.btn .arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover:not(:disabled) .arrow { transform: translateX(4px); }

/* ============== HERO ============== */
.hero {
  padding: 96px 8vw 72px;
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #fffaf6 0%, #fbf4ee 48%, #f7eee7 100%);
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  gap: 48px;
  align-items: center;
  min-height: 720px;
  position: relative;
}
.hero h1 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 28px; letter-spacing: -0.032em; }
.hero h1 em {
  font-style: italic;
  background: var(--grad-luxe);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 300;
  animation: shimmer-text 8s ease-in-out infinite;
}
@keyframes shimmer-text {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-sub { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 36px; max-width: 480px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.trust-text { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.trust-text strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 1px; }

/* === Hero free note === */
.hero-free-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(80,55,35,0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(180,140,100,0.15);
}

/* =====================================================
   HERO VISUAL WRAP + STAGE — composição lado direito
   ===================================================== */

/* ── HERO VISUAL — lado direito limpo ── */
.hero-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-model {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  border-radius: 32px;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* ============== SECTIONS ============== */
section.section { padding: 120px 32px; position: relative; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head {
  text-align: center;
  margin-bottom: 80px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.section-head h2 em {
  font-style: italic;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .lead { font-size: 18px; color: var(--ink-soft); line-height: 1.55; }

/* Steps */
.steps-row {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}
.step-divider { position: absolute; top: 50%; height: 32px; color: var(--champagne-light); transform: translateY(-50%); }
.step-divider.d1 { left: 33.33%; }
.step-divider.d2 { left: 66.66%; }
.step-block { display: flex; align-items: flex-start; gap: 20px; }
.step-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--champagne-light);
  line-height: 1;
  flex-shrink: 0;
  font-weight: 300;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-aura);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.step-content { flex: 1; }
.step-title-text { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 6px; }
.step-desc-text { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ============== ANALYSIS CARDS ============== */
.analysis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.analysis-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
  position: relative;
}
.analysis-card-img { position: absolute; inset: 0; overflow: hidden; background: var(--grad-warm); }
.analysis-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.analysis-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.analysis-card:hover .analysis-card-img img { transform: scale(1.05); }
.analysis-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(33, 22, 20, 0.85) 100%);
}
.analysis-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: white; z-index: 2; }
.analysis-card-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.018em; margin-bottom: 6px; }
.analysis-card-desc { font-size: 13px; opacity: 0.85; line-height: 1.4; }
.analysis-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  transition: all 0.4s var(--ease);
}
.analysis-card:hover .analysis-card-arrow { background: var(--champagne); color: white; transform: rotate(-45deg); }

/* ============== TESTIMONIALS ============== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-warm);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--line);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-avatar.lavender { background: var(--grad-lavender); }
.testimonial-avatar.champagne { background: var(--grad-champagne); }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-role { font-size: 12px; color: var(--muted); }
.testimonial-stars { margin-left: auto; color: var(--champagne); font-size: 13px; letter-spacing: 1px; }
.testimonial-quote {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-rich);
  letter-spacing: -0.012em;
  font-style: italic;
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }

/* ============== PLANS ============== */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.plan-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px 32px 36px;
  transition: all 0.4s var(--ease);
  position: relative;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  background: linear-gradient(180deg, var(--paper) 0%, rgba(244, 237, 226, 0.4) 100%);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}
.plan-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-mix);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-mix);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(181, 140, 103, 0.30);
}
.plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-warm);
  color: var(--champagne-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.plan-card.featured .plan-icon { background: var(--grad-champagne); color: white; }
.plan-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.020em; }
.plan-credits-num {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 12px 0 4px;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.plan-credits-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price-currency { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400; color: var(--muted); }
.plan-price-value { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 400; letter-spacing: -0.025em; line-height: 1; }
.plan-per { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.plan-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-champagne);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-buy {
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.plan-buy:hover { background: var(--ink); color: var(--paper); }
.plan-card.featured .plan-buy { background: var(--grad-champagne); color: white; border-color: transparent; box-shadow: 0 8px 24px rgba(181, 140, 103, 0.30); }
.plan-card.featured .plan-buy:hover { transform: translateY(-1px); }

/* ============== TRUST BAR ============== */
.trust-bar { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 32px; }
.trust-bar-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-bar-item { display: flex; align-items: center; gap: 14px; }
.trust-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--grad-warm);
  color: var(--champagne-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-bar-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.trust-bar-text span { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ============== AUTH ============== */
.auth-wrap { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-luxe);
}
.auth-eyebrow { text-align: center; margin-bottom: 12px; }
.auth-eyebrow .eyebrow { margin: 0; }
.auth-title { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 400; letter-spacing: -0.025em; margin-bottom: 8px; text-align: center; }
.auth-title em { font-style: italic; color: var(--champagne-deep); }
.auth-sub { color: var(--muted); font-size: 15px; margin-bottom: 32px; text-align: center; }
.input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 14px;
  transition: all 0.3s var(--ease);
}
.input:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 4px rgba(181, 140, 103, 0.12); }
.auth-actions { margin-top: 8px; }
.auth-actions .btn { width: 100%; }
.auth-toggle { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.auth-toggle .btn-ghost { color: var(--champagne-deep); font-weight: 600; }
.auth-perks { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.auth-perk { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.auth-perk-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-champagne);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
}
.oauth-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  color: var(--ink);
}
.oauth-btn:hover { background: #f6f0ea; border-color: var(--champagne-deep); }
.oauth-btn-x { background: #000; color: #fff; border-color: #000; }
.oauth-btn-x:hover { background: #1a1a1a; border-color: #1a1a1a; }
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ============== CREATE PAGE ============== */
.create-page { max-width: 960px; margin: 0 auto; padding: 40px 32px 140px; }
.create-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.create-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.create-back:hover { background: var(--paper); border-color: var(--champagne); }
.create-header-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  flex: 1;
}
.create-credits-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--champagne-deep);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.create-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  margin-top: 16px;
}

/* Dashboard CTA & history section */
.dash-new-cta { margin-bottom: 72px; }
.dash-history-section { }

/* ============== DASHBOARD ============== */
.dash { max-width: 1280px; margin: 0 auto; padding: 56px 32px 100px; }
.dash-greeting { margin-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.dash-greeting-text h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 8px; }
.dash-greeting-text h1 em {
  font-style: italic;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dash-greeting-text .greet-sub { color: var(--ink-soft); font-size: 16px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 64px; }
.dash-stat {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.dash-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.dash-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-warm);
  color: var(--champagne-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-stat-info { flex: 1; min-width: 0; }
.dash-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; margin-bottom: 4px; }
.dash-stat-value { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.dash-stat-link { display: block; font-size: 12px; color: var(--champagne-deep); margin-top: 6px; background: none; border: none; cursor: pointer; font-family: inherit; font-weight: 600; padding: 0; }
.step-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--champagne-deep);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.step-label::before { content: ''; width: 24px; height: 1px; background: var(--champagne); }
.step-title { font-family: 'Fraunces', serif; font-size: clamp(28px, 3.5vw, 38px); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 16px; line-height: 1.05; }
.step-desc { font-size: 15px; color: var(--ink-soft); margin-bottom: 32px; max-width: 600px; line-height: 1.55; }
.step { margin-bottom: 80px; }

/* === Dashboard analysis cards === */
.dash-analysis-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.dash-type-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  padding: 0;
  text-align: left;
  width: 100%;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.dash-type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dash-type-card.selected { border-color: var(--champagne); box-shadow: var(--shadow-glow); }
.dash-type-img { aspect-ratio: 16/9; overflow: hidden; background: var(--grad-warm); position: relative; }
.dash-type-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.dash-type-card:hover .dash-type-img img { transform: scale(1.05); }
.dash-type-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-champagne);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 20px rgba(181, 140, 103, 0.40);
}
.dash-type-card.selected .dash-type-check { opacity: 1; transform: scale(1); }
.dash-type-body { padding: 20px 24px 22px; }
.dash-type-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 6px; line-height: 1.1; }
.dash-type-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* === Upload === */
.upload-zone {
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(244, 237, 226, 0.5) 100%);
  backdrop-filter: blur(12px);
  border: 2px dashed var(--champagne-light);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(181, 140, 103, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.upload-zone:hover { border-color: var(--champagne); transform: scale(1.005); box-shadow: var(--shadow-md); }
.upload-zone.dragover { border-color: var(--champagne-deep); border-style: solid; background: linear-gradient(135deg, rgba(212, 184, 150, 0.18) 0%, rgba(212, 197, 255, 0.15) 100%); }
.upload-zone.has-image { padding: 40px; border-style: solid; border-color: var(--line); background: var(--paper); }
.upload-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grad-aura);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(181, 140, 103, 0.20), inset 0 2px 0 rgba(255,255,255,0.5);
  position: relative;
}
.upload-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--champagne-light);
  opacity: 0.4;
  animation: ring-pulse 3s ease-out infinite;
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0; }
}
.upload-icon-svg { width: 32px; height: 32px; color: var(--champagne-deep); }
.upload-text { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 400; letter-spacing: -0.020em; line-height: 1.2; }
.upload-text em { font-style: italic; color: var(--champagne-deep); cursor: pointer; }
.upload-hint { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
#fileInput { display: none; }
.preview-img { max-width: 280px; max-height: 360px; border-radius: var(--radius-md); object-fit: cover; box-shadow: var(--shadow-xl); border: 4px solid var(--paper); }
.preview-actions { margin-top: 20px; }
.preview-actions button {
  background: var(--bg-warm);
  border: none;
  color: var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.preview-actions button:hover { background: var(--ink); color: var(--paper); }

.action-bar {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.summary { font-size: 15px; color: var(--ink-soft); }
.summary strong { color: var(--ink); font-weight: 600; }
.summary a { color: var(--champagne-deep); cursor: pointer; font-weight: 600; }

/* === History === */
.history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.history-item {
  background: var(--paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.history-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.history-img { aspect-ratio: 3/4; background: var(--bg-warm); overflow: hidden; }
.history-img img { width: 100%; height: 100%; object-fit: cover; }
.history-info { padding: 14px 16px; }
.history-type { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500; }
.history-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.empty-state {
  text-align: center;
  padding: 80px 32px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
}
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-aura);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
}
.empty-state-text { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400; margin-bottom: 8px; }

/* === Loading === */
/* === Loading pill (floating, non-blocking) === */
.loading-pill {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.07);
  padding: 12px 20px 12px 16px;
  z-index: 200;
  pointer-events: none;
  min-width: 260px;
  max-width: 420px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.loading-pill.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.loading-pill-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--champagne-deep);
  animation: pill-spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes pill-spin { to { transform: rotate(360deg); } }
.loading-pill-body {
  flex: 1;
  min-width: 0;
}
.loading-pill-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}
.loading-pill-title em { font-style: italic; color: var(--champagne-deep); font-weight: 400; }
.loading-pill-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease;
}
.loading-pill-time {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Result === */
.result { max-width: 1280px; margin: 0 auto; padding: 64px 32px 100px; }
.result-head { text-align: center; margin-bottom: 48px; }
.result-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.result-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
.result-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.result-head h1 em { font-style: italic; color: var(--champagne-deep); }
.result-head p { color: var(--ink-soft); font-size: 17px; max-width: 520px; margin: 0 auto; }
.result-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  animation: slideUp 0.7s var(--ease);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-image-wrap { position: relative; background: var(--bg-warm); }
.result-image-wrap img { width: 100%; display: block; }
.result-seal {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--champagne-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(181, 140, 103, 0.2);
}
.result-seal::before { content: '✦'; color: var(--champagne); }
.result-card-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.meta-cell { padding: 24px 28px; border-right: 1px solid var(--line); }
.meta-cell:last-child { border-right: none; }
.meta-cell-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; margin-bottom: 8px; }
.meta-cell-value { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.meta-cell-value.gradient { background: var(--grad-mix); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.result-actions { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--paper);
  color: var(--ink);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.5s var(--ease);
  max-width: calc(100% - 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast.error::before { background: var(--error); box-shadow: 0 0 12px var(--error); }
.toast.success::before { background: var(--success); box-shadow: 0 0 12px var(--success); }
.toast.info::before { background: var(--champagne); }

/* === Error state === */
.generation-error {
  max-width: 520px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid rgba(184, 74, 74, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.4s var(--ease);
}
.generation-error-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(184, 74, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--error);
  font-size: 24px;
}
.generation-error-title { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.generation-error-msg { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 24px; }
.generation-error-note { font-size: 12px; color: var(--muted); font-style: italic; }

/* === Footer === */
footer { background: var(--bg-warm); padding: 48px 32px; text-align: center; border-top: 1px solid var(--line); margin-top: 80px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-logo { font-family: 'Fraunces', serif; font-size: 24px; margin-bottom: 8px; }
.footer-text { color: var(--muted); font-size: 13px; font-style: italic; font-family: 'Fraunces', serif; }

/* === Image fallback === */
.img-fallback {
  width: 100%;
  height: 100%;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--champagne-deep);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

/* ============== PERSONALIZATION CHIPS ============== */
.chip-group { margin-bottom: 28px; }
.chip-group-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}
.chip:hover { border-color: var(--champagne); color: var(--ink); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(181,140,103,0.15); }
.chip.selected { background: var(--champagne); border-color: var(--champagne); color: var(--ink); font-weight: 600; box-shadow: 0 4px 14px rgba(181,140,103,0.3); }
@keyframes chipGroupIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chip-group { animation: chipGroupIn 0.3s ease both; }
.chip-group:nth-child(2) { animation-delay: 0.06s; }
.chip-group:nth-child(3) { animation-delay: 0.12s; }
.chip-group:nth-child(4) { animation-delay: 0.18s; }

/* ============== RESULT ANALYSIS TEXT ============== */
.result-analysis-wrap { max-width: 680px; margin: 40px auto 0; background: var(--paper); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.result-analysis-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; font-style: italic; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.result-analysis-text { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.result-analysis-text strong { color: var(--ink); display: block; margin-top: 16px; margin-bottom: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.result-analysis-text strong:first-child { margin-top: 0; }

/* ============== PROFILE PAGE ============== */
.profile-layout { max-width: 760px; margin: 0 auto; padding: 0 0 80px; }
.profile-hero { display: flex; align-items: center; gap: 32px; background: var(--paper); border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: var(--shadow-sm); margin-bottom: 28px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; cursor: pointer; }
.profile-avatar-wrap:hover .profile-avatar-overlay { opacity: 1; }
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--grad-champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--champagne-deep);
  overflow: hidden;
  border: 3px solid var(--champagne);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  flex-direction: column;
  gap: 4px;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.profile-name { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600; color: var(--ink); font-style: italic; }
.profile-email { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.profile-since { font-size: 13px; color: var(--muted); font-style: italic; }
.profile-stats-row { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }
.profile-stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.profile-stat-chip strong { color: var(--champagne-deep); font-weight: 700; }
.profile-section { background: var(--paper); border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.profile-section-title { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; font-style: italic; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.profile-field { margin-bottom: 18px; }
.profile-field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.profile-field-row { display: flex; gap: 10px; }
.profile-field input {
  flex: 1;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.profile-field input:focus { border-color: var(--champagne); }
.profile-field input:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-save {
  background: var(--champagne);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-save:hover { background: var(--champagne-deep); color: #fff; }
.txn-list { display: flex; flex-direction: column; gap: 10px; }
.txn-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--cream); border-radius: var(--radius); font-size: 14px; }
.txn-desc { color: var(--ink-soft); flex: 1; }
.txn-date { font-size: 12px; color: var(--muted); margin: 0 16px; }
.txn-amount { font-weight: 700; }
.txn-amount.pos { color: #22a06b; }
.txn-amount.neg { color: #e5484d; }
.profile-analyses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.profile-analysis-card { border-radius: var(--radius); overflow: hidden; background: var(--cream); border: 1.5px solid var(--border); }
.profile-analysis-img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.profile-analysis-img-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--grad-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 13px;
  color: var(--champagne-deep);
  font-style: italic;
  text-align: center;
  padding: 12px;
}
.profile-analysis-meta { padding: 8px 10px; font-size: 12px; color: var(--muted); }
.profile-analysis-type { font-weight: 600; color: var(--ink-soft); font-size: 13px; margin-bottom: 2px; }
.profile-empty { text-align: center; padding: 40px; color: var(--muted); font-style: italic; font-family: 'Fraunces', serif; font-size: 15px; }

/* ============== MOBILE MENU ============== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.18s;
}
.hamburger:hover { border-color: var(--champagne-deep); }
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none !important; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 998; }
.mobile-menu.open { display: block !important; }
.mobile-menu-overlay { position: absolute; inset: 0; background: rgba(60,40,20,0.35); }
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--paper);
  padding: 24px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -12px 0 48px rgba(60,40,20,0.14);
  overflow-y: auto;
}
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-menu-close {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 18px;
}
.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-nav-link:hover { color: var(--champagne-deep); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.mobile-menu-user { padding: 16px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.mobile-menu-user-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.mobile-menu-user-email { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mobile-menu-credits { font-size: 13px; font-weight: 600; color: var(--champagne-deep); margin-top: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* === Tablet (≤ 1024px) === */
@media (max-width: 1024px) {
  .nav-menu     { display: none !important; }
  .hamburger    { display: flex !important; }
  .theme-switcher { display: none !important; }
  .analysis-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .step-divider { display: none; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Mobile (≤ 768px) === */
@media (max-width: 768px) {
  .nav-inner { padding-left: 16px; padding-right: 16px; }
  .nav { height: 60px; }

  /* Bug 1: nav overflow quando logado — esconde itens largos do nav-right */
  .credit-pill { display: none !important; }
  .nav-profile-name, .nav-profile-chevron { display: none !important; }
  .nav-profile { padding: 4px; border: none; background: transparent; }
  .nav-profile:hover { background: transparent; border: none; }

  .hero { padding: 36px 20px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { font-size: clamp(32px, 8.5vw, 48px); margin-bottom: 14px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; max-width: 100%; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; min-width: 0; font-size: 14px; padding: 0 16px; }
  .hero-trust { gap: 20px; margin-top: 28px; }
  .trust-text { font-size: 11px; }
  .trust-icon { width: 30px; height: 30px; flex-shrink: 0; }
  .hero-visual-wrap { justify-content: center; margin-top: 20px; }
  .hero-model { max-width: 100%; border-radius: 20px; }

  section.section { padding: 60px 20px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(28px, 7.5vw, 40px); }
  .section-head .lead { font-size: 15px; }
  .steps-row { grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; border-radius: var(--radius-lg); }

  .analysis-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .analysis-card { aspect-ratio: 3/4; }
  .analysis-card-title { font-size: 18px; }
  .analysis-card-desc { font-size: 12px; }
  .analysis-card-content { padding: 16px; }
  .analysis-card-arrow { top: 14px; right: 14px; width: 30px; height: 30px; }

  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 24px; }
  .testimonial-quote { font-size: 15px; }

  .trust-bar { padding: 32px 20px; }
  .trust-bar-inner { grid-template-columns: 1fr; gap: 20px; }

  .plans-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card { padding: 32px 24px 28px; }
  .plan-credits-num { font-size: 44px; }

  /* Bug 2: iOS Safari faz zoom em inputs com font-size < 16px */
  .input { font-size: 16px; }

  /* Bug 3: auth min-height usava nav=80px mas mobile nav tem 60px */
  .auth-wrap { padding: 40px 16px 20px; align-items: flex-start; min-height: calc(100vh - 60px); }
  .auth-card { padding: 36px 24px; border-radius: var(--radius-lg); }
  .auth-title { font-size: 28px; }

  .dash { padding: 36px 20px 80px; }
  .dash-greeting { flex-direction: column; gap: 16px; }
  .dash-greeting-text h1 { font-size: clamp(28px, 7.5vw, 40px); }
  .dash-stats { grid-template-columns: 1fr; gap: 12px; }
  .dash-new-cta { margin-bottom: 48px; }
  .dash-new-cta .btn { width: 100%; }

  .action-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .action-bar .btn { width: 100%; }

  .result { padding: 40px 20px 60px; }
  .result-head h1 { font-size: clamp(24px, 6.5vw, 36px); }
  .result-actions { flex-direction: column; gap: 10px; }
  .result-actions .btn { width: 100%; }
  /* Bug 4: profile hero sem layout de coluna no mobile */
  .profile-hero { flex-direction: column; text-align: center; align-items: center; padding: 28px 20px; gap: 20px; }
  .profile-stats-row { justify-content: center; }
  .profile-field-row { flex-direction: column; }
  .btn-save { width: 100%; }

  /* Bug 5: 3 células em grid 2 colunas deixava Saldo sozinho — muda para 1 coluna */
  .result-card-meta { grid-template-columns: 1fr; }
  .meta-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .meta-cell:last-child { border-bottom: none; }

  .create-page { padding: 20px 16px 120px; }
  .create-header { margin-bottom: 28px; gap: 10px; }
  .create-header-title { font-size: 18px; }
  .create-credits-badge { font-size: 11px; padding: 5px 11px; }
  #view-create .dash-analysis-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #view-create .dash-type-body { padding: 12px 14px 14px; }
  #view-create .dash-type-title { font-size: 16px; }
  #view-create .dash-type-desc { font-size: 11px; }
  .create-action-bar { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: none; border-right: none; border-bottom: none; }

  .loading-pill { min-width: unset; max-width: calc(100vw - 32px); bottom: 16px; }
  .chip { font-size: 12px; padding: 7px 14px; }
  .chip-group-label { font-size: 11px; }

  /* Bug 6: upload zone muito alta e com padding excessivo no mobile */
  .upload-zone { padding: 40px 20px; min-height: 200px; }
  .upload-text { font-size: 18px; }

  /* Bug 7: margem entre steps muito grande no mobile */
  .step { margin-bottom: 48px; }

  /* Bug 8: painéis com padding excessivo no mobile */
  .result-analysis-wrap { padding: 24px 20px; margin-top: 24px; }
  .generation-error { padding: 28px 20px; }
  .profile-section { padding: 22px 18px; }
  .txn-item { flex-wrap: wrap; gap: 4px; }
  .txn-date { margin: 0 8px; }
}

/* === Telefones pequenos (≤ 390px) === */
@media (max-width: 390px) {
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-wrap: wrap; }
  .hero-cta .btn { flex: unset; width: 100%; }
  .analysis-grid { grid-template-columns: 1fr; }
  #view-create .dash-analysis-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   TEMAS DE COR
   Use: document.documentElement.setAttribute('data-theme', 'rose')
   ============================================================ */

/* --- Rosa (blush/feminine) --- */
[data-theme="rose"] {
  --bg: #FAF4F6;
  --bg-warm: #F5EAEe;
  --bg-deep: #EFDCe2;
  --champagne: #C87B8E;
  --champagne-light: #E8A8B8;
  --champagne-deep: #9E506A;
  --lavender: #D4A8C0;
  --lavender-light: #F0D8E8;
  --lavender-deep: #B07898;
  --grad-champagne: linear-gradient(135deg, #E8A8B8 0%, #C87B8E 50%, #9E506A 100%);
  --grad-lavender: linear-gradient(135deg, #F0D8E8 0%, #D4A8C0 100%);
  --grad-mix: linear-gradient(135deg, #C87B8E 0%, #D4A8C0 100%);
  --grad-luxe: linear-gradient(135deg, #9E506A 0%, #C87B8E 30%, #D4A8C0 70%, #B07898 100%);
  --grad-aura: linear-gradient(135deg, #F8E0E8 0%, #F0D0E8 50%, #E8D8F0 100%);
  --shadow-glow: 0 16px 48px rgba(200, 123, 142, 0.25);
  --cream: #F5EAEe;
}

/* --- Oceano (cool blue) --- */
[data-theme="ocean"] {
  --bg: #F4F7FC;
  --bg-warm: #EBF0F8;
  --bg-deep: #E0E9F5;
  --champagne: #4A90C4;
  --champagne-light: #7AB5E0;
  --champagne-deep: #2C6FAA;
  --lavender: #5AA8D4;
  --lavender-light: #A0CCEE;
  --lavender-deep: #2A7098;
  --grad-champagne: linear-gradient(135deg, #7AB5E0 0%, #4A90C4 50%, #2C6FAA 100%);
  --grad-lavender: linear-gradient(135deg, #A0CCEE 0%, #5AA8D4 100%);
  --grad-mix: linear-gradient(135deg, #4A90C4 0%, #5AA8D4 100%);
  --grad-luxe: linear-gradient(135deg, #2C6FAA 0%, #4A90C4 30%, #5AA8D4 70%, #2A7098 100%);
  --grad-aura: linear-gradient(135deg, #DCE8F8 0%, #D0E8F5 50%, #D8E8FF 100%);
  --shadow-glow: 0 16px 48px rgba(74, 144, 196, 0.25);
  --cream: #EBF0F8;
}
