/* ============================================
   RoomEdit Pro — AI-Powered Design Studio for Professionals
   ============================================ */

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

:root {
  --bg-primary: #fefcfa;
  --bg-secondary: #f7f4f0;
  --bg-tertiary: #f0ece7;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.10);
  --accent: #b07d8e;
  --accent-light: #c99aaa;
  --accent-dark: #8e5f6e;
  --accent-glow: rgba(176, 125, 142, 0.10);
  --accent-glow-strong: rgba(176, 125, 142, 0.20);
  --text-primary: #1a1a1a;
  --text-secondary: rgba(26, 26, 26, 0.58);
  --text-tertiary: rgba(26, 26, 26, 0.35);
  --success: #5cb97a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.20); }

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition-med);
}

.nav.scrolled {
  background: rgba(254, 252, 250, 0.88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: white !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(176, 125, 142, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.18);
}

.hero-visual {
  position: relative;
}

.hero-mockup {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  aspect-ratio: 4/3;
  background: var(--bg-secondary);
}

.hero-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mockup-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.hero-mockup-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.hero-mockup-badge svg {
  color: var(--accent);
}

.hero-float-card {
  position: absolute;
  top: -20px;
  right: -30px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.hero-float-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.hero-float-card .stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

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

/* --- Footer --- */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-logo {
  font-size: 16px;
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-med);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--success);
  font-size: 16px;
}

/* ============================================
   Design Studio Section
   ============================================ */

.studio-section {
  padding: 100px 0 80px;
  background: var(--bg-secondary);
  position: relative;
}

.studio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.studio-section .section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.studio-section .section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.studio-section .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Studio Room Upload */
.studio-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-med);
  background: var(--bg-card);
  position: relative;
}

.studio-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.studio-upload-area.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
  transform: scale(1.01);
}

.studio-upload-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.studio-upload-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.studio-upload-hint {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Current Room Display */
.current-room {
  text-align: center;
  margin-bottom: 24px;
}

.current-room img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  margin: 0 auto;
  object-fit: contain;
  max-height: none;
}

.current-room-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-weight: 500;
}

/* Design Timeline */
.design-timeline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  margin: 0 0 32px;
  align-items: center;
  scrollbar-width: thin;
}

.design-timeline::-webkit-scrollbar { height: 4px; }
.design-timeline::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 2px; }

.timeline-entry {
  flex-shrink: 0;
  width: 120px;
  text-align: center;
  position: relative;
}

.timeline-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.timeline-thumb:hover {
  border-color: var(--accent-light);
}

.timeline-entry.current .timeline-thumb {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow-strong);
}

.timeline-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.3;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  padding: 0 2px;
}

.timeline-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e74c3c;
  color: white;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
  z-index: 2;
}

.timeline-entry:hover .timeline-remove {
  opacity: 1;
}

/* Change Type Buttons */
.change-type-heading {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.studio-tools-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(139,90,43,0.15);
}

.landing-tools-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px auto 8px;
  max-width: 720px;
}

.change-type-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.change-type-btn {
  padding: 12px 20px;
  border: 2px solid rgba(176,125,142,0.2);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.change-type-btn:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.change-type-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(160,112,96,0.3);
  transform: translateY(-1px);
}

/* Change Panels */
.change-panel {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  animation: fadeInUp 0.3s ease;
}

.change-panel.active {
  display: block;
}

/* Form Fields */
.studio-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-top: 16px;
}

.studio-field-label:first-child {
  margin-top: 0;
}

.studio-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(176,125,142,0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
}

.studio-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.studio-input::placeholder {
  color: var(--text-tertiary);
}

.studio-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(176,125,142,0.2);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.studio-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}



.prompt-hint {
  font-size: 13.5px;
  color: #4a5568;
  margin-top: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #ebf5ff, #f0f7ff);
  border: 1.5px solid #b3d4fc;
  border-radius: 10px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
}
.prompt-hint em {
  color: #2563eb;
  font-style: italic;
  font-weight: 600;
}
.prompt-hint strong {
  color: #1e40af;
}
.product-link-help {
  font-size: 11px;
  color: #888;
  font-style: italic;
  margin-top: 4px;
  padding: 2px 0;
  line-height: 1.4;
}

