:root {
  color-scheme: light;
  --primary: #e60023;
  --primary-2: #ff2b42;
  --accent: #14b8a6;
  --ink: #15151f;
  --muted: #646579;
  --line: #e5e7eb;
  --soft: #fff1f3;
  --surface: #ffffff;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(20, 20, 24, .13);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Tahoma, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
}
html[lang="ar"] body { font-family: "Cairo", Tahoma, Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
.promo-bar {
  direction: ltr;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 24px;
  background: #161616;
  color: #fff;
  font-weight: 800;
}
.promo-bar span { color: #d7d7d7; font-weight: 500; }
.promo-pill { padding: 6px 12px; border-radius: 6px; color: var(--primary-2); background: rgba(230,0,35,.12); }
.promo-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 20px; border: 0; border-radius: 7px; color: #fff; background: var(--primary); text-decoration: none; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 42px);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 900;
  background: transparent;
  border: 0;
  overflow: hidden;
}
.brand-mark img,
.modal-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.brand strong { display: block; font-size: 19px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 46px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: start;
  font-weight: 700;
}
.nav button.active, .nav button:hover { color: var(--primary); background: var(--soft); }
.sidebar-card {
  margin-top: 0;
  min-width: 132px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.sidebar-card span { color: var(--muted); font-size: 12px; }
.sidebar-card strong { display: block; margin-top: 2px; font-size: 20px; }
.page { min-width: 0; padding: 12px clamp(16px, 4vw, 42px) 42px; }
.topbar {
  display: grid;
  gap: 12px;
  margin: 0 auto 8px;
  max-width: 1220px;
}
.dashboard-topbar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}
.topbar .actions { width: 100%; }
.dashboard-topbar .actions { order: 1; width: 100%; }
.dashboard-topbar .page-heading { order: 2; width: 100%; }
.topbar h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-weight: 800;
  text-decoration: none;
}
.button.secondary { color: var(--primary); background: var(--soft); }
.button.ghost { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.button.danger { background: var(--danger); }
.button:disabled { opacity: .55; cursor: wait; }
.content { max-width: 1220px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }
body.dashboard-loading .content {
  opacity: .01;
  pointer-events: none;
}
body.dashboard-loading #generateView {
  min-height: 720px;
}
body.dashboard-loading #roomTypes {
  min-height: 124px;
}
body.dashboard-loading #roomTypes::before,
body.dashboard-loading #roomTypeExamples::before {
  content: "";
  display: block;
  min-height: 100px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f3f4f6 0%, #e9edf3 45%, #f3f4f6 90%);
  background-size: 220% 100%;
  animation: loading-shimmer 1.1s linear infinite;
}
@keyframes loading-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}
.auth-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 5vw, 64px);
  direction: inherit;
  min-height: 82px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.auth-nav .brand { direction: ltr; }
html[dir="rtl"] .auth-nav { flex-direction: row-reverse; }
.auth-nav-links { display: flex; align-items: center; gap: 16px; color: #111827; font-size: 14px; font-weight: 700; }
.auth-nav-links button {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 8px 0;
}
.mobile-menu-toggle {
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.mobile-menu-toggle span + span { margin-left: 0; margin-top: 4px; }
.auth-nav.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.auth-nav.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
.auth-nav.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  flex-shrink: 0;
}
.auth-actions .button,
.auth-actions .language-toggle {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.language-switcher { position: relative; z-index: 60; }
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
}
.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  z-index: 80;
  display: none;
  width: 218px;
  padding: 8px;
  border: 1px solid #111827;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17,24,39,.12);
}
.language-switcher.open .language-menu { display: grid; }
.language-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #374151;
  text-align: start;
  font-size: 14px;
}
.language-menu button:hover,
.language-menu button.active { background: var(--soft); color: var(--primary); }
.language-menu small {
  min-width: 24px;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
}
.nav-link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 8px 0;
}
.header-logout { display: none; }
.is-logged-in .header-logout { display: inline-flex; }
.is-logged-in #topLoginButton { display: none; }
.nav-badge { position: relative; }
.nav-badge::after {
  content: "HOT";
  position: absolute;
  top: -17px;
  right: -22px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.auth-hero {
  direction: ltr;
  width: 100%;
  max-width: 1740px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 76px) clamp(22px, 5vw, 96px) 42px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 900;
}
.hero-copy h1 .red { color: var(--primary); display: block; }
.hero-copy { text-align: left; }
[dir="rtl"] .auth-hero { direction: rtl; }
[dir="rtl"] .hero-copy { text-align: right; }
.hero-copy .arabic { direction: rtl; text-align: right; }
.hero-copy .eyebrow { color: var(--primary); font-weight: 900; margin-bottom: 10px; }
.hero-copy p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.55;
}
.hero-preview {
  position: relative;
  direction: ltr;
  touch-action: none;
  user-select: none;
  min-height: 620px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(rgba(18,18,28,.02), rgba(18,18,28,.08)),
    url("https://images.unsplash.com/photo-1556912173-3bb406ef7e77?auto=format&fit=crop&w=1400&q=86") center / cover;
}
.hero-preview.has-comparison { background: #111827; }
.hero-compare-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.hero-after-image {
  clip-path: inset(0 0 0 var(--compare-pos, 50%));
}
.hero-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-pos, 50%);
  z-index: 2;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.92);
  pointer-events: none;
}
.hero-compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(230,0,35,.95);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.hero-compare-divider span::before,
.hero-compare-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
}
.hero-compare-divider span::before {
  left: 13px;
  transform: translateY(-50%) rotate(-45deg);
}
.hero-compare-divider span::after {
  right: 13px;
  transform: translateY(-50%) rotate(135deg);
}
.hero-compare-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  direction: ltr;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  cursor: ew-resize;
}
.hero-compare-label {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  min-width: 74px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity .16s ease;
}
.hero-compare-label.before { right: 18px; }
.hero-compare-label.after { left: 18px; }
.space-types {
  direction: ltr;
  max-width: 1740px;
  width: 100%;
  margin: 0 auto 48px;
  padding: 0 clamp(22px, 5vw, 96px);
}
.space-heading {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}
.space-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 42px);
  line-height: 1.22;
  font-weight: 900;
}
.space-heading p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.space-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.space-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 14px 34px rgba(17, 24, 39, .14);
  text-align: left;
}
.space-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
}
.space-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.64) 100%);
}
.space-card:hover img { transform: scale(1.04); }
.space-card strong {
  position: absolute;
  left: 18px;
  right: 74px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}
