/* ==========================================================================
   AuraDecor - Luxury Home Design & Photorealistic Studio
   Design System & Styling
   ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Luxury Architectural Palette */
  --bg-deep: #080b0f;
  --bg-surface: #0e131b;
  --bg-card: #141b26;
  --bg-card-hover: #1a2332;
  --bg-sidebar: #0b1017;
  --bg-input: #06090d;

  --border-subtle: #1e293b;
  --border-strong: #2c3c54;
  --border-focus: #c5a059;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Accents */
  --gold-primary: #c5a059;
  --gold-hover: #d8b46e;
  --gold-glow: rgba(197, 160, 89, 0.28);
  --ai-purple: #a855f7;
  --ai-purple-glow: rgba(168, 85, 247, 0.35);
  --accent-success: #10b981;
  --accent-danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px var(--gold-glow);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.app-navbar {
  height: 64px;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 50;
}

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

.brand-symbol {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #c5a059, #8c6a2b);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.35);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.12);
  font-weight: 600;
}

.nav-btn-key {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn-key:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: #c084fc;
  color: #fff;
}

.nav-btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.15s ease;
}

.nav-btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* ==========================================================================
   Main Content Layout & Views
   ========================================================================== */

.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view-section {
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

/* ==========================================================================
   VIEW 1: START SCREEN WITH RICH LUSH FLORAL BACKGROUND
   ========================================================================== */

.floral-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Full-Screen Lush Floral Background with real depth */
.floral-hero-image {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-color: #0b1118;
  background-image: 
    url('https://images.unsplash.com/photo-1526047932273-341f2a7631f9?q=85&w=2000&auto=format&fit=crop'),
    /* Fallback Layered Botanical Gradients */
    radial-gradient(circle at 15% 20%, rgba(244, 182, 194, 0.45) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(248, 187, 208, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 10% 85%, rgba(163, 190, 169, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(255, 218, 185, 0.38) 0%, transparent 50%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.85) contrast(108%);
}

/* Soft translucent overlay for crystal-clear readability */
.floral-soft-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 40%, rgba(11, 16, 24, 0.76) 0%, rgba(7, 10, 15, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 160, 89, 0.16);
  border: 1px solid rgba(197, 160, 89, 0.38);
  color: var(--gold-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold-primary);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 820px;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.gradient-text {
  background: linear-gradient(135deg, #fefefe, #c5a059);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Two Main Action Cards Grid */
.main-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
}

.action-card {
  background: rgba(20, 27, 38, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.action-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-visual {
  height: 135px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-build {
  background: linear-gradient(135deg, #0e1a2f 0%, #162846 100%);
}

.blueprint-lines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(43, 127, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 127, 255, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
}

.visual-decorate {
  background: linear-gradient(135deg, #261f17 0%, #3d2f1d 100%);
}

.decor-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.35) 0%, transparent 70%);
}

.card-icon-badge {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(13, 18, 25, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.visual-build .card-icon-badge { color: #60a5fa; }
.visual-decorate .card-icon-badge { color: var(--gold-primary); }

.card-content {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.step-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.card-features li {
  font-size: 0.83rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-features li span {
  color: var(--gold-primary);
  font-weight: 700;
}

.btn-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-build {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
}

.btn-build:hover {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-decorate {
  background: linear-gradient(135deg, #c5a059, #b58d40);
  color: #0b0e14;
}

.btn-decorate:hover {
  background: linear-gradient(135deg, #d8b46e, #c5a059);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.4);
}

/* ==========================================================================
   Studio Layout (Build & Decorate Workspaces)
   ========================================================================== */

.studio-layout {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.studio-sidebar {
  width: 410px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
  overflow: hidden;
}

.sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-back {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-back:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--border-strong);
}

.sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

/* Stepper Bar */
.stepper-bar {
  display: flex;
  padding: 12px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
}

.step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-family: var(--font-mono);
}

.step-item.active {
  color: var(--gold-primary);
  font-weight: 600;
}

.step-item.active .step-num {
  background: var(--gold-primary);
  color: #0b0e14;
  border-color: var(--gold-primary);
}

/* Wizard Panes */
.wizard-pane {
  display: none;
  padding: 22px 20px;
  overflow-y: auto;
  flex: 1;
}

.wizard-pane.active {
  display: block;
}

.pane-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pane-headline-lg {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pane-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label-sm {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-field {
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}

.input-field:focus {
  border-color: var(--gold-primary);
}

.input-unit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.unit-badge {
  position: absolute;
  right: 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-weight: 600;
  pointer-events: none;
}

.pill-group {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover {
  color: #fff;
}

.pill-btn.active {
  background: var(--gold-primary);
  color: #0b0e14;
}

.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plot-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.summary-row strong, .summary-row span:last-child {
  color: #fff;
  font-family: var(--font-mono);
}

/* Design Choice Cards */
.design-choice-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.choice-card.active {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.08);
}

.choice-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  margin-top: 2px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-card.active .choice-radio-dot {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}

.choice-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choice-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.ai-sparkle-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-primary);
}

.choice-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Rooms Counter Steppers */
.rooms-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-meta {
  display: flex;
  flex-direction: column;
}

.room-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
}

.room-hint {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.counter-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.counter-btn:hover {
  background: var(--gold-primary);
  color: #0b0e14;
  border-color: var(--gold-primary);
}

.counter-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  min-width: 18px;
  text-align: center;
}

/* Buttons */
.btn-primary-block {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary), #b58d40);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-block:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), #b58d40);
  color: #0b0e14;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.btn-subtle-full {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-subtle-full:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.05);
}

.btn-subtle-sm {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  cursor: pointer;
}

.btn-subtle-sm:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.btn-subtle-xs {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.btn-subtle-xs:hover {
  color: #fff;
}

.sidebar-bottom-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

/* ==========================================================================
   VIEW 3: "DECORATE MY HOUSE" - MODE SELECTION & AI FORM
   ========================================================================== */

.decor-sidebar {
  width: 430px;
}

.decor-mode-selection-pane {
  padding: 22px 20px;
  overflow-y: auto;
  flex: 1;
}

.decor-ai-form-pane {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.decor-mode-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.decor-mode-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.decor-mode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.decor-mode-card.active {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.08);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.15);
}

.decor-mode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.18);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.decor-mode-badge-neutral {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.decor-mode-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.decor-mode-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.decor-mode-highlights {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.74rem;
  color: #cbd5e1;
}

/* ==========================================================================
   VIEW 3: MANUAL MODE & FULL ITEM CATALOG
   ========================================================================== */

.decor-manual-studio-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.manual-top-header {
  padding: 14px 18px 10px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.manual-subtabs-bar {
  display: flex;
  padding: 8px 14px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  gap: 6px;
}

.subtab-pill {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.subtab-pill:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.subtab-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0b0e14;
}

.manual-tab-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

/* Catalog Search & Category Filters */
.catalog-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  color: var(--text-muted);
}

.catalog-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  outline: none;
}

.catalog-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  color: #fff;
  border-color: var(--border-strong);
}

.filter-chip.active {
  background: rgba(197, 160, 89, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.catalog-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.type-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.type-pill:hover {
  color: #fff;
}

.type-pill.active {
  background: var(--bg-surface);
  border-color: var(--gold-primary);
  color: #fff;
}

/* Catalog Items Grid */
.catalog-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.catalog-card:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.catalog-icon {
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.catalog-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 4px;
}

.catalog-desc {
  font-size: 0.68rem;
  color: var(--text-subtle);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
}

.btn-add-item {
  width: 100%;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-add-item:hover {
  background: var(--gold-primary);
  color: #0b0e14;
}

/* Placed Items List */
.placed-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.placed-item-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.placed-item-row:hover {
  background: var(--bg-card-hover);
}

.placed-item-row.active {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.1);
}

.placed-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.placed-item-del {
  background: transparent;
  border: none;
  color: var(--accent-danger);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
}

/* Swatches & Finishes */
.swatches-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swatch-circle:hover {
  transform: scale(1.1);
}

.swatch-circle.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.tiles-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.style-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.style-tile:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.style-tile.active {
  border-color: var(--gold-primary);
  background: rgba(197, 160, 89, 0.08);
}

.tile-swatch {
  height: 48px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.swatch-wood { background: linear-gradient(45deg, #a78256 25%, #856139 50%, #a78256 75%); }
.swatch-marble { background: linear-gradient(135deg, #f5f5f5, #dfdfdf, #d4af37); }
.swatch-concrete { background: #5c636e; }
.swatch-walnut { background: #3b281c; }

.tile-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.input-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  width: 100%;
}

.input-select:focus {
  border-color: var(--gold-primary);
}

/* ==========================================================================
   Right Side: Viewport Container & Floating Selected Object HUD
   ========================================================================== */

.studio-viewport-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #06090e;
  position: relative;
  overflow: hidden;
}

.viewport-toolbar {
  height: 52px;
  background: rgba(13, 18, 25, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 10;
}

.room-active-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-serif);
}

.view-mode-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.view-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-tab-btn:hover {
  color: #fff;
}

.view-tab-btn.active {
  background: var(--bg-card);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.viewport-hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.hud-btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.hud-btn-gold {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.05));
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
}

.hud-btn-gold:hover {
  background: var(--gold-primary);
  color: #0b0e14;
}

.hud-btn-ai-photo {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid #c084fc;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.hud-btn-ai-photo:hover {
  background: linear-gradient(135deg, #9333ea, #c084fc);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
}

.hud-btn-final-look {
  background: linear-gradient(135deg, #c5a059 0%, #e6c888 50%, #c5a059 100%);
  background-size: 200% auto;
  border: 1px solid #ffd88a;
  color: #12100c;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.5);
  animation: shimmer 3s infinite linear;
}

.hud-btn-final-look:hover {
  background-position: right center;
  box-shadow: 0 0 22px rgba(197, 160, 89, 0.8);
  transform: translateY(-1px);
  color: #000;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-final-look-block {
  background: linear-gradient(135deg, #c5a059, #dfba72);
  color: #100e0b;
  font-weight: 700;
  border: 1px solid #ffd88a;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-final-look-block:hover {
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.6);
  transform: translateY(-1px);
}

.palette-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-top: 8px;
  margin-bottom: 4px;
}

.final-look-summary-box {
  background: rgba(18, 22, 30, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.final-look-items-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}

.final-look-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0ede6;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.final-look-chip-icon {
  font-size: 0.85rem;
}

/* Realistic Viewport Canvas */
.canvas-3d-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  overflow: hidden;
}

.canvas-3d-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.viewport-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 18, 25, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  pointer-events: none;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Floating Selected Object Manipulation Gizmo HUD */
.selected-object-hud {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(14, 20, 30, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 14px;
  width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideInDown 0.2s ease;
}

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

.gizmo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.gizmo-item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.gizmo-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gizmo-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gizmo-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.gizmo-btn-row {
  display: flex;
  gap: 4px;
}

.gizmo-btn {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.gizmo-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.gizmo-btn-action {
  border-color: var(--border-strong);
  color: #38bdf8;
}

.gizmo-btn-delete {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

.gizmo-btn-delete:hover {
  background: var(--accent-danger);
  color: #fff;
}

/* 2D Blueprint Canvas Viewport */
.canvas-2d-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 52px);
  background-color: #0c1421;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-2d-wrapper canvas {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  max-width: 95%;
  max-height: 90%;
}

.blueprint-legend {
  position: absolute;
  bottom: 18px;
  left: 20px;
  background: rgba(13, 20, 33, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #1e3352;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
}

.chip-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.chip-bed { background-color: #3b82f6; }
.chip-bath { background-color: #06b6d4; }
.chip-kitchen { background-color: #f59e0b; }
.chip-living { background-color: #10b981; }
.chip-garage { background-color: #64748b; }
.chip-gallery { background-color: #8b5cf6; }

/* ==========================================================================
   Loading Overlay & Luxury Spinner
   ========================================================================== */

.loading-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 12, 16, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 40;
}

.luxury-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(197, 160, 89, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold-primary);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Modals (AI Photo, Snapshot & API Key Settings)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  z-index: 100;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.2s ease;
}

.modal-box-large {
  max-width: 1020px;
}

.modal-box-settings {
  max-width: 580px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-primary);
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-close-btn:hover { color: #fff; }

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.snapshot-preview-frame {
  width: 100%;
  height: 440px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
}

.snapshot-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.snapshot-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-4k {
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.ai-photo-frame {
  width: 100%;
  height: 480px;
  background: #05070a;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.ai-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.ai-generating-indicator {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ai-photo-meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.key-guide-card {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.key-guide-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 6px;
}

.key-guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-main);
}

.gold-link {
  color: var(--gold-primary);
  text-decoration: underline;
}

.gold-link:hover {
  color: var(--gold-hover);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-surface);
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideInUp 0.2s ease;
}

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

.toast.success { border-left: 4px solid var(--accent-success); }
.toast.info { border-left: 4px solid var(--gold-primary); }

/* Utilities */
.hidden { display: none !important; }
.flex-row { display: flex; }
.flex-1 { flex: 1; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.font-xs { font-size: 0.72rem; }
.font-sm { font-size: 0.82rem; }
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }

/* Responsive adjustments */
@media (max-width: 960px) {
  .main-cards-grid { grid-template-columns: 1fr; }
  .studio-layout { flex-direction: column; }
  .studio-sidebar { width: 100%; height: 420px; }
  .canvas-3d-wrapper, .canvas-2d-wrapper { height: calc(100% - 420px); }
  .selected-object-hud { top: auto; bottom: 50px; right: 10px; left: 10px; width: auto; }
}