/* Manufacturer product link */
.mfr-product-link {
  display: block;
  background: #2563eb;
  color: #fff !important;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.mfr-product-link:hover { background: #1d4ed8; }

.product-link-note {
  font-size: 12px;
  color: #666;
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  line-height: 1.5;
}

.product-match-note {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
  padding: 0 2px;
}

.studio-textarea::placeholder {
  color: var(--text-tertiary);
}

/* Price Point Control */
.price-point-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.price-point-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}
.price-point-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.price-point-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.price-point-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.price-point-input {
  width: 90px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  outline: none;
  background: #fff;
}
.price-point-input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}
.price-point-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-left: 4px;
}

/* Item Upload (small) */
.studio-item-upload {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: rgba(255,255,255,0.3);
}

.studio-item-upload:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.studio-item-upload.drag-over {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
}

.studio-item-upload.has-image {
  padding: 8px;
  border-style: solid;
  border-color: var(--accent-light);
}

.studio-item-preview {
  max-width: 200px;
  max-height: 160px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  margin: 0 auto;
}

.studio-item-upload-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.studio-item-upload-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
  opacity: 0.5;
}

/* Placement Suggestions */
.suggest-placement-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent-glow-strong), var(--accent-glow));
  border: 1px solid rgba(176, 125, 142, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font);
  margin-top: 6px;
}