.space-card .space-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}
.auth-card-wrap { display: grid; gap: 14px; }
.tool-section {
  direction: ltr;
  max-width: 1440px;
  width: calc(100% - 44px);
  margin: 24px auto 80px;
  padding: 0;
}
.tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}
.tool-tabs button {
  min-height: 60px;
  border: 0;
  border-left: 1px solid #d8d8d8;
  background: #fff;
  color: #374151;
  font-size: 18px;
  font-weight: 800;
}
.tool-tabs button:first-child { border-left: 0; }
.tool-tabs button.active { background: var(--primary); color: #fff; }
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
.preview-panel {
  min-height: 520px;
  padding: 30px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}
.preview-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.preview-tabs button {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5c5c66;
  font-size: 19px;
}
.preview-tabs button.active { color: var(--primary); background: #fff1f3; }
.preview-gallery {
  display: grid;
  grid-template-columns: .9fr 1.08fr .9fr;
  gap: 12px;
  align-items: end;
  margin-top: 42px;
}
.preview-gallery figure { margin: 0; text-align: center; }
.preview-gallery img { width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; border-radius: 8px; }
.preview-gallery figure:nth-child(2) img { aspect-ratio: 3 / 5.2; }
.preview-gallery span {
  display: inline-block;
  min-width: 74px;
  margin-top: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.preview-gallery figure:nth-child(2) span { color: #fff; background: var(--primary); }
.home-feature-showcase,
.home-faq-section {
  padding: 70px clamp(18px, 5vw, 64px);
  background: #fff;
  color: var(--ink);
}
.home-feature-showcase .space-heading,
.home-faq-section .space-heading { color: var(--ink); }
.home-feature-showcase .space-heading p,
.home-faq-section .space-heading p { color: var(--muted); }
.home-feature-grid {
  max-width: 1320px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.home-feature-card {
  min-height: 380px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(232, 0, 42, .22);
  border-radius: 18px;
  background: radial-gradient(circle at 22% 76%, rgba(255, 214, 221, .68), transparent 44%), linear-gradient(145deg, #fff7f8, #f7d7dc 48%, #4b0f18 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(72, 12, 20, .14);
  overflow: hidden;
}
.home-feature-card:nth-child(2n) { background: radial-gradient(circle at 24% 72%, rgba(255, 182, 194, .7), transparent 42%), linear-gradient(145deg, #fff3f4, #f1bcc4 48%, #5b101b 100%); }
.home-feature-card:nth-child(3n) { background: radial-gradient(circle at 24% 72%, rgba(255, 202, 211, .66), transparent 42%), linear-gradient(145deg, #fff8f9, #eeb5bf 48%, #3f0b14 100%); }
.home-feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  color: #21050a;
}
.home-feature-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #e8002a;
  font-size: 22px;
  line-height: 1;
}
.home-feature-before-after {
  position: relative;
  min-height: 270px;
  display: block;
}
.home-feature-before-after figure {
  position: absolute;
  margin: 0;
  width: 46%;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 244, 246, .96), rgba(235, 108, 126, .48));
  box-shadow: 0 16px 34px rgba(72, 12, 20, .18);
  overflow: hidden;
}
.home-feature-before-after figure::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, .08) 38%, rgba(255, 255, 255, .72) 50%, rgba(255, 255, 255, .08) 62%, transparent 100%);
  transform: translateX(-145%) skewX(-14deg);
  transition: transform .75s ease;
  pointer-events: none;
  z-index: 2;
}
.home-feature-before-after figure:hover::after {
  transform: translateX(145%) skewX(-14deg);
}
.home-feature-before-after figure:first-child {
  top: 36px;
  left: 4px;
  background: linear-gradient(145deg, rgba(255, 248, 249, .98), rgba(225, 116, 130, .42));
}
.home-feature-before-after figure:last-child {
  right: 4px;
  bottom: 0;
  background: linear-gradient(145deg, rgba(255, 235, 238, .96), rgba(183, 21, 42, .62));
}
.home-feature-before-after img,
.home-feature-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(145deg, #fff6f7, #efb2bd);
  color: rgba(62, 8, 16, .68);
  font-weight: 900;
}
.home-feature-placeholder.after { background: linear-gradient(145deg, #ffe7eb, #c61f3a); color: rgba(255, 255, 255, .86); }
.home-feature-before-after figcaption {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.36);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.home-feature-arrow {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) rotate(24deg);
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  z-index: 4;
  text-shadow: 0 3px 12px rgba(54, 0, 9, .72);
  pointer-events: none;
}
.home-faq-section { background: #fff; }
.home-faq-section .model3d-faq-list {
  max-width: 980px;
  margin: 28px auto 0;
}
.landing-pricing {
  max-width: 1440px;
  width: calc(100% - 44px);
  margin: 0 auto 90px;
  padding: 34px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.landing-pricing h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); }
.landing-pricing p { margin: 12px auto 0; max-width: 720px; color: var(--muted); line-height: 1.7; }
.landing-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; text-align: start; }
.landing-price-card { padding: 18px; border: 1px solid #d8d8d8; border-radius: 8px; background: #fff; }
.landing-price-card strong { display: block; font-size: 20px; }
.landing-price-card span { display: block; margin-top: 8px; color: var(--muted); }
.pricing-page {
  display: none;
  min-height: 100vh;
  background: #fff;
}
.pricing-page.active { display: block; }
.pricing-page .auth-nav { box-shadow: none; }
.pricing-page .auth-nav-links { gap: 16px; font-size: 14px; }
.dashboard-global-nav {
  position: sticky;
  top: 0;
  z-index: 35;
}
.dashboard-global-nav .header-dashboard { color: var(--primary); font-weight: 900; }
.dashboard-global-nav .header-logout {
  display: inline-flex;
}
.pricing-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 22px 34px;
  text-align: center;
}
.pricing-hero h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); }
.pricing-hero p { margin: 14px auto 0; max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.pricing-cards {
  max-width: 990px;
  margin: 30px auto 90px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
}
.pricing-card {
  position: relative;
  min-height: 600px;
  padding: 28px 22px;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.pricing-card.featured {
  min-height: 660px;
  border-color: var(--primary);
  background: #fff4f5;
}
.popular-badge {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.pricing-card h2 { margin: 0; font-size: 22px; }
.pricing-card .desc { margin: 12px 0 24px; min-height: 38px; color: #4b5563; }
.price { font-size: 52px; font-weight: 900; letter-spacing: 0; }
.price small { font-size: 16px; font-weight: 500; }
.billed { color: #666; margin-top: 2px; }
.save { color: var(--primary); font-weight: 800; margin-top: 8px; }
.credits-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  font-size: 16px;
}
.feature-list { display: grid; gap: 13px; margin: 0 0 22px; padding: 0; list-style: none; text-align: start; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: #4b5563; }
.feature-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: var(--primary);
  background: #ffe4e8;
  font-size: 12px;
  font-weight: 900;
}
.pricing-card.featured .feature-list li::before { color: #fff; background: var(--primary); }
.pricing-card .button { width: 100%; margin-top: auto; background: #222; }
.pricing-card.featured .button { background: var(--primary); }
.mini-upload {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed #d8cff1;
  border-radius: 8px;
  background: #fff;
}
.mini-upload img { width: 72px; height: 58px; object-fit: cover; border-radius: 8px; }
.mini-upload strong { display: block; }
.mini-upload span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.auth-panel {
  width: 100%;
  padding: 26px;
  direction: rtl;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.logged-in-panel {
  display: none;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #f9fafb;
}
.logged-in-panel.active { display: block; }
.logged-in-panel strong { display: block; font-size: 22px; }
.logged-in-panel span { display: block; margin-top: 6px; color: var(--muted); }
.logged-in-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.is-logged-in .auth-tabs,
.is-logged-in #authForm,
.is-logged-in .auth-panel > h1,
.is-logged-in .auth-panel > p { display: none; }
.is-logged-in .logged-in-panel { display: none; }
.is-logged-in .auth-panel { display: none; }
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.58);
}
.login-modal.open { display: flex; }
.login-dialog {
  direction: ltr;
  width: min(100%, 700px);
  max-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(340px, 1fr);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.login-side {
  position: relative;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(rgba(8,18,36,.18), rgba(8,18,36,.42)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=84") center / cover;
}
.login-side ul { margin: 0; padding-left: 18px; display: grid; gap: 12px; font-size: 15px; font-weight: 800; }
.login-side p { position: absolute; left: 24px; right: 24px; bottom: 22px; margin: 0; font-size: 13px; line-height: 1.4; }
.login-main {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 24px 26px;
  text-align: center;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #8b95a5;
  font-size: 34px;
  line-height: 1;
}
.modal-logo {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid var(--primary);
  border-radius: 12px;
  color: var(--primary);
  font-size: 30px;
  font-weight: 900;
}
.login-main h2 { margin: 0; font-size: 22px; color: #1f2937; }
.login-main > p { margin: 0; color: #343741; font-size: 14px; }
.google-login {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #000;
  font-size: 16px;
  font-weight: 900;
}
.modal-login-form {
  direction: rtl;
  width: 100%;
  display: grid;
  gap: 7px;
  text-align: right;
}
.modal-login-form label { margin: 0; }
.login-main .auth-tabs { margin-bottom: 4px; }
.login-main .auth-tabs button { min-height: 42px; padding: 8px; }
.modal-login-form input { min-height: 42px; padding: 9px 12px; }
.modal-login-form .button { min-height: 42px; padding: 9px 14px; }
.payment-dialog {
  direction: rtl;
  width: min(100%, 520px);
  max-height: min(760px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.payment-dialog h2 { margin: 0; font-size: 24px; }
.payment-dialog .muted { margin: 0; }
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  font-weight: 800;
}
.payment-form {
  display: grid;
  gap: 12px;
}
#paymentElement {
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
#paymentSubmit {
  width: 100%;
  min-height: 48px;
}
.invoice-list { display: grid; gap: 10px; }
.card:has(#legalLinks) { display: none; }
.invoice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.invoice-row strong, .invoice-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.free-credit-note {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #fff1f1;
  color: var(--primary);
  font-weight: 900;
}
.terms-note { color: #667085; font-size: 13px; line-height: 1.6; }
#authStatus {
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}
#authStatus.error {
  background: #fff1f1;
  color: #b00020;
}
@media (max-height: 760px) {
  .login-dialog { width: min(100%, 660px); }
  .login-main { gap: 8px; padding: 18px 22px; }
  .modal-logo { width: 54px; height: 54px; font-size: 26px; }
  .login-main h2 { font-size: 20px; }
  .login-main > p, .terms-note { display: none; }
  .login-side ul { gap: 9px; font-size: 14px; }
  .login-side p { display: none; }
  .free-credit-note { display: none; }
}
@media (max-width: 820px) {
  .login-dialog { grid-template-columns: 1fr; }
  .login-side { display: none; }
  .login-main { padding: 32px 22px; }
}
.auth-panel h1 { margin: 0 0 6px; font-size: 31px; line-height: 1.2; }
.auth-panel p { margin: 0 0 18px; color: var(--muted); line-height: 1.75; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.auth-tabs button { min-height: 52px; border: 0; border-radius: 8px; padding: 11px; background: #f0edf8; font-weight: 800; }
.auth-tabs button.active { background: var(--primary); color: white; }
label { display: block; margin: 13px 0 6px; color: var(--ink); font-weight: 800; }
input, textarea, select {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  outline-color: var(--primary-2);
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(230, 0, 35, .1); }
textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.grid { display: grid; gap: 16px; }
.two { grid-template-columns: minmax(0, 45%) minmax(0, 55%); align-items: start; }
.column-stack { display: grid; gap: 16px; min-width: 0; direction: rtl; }
.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(38, 28, 84, .06);
}
#generateView > .grid.two {
  direction: ltr;
  padding: 18px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  min-height: 462px;
}
#generateView > .grid.two .card {
  min-width: 0;
  border-color: #d8d8d8;
  box-shadow: none;
  background: #fff;
}
.card h2, .card h3 { margin: 0 0 12px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.section-title h2, .section-title h3 { margin: 0; }
.model3d-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 8px;
  background: #fff4f5;
}
.model3d-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}
.model3d-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 8px rgba(15, 23, 42, .12);
}
.model3d-progress {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #ffd1d8;
  border-radius: 8px;
  background: #fff7f8;
}
.model3d-progress[hidden] { display: none; }
.model3d-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3d3d46;
  font-size: 13px;
  font-weight: 800;
}
.model3d-progress-head strong {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.model3d-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffe1e6;
}
.model3d-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .45s ease;
}
.model3d-fields {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.image-drop {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px dashed #d4d4d8;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.image-drop img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.image-drop input {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0 !important;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  appearance: none;
  overflow: hidden;
}
.image-drop input::file-selector-button { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.drop-copy { position: relative; z-index: 1; padding: 18px; pointer-events: none; }
.upload-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 18px auto 0;
  color: #5a5a5a;
}
.drop-copy strong { display: block; font-size: 18px; }
.drop-copy span { display: block; color: var(--muted); margin-top: 6px; }
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #2f3138;
  font-weight: 800;
}
.toggle {
  width: 50px;
  height: 28px;
  position: relative;
  border: 0;
  border-radius: 999px;
  background: #cdd2dc;
  transition: background .16s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17,24,39,.18);
  transition: transform .16s ease;
}
.toggle[aria-pressed="true"] { background: var(--primary); }
.toggle[aria-pressed="true"]::after { transform: translateX(22px); }
html[dir="rtl"] .toggle[aria-pressed="true"]::after { transform: translateX(-22px); }
html[dir="rtl"] .toggle::after { left: auto; right: 3px; }
.generate-under-prompt { width: 100%; margin-top: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
#roomTypes.choice-grid {
  display: grid;
  grid-template-columns: repeat(var(--room-type-count, 8), minmax(148px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
  direction: ltr;
  margin: 0 0 20px;
  min-height: 124px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  gap: 0;
}
.choice {
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  box-shadow: none;
  text-align: start;
}
.choice.selected { border-color: var(--primary); background: #fff1f3; color: var(--primary); }
.choice img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ece8f5; }
.choice span { display: block; padding: 9px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#roomTypes .choice {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  gap: 5px;
  min-width: 148px;
  min-height: 122px;
  padding: 6px;
  border: 0;
  border-left: 1px solid #d8d8d8;
  border-radius: 0;
  text-align: center;
}
#roomTypes .choice:first-child { border-left: 0; }
#roomTypes .choice.selected { background: var(--primary); color: #fff; }
#roomTypes .choice img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.75);
}
#roomTypes .choice span {
  max-width: 100%;
  padding: 0;
  font-size: 14px;
  line-height: 1.25;
  direction: auto;
}
.case-demo {
  position: relative;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  min-height: 214px;
}
.card > .case-demo:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.case-demo-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #98a1b2;
  font-weight: 900;
  font-size: 13px;
}
.case-demo-title::before,
.case-demo-title::after {
  content: "";
  height: 1px;
  background: #d9dee7;
}
.case-demo-row {
  display: flex;
  align-items: end;
  justify-content: start;
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x proximity;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-height: 160px;
  scrollbar-width: none;
}
.case-demo-row::-webkit-scrollbar { display: none; }
.case-demo-row.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.case-demo-thumb {
  flex: 0 0 calc(37% - 14px);
  width: auto;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  scroll-snap-align: start;
}
.case-demo-thumb.selected {
  flex-basis: 46%;
  z-index: 1;
}
.case-demo-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  background: #ece8f5;
  transform: scale(1);
  transition: transform .18s ease, box-shadow .18s ease, object-fit .18s ease, background-color .18s ease;
  will-change: transform;
}
.case-demo-thumb:hover img {
  transform: scale(1.035);
  object-fit: cover;
  background: #ece8f5;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .18);
}
.case-demo-thumb.selected img { aspect-ratio: 1 / 1.16; box-shadow: none; }
.case-demo-thumb span {
  display: inline-block;
  max-width: calc(100% - 20px);
  margin-top: 10px;
  padding: 7px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.case-demo-thumb.selected span { background: var(--primary); color: #fff; }
.case-slider-arrow {
  position: absolute;
  top: 46%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.case-slider-arrow::before {
  content: "";
  width: 18px;
  height: 18px;
  border-top: 5px solid currentColor;
  border-left: 5px solid currentColor;
}
.case-slider-arrow.prev { left: 4px; }
.case-slider-arrow.next { right: 4px; }
.case-slider-arrow.prev::before { transform: rotate(-45deg); }
.case-slider-arrow.next::before { transform: rotate(135deg); }
.case-slider-arrow:hover { color: var(--primary); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  background: white;
  text-align: start;
}
.mode.selected { border-color: var(--primary); background: var(--soft); }
.mode strong { display: block; }
.mode span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #d1d5db; border-radius: 999px; padding: 8px 11px; background: white; color: var(--ink); }
.chip.selected { border-color: var(--primary); color: var(--primary); background: var(--soft); font-weight: 800; }
.option-group { margin-top: 16px; }
.option-group h3 { margin: 0 0 9px; font-size: 16px; }
.option-accordion {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.option-accordion summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.option-accordion summary::-webkit-details-marker { display: none; }
.option-accordion summary::after { content: "⌄"; color: var(--muted); font-size: 18px; transition: transform .16s ease; }
.option-accordion[open] summary::after { transform: rotate(180deg); }
.option-accordion .choice-grid { padding: 0 14px 14px; }
.selected-options-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.selected-options-preview[hidden] { display: none; }
.selected-option-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.selected-option-remove {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 999px;
  background: rgba(230,0,35,.96);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17,24,39,.18);
}
.selected-option-remove:hover { background: #b9001c; }
.selected-option-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece8f5;
}
.selected-option-card figcaption {
  display: grid;
  gap: 2px;
  padding: 9px;
}
.selected-option-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.selected-option-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-grid, .project-grid, .plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-grid { grid-template-columns: 1fr !important; gap: 14px; }
.result-grid figure, .project-card figure { margin: 0; }
.result-grid img, .project-card img, .project-card model-viewer { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #ece8f5; }
.project-card img, .project-card model-viewer { aspect-ratio: 4 / 3; }
.project-card--3d { grid-column: span 1; }
.project-card--3d figure { background: #ece8f5; }
.project-card--3d model-viewer {
  width: 100%;
  height: auto;
  min-height: 260px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.result-grid figure { overflow: hidden; }
.result-grid img {
  min-height: 420px;
  cursor: zoom-in;
  transition: transform .22s ease, box-shadow .22s ease;
}
.result-grid img:hover { transform: scale(1.04); box-shadow: 0 18px 42px rgba(17,24,39,.16); }
.model3d-result {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fffd;
}
.model3d-result[hidden] { display: none; }
.model3d-result strong { color: #0f766e; }
.model3d-result model-viewer {
  width: 100%;
  max-width: 100%;
  min-height: clamp(360px, 52vw, 620px);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #eef6f4;
  contain: layout paint;
}
.result-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(10, 10, 14, .78);
}
.result-lightbox.open { display: grid; }
.result-lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.site-footer {
  direction: inherit;
  position: relative;
  overflow: hidden;
  margin-top: 54px;
  color: #f9fafb;
  background:
    linear-gradient(90deg, rgba(230,0,35,.92), rgba(230,0,35,.5), rgba(230,0,35,.92)) top / 100% 18px no-repeat,
    radial-gradient(circle at 18% 0%, rgba(230,0,35,.34), transparent 32%),
    radial-gradient(circle at 84% 8%, rgba(230,0,35,.28), transparent 28%),
    #202020;
}
.model3d-page main { overflow: hidden; }
.nav-link-button.active { color: var(--primary); }
.model3d-landing-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px clamp(18px, 5vw, 52px) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}
.model3d-hero-copy { text-align: left; }
html[dir="rtl"] .model3d-hero-copy { text-align: right; }
html[dir="rtl"] .model3d-live-form,
html[dir="rtl"] .model3d-live-viewer,
html[dir="rtl"] .model3d-section,
html[dir="rtl"] .model3d-cta { text-align: right; }
.model3d-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
}
.model3d-hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(40px, 5.8vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}
.model3d-hero-copy p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.model3d-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.model3d-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.model3d-trust-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #394150;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}
.model3d-tool-preview {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .12);
}
.model3d-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.model3d-preview-head strong { font-size: 20px; }
.model3d-preview-head span { color: var(--muted); font-size: 12px; font-weight: 800; }
.model3d-preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border-radius: 8px;
  background: var(--soft);
}
.model3d-preview-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.model3d-preview-tabs button.active {
  background: #fff;
  box-shadow: 0 5px 16px rgba(17, 24, 39, .08);
}
.model3d-tool-preview label { color: #303642; font-weight: 900; }
.model3d-prompt-box,
.model3d-select-preview {
  padding: 12px;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  color: #4b5563;
  background: #fbfcff;
  line-height: 1.5;
}
.model3d-select-preview { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.model3d-select-preview span { color: var(--primary); }
.model3d-hero-image-panel {
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef6f4;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .12);
}
.model3d-hero-image-panel img,
.model3d-hero-image-panel model-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.model3d-hero-image-panel .model3d-preview-stage {
  height: 100%;
  min-height: 520px;
  border-radius: 0;
}
.building-planner-video-panel {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .12);
}
.building-planner-video-panel video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: #111827;
}
.building-planner-video-fallback {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 10px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(230, 0, 35, .26), rgba(20, 184, 166, .18)),
    #111827;
}
.bp-plan-demo {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 1.25;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .24);
}
.bp-plan-layer {
  position: absolute;
  inset: 0;
}
.bp-plan-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bp-plan-layer-initial {
  background:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(0deg, rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(255, 255, 255, .1);
  animation: bpInitialPlan 6.8s ease-in-out infinite;
}
.bp-plan-layer-render {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(35, 31, 28, .42), rgba(35, 31, 28, .42)) 0 48% / 100% 5px no-repeat,
    linear-gradient(0deg, rgba(35, 31, 28, .42), rgba(35, 31, 28, .42)) 58% 0 / 5px 100% no-repeat,
    linear-gradient(135deg, #cda879, #edd2a4 46%, #b89265 47%, #d8b98c);
  animation: bpRenderedPlan 6.8s ease-in-out infinite;
}
.bp-room {
  position: absolute;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255, 255, 255, .84);
  color: #fff;
  background: rgba(230, 0, 35, .28);
  font-size: 13px;
  font-weight: 900;
}
.bp-room.one { inset: 0 auto auto 0; width: 58%; height: 48%; }
.bp-room.two { inset: 0 0 auto auto; width: 42%; height: 48%; background: rgba(20, 184, 166, .28); }
.bp-room.three { inset: auto auto 0 0; width: 46%; height: 52%; background: rgba(245, 158, 11, .28); }
.bp-room.four { inset: auto 0 0 auto; width: 54%; height: 52%; background: rgba(99, 102, 241, .28); }
.bp-render-room {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, .12);
}
.bp-render-living {
  inset: 0 auto auto 0;
  width: 58%;
  height: 48%;
  background:
    radial-gradient(ellipse at 34% 58%, #84715f 0 9%, transparent 10%),
    radial-gradient(ellipse at 60% 58%, #84715f 0 9%, transparent 10%),
    linear-gradient(90deg, transparent 12%, rgba(255,255,255,.22) 13% 14%, transparent 15%),
    #d7bc91;
}
.bp-render-kitchen {
  inset: 0 0 auto auto;
  width: 42%;
  height: 48%;
  background:
    linear-gradient(90deg, rgba(48, 43, 38, .72) 0 18%, transparent 19%),
    linear-gradient(0deg, rgba(255,255,255,.38) 0 22%, transparent 23%),
    #c7d8dc;
}
.bp-render-bedroom {
  inset: auto auto 0 0;
  width: 46%;
  height: 52%;
  background:
    linear-gradient(90deg, transparent 12%, #f1efe8 13% 52%, transparent 53%),
    radial-gradient(circle at 34% 55%, #b6c6d8 0 12%, transparent 13%),
    #d1ad7b;
}
.bp-render-bath {
  inset: auto 0 0 auto;
  width: 54%;
  height: 52%;
  background:
    radial-gradient(circle at 32% 38%, #f6fbff 0 10%, transparent 11%),
    radial-gradient(ellipse at 70% 62%, #eef7fb 0 16%, transparent 17%),
    #c8d6d9;
}
.bp-scan {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(230, 0, 35, .9);
  animation: bpScan 3.4s ease-in-out infinite;
}
@keyframes bpScan {
  0%, 100% { left: 0; opacity: .5; }
  50% { left: calc(100% - 4px); opacity: 1; }
}
@keyframes bpInitialPlan {
  0%, 42%, 100% { opacity: 1; }
  50%, 92% { opacity: 0; }
}
@keyframes bpRenderedPlan {
  0%, 42%, 100% { opacity: 0; }
  50%, 92% { opacity: 1; }
}
.model3d-preview-stage {
  min-height: 240px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(20,184,166,.11), rgba(230,0,35,.08)),
    #eef6f4;
}
.model3d-reference-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .28;
  filter: saturate(.9);
}
.model3d-chair-shape {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(320px, 78%);
  height: 112px;
  transform: translateX(-50%);
  border-radius: 54px 54px 28px 28px;
  background: linear-gradient(160deg, #f1c099, #cf8661);
  box-shadow: 0 26px 34px rgba(30, 41, 59, .22);
}
.model3d-chair-shape::before {
  content: "";
  position: absolute;
  left: 16%;
  bottom: 72px;
  width: 56%;
  height: 72px;
  border-radius: 44px 44px 18px 18px;
  background: linear-gradient(160deg, #f8dcc3, #dc986f);
}
.model3d-chair-shape::after {
  content: "";
  position: absolute;
  right: 14%;
  top: -10px;
  width: 96px;
  height: 42px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, #15151f 0 8px, #fff 8px 16px);
}
.model3d-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px clamp(18px, 5vw, 52px);
}
.model3d-live-demo {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
  padding-top: 36px;
  padding-bottom: 28px;
}
.model3d-live-form,
.model3d-live-viewer {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(17, 24, 39, .08);
}
.model3d-live-form { padding: 18px; }
.model3d-live-form h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}
.model3d-live-form p {
  margin: 6px 0 16px;
  color: var(--muted);
}
.model3d-live-form label {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink);
  font-weight: 900;
}
.model3d-live-form input,
.model3d-live-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4d7de;
  border-radius: 8px;
  background: #fff;
  color: #586174;
  font: inherit;
}
.model3d-live-form input {
  min-height: 46px;
  padding: 10px 12px;
}
.model3d-live-form textarea {
  min-height: 168px;
  padding: 13px;
  resize: none;
  line-height: 1.55;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, .11);
}
.model3d-demo-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px dashed #f0aab5;
  border-radius: 8px;
  background: #fff8f9;
}
.model3d-demo-upload[hidden] { display: none; }
.model3d-demo-upload-copy { display: grid; gap: 4px; }
.model3d-demo-upload-copy strong { color: var(--ink); font-size: 16px; }
.model3d-demo-upload-copy span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.model3d-demo-photo,
.model3d-demo-sketch-pad {
  min-height: 176px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,0)),
    radial-gradient(circle at 32% 30%, #f8dcc3 0 13px, transparent 14px),
    linear-gradient(145deg, #c98f6c, #f0c09a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5);
}
.model3d-demo-photo img,
.model3d-demo-sketch-pad img {
  display: block;
  width: 100%;
  height: 176px;
  object-fit: cover;
}
.model3d-demo-sketch-pad {
  position: relative;
  background: #fbfbfd;
  border: 1px solid #d7dce5;
}
.model3d-demo-sketch-pad::before,
.model3d-demo-sketch-pad::after,
.model3d-demo-sketch-pad span {
  display: none;
}
.model3d-demo-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, .45fr);
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}
.model3d-demo-settings label { margin: 0; }
.model3d-demo-select {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d4d7de;
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.model3d-demo-submit { width: 100%; margin-top: 14px; }
.model3d-demo-progress {
  height: 9px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: #ffe4e8;
}
.model3d-demo-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #14b8a6);
  animation: model3dDemoProgress 1.7s ease-in-out infinite alternate;
}
@keyframes model3dDemoProgress {
  from { transform: translateX(-42%); }
  to { transform: translateX(44%); }
}
.model3d-live-viewer {
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  padding: 14px;
  background: #f8fffd;
}
.model3d-live-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
}
.model3d-live-viewer-head strong { font-size: 20px; }
.model3d-live-viewer-head span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}
.model3d-demo-result[hidden] { display: none; }
.model3d-demo-result,
.model3d-demo-result img,
.model3d-live-viewer model-viewer,
.model3d-empty-viewer {
  display: block;
  width: 100%;
  min-height: 430px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #eef6f4;
}
.model3d-demo-result img { object-fit: cover; }
.model3d-empty-viewer {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 24px;
}
.model3d-empty-viewer p {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #475467;
  background: rgba(255,255,255,.82);
  text-align: center;
  line-height: 1.5;
}
.model3d-load-error {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 180px;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  color: #475467;
  background: #eef6f4;
  text-align: center;
  font-weight: 800;
  line-height: 1.5;
}
.model3d-feature-grid,
.model3d-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.model3d-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.model3d-feature-grid article,
.model3d-case-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.model3d-feature-grid strong,
.model3d-case-grid h3 { display: block; margin: 0 0 8px; font-size: 18px; }
.model3d-feature-grid p,
.model3d-case-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.model3d-steps {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 36px;
  align-items: start;
}
.model3d-steps h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); }
.model3d-steps > div p { color: var(--muted); line-height: 1.7; }
.model3d-steps ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.model3d-steps li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.model3d-steps li span {
  grid-row: span 2;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}
