/* === PetPortrait AI — Styles === */
:root {
  --bg: #fffbf5;
  --bg2: #fff5e6;
  --surface: #ffffff;
  --ink: #1a1208;
  --muted: #7c6b5a;
  --rule: #f0e4d3;
  --accent: #f97316;
  --accent2: #8b5cf6;
  --accent-dark: #ea580c;
  --accent2-dark: #7c3aed;
  --ok: #16a34a;
  --radius: 14px;
  --max: 1100px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Outfit', var(--font);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration: none; }

/* Nav */
#nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 2rem; background: rgba(255,251,245,0.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule);
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600 !important; }
.btn-nav:hover { background: var(--accent-dark); color: #fff !important; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
  max-width: var(--max); margin: 0 auto; padding: 4rem 2rem 3rem;
  align-items: center;
}
.badge {
  display: inline-block; background: var(--bg2); border: 1px solid var(--rule);
  padding: 0.3rem 0.8rem; border-radius: 99px; font-size: 0.82rem; font-weight: 600;
  color: var(--accent-dark); margin-bottom: 1.2rem;
}
.hero h1 { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.grad { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 1.12rem; color: var(--muted); max-width: 32rem; margin-bottom: 1.5rem; }
.hero .sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { padding: 0.7rem 1.5rem; border-radius: 10px; border: 1px solid var(--rule); font-weight: 600; background: transparent; cursor: pointer; }
.btn-ghost:hover { background: var(--bg2); }
.btn-large { width: 100%; padding: 1rem; font-size: 1.1rem; margin-top: 1rem; }

.hero-visual { }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.photo-card {
  aspect-ratio: 1; border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: transform 0.3s;
}
.photo-card:hover { transform: scale(1.05); }
.photo-card:nth-child(1) { transform: rotate(-3deg); }
.photo-card:nth-child(4) { transform: rotate(3deg); }

/* === Auth tabs & email form === */
.auth-tabs {
  display: flex; gap: 0; margin: 1.2rem 0 1rem;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--rule);
}
.auth-tab {
  flex: 1; padding: 0.6rem; border: none; background: var(--bg2);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.auth-tab.active {
  background: var(--accent); color: #fff;
}
.auth-form-wrap { display: flex; flex-direction: column; gap: 0.6rem; }
.auth-field input {
  width: 100%; padding: 0.7rem 0.9rem; border: 2px solid var(--rule);
  border-radius: 10px; font-size: 0.95rem; font-family: var(--font);
  transition: border-color 0.2s; background: var(--surface);
}
.auth-field input:focus {
  outline: none; border-color: var(--accent);
}
.auth-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
  padding: 0.5rem 0.8rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
}
.auth-submit-btn {
  width: 100%; padding: 0.75rem; border: none; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.auth-submit-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.auth-divider {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 1rem 0; color: var(--muted); font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--rule);
}

/* === Video showcase (upgraded) === */
.video-showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

/* --- Header --- */
.showcase-header { text-align: center; margin-bottom: 1.8rem; }
.showcase-tag {
  display: inline-block; background: var(--bg2); border: 1px solid var(--rule);
  padding: 0.3rem 0.9rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 0.6rem;
}
.showcase-title { font-family: var(--font-head); font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.showcase-sub { color: var(--muted); font-size: 1rem; margin-top: 0.3rem; }

/* --- Frame with dual glow + particles --- */
.video-frame {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.video-glow {
  position: absolute; inset: -4px; border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent2), #3b82f6);
  background-size: 200% 200%;
  animation: glowPulse 6s ease-in-out infinite;
  filter: blur(12px); opacity: 0.5; z-index: 0;
}
.video-glow-2 {
  position: absolute; inset: -12px; border-radius: 28px;
  background: linear-gradient(225deg, #ec4899, var(--accent2), #06b6d4);
  background-size: 200% 200%;
  animation: glowPulse 8s ease-in-out infinite reverse;
  filter: blur(20px); opacity: 0.3; z-index: 0;
}
@keyframes glowPulse {
  0%, 100% { background-position: 0% 50%; opacity: 0.4; }
  50% { background-position: 100% 50%; opacity: 0.65; }
}

/* --- Floating particles --- */
.video-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle {
  position: absolute; bottom: 0; border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-300px) scale(1); opacity: 0; }
}

/* --- Video wrapper --- */
.video-wrapper {
  position: relative; border-radius: 18px; overflow: hidden; z-index: 1;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  aspect-ratio: 16/9; background: #1a1208;
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Overlay --- */
.video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.5) 100%);
  transition: opacity 0.5s ease;
  cursor: pointer;
}
.video-overlay.hidden { opacity: 0; pointer-events: none; }

/* --- Ripple rings --- */
.ripple-ring {
  position: absolute; top: 50%; left: 50%;
  width: 80px; height: 80px; margin-top: -40px; margin-left: -40px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.4);
  z-index: 2; pointer-events: none; opacity: 0;
}
.ripple-ring.active { animation: rippleExpand 2.5s ease-out infinite; }
.ripple-ring.active.delayed { animation-delay: 1.25s; }
@keyframes rippleExpand {
  0% { transform: scale(0.9); opacity: 0.7; border-width: 3px; }
  100% { transform: scale(2.5); opacity: 0; border-width: 0; }
}