.suggest-placement-btn:hover {
  background: linear-gradient(135deg, rgba(176, 125, 142, 0.28), rgba(176, 125, 142, 0.18));
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.suggest-placement-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.suggest-placement-btn .suggest-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(176, 125, 142, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.suggest-placement-btn.loading .suggest-spinner {
  display: inline-block;
}

.suggest-placement-btn.loading .suggest-icon {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.placement-suggestions {
  margin-top: 12px;
  display: none;
}

.placement-suggestions.active {
  display: block;
}

.placement-suggestions-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.suggestion-card {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 8px;
}

.suggestion-card:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.suggestion-card.selected {
  border-color: var(--accent);
  background: var(--accent-glow-strong);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.suggestion-card-location {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.suggestion-card-reason {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Dimensions */
.studio-dimensions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.dim-field {
  flex: 1;
  min-width: 80px;
}

.dim-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dim-field input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(176,125,142,0.2);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.dim-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.studio-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

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

/* Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition-fast);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.color-swatch:hover {
  transform: scale(1.15);
  border-color: var(--accent);
}

.color-swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--accent);
}

.color-swatch-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition-fast);
}

.color-swatch:hover .color-swatch-label {
  opacity: 1;
}

/* Flooring Options */
.flooring-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.flooring-opt {
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(176,125,142,0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.flooring-opt:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text-primary);
}

.flooring-opt.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 700;
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(160,112,96,0.35);
}
.flooring-opt.selected::after {
  content: ' ✓';
  font-weight: 700;
}
.floor-selection-confirm {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  min-height: 20px;
}

/* Style Options (Complete Redesign) */
.style-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.style-opt {
  text-align: center;
  padding: 14px 8px;
  border: 2px solid rgba(160,112,96,0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}
.style-opt:hover {
  border-color: var(--accent);
  background: rgba(160,112,96,0.05);
}
.style-opt.selected {
  border-color: var(--accent);
  background: rgba(160,112,96,0.12);
}
.style-opt-icon {
  font-size: 24px;
  margin-bottom: 4px;
}
.style-opt-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* Room Dimensions Input */
.room-dims {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.room-dims .dim-field {
  flex: 1;
}
.room-dims .dim-field label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.room-dims .dim-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(160,112,96,0.3);
  border-radius: 8px;
  font-size: 13px;
  background: white;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .style-options { grid-template-columns: repeat(3, 1fr); }
  .room-dims { flex-direction: column; }
}

/* Manufacturers */
.btn-manufacturers {
  margin-top: 16px;
  background: white;
  border: 2px solid rgba(160,112,96,0.3);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}
.btn-manufacturers:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.manufacturers-panel {
  max-width: 720px;
  margin: 20px auto;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}
.mfr-header h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: #333;
}
.mfr-header p {
  margin: 0 0 20px 0;
  font-size: 13px;
  color: #888;
}
.mfr-list {
  margin-bottom: 16px;
}
.mfr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #faf5f0;
  border-radius: 10px;
  margin-bottom: 8px;
}
.mfr-item-info {
  flex: 1;
}
.mfr-item-name {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.mfr-item-url {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.mfr-item-url:hover { text-decoration: underline; }
.mfr-item-cat {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}
.mfr-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.mfr-item-remove:hover { color: #e74c3c; }
.mfr-add-form {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}
.btn-add-mfr {
  margin-top: 10px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-add-mfr:hover { opacity: 0.9; }

/* Designer Notes Area */
.designer-notes-area {
  margin-top: 20px;
}

/* Manufacturer Direction Section */
.mfr-direction-area {
  display: none;
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.mfr-direction-area.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}
.mfr-direction-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mfr-direction-heading span {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.78rem;
}
.mfr-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 0.88rem;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}
.mfr-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.mfr-per-item-rows {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mfr-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mfr-item-row select {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 0.84rem;
  cursor: pointer;
}
.mfr-item-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.mfr-item-row .mfr-from-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}
.mfr-remove-row {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.mfr-remove-row:hover {
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}
.mfr-add-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px dashed var(--border-subtle);
  color: var(--accent);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.mfr-add-row-btn:hover {
  background: var(--accent-glow);
  border-color: var(--accent-light);
}
.mfr-fallback-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mfr-fallback-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* Apply Button */
.btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-med);
  margin-top: 20px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(176,125,142,0.3);
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,125,142,0.4);
}

.btn-apply:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading Overlay */
.studio-loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.studio-loading.active {
  display: flex;
}

.loading-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #f0ebe6;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-msg {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  animation: loadPulse 2s ease-in-out infinite;
}

.loading-hint {
  font-size: 0.85rem;
  color: #999;
  margin-top: -8px;
}

@keyframes loadPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Review Section */
.change-review {
  display: none;
  margin: 32px 0;
  animation: fadeInUp 0.5s ease;
}

.change-review.active {
  display: block;
}

.review-heading {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.review-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: start;
}

.review-side {
  text-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.review-side img {
  width: 100%;
  display: block;
  object-fit: contain;
  height: auto;
  max-height: none;
}

.review-side-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 2;
}

.review-side-label.before-label {
  background: rgba(0,0,0,0.6);
  color: white;
}

.review-side-label.after-label {
  background: var(--accent);
  color: white;
}

/* Scale Check Card */
.scale-check-card {
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.scale-check-card.scale-good {
  background: rgba(92, 185, 122, 0.08);
  border: 1px solid rgba(92, 185, 122, 0.25);
  color: #2d6a3f;
}

.scale-check-card.scale-concern {
  background: rgba(220, 160, 50, 0.08);
  border: 1px solid rgba(220, 160, 50, 0.25);
  color: #7a5b1f;
}

/* Review Action Buttons */
.review-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-keep {
  background: #27ae60;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-keep:hover {
  background: #219a52;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-discard {
  background: #e74c3c;
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-discard:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.refine-section {
  margin-top: 16px;
  padding: 14px;
  background: #f0f7ff;
  border-radius: var(--radius-md);
  border: 1px solid #d0e3f7;
}
.refine-textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
  font-family: var(--font);
  box-sizing: border-box;
  margin-bottom: 8px;
}
.refine-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-refine {
  display: block;
  width: 100%;
  padding: 12px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-refine:hover {
  background: #d97706;
}

/* Product Suggestions */
.btn-products {
  background: linear-gradient(135deg, #a07060, #c49080);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  font-family: var(--font);
}
.btn-products:hover {
  transform: scale(1.02);
}

.shop-for-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.shop-for-label {
  font-weight: 700;
  font-size: 15px;
  color: #333;
}
.shop-for-input {
  padding: 10px 16px;
  border: 2px solid #e0d5cc;
  border-radius: 10px;
  font-size: 14px;
  width: 260px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.shop-for-input:focus {
  border-color: #a07060;
}
.btn-rating {
  background: linear-gradient(135deg, #f9d423, #ff4e50);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-rating:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 78, 80, 0.3);
}
.rating-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  text-align: left;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.rating-score {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}
.rating-score.high { color: #27ae60; }
.rating-score.medium { color: #f39c12; }
.rating-score.low { color: #e74c3c; }
.rating-label {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}
.rating-category {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0ebe6;
}
.rating-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.rating-category h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #333;
}
.rating-category .cat-score {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}
.rating-category p {
  font-size: 13px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.rating-suggestions {
  background: #f8f4f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.rating-suggestions h4 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #a07060;
}
.rating-suggestions ul {
  margin: 0;
  padding-left: 20px;
}
.rating-suggestions li {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* What's In This Room */
.room-items-panel {
  margin-top: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
}
.room-items-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.room-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.room-item-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}
.room-item-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.room-item-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.room-item-info {
  flex: 1;
  min-width: 0;
}
.room-item-name {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 2px;
}
.room-item-brand {
  font-size: 13px;
  color: #6c63ff;
  font-weight: 600;
  margin-bottom: 4px;
}
.room-item-brand.preferred {
  color: #10b981;
}
.room-item-brand .preferred-badge {
  background: #10b981;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.room-item-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}
/* Top match product inline */
.room-item-match {
  margin-top: 10px;
  background: #faf8f6;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #eee;
}
.room-item-match img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
}
.room-item-match-info {
  flex: 1;
  min-width: 0;
}
.room-item-match-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.room-item-match-price {
  font-size: 14px;
  font-weight: 700;
  color: #a07060;
margin-top: 2px;
}
.room-item-match-source {
  font-size: 11px;
  color: #999;
}
.room-item-match-link {
  display: inline-block;
  background: linear-gradient(135deg, #a07060, #c09585);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.room-item-match-link:hover {
  background: linear-gradient(135deg, #8e5f50, #a07060);
}

.room-item-loading {
  margin-top: 8px;
  font-size: 11px;
  color: #bbb;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Price range indicator */
.price-range-indicator {
  background: #f0f7ff;
  border: 1px solid #b3d4fc;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #1a5fa8;
  text-align: center;
  margin-bottom: 16px;
}

/* Real product results (SerpAPI) */
.serp-item-group {
  margin-top: 28px;
  text-align: left;
}
.serp-item-group-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.serp-item-group-desc {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
  line-height: 1.4;
}
.serp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.serp-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.serp-card:hover {
  border-color: rgba(160,112,96,0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
.serp-card-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #faf8f6;
  padding: 12px;
}
.serp-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.serp-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.serp-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.serp-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #a07060;
}
.serp-card-source {
  font-size: 11px;
  color: #999;
  text-align: right;
  max-width: 50%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.serp-card-rating {
  font-size: 12px;
  color: #d4a017;
}
.serp-card-rating .serp-count {
  color: #aaa;
  font-size: 11px;
}
.serp-card-actions {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.serp-card-disclaimer {
  font-size: 11px;
  color: #999;
  line-height: 1.4;
  padding: 0 16px 12px;
  margin-top: -4px;
}
.serp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  line-height: 1.3;
  font-family: var(--font);
}
.serp-btn-primary {
  background: linear-gradient(135deg, #a07060, #c09585);
  color: white;
}
.serp-btn-primary:hover {
  background: linear-gradient(135deg, #8e5f50, #a07060);
}
.serp-btn-secondary {
  background: #f0ebe6;
  color: #a07060;
  border: 1px solid rgba(160,112,96,0.15);
}
.serp-btn-secondary:hover {
  background: #e8e0d8;
  color: #8e5f50;
}
.serp-btn-loading {
  background: #f5f0eb;
  color: #bbb;
  cursor: default;
  border: 1px solid rgba(0,0,0,0.04);
}
.serp-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #ddd;
  border-top-color: #a07060;
  border-radius: 50%;
  animation: serp-spin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes serp-spin { to { transform: rotate(360deg); } }

/* Skeleton loading for real products */
.serp-skeleton-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
}
.serp-skeleton-img {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, #f0ebe6 25%, #f8f4f0 50%, #f0ebe6 75%);
  background-size: 200% 100%;
  animation: serp-shimmer 1.5s infinite;
}
.serp-skeleton-body { padding: 14px 16px; }
.serp-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0ebe6 25%, #f8f4f0 50%, #f0ebe6 75%);
  background-size: 200% 100%;
  animation: serp-shimmer 1.5s infinite;
  margin-bottom: 10px;
}
.serp-skeleton-line:nth-child(2) { width: 60%; }
.serp-skeleton-line:nth-child(3) { width: 40%; height: 20px; }
@keyframes serp-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Start Over */
.btn-start-over {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-tertiary);
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-start-over:hover {
  color: #e74c3c;
  border-color: #e74c3c;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-float-card {
    display: none;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .studio-section {
    padding: 60px 0 50px;
  }

  .review-comparison {
    grid-template-columns: 1fr;
  }

  .change-type-buttons {
    justify-content: center;
  }

  .studio-dimensions {
    flex-direction: column;
  }

  .dim-field {
    min-width: 100%;
  }

  .timeline-entry { width: 90px; }
  .timeline-thumb { width: 90px; height: 60px; }

  .flooring-options {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }

  .product-cards {
    grid-template-columns: 1fr;
  }

  .review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-keep, .btn-discard, .btn-refine {
    justify-content: center;
    text-align: center;
  }

  .change-panel {
    padding: 20px 16px;
  }

  .studio-tools-bar,
  .landing-tools-bar {
    flex-direction: column;
    gap: 6px;
  }

  .studio-tools-bar button,
  .landing-tools-bar button {
    width: 100%;
    text-align: center;
  }

  .manufacturers-panel,
  .floorplan-panel {
    padding: 16px;
    margin: 12px 8px;
  }

  .mfr-add-form input,
  .mfr-add-form button {
    font-size: 14px;
  }

  .guide-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .change-type-heading {
    font-size: 0.9rem;
    margin-top: 24px;
  }

  .change-type-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary, .btn-secondary {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   My Projects
   ============================================ */
.btn-projects {
  margin-top: 16px;
  background: white;
  border: 2px solid rgba(160,112,96,0.3);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}
.btn-projects:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.projects-panel {
  max-width: 720px;
  margin: 20px auto;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.projects-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.projects-topbar h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  flex: 1;
}

.btn-save-project {
  background: var(--accent);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-save-project:hover { opacity: 0.9; }
.btn-save-project:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-new-folder {
  background: #f0ebe6;
  color: #a07060;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-new-folder:hover { background: #e8ddd5; }

/* Save Dialog */
.save-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.2s ease;
}
.save-dialog {
  background: white;
  border-radius: 16px;
  padding: 28px;
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.save-dialog h3 {
  margin: 0 0 18px 0;
  font-size: 18px;
  color: #333;
}
.save-dialog label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  margin-top: 14px;
}
.save-dialog label:first-of-type {
  margin-top: 0;
}
.save-dialog input,
.save-dialog select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(160,112,96,0.25);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.save-dialog input:focus,
.save-dialog select:focus {
  border-color: var(--accent);
}
.save-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.save-dialog-actions button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.save-dialog-actions .btn-save-confirm {
  background: var(--accent);
  color: white;
}
.save-dialog-actions .btn-save-confirm:hover { opacity: 0.9; }
.save-dialog-actions .btn-save-cancel {
  background: #f0ebe6;
  color: #666;
}
.save-dialog-actions .btn-save-cancel:hover { background: #e5ddd5; }

/* Folder sections */
.project-folder-section {
  margin-bottom: 16px;
}
.project-folder-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #faf5f0;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.project-folder-header:hover {
  background: #f0ebe6;
}
.project-folder-arrow {
  font-size: 11px;
  color: #999;
  transition: transform 0.2s;
}
.project-folder-arrow.expanded {
  transform: rotate(90deg);
}
.project-folder-name {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  flex: 1;
}
.project-folder-count {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}
.project-folder-delete {
  background: none;
  border: none;
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.project-folder-delete:hover { color: #e74c3c; }

.project-folder-body {
  padding: 10px 0 0 0;
}

/* Project cards grid */
.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.project-card-item {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.15s;
}
.project-card-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.project-card-item.active-project {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow-strong), 0 4px 16px rgba(0,0,0,0.1);
}
.project-card-thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #f0ebe6;
  display: block;
}
.project-card-info {
  padding: 10px 12px;
}
.project-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card-date {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
}
.project-card-actions {
  display: flex;
  gap: 6px;
}
.project-card-actions button {
  flex: 1;
  padding: 6px 0;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s;
}
.project-card-actions button:hover { opacity: 0.85; }
.project-card-actions .btn-open-project {
  background: var(--accent);
  color: white;
}
.project-card-actions .btn-move-project {
  background: #f0ebe6;
  color: #a07060;
}
.project-card-actions .btn-delete-project {
  background: #fde8e8;
  color: #e74c3c;
}

.projects-empty {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 13px;
}

/* Current project indicator */
.current-project-indicator {
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.current-project-name {
  font-weight: 700;
  color: var(--accent-dark);
}
.unsaved-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #fff3e0;
  color: #e67e22;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .project-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .projects-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .projects-topbar h3 { text-align: center; }
}
@media (max-width: 480px) {
  .project-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* --- Auth Screen --- */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-screen.auth-hidden {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px 40px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.03);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-input-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.auth-input-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.auth-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 4px;
}

.auth-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-toggle {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.auth-toggle a {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-toggle a:hover {
  color: var(--accent-dark);
}

.auth-error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.2);
  color: #c04040;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.auth-error.visible {
  display: block;
}

/* --- User Menu in Nav --- */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-email {
  font-size: 12px;
  color: var(--text-tertiary);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-logout-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.nav-logout-btn:hover {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.18);
  color: var(--text-primary);
}

/* Hide main app content until authenticated */
.app-content-wrapper.app-hidden {
  display: none;
}

/* ==================== USAGE COUNTER & PAYWALL ==================== */
.usage-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.usage-counter .usage-bar {
  width: 48px;
  height: 5px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.usage-counter .usage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width var(--transition-med);
}
.usage-counter.usage-low .usage-bar-fill { background: #e67e22; }
.usage-counter.usage-empty .usage-bar-fill { background: #e74c3c; }

.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}
.paywall-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.paywall-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  transform: translateY(20px);
  transition: transform var(--transition-med);
}
.paywall-overlay.active .paywall-card {
  transform: translateY(0);
}
.paywall-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.paywall-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}
.paywall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: var(--font);
}
.paywall-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(176,125,142,0.35);
}
.paywall-dismiss {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}
.paywall-dismiss:hover { color: var(--text-secondary); }

/* ==================== DESIGN HISTORY MODAL ==================== */
.design-history-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med);
}
.design-history-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.design-history-panel {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 860px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  transform: translateY(20px);
  transition: transform var(--transition-med);
}
.design-history-overlay.active .design-history-panel {
  transform: translateY(0);
}
.dh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dh-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}
.dh-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.dh-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.dh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.dh-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--accent-light);
}
.dh-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.dh-card-info {
  padding: 12px 14px;
}
.dh-card-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dh-card-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}
.dh-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
  font-size: 14px;
}
.dh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.dh-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.dh-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
}

/* ==================== FLOOR PLAN ==================== */
.btn-floorplan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background: white;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-family: var(--font);
}
.btn-floorplan:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-glow);
}
.floorplan-panel {
  max-width: 720px;
  margin: 12px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.fp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.fp-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 16px;
}
.fp-upload-area:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.fp-upload-area .fp-upload-icon { font-size: 28px; margin-bottom: 6px; }
.fp-upload-area .fp-upload-text { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.fp-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.fp-form-row .studio-input { flex: 1; }
.fp-save-btn {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition-fast);
  width: 100%;
}
.fp-save-btn:hover { background: var(--accent-dark); }
.fp-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.fp-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.fp-card:hover { border-color:var(--accent-light); }
.fp-card.fp-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-strong);
}
.fp-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.fp-card-name {
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fp-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.fp-card.fp-selected .fp-card-check { display: flex; }
.fp-active-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.fp-active-indicator.active { display: flex; }
.fp-deselect {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 600;
}
.fp-deselect:hover { color: var(--text-primary); }
.fp-preview-img {
  display: none;
  width: 100%;
  max-width: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
}
.fp-preview-img.active { display: block; }

/* ==================== NAV BUTTONS ROW ==================== */
.nav-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-action-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
  font-family: var(--font);
  white-space: nowrap;
}
.nav-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