.model3d-steps li strong { font-size: 18px; }
.model3d-steps li p { margin: 4px 0 0; color: var(--muted); line-height: 1.6; }
.model3d-cta {
  max-width: 1040px;
  margin: 30px auto 70px;
  padding: 42px clamp(18px, 5vw, 52px);
  border-radius: 8px;
  color: #fff;
  background: #17181f;
  text-align: center;
}
.model3d-cta h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.model3d-cta p { margin: 12px auto 22px; max-width: 620px; color: #d7d7d7; line-height: 1.7; }
.model3d-cta .button { width: fit-content; margin: 0 auto; }
.model3d-faq { max-width: 980px; }
.model3d-faq-list { display: grid; gap: 10px; }
.model3d-faq-list[hidden] { display: none; }
.model3d-faq details,
.home-faq-section details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.model3d-faq summary,
.home-faq-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 900;
}
.model3d-faq summary::-webkit-details-marker,
.home-faq-section summary::-webkit-details-marker { display: none; }
.model3d-faq summary::after,
.home-faq-section summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}
.model3d-faq details[open] summary::after,
.home-faq-section details[open] summary::after { content: "-"; }
.model3d-faq details p,
.home-faq-section details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.75;
}
.model3d-dashboard-faq { margin-top: 16px; }
.model3d-dashboard-faq .model3d-faq-list { display: grid; gap: 10px; }
.model3d-dashboard-faq .model3d-faq-list[hidden] { display: none; }
.model3d-dashboard-faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.model3d-dashboard-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 900;
}
.model3d-dashboard-faq summary::-webkit-details-marker { display: none; }
.model3d-dashboard-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
}
.model3d-dashboard-faq details[open] summary::after { content: "-"; }
.model3d-dashboard-faq details p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 70px clamp(18px, 5vw, 52px) 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { display: grid; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 900; }
.footer-logo .brand-mark {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #ff2646;
  overflow: visible;
}
.footer-logo .brand-mark img {
  width: auto;
  height: 92px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 0;
  transform: none;
}
.footer-brand p { max-width: 310px; margin: 0; color: #d7d7d7; line-height: 1.75; }
.footer-links { display: grid; gap: 13px; }
.footer-links h3,
.footer-store h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.footer-links a { color: #e5e7eb; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-store { direction: ltr; justify-self: start; display: grid; gap: 14px; }
.play-badge img { display: block; width: 190px; height: auto; }
.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px clamp(18px, 5vw, 52px) 28px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #c7c7c7;
  text-align: center;
}
figcaption { margin-bottom: 7px; font-weight: 800; }
.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.project-card .body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.project-card .body .button {
  flex: 0 0 auto;
}
.project-card .body p {
  margin: 4px 0 0;
}
.project-card strong { font-size: 18px; line-height: 1.35; }
.project-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 12px;
}
.project-before-after figure {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.project-before-after figcaption {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.project-image-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-in;
}
.project-image-button img {
  transition: transform .18s ease, filter .18s ease;
}
.project-image-button:hover img {
  filter: brightness(.96);
  transform: scale(1.01);
}
.project-card > figure {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.project-card .project-image-download {
  width: 100%;
  min-height: 42px;
}
.project-downloads {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.project-downloads .button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}
.project-image-modal { z-index: 130; }
.project-image-dialog {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(96vw, 1120px);
  max-height: calc(100vh - 32px);
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.project-image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: contain;
  border-radius: 8px;
  background: #f4f0fb;
}
.project-image-dialog p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
.building-planner-grid {
  display: grid;
  grid-template-columns: minmax(280px, 35%) minmax(0, 65%);
  gap: 16px;
  align-items: start;
}
.building-planner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.building-planner-form .section-title,
.building-form-row-wide,
.building-room-types,
.building-planner-form .button,
.building-planner-form .status,
.building-planner-form .muted {
  grid-column: 1 / -1;
}
.building-form-row label,
.building-room-types legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.building-form-row input,
.building-form-row select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.building-room-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.building-room-types legend { padding: 0 4px; }
.building-room-types label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  color: var(--ink);
  font-weight: 800;
}
.building-room-types label > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.building-room-types .room-type-count {
  width: 64px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.building-planner-output { display: grid; gap: 14px; min-width: 0; }
.building-preview-card { overflow: hidden; }
.building-plan-badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 900;
}
.building-preview-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.building-preview-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}
.building-preview-tabs button.active {
  border-color: rgba(230, 0, 35, .24);
  color: var(--primary);
  background: var(--soft);
}
.building-render-actions {
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 12px;
}
#generateGuidePlanRenderBtn,
#generateExactPlanRenderBtn {
  display: none !important;
}
.building-save-actions {
  display: none;
  justify-content: flex-end;
  margin: 10px 0;
}
.building-requirements-furniture {
  display: none;
  gap: 8px;
  grid-column: 1 / -1;
}
.building-requirements-prompt {
  display: none;
  grid-column: 1 / -1;
}
.building-planner-form.building-form-furniture-mode .building-requirements-furniture {
  display: grid;
}
.building-planner-form.building-form-prompt-mode .building-requirements-prompt {
  display: flex;
  min-height: 640px;
}
.building-planner-form.building-form-furniture-mode > :not(#buildingFurnitureMount),
.building-planner-form.building-form-prompt-mode > :not(#buildingPromptMount) {
  display: none !important;
}
.building-furniture-hint {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(230,0,35,.16);
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}
.building-plan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.building-plan-main {
  min-width: 0;
}
html[dir="rtl"] .building-plan-main {
  direction: rtl;
}
.building-workflow {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.building-workflow button,
.building-furniture-library button,
.building-furniture-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.building-workflow button.active,
.building-furniture-library button:hover,
.building-furniture-controls button:hover {
  border-color: rgba(230,0,35,.28);
  color: var(--primary);
  background: var(--soft);
}
.building-quality-control {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.building-quality-control label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.building-quality-control select {
  width: 100%;
  min-height: 44px;
}
.building-workflow-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}
.building-workflow-next .button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  white-space: normal;
  line-height: 1.15;
}
.building-workflow-next .button:hover {
  border-color: #b4001b;
  background: #b4001b;
  color: #fff;
}
.building-prompt-panel {
  width: 100%;
  min-height: 640px;
}
.building-prompt-panel textarea {
  width: 100%;
  min-height: 640px;
  height: min(72vh, 760px);
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  font: 700 15px/1.55 inherit;
}
.building-furniture-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.building-furniture-library,
.building-furniture-controls {
  display: grid;
  gap: 6px;
}
.building-furniture-library {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.building-furniture-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.building-furniture-controls button[data-furniture-action="delete"] {
  grid-column: 1 / -1;
}
.building-furniture-library button {
  position: relative;
  min-height: 82px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(241,245,249,.92));
}
.building-furniture-library button { cursor: grab; }
.building-furniture-library button:active { cursor: grabbing; }
.building-furniture-library button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #e2e8f0;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.14);
}
.building-furniture-library button::after {
  content: attr(aria-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0 42%, rgba(15,23,42,.62)),
    linear-gradient(0deg, rgba(255,255,255,.14), rgba(255,255,255,0) 42%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 3px rgba(15,23,42,.75);
  pointer-events: none;
}
.building-furniture-library button[data-add-furniture="bed"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="sofa"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="armchair"]::before,
.building-furniture-library button[data-add-furniture="office-chair"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1503602642458-232111445657?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="coffee-table"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1532372320572-cda25653a26d?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="dining-table"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1617806118233-18e1de247200?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="tv"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1593359677879-a4bb92f829d1?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="kitchen-counter"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1556912172-45b7abe8b7e1?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="sink"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="toilet"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1584622781564-1d987f7333c1?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="bathtub"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1507652313519-d4e9174996dd?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="shower"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="wardrobe"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1558882224-dda166733046?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="desk"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1518455027359-f3f8164ba6bd?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="shelf"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="rug"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="plant"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1485955900006-10f4d324d411?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="floor-lamp"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1507473885765-e6ed057f782c?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="side-table"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1532372320572-cda25653a26d?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="fridge"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1571175443880-49e1d25b2bc5?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="stove"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1556911220-bff31c812dba?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="washer"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1626806787461-102c1bfaaea1?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-library button[data-add-furniture="mirror"]::before {
  background-image: var(--furniture-image, url("https://images.unsplash.com/photo-1584622650111-993a426fbf0a?auto=format&fit=crop&w=260&q=70"));
}
.building-furniture-controls button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 8px;
}
.building-prompt-panel { margin: 0 0 12px; }
.building-prompt-panel textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
.building-render-button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  line-height: 1.15;
}
#generateBuildingRenderBtn.building-render-button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
#generateBuildingRenderBtn.building-render-button:hover {
  background: #c9001f;
  border-color: #c9001f;
}
.building-render-button small {
  display: block;
  font-size: 11px;
  font-weight: 900;
  opacity: .72;
}
.building-render-result {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.building-render-viewer {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  perspective: 1000px;
  background: #f8fafc;
}
.building-render-viewer:active { cursor: grabbing; }
.building-render-controls {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
.building-render-controls button {
  min-width: 42px;
  min-height: 34px;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
  cursor: pointer;
}
.building-render-controls button.active {
  border-color: rgba(230,0,35,.38);
  color: var(--primary);
  background: var(--soft);
}
.building-render-result img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: contain;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}
.building-real-3d-result {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.building-real-3d-result model-viewer {
  display: block;
  width: 100%;
  min-height: 620px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.95), rgba(226,232,240,.82)),
    #eef2f5;
}
.building-real-3d-result .button {
  width: calc(100% - 24px);
  margin: 12px;
}
.building-plan-2d,
.building-plan-3d {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 10px solid #202020;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(17,17,17,.045) 1px, transparent 1px),
    linear-gradient(rgba(17,17,17,.045) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}
.building-land-label {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 2px;
  color: #fff;
  background: rgba(17, 17, 17, .78);
  font-size: 12px;
  font-weight: 900;
}
.building-room {
  position: absolute;
  display: block;
  padding: 4px;
  border: 4px solid #1f1f1f;
  border-radius: 1px;
  background: #fff !important;
  color: #101010;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.08),
    inset 0 0 0 999px rgba(255,255,255,.72);
}
.furnished-room::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .48;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(0,0,0,.025));
  pointer-events: none;
}
.room-bedroom,
.room-living,
.room-majlis,
.room-office,
.room-kitchen,
.room-bathroom,
.room-storage,
.room-parking { background: #fff !important; }
.room-resize-handle {
  position: absolute;
  z-index: 12;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(15,23,42,.22);
  opacity: .86;
  touch-action: none;
}
.building-room:hover .room-resize-handle,
.building-room.resizing .room-resize-handle { opacity: 1; }
.resize-n,
.resize-s {
  left: 50%;
  width: 34px;
  height: 10px;
  transform: translateX(-50%);
  cursor: ns-resize;
}
.resize-n { top: -8px; }
.resize-s { bottom: -8px; }
.resize-e,
.resize-w {
  top: 50%;
  width: 10px;
  height: 34px;
  transform: translateY(-50%);
  cursor: ew-resize;
}
.resize-e { right: -8px; }
.resize-w { left: -8px; }
.resize-se {
  right: -9px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
}
.building-room.resizing {
  outline: 2px solid rgba(230,0,35,.38);
  outline-offset: 2px;
}
.room-title {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 4;
  display: block;
  width: min(68%, 150px);
  max-height: 62%;
  padding: 4px 5px;
  transform: none;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .86);
  color: #050505;
  font-size: clamp(9px, .72vw, 13px);
  line-height: 1.14;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
  pointer-events: none;
}
.room-title span {
  display: block;
  margin-top: 2px;
  font-size: .82em;
  font-weight: 700;
}
.room-dimension {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: clamp(8px, .62vw, 11px);
  font-weight: 900;
  pointer-events: none;
}
.room-dimension::before,
.room-dimension::after {
  content: "";
  position: absolute;
  background: #111;
}
.room-dimension b {
  position: relative;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.88);
  line-height: 1;
}
.dimension-width {
  left: 12%;
  right: 12%;
  top: 5px;
  height: 14px;
}
.dimension-width::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}
.dimension-width::after {
  left: 0;
  right: 0;
  top: 3px;
  height: 8px;
  background:
    linear-gradient(135deg, transparent 0 45%, #111 46% 54%, transparent 55%) left center / 8px 8px no-repeat,
    linear-gradient(45deg, transparent 0 45%, #111 46% 54%, transparent 55%) right center / 8px 8px no-repeat;
}
.dimension-height {
  top: 14%;
  bottom: 14%;
  inset-inline-start: 5px;
  width: 16px;
  writing-mode: vertical-rl;
}
.dimension-height::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}
.dimension-height::after {
  top: 0;
  bottom: 0;
  left: 4px;
  width: 8px;
  background:
    linear-gradient(45deg, transparent 0 45%, #111 46% 54%, transparent 55%) top center / 8px 8px no-repeat,
    linear-gradient(135deg, transparent 0 45%, #111 46% 54%, transparent 55%) bottom center / 8px 8px no-repeat;
}
.furniture-layer,
.furniture {
  position: absolute;
  z-index: 2;
  display: block;
}
.furniture-layer {
  inset: 0;
  opacity: .86;
  pointer-events: none;
}
.furniture {
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  transform-origin: center center;
}
.furniture::before,
.furniture::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.furniture-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 4;
  max-width: 120px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 6px rgba(15,23,42,.16);
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.furniture[data-wall="n"] .furniture-label { bottom: auto; top: calc(100% + 5px); }
.furniture[data-wall="e"] .furniture-label,
.furniture[data-wall="w"] .furniture-label {
  bottom: calc(100% + 5px);
}
.furniture.dragging,
.furniture.selected,
.opening.dragging {
  z-index: 20;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .26));
}
.furniture.selected {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.building-stage-layout .furniture-layer,
.building-stage-layout .furniture,
.building-stage-layout .room-title,
.building-stage-layout .room-dimension {
  display: none;
}
.building-stage-furniture .furniture-layer {
  opacity: .95;
  pointer-events: auto;
}
.building-stage-print .room-resize-handle,
.building-stage-print .room-title,
.building-stage-print .room-dimension,
.building-stage-print .building-land-label {
  display: none;
}
.building-stage-print .furniture.selected { outline: 0; }
.opening::before {
  content: "";
  position: absolute;
  background: #fff;
  pointer-events: none;
}
.plan-window {
  position: absolute;
  top: -7px;
  left: 24%;
  width: 44%;
  right: auto;
  z-index: 5;
  height: 10px;
  border: 2px solid #1f1f1f;
  border-top-color: #fff;
  border-bottom-color: #fff;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  cursor: grab;
  touch-action: none;
}
.plan-window::before {
  left: -4px;
  right: -4px;
  top: 50%;
  height: 14px;
  transform: translateY(-50%);
}
.plan-window.wall-s,
.plan-window.wall-n {
  width: 44%;
  height: 10px;
}
.plan-window.wall-n { top: -7px; }
.plan-window.wall-s { top: auto; bottom: -7px; }
.plan-window.wall-e,
.plan-window.wall-w {
  top: 24%;
  width: 10px;
  height: 44%;
}
.plan-window.wall-w { left: -7px; }
.plan-window.wall-e { left: auto; right: -7px; }
.plan-window.wall-e::before,
.plan-window.wall-w::before {
  left: 50%;
  right: auto;
  top: -4px;
  bottom: -4px;
  width: 14px;
  height: auto;
  transform: translateX(-50%);
}
.plan-door {
  position: absolute;
  bottom: -4px;
  z-index: 5;
  width: clamp(24px, 4vw, 38px);
  height: clamp(24px, 4vw, 38px);
  border: 2px solid #1f1f1f;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 38px 0 0;
  background: rgba(255,255,255,.72);
  cursor: grab;
  touch-action: none;
}
.plan-door::before {
  left: -5px;
  right: -5px;
  bottom: -5px;
  height: 11px;
}
.plan-door.left { left: 14%; }
.plan-door.right {
  right: 14%;
  transform: scaleX(-1);
}
.plan-door.wall-n {
  top: -4px;
  bottom: auto;
  transform: rotate(180deg);
}
.plan-door.wall-s { bottom: -4px; }
.plan-door.wall-e {
  right: -4px;
  bottom: auto;
  transform: rotate(-90deg);
}
.plan-door.wall-w {
  left: -4px;
  bottom: auto;
  transform: rotate(90deg);
}
.plan-door.wall-n::before {
  top: -5px;
  bottom: auto;
}
.plan-door.wall-e::before,
.plan-door.wall-w::before {
  left: auto;
  right: auto;
  bottom: -5px;
}
.bed {
  left: 12%;
  top: 32%;
  width: 36%;
  height: 33%;
  border-radius: 12px 12px 7px 7px;
  background: linear-gradient(90deg, #f6f3ec 0 34%, #cad5dd 34% 100%);
  box-shadow: 0 8px 16px rgba(30, 41, 59, .2);
}
.pillow {
  left: 15%;
  top: 36%;
  width: 12%;
  height: 18%;
  border-radius: 5px;
  background: #fff;
}
.wardrobe {
  left: 10%;
  bottom: 9%;
  width: 45%;
  height: 10%;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, #9f8b72 0 9px, #c6b49b 9px 18px);
}
.wardrobe[data-wall="n"],
.wardrobe[data-wall="s"] {
  width: 45%;
  height: 10%;
  background: repeating-linear-gradient(90deg, #9f8b72 0 9px, #c6b49b 9px 18px);
}
.wardrobe[data-wall="e"],
.wardrobe[data-wall="w"] {
  width: 10%;
  height: 45%;
  background: repeating-linear-gradient(180deg, #9f8b72 0 9px, #c6b49b 9px 18px);
}
.nightstand {
  top: 32%;
  width: 10%;
  height: 10%;
  border-radius: 4px;
  background: #b69b73;
}
.nightstand.one { left: 4%; }
.nightstand.two { left: 50%; }
.kitchen-counter {
  left: 6%;
  top: 10%;
  width: 18%;
  height: 72%;
  border-radius: 4px;
  background: linear-gradient(180deg, #d6d1c8, #8f918b);
}
.kitchen-counter[data-wall="n"],
.kitchen-counter[data-wall="s"] {
  width: 52%;
  height: 9%;
  background: linear-gradient(90deg, #d6d1c8, #8f918b);
}
.kitchen-counter[data-wall="e"],
.kitchen-counter[data-wall="w"] {
  width: 9%;
  height: 52%;
}
.sink {
  left: 9%;
  top: 22%;
  width: 12%;
  height: 12%;
  border-radius: 3px;
  background: #cfd8dc;
  box-shadow: inset 0 0 0 2px #7b858c;
}
.sink[data-wall] {
  width: 16%;
  height: 10%;
  border-radius: 6px;
}
.sink[data-wall="e"],
.sink[data-wall="w"] {
  width: 10%;
  height: 16%;
}
.cooktop {
  left: 9%;
  top: 54%;
  width: 12%;
  height: 12%;
  border-radius: 3px;
  background: #1f2937;
}
.dining-table {
  right: 12%;
  top: 28%;
  width: 24%;
  height: 28%;
  border-radius: 12px;
  background: #f7f0e8;
  box-shadow: 0 5px 14px rgba(30,41,59,.18);
}
.chair {
  width: 9%;
  height: 9%;
  border-radius: 50%;
  background: #566170;
}
.chair.c1 { right: 38%; top: 30%; }
.chair.c2 { right: 3%; top: 30%; }
.chair.c3 { right: 38%; top: 52%; }
.chair.c4 { right: 3%; top: 52%; }
.toilet {
  left: 16%;
  bottom: 12%;
  width: 17%;
  height: 25%;
  border-radius: 48% 48% 12px 12px;
  background: #fff;
  box-shadow: inset 0 -8px 0 #d8dde3, 0 5px 12px rgba(30,41,59,.16);
}
.toilet[data-wall] {
  width: 13%;
  height: 18%;
}
.toilet[data-wall="e"],
.toilet[data-wall="w"] {
  width: 18%;
  height: 13%;
}
.toilet[data-wall="n"] { border-radius: 48% 48% 12px 12px; }
.toilet[data-wall="s"] { border-radius: 12px 12px 48% 48%; }
.toilet[data-wall="e"] { border-radius: 48% 12px 12px 48%; }
.toilet[data-wall="w"] { border-radius: 12px 48% 48% 12px; }
.toilet::before {
  left: 26%;
  top: 4%;
  width: 48%;
  height: 28%;
  border-radius: 4px;
  background: #d8dde3;
}
.toilet::after {
  left: 27%;
  top: 36%;
  width: 46%;
  height: 52%;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #d8dde3;
}
.toilet[data-wall="s"]::before { top: auto; bottom: 4%; }
.toilet[data-wall="s"]::after { top: 12%; }
.toilet[data-wall="w"]::before {
  left: 4%;
  top: 26%;
  width: 28%;
  height: 48%;
}
.toilet[data-wall="w"]::after {
  left: 36%;
  top: 27%;
  width: 52%;
  height: 46%;
}
.toilet[data-wall="e"]::before {
  left: auto;
  right: 4%;
  top: 26%;
  width: 28%;
  height: 48%;
}
.toilet[data-wall="e"]::after {
  left: 12%;
  top: 27%;
  width: 52%;
  height: 46%;
}
.shower {
  right: 10%;
  top: 10%;
  width: 28%;
  height: 34%;
  border-radius: 4px;
  background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 3px #c2c7ce;
}
.shower[data-wall] {
  width: 22%;
  height: 18%;
  border-radius: 6px;
}
.shower[data-wall="e"],
.shower[data-wall="w"] {
  width: 18%;
  height: 22%;
}
.vanity {
  right: 10%;
  bottom: 12%;
  width: 26%;
  height: 14%;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 2px #cbd0d6;
}
.bathtub {
  left: 10%;
  top: 12%;
  width: 34%;
  height: 22%;
  border-radius: 999px 999px 14px 14px;
  background: #fff;
  box-shadow: inset 0 0 0 4px #cbd5df, 0 5px 12px rgba(30,41,59,.14);
}
.bathtub[data-wall="n"],
.bathtub[data-wall="s"] {
  width: 34%;
  height: 16%;
}
.bathtub[data-wall="n"] {
  border-radius: 999px 999px 14px 14px;
}
.bathtub[data-wall="s"] {
  border-radius: 14px 14px 999px 999px;
}
.bathtub[data-wall="e"],
.bathtub[data-wall="w"] {
  width: 16%;
  height: 34%;
  border-radius: 14px 999px 999px 14px;
}
.bathtub::before {
  left: 7%;
  top: 12%;
  width: 14%;
  height: 20%;
  border-radius: 4px;
  background: #94a3b8;
}
.bathtub::after {
  left: 16%;
  top: 28%;
  width: 68%;
  height: 46%;
  border-radius: 999px;
  background: rgba(219,231,239,.85);
}
.bathtub[data-wall="s"]::before {
  left: 7%;
  right: auto;
  top: auto;
  bottom: 12%;
}
.bathtub[data-wall="e"] {
  border-radius: 999px 14px 14px 999px;
}
.bathtub[data-wall="w"] {
  border-radius: 14px 999px 999px 14px;
}
.bathtub[data-wall="e"]::before {
  left: auto;
  right: 12%;
  top: 7%;
  width: 20%;
  height: 14%;
}
.bathtub[data-wall="e"]::after,
.bathtub[data-wall="w"]::after {
  left: 28%;
  top: 16%;
  width: 46%;
  height: 68%;
}
.bathtub[data-wall="w"]::before {
  left: 12%;
  top: 7%;
  bottom: auto;
  width: 20%;
  height: 14%;
}
.sofa {
  left: 10%;
  top: 18%;
  width: 44%;
  height: 19%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,0) 18% 82%, rgba(255,255,255,.16)),
    linear-gradient(180deg, #5f7083, #31465c);
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,.2),
    inset 0 -5px 0 rgba(15,23,42,.2),
    0 8px 15px rgba(30,41,59,.22);
}
.sofa::before {
  left: 8%;
  right: 8%;
  top: 16%;
  height: 36%;
  border-radius: 9px;
  background:
    linear-gradient(90deg, transparent 0 31%, rgba(15,23,42,.22) 31% 34%, transparent 34% 65%, rgba(15,23,42,.22) 65% 68%, transparent 68%),
    rgba(210,220,226,.42);
}
.sofa::after {
  left: 5%;
  right: 5%;
  bottom: 8%;
  height: 24%;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15,23,42,.28) 0 4%, transparent 4% 48%, rgba(15,23,42,.2) 48% 52%, transparent 52% 96%, rgba(15,23,42,.28) 96%),
    rgba(21,34,49,.34);
}
.coffee-table {
  left: 42%;
  top: 45%;
  width: 20%;
  height: 14%;
  border-radius: 50%;
  background: #c8b79d;
}
.armchair {
  width: 18%;
  height: 18%;
  border-radius: 40%;
  background: #3b526a;
}
.armchair.one { right: 14%; top: 18%; }
.armchair.two { left: 16%; bottom: 16%; }
.tv {
  right: 6%;
  bottom: 12%;
  width: 32%;
  height: 6%;
  border-radius: 4px;
  background: linear-gradient(180deg, #111827, #374151);
  box-shadow: 0 4px 10px rgba(15,23,42,.22);
}
.tv[data-wall="e"],
.tv[data-wall="w"] {
  width: 6%;
  height: 32%;
}
.tv::after {
  left: 44%;
  bottom: -50%;
  width: 12%;
  height: 50%;
  background: #4b5563;
}
.desk {
  left: 10%;
  top: 16%;
  width: 36%;
  height: 18%;
  border-radius: 5px;
  background: #c9a975;
  box-shadow: 0 8px 14px rgba(30,41,59,.18);
}
.desk[data-wall="n"],
.desk[data-wall="s"] {
  width: 34%;
  height: 12%;
}
.desk[data-wall="e"],
.desk[data-wall="w"] {
  width: 12%;
  height: 34%;
}
.office-chair {
  left: 30%;
  top: 38%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: #334155;
}
.shelf {
  right: 8%;
  top: 13%;
  width: 12%;
  height: 62%;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, #8b735b 0 9px, #c0ac91 9px 17px);
}
.shelf[data-wall="n"],
.shelf[data-wall="s"] {
  width: 36%;
  height: 8%;
  background: repeating-linear-gradient(90deg, #8b735b 0 9px, #c0ac91 9px 17px);
}
.shelf[data-wall="e"],
.shelf[data-wall="w"] {
  width: 8%;
  height: 36%;
}
.shelf.long {
  left: 10%;
  width: 78%;
  height: 10%;
}
.shelf.long.one { top: 18%; }
.shelf.long.two { top: 44%; }
.rug {
  left: 30%;
  top: 56%;
  width: 36%;
  height: 24%;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.22), rgba(255,255,255,0) 58%),
    repeating-linear-gradient(90deg, #d8c8ae 0 8px, #bda98a 8px 16px);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.45), 0 6px 12px rgba(30,41,59,.12);
}
.plant {
  left: 72%;
  top: 70%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #22c55e 0 38%, #15803d 39% 64%, #7c5f3f 65% 100%);
  box-shadow: 0 5px 10px rgba(30,41,59,.18);
}
.floor-lamp {
  left: 78%;
  top: 18%;
  width: 10%;
  height: 22%;
  border-radius: 50% 50% 8px 8px;
  background: radial-gradient(circle at 50% 18%, #fde68a 0 32%, #d6b15f 33% 56%, transparent 57%), linear-gradient(90deg, transparent 44%, #6b7280 45% 55%, transparent 56%);
}
.side-table {
  left: 58%;
  top: 28%;
  width: 14%;
  height: 12%;
  border-radius: 50%;
  background: #c0a27a;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28), 0 5px 11px rgba(30,41,59,.16);
}
.fridge {
  left: 72%;
  top: 12%;
  width: 13%;
  height: 30%;
  border-radius: 5px;
  background: linear-gradient(90deg, #e5e7eb, #f8fafc 45%, #cbd5e1);
  box-shadow: inset 0 0 0 2px #94a3b8, 0 5px 10px rgba(30,41,59,.15);
}
.fridge[data-wall="n"],
.fridge[data-wall="s"] {
  width: 16%;
  height: 18%;
}
.fridge[data-wall="e"],
.fridge[data-wall="w"] {
  width: 13%;
  height: 30%;
}
.fridge::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #94a3b8;
}
.stove {
  left: 9%;
  top: 54%;
  width: 13%;
  height: 13%;
  border-radius: 5px;
  background: #1f2937;
  box-shadow: inset 0 0 0 3px #475569;
}
.stove[data-wall="n"],
.stove[data-wall="s"] {
  width: 16%;
  height: 12%;
}
.stove[data-wall="e"],
.stove[data-wall="w"] {
  width: 12%;
  height: 16%;
}
.stove::before,
.stove::after {
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: #94a3b8;
}
.stove::before { left: 16%; top: 18%; }
.stove::after { right: 16%; bottom: 18%; }
.washer {
  left: 58%;
  top: 58%;
  width: 16%;
  height: 18%;
  border-radius: 5px;
  background: #e5e7eb;
  box-shadow: inset 0 0 0 2px #94a3b8;
}
.washer[data-wall="n"],
.washer[data-wall="s"] {
  width: 16%;
  height: 14%;
}
.washer[data-wall="e"],
.washer[data-wall="w"] {
  width: 14%;
  height: 16%;
}
.washer::after {
  left: 27%;
  top: 30%;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: #dbeafe;
  box-shadow: inset 0 0 0 3px #94a3b8;
}
.mirror {
  right: 10%;
  top: 12%;
  width: 12%;
  height: 28%;
  border-radius: 999px;
  background: linear-gradient(135deg, #eff6ff, #bfdbfe);
  box-shadow: inset 0 0 0 3px #94a3b8;
}
.mirror[data-wall="n"],
.mirror[data-wall="s"] {
  width: 22%;
  height: 8%;
}
.mirror[data-wall="e"],
.mirror[data-wall="w"] {
  width: 8%;
  height: 22%;
}
.box {
  width: 18%;
  height: 16%;
  border-radius: 3px;
  background: #b08968;
}
.box.one { left: 22%; bottom: 18%; }
.box.two { right: 24%; bottom: 18%; }
.car {
  left: 18%;
  top: 24%;
  width: 58%;
  height: 42%;
  border-radius: 18px;
  background: linear-gradient(90deg, #334155, #64748b 36% 64%, #334155);
  box-shadow: inset 10px 0 0 rgba(255,255,255,.2), inset -10px 0 0 rgba(255,255,255,.2);
}
.building-plan-3d {
  min-height: 460px;
  transform-style: preserve-3d;
  perspective: 900px;
  background:
    linear-gradient(150deg, rgba(20,184,166,.13), rgba(230,0,35,.08)),
    #eef6f4;
}
.building-block {
  position: absolute;
  min-height: 38px;
  transform: translateY(calc(var(--block-height) * -0.15)) skewY(-7deg);
  border: 2px solid rgba(47, 52, 64, .92);
  border-radius: 6px;
  box-shadow:
    10px 14px 0 rgba(47, 52, 64, .2),
    0 calc(var(--block-height) * -1) 0 rgba(255, 255, 255, .38) inset;
}
.building-block span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  overflow-wrap: anywhere;
  color: #1f2937;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.building-three-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  cursor: grab;
  touch-action: none;
}
.building-three-canvas:active { cursor: grabbing; }
.building-dom-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  perspective: 900px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,.96), rgba(241,245,249,.72) 42%, rgba(226,232,240,.9)),
    #eef3f5;
}
.building-dom-stage:active { cursor: grabbing; }
.building-dom-controls {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 8;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}
.building-dom-controls button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15,23,42,.12);
  cursor: pointer;
}
.building-dom-controls button:hover {
  border-color: rgba(230,0,35,.35);
  color: var(--primary);
}
.building-dom-grid {
  position: absolute;
  left: 50%;
  top: 57%;
  width: 820px;
  height: 820px;
  transform: translate(-50%, -50%) rotateX(62deg) rotateZ(-35deg);
  transform-style: preserve-3d;
  background:
    linear-gradient(90deg, rgba(148,163,184,.42) 1px, transparent 1px),
    linear-gradient(rgba(148,163,184,.42) 1px, transparent 1px);
  background-size: 32px 32px;
}
.building-dom-scene {
  position: absolute;
  left: 50%;
  top: 53%;
  width: 620px;
  height: 620px;
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform .05s linear;
}
.building-dom-room3d {
  position: absolute;
  transform: translateZ(var(--floor-offset));
  transform-style: preserve-3d;
  border: 2px solid #22262f;
  background: rgba(232, 221, 208, .86);
  box-shadow: 0 24px 35px rgba(15, 23, 42, .16);
}
.building-dom-room3d::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 4px;
  background: rgba(255,255,255,.38);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}