/* --- Play button --- */
.play-btn-wrap { position: relative; }
.play-btn {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  animation: playBounce 2s ease-in-out infinite;
  box-shadow: 0 4px 30px rgba(255,255,255,0.15);
}
.play-btn:hover {
  transform: scale(1.15);
  background: rgba(255,255,255,0.35);
  border-color: white;
  box-shadow: 0 4px 40px rgba(255,255,255,0.35);
}
@keyframes playBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* --- Caption --- */
.video-caption {
  color: white; font-size: 0.95rem; font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center; padding: 0 1rem;
}

/* --- Sound hint --- */
.sound-hint {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(6px);
  padding: 0.3rem 0.8rem; border-radius: 99px;
  color: rgba(255,255,255,0.9); font-size: 0.78rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15);
  animation: hintPulse 2s ease-in-out infinite;
}
.sound-hint.hidden { display: none; }
@keyframes hintPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* --- Sound toggle button --- */
.sound-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.sound-btn:hover { background: rgba(0,0,0,0.6); transform: scale(1.1); }

/* --- Progress bar --- */
.video-progress {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  height: 4px; background: rgba(0,0,0,0.3);
  opacity: 0; transition: opacity 0.3s ease;
}
.video-wrapper:hover .video-progress { opacity: 1; }
.video-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 0 2px 2px 0;
  transition: width 0.15s linear;
  box-shadow: 0 0 8px rgba(249,115,22,0.6);
}

/* --- Features --- */
.video-features {
  display: flex; gap: 2rem; justify-content: center;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.video-features span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

@media (max-width: 768px) {
  .video-showcase { padding: 1.5rem 1rem 2rem; }
  .showcase-title { font-size: 1.5rem; }
  .play-btn { width: 60px; height: 60px; }
  .video-caption { font-size: 0.82rem; }
  .sound-hint { font-size: 0.7rem; }
  .video-features { gap: 1rem; }
  .video-features span { font-size: 0.8rem; }
}

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 3.5rem 2rem; }
.section.alt { background: var(--bg2); max-width: none; }
.section h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.3rem; }
.section-sub { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.step { text-align: center; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* Styles grid */
.styles-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; max-width: var(--max); margin: 0 auto; }
.style-card {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center;
  border: 1px solid var(--rule); transition: transform 0.2s, box-shadow 0.2s;
}
.style-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.style-card span { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.style-card h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 0.2rem; }
.style-card p { font-size: 0.82rem; color: var(--muted); }

/* Owner+Pet banner */
.owner-pet-banner {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(236,72,153,0.08));
  border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius); padding: 2.5rem;
}
.banner-badge {
  display: inline-block; background: var(--accent2); color: #fff;
  padding: 0.2rem 0.8rem; border-radius: 99px; font-size: 0.78rem; font-weight: 700; margin-bottom: 0.8rem;
}
.banner-text h2 { text-align: left; margin-bottom: 0.8rem; }
.banner-text p { color: var(--muted); margin-bottom: 1.2rem; }
.banner-visual { display: flex; justify-content: center; }
.duo-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem; text-align: center;
  box-shadow: 0 8px 30px rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.2);
}
.duo-card p { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* Plan selector */
.plan-selector {
  display: flex; gap: 1rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap;
}
.plan-btn {
  background: var(--surface); border: 2px solid var(--rule); border-radius: var(--radius);
  padding: 1.2rem 2rem; cursor: pointer; text-align: center; transition: all 0.2s;
  min-width: 160px;
}
.plan-btn:hover { border-color: var(--accent); }
.plan-btn.active { border-color: var(--accent); background: rgba(249,115,22,0.05); }
.plan-btn.plan-premium.active { border-color: var(--accent2); background: rgba(139,92,246,0.05); }
.plan-btn h4 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 0.3rem; }
.plan-price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.plan-premium .plan-price { color: var(--accent2); }
.plan-btn small { color: var(--muted); font-size: 0.82rem; }

/* Upload */
.upload-container { max-width: 640px; margin: 0 auto; }
.upload-zone {
  border: 2px dashed var(--rule); border-radius: var(--radius); padding: 3rem 2rem;
  text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: var(--bg2); }
.upload-zone.owner-zone:hover, .upload-zone.owner-zone.dragover { border-color: var(--accent2); }
.upload-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.upload-zone h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.3rem; }
.upload-zone p { color: var(--muted); font-size: 0.9rem; }
.upload-hint { font-size: 0.8rem !important; color: var(--muted); margin-top: 0.5rem; }