.dom-floor,
.dom-wall,
.dom-room-label {
  position: absolute;
  display: block;
}
.dom-floor {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 2px, transparent 2px 20px),
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(0,0,0,.06));
}
.dom-wall {
  background: #282c34;
  box-shadow: 0 2px 10px rgba(15,23,42,.18);
}
.dom-wall.north,
.dom-wall.south {
  left: 0;
  right: 0;
  height: 9px;
}
.dom-wall.north { top: 0; transform: translateZ(var(--room-height)); }
.dom-wall.south { bottom: 0; transform: translateZ(var(--room-height)); }
.dom-wall.east,
.dom-wall.west {
  top: 0;
  bottom: 0;
  width: 9px;
}
.dom-wall.east { right: 0; transform: translateZ(var(--room-height)); }
.dom-wall.west { left: 0; transform: translateZ(var(--room-height)); }
.dom-room-label {
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.78);
}
.dom-room-label small {
  display: block;
  margin-top: 3px;
  color: #475569;
  font-size: 10px;
}
.building-plan-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.building-plan-option {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.building-plan-option.selected {
  border-color: rgba(230, 0, 35, .36);
  box-shadow: 0 14px 32px rgba(230, 0, 35, .1);
}
.building-plan-option strong { display: block; font-size: 16px; }
.building-plan-option span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.building-option-stats { display: grid; gap: 3px; }
.muted { color: var(--muted); }
.status { margin: 12px 0 0; padding: 11px; border-radius: 8px; background: #eefaf8; color: #0f766e; }
.status.error { background: #fff1f0; color: var(--danger); }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 8px; background: white; color: var(--muted); text-align: center; }
.account-profile-card { margin-bottom: 16px; }
.account-profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.account-profile-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.account-profile-form input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.account-profile-form .button { min-height: 44px; white-space: nowrap; }
.account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; margin-top: 5px; font-size: 22px; }
.plan { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.plan strong { display: block; font-size: 18px; }
.plan p { color: var(--muted); min-height: 42px; }
.support-form { display: grid; gap: 8px; }
.support-list { display: grid; gap: 12px; }
.support-ticket { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.support-ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.support-ticket-head strong { display: block; }
.ticket-status { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #e9f8f5; color: #0f766e; font-size: 12px; font-weight: 900; }
.ticket-status.closed { background: #f2f4f7; color: #667085; }
.ticket-status.answered { background: #fff4df; color: #936400; }
.support-thread { display: grid; gap: 8px; }
.support-message { display: grid; gap: 5px; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #fbfbfd; }
.support-message.admin { border-color: #ffd0d6; background: #fff6f7; }
.support-message p { margin: 0; white-space: pre-wrap; line-height: 1.65; }
.support-message small { color: var(--muted); font-weight: 500; }
.support-attachment { width: fit-content; color: var(--primary); font-weight: 900; }
.support-reply-form { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.support-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; margin-bottom: 8px; }
.banner-strip:empty { display: none; }
.banner-strip img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; border-radius: 8px; }
@media (max-width: 980px) {
  .promo-bar { flex-wrap: wrap; min-height: auto; text-align: center; }
  .auth-nav {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
    min-height: 0;
  }
  html[dir="rtl"] .auth-nav { flex-direction: initial; }
  .auth-nav .brand {
    min-width: 0;
    padding: 4px 0;
  }
  .auth-nav .brand strong,
  .auth-nav .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .auth-nav .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .auth-actions {
    justify-content: flex-end;
    gap: 6px;
    overflow: visible;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .auth-actions .button,
  .auth-actions .language-toggle {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }
  .auth-actions .button:not(.header-logout):not(.header-dashboard) {
    max-width: 96px;
  }
  .auth-nav-links {
    grid-column: 1 / -1;
    display: none;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .1);
  }
  .auth-nav.menu-open .auth-nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
  .auth-nav-links button,
  .nav-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary);
    white-space: nowrap;
  }
  .auth-hero, .tool-grid { grid-template-columns: 1fr; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-feature-arrow { transform: translateX(-50%) rotate(24deg); margin: 0; }
  .model3d-landing-hero,
  .model3d-live-demo,
  .model3d-steps { grid-template-columns: 1fr; }
  .model3d-feature-grid,
  .model3d-case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-preview { min-height: 360px; }
  .space-heading { margin-bottom: 30px; }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .space-card { min-height: 260px; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; padding: 8px 10px; border: 1px solid var(--line); }
  .sidebar .brand, .sidebar-card { display: none; }
  .nav { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .nav button { justify-content: center; min-height: 44px; padding: 9px 6px; font-size: 13px; }
  .page { padding: 18px 14px 88px; }
  .two, .account-grid, .account-profile-form, .building-planner-grid { grid-template-columns: 1fr; justify-content: stretch; }
  .building-plan-workspace { grid-template-columns: minmax(0, 1fr); }
  .building-plan-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .auth-nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .auth-actions {
    grid-column: 1 / -1;
  }
  .auth-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
  }
  .auth-actions .button,
  .auth-actions .language-switcher,
  .auth-actions .language-toggle {
    flex: 0 0 auto;
  }
  .language-menu {
    inset-inline-end: auto;
    inset-inline-start: 0;
    max-width: calc(100vw - 28px);
  }
  .auth-hero { padding-left: 16px; padding-right: 16px; }
  .hero-copy h1 { font-size: 38px; }
  .space-types { padding-left: 16px; padding-right: 16px; }
  .space-grid { grid-template-columns: 1fr; }
  .tool-section { width: calc(100% - 24px); }
  .landing-price-grid { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .tool-tabs { grid-template-columns: 1fr; }
  .tool-tabs button { border-left: 0; border-top: 1px solid #d8d8d8; }
  .tool-tabs button:first-child { border-top: 0; }
  .preview-gallery { grid-template-columns: 1fr; }
  .model3d-landing-hero { padding-top: 44px; }
  .model3d-hero-image-panel,
  .model3d-hero-image-panel img,
  .model3d-hero-image-panel model-viewer,
  .model3d-hero-image-panel .model3d-preview-stage,
  .building-planner-video-panel,
  .building-planner-video-panel video,
  .building-planner-video-fallback { min-height: 340px; }
  .building-planner-video-fallback { padding: 6px; }
  .bp-plan-demo { width: 100%; }
  .model3d-demo-upload { grid-template-columns: 1fr; }
  .model3d-demo-photo,
  .model3d-demo-sketch-pad,
  .model3d-demo-photo img,
  .model3d-demo-sketch-pad img { min-height: 176px; height: 176px; }
  .model3d-feature-grid,
  .model3d-case-grid { grid-template-columns: 1fr; }
  .model3d-preview-head { align-items: flex-start; flex-direction: column; }
  .mode-grid, .result-grid, .project-grid, .plans-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-before-after { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .building-planner-form,
  .building-room-types,
  .building-plan-options { grid-template-columns: 1fr; }
  .building-plan-workspace { grid-template-columns: 1fr; }
  .building-plan-2d,
  .building-plan-3d { min-height: 360px; }
  .case-demo-thumb, .case-demo-thumb.selected { flex-basis: min(72%, 260px); }
  .choice-grid, .selected-options-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #roomTypes.choice-grid { grid-template-columns: repeat(var(--room-type-count, 8), minmax(132px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