.photo-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.photo-preview .thumb {
  width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--rule);
}
.photo-preview .thumb-wrap { position: relative; }
.photo-preview .remove {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  background: var(--accent); color: #fff; border-radius: 50%; font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff;
}
.upload-progress { text-align: center; padding: 2rem; }
.spinner {
  width: 36px; height: 36px; border: 3px solid var(--rule); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem;
}
.spinner.big { width: 48px; height: 48px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.continue-section { text-align: center; margin-top: 1.5rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.price-card {
  background: var(--surface); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--rule); position: relative;
}
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 8px 30px rgba(249,115,22,0.15); }
.price-card.premium { border: 2px solid var(--accent2); box-shadow: 0 8px 30px rgba(139,92,246,0.15); }
.popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 0.2rem 1rem; border-radius: 99px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.price-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--muted); margin-bottom: 0.5rem; }
.price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; }
.price-card.premium .price { color: var(--accent2); }
.price-card ul { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.price-card ul li { padding: 0.3rem 0; font-size: 0.9rem; border-bottom: 1px solid var(--rule); }
.price-card .btn-primary { width: 100%; }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq-list summary { font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.faq-list summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.modal-content {
  background: var(--surface); border-radius: var(--radius); padding: 2.5rem;
  max-width: 700px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; text-align: center;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.progress-bar { width: 100%; height: 8px; background: var(--rule); border-radius: 4px; margin: 1.5rem 0; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 4px; width: 0%; transition: width 0.5s; }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; margin: 1.5rem 0; }
.result-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.result-item img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: pointer; transition: transform 0.2s; }
.result-item img:hover { transform: scale(1.05); }
.result-label {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6);
  color: #fff; font-size: 0.72rem; padding: 0.3rem; text-align: center;
}

/* Footer */
footer { background: var(--ink); color: #c4b5a0; padding: 3rem 2rem 1.5rem; }
.footer-content { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 0.88rem; margin-top: 0.5rem; max-width: 24rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.88rem; color: #c4b5a0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: var(--max); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid #3a2f25; }
.footer-bottom p { font-size: 0.8rem; color: #8a7a68; }

/* === Auth / User Menu === */
.google-login-btn {
  display: inline-flex; align-items: center; gap: 2px;
  background: #fff; color: #3c4043 !important;
  border: 1px solid #dadce0; border-radius: 8px;
  padding: 0.45rem 0.9rem; font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; white-space: nowrap;
}
.google-login-btn:hover { background: #f8f9fa; border-color: #bdc1c6; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  padding: 0.3rem 0.5rem; border-radius: 8px; transition: background 0.2s;
}
.user-btn:hover { background: rgba(0,0,0,0.05); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.nav-avatar-text {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700;
}
.user-name { font-size: 0.85rem; font-weight: 500; color: var(--ink); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { font-size: 0.7rem; color: var(--muted); }

.user-dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 0.4rem;
  background: #fff; border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 220px;
  padding: 0.5rem 0; z-index: 200;
  animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem; }
.dropdown-header .nav-avatar { width: 36px; height: 36px; }
.dropdown-header .nav-avatar-text { width: 36px; height: 36px; font-size: 0.95rem; }
.dropdown-name { font-weight: 600; font-size: 0.9rem; }
.dropdown-email { font-size: 0.78rem; color: var(--muted); }
.user-dropdown hr { border: none; border-top: 1px solid var(--rule); margin: 0.3rem 0; }
.dropdown-item { display: block; padding: 0.6rem 1rem; font-size: 0.88rem; color: var(--ink) !important; }
.dropdown-item:hover { background: var(--bg2); }
.orders-section { max-height: 240px; overflow-y: auto; }
.order-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; text-decoration: none; color: var(--ink); transition: 0.15s; }
.order-item:hover { background: var(--bg2); }

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

/* === Login Modal === */
.login-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.login-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); }
.login-modal-box {
  position: relative; background: #fff; border-radius: 20px; padding: 2.5rem 2rem;
  width: 360px; max-width: 90vw; text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: modalIn 0.25s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.login-modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: none; border: none; font-size: 1.2rem; color: #94a3b8;
  cursor: pointer; width: 32px; height: 32px; border-radius: 8px; transition: 0.2s;
}
.login-modal-close:hover { background: #f1f5f9; color: #ef4444; }
.login-modal-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.login-modal-box h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem; }
.login-modal-box > p { color: #64748b; font-size: 0.9rem; margin-bottom: 1.5rem; }
.login-modal-google-btn { justify-content: center; width: 100%; padding: 0.75rem 1rem; font-size: 0.95rem; }
.login-modal-note { font-size: 0.75rem; color: #94a3b8; margin-top: 1rem; }
.login-modal-note a { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .trust { justify-content: center; }
  .steps, .styles-grid, .pricing-grid { grid-template-columns: 1fr; }
  .styles-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links a:not(.btn-nav):not(.google-login-btn) { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .results-grid { grid-template-columns: repeat(2,1fr); }
  .owner-pet-banner { grid-template-columns: 1fr; text-align: center; }
  .banner-text h2 { text-align: center; }
  .plan-selector { flex-direction: column; align-items: center; }
  .plan-btn { width: 100%; max-width: 320px; }
}
