:root {
  --accent: #e5092b;
  --accent-dark: #b8051f;
  --dark: #12131a;
  --dark-soft: #1d1f29;
  --bg: #fafafa;
  --muted: #6b6f7d;
  --border: #e7e7ec;
  --radius: 14px;
  --max-width: 1140px;
  --shadow-sm: 0 2px 10px rgba(18, 19, 26, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 19, 26, 0.12);
  --nav-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.5;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  display: block;
}

.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--dark);
}

.lang-switch a.active {
  color: var(--accent);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(229, 9, 43, 0.35);
}

.cta-small {
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
}

.cta-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  border: 2px solid var(--dark);
  border-radius: 999px;
}

.flash-container {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
}

.flash {
  background: var(--dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-md);
}

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: white;
  padding: 5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 9, 43, 0.35) 0%, rgba(229, 9, 43, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.9rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-text .subtitle {
  font-size: 1.15rem;
  color: #c7c8d1;
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.hero-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-price-new {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

.hero-price-old {
  font-size: 1.05rem;
  font-weight: 600;
  color: #9a9ca8;
  text-decoration: line-through;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-link {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.hero-link:hover {
  border-color: white;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.hero-stat span {
  font-size: 0.85rem;
  color: #9a9ca8;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  width: 316px;
  padding: 1rem 0;
  justify-self: start;
  margin-left: 2.5rem;
}

.hero-visual-card {
  --frame-w: 8px;
  position: relative;
  display: block;
  background-color: #cdb399;
  padding: var(--frame-w);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.frame-edge {
  position: absolute;
  background-color: #cdb399;
  pointer-events: none;
}

.frame-edge-top,
.frame-edge-bottom {
  left: 0;
  right: 0;
  height: var(--frame-w);
  background-image: var(--wood-texture-h, none);
  background-repeat: repeat-x;
  background-size: 64px var(--frame-w);
}

.frame-edge-left,
.frame-edge-right {
  top: 0;
  bottom: 0;
  width: var(--frame-w);
  background-image: var(--wood-texture-v, none);
  background-repeat: repeat-y;
  background-size: var(--frame-w) 64px;
}

.frame-edge-top {
  top: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--frame-w)) 100%, var(--frame-w) 100%);
}

.frame-edge-bottom {
  bottom: 0;
  clip-path: polygon(var(--frame-w) 0, calc(100% - var(--frame-w)) 0, 100% 100%, 0 100%);
}

.frame-edge-left {
  left: 0;
  clip-path: polygon(0 0, 100% var(--frame-w), 100% calc(100% - var(--frame-w)), 0 100%);
}

.frame-edge-right {
  right: 0;
  clip-path: polygon(0 var(--frame-w), 100% 0, 100% 100%, 0 calc(100% - var(--frame-w)));
}

.hero-visual-card img {
    border-radius: 0;
  width: 100%;
  height: auto;
  display: block;
}

.hero-visual-card.card-1 {
  grid-column: 1 / -1;
  transform: rotate(-1.5deg) translateY(4px);
}

.hero-visual-card.card-2 {
  transform: rotate(-3deg) translateY(6px);
}

.hero-visual-card.card-3 {
  transform: rotate(3.5deg) translateY(10px);
  z-index: 1;
}

.features {
  background: white;
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: left;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: #fdeef0;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.styles-showcase, .how-it-works {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.styles-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  text-align: left;
}

.style-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.style-row-reverse {
  direction: rtl;
}

.style-row-reverse > * {
  direction: ltr;
}

.style-row-img {
    --frame-w: 14px;
  position: relative;
  display: inline-flex;
  justify-self: center;
  background-color: #cdb399;
  padding: var(--frame-w);
  box-shadow:
    0 24px 60px rgba(18, 19, 26, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.style-row-img img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 0;
}

.style-row-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.style-row-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.style-row-text p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.how-it-works {
  background: white;
  border-radius: var(--radius);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}

.steps li {
  text-align: left;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.92rem;
}

.how-it-works-cta {
  text-align: center;
}

.gallery {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-3d-wrap {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 2.5rem auto 0;
}

.gallery-3d-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery-flip-row {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.gallery-flip-row .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: none;
  font-family: inherit;
  font-size: 1rem;
}

.gallery-flip-row .cta-secondary svg {
  transition: transform 0.5s ease;
}

.gallery-flip-row .cta-secondary.is-flipping svg {
  transform: rotate(360deg);
}

.gallery-flip-row .cta-secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.85rem;
}

.site-footer {
  background: var(--dark);
  color: #9a9ca8;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner .logo {
  color: white;
}

.footer-inner p {
  font-size: 0.9rem;
}

.footer-simple {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  width: 100%;
  margin-top: 0.25rem;
}

.footer-legal-links a {
  color: #9a9ca8;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-legal-links a:hover {
  color: white;
}

.footer-brand p {
  margin-top: 0.5rem;
  max-width: 20rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col strong {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: #9a9ca8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

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

.legal-page h1 {
  font-size: 2rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.legal-page section {
  margin-top: 2.25rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.legal-page ul {
  margin: 0 0 0.75rem 1.25rem;
  padding: 0;
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.site-nav-tunnel .nav-inner { max-width: none; padding: 0 2rem; }

.hint { color: var(--muted); font-size: 0.95rem; }

.tunnel-layout {
  height: calc(100vh - var(--nav-h));
  background: #f5f6f8;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tunnel-progress {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: 50px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.tunnel-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.tunnel-step.active { color: var(--dark); }
.tunnel-step.done   { color: var(--accent); }

.tunnel-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--muted);
}

.tunnel-step.active .tunnel-step-dot { border-color: var(--dark); color: var(--dark); }
.tunnel-step.done   .tunnel-step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }

.tunnel-step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.65rem;
}

.tunnel-step-line.done { background: var(--accent); }

.tunnel-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  color: var(--dark);
}

.tunnel-subtitle { color: var(--muted); font-size: 0.9rem; margin: 0; }

.cta-block { display: flex; width: 100%; justify-content: center; }

.cta-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--dark);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.cta-ghost:hover { border-color: #b8b8c4; background: #f0f1f5; }

.actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.actions-column { flex-direction: column; align-items: stretch; }
.actions-column form { width: 100%; }

.tunnel-upload-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.tunnel-upload-inner { width: 100%; max-width: 480px; text-align: center; }

.upload-heading { margin-bottom: 1.75rem; }
.upload-heading .tunnel-title { font-size: 1.8rem; margin-bottom: 0.4rem; }
.upload-heading .tunnel-subtitle { font-size: 0.95rem; }

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(229, 9, 43, 0.07);
}

.dropzone-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  padding: 2.5rem 2rem;
}

.dropzone-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--muted);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dropzone:hover .dropzone-icon-wrap, .dropzone.dragover .dropzone-icon-wrap {
  background: #fff0f1;
  border-color: var(--accent);
  color: var(--accent);
}

.dropzone-placeholder strong { color: var(--dark); font-size: 1rem; display: block; margin-bottom: 0.15rem; }
.dropzone-placeholder span { font-size: 0.88rem; }
.dropzone-placeholder u { color: var(--accent); text-decoration-color: var(--accent); cursor: pointer; }
.dropzone-hint { font-size: 0.78rem !important; margin-top: 0.5rem; color: #aaa; }
.dropzone-placeholder.hidden { display: none; }

.dropzone-preview { display: none; max-width: 100%; max-height: 320px; object-fit: contain; }
.dropzone-preview.visible { display: block; }

.dropzone-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.dropzone-loading.hidden { display: none; }

.upload-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.upload-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-top: 1.5rem;
}

.upload-trust-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.upload-trust-item svg { flex-shrink: 0; opacity: 0.7; }

#photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.style-picker-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: 1fr;
  min-height: 0;
  overflow: hidden;
}

.style-picker-preview-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  gap: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.preview-mode-tabs {
  display: flex;
  background: #eef0f4;
  border-radius: 9px;
  padding: 3px;
}

.preview-tab {
  flex: 1;
  padding: 0.36rem 0.85rem;
  border: none;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.preview-tab.active {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.style-picker-preview {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#live-preview-wrap.room-mode > .preview-image { display: none; }
#live-preview-wrap.room-mode .room-scene       { display: flex; }
#live-preview-wrap.room-mode #frame-3d-canvas  { display: none; }

.preview-image-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#frame-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  display: block;
}

.room-scene {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.preview-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  color: var(--dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  border-radius: 10px;
  z-index: 2;
  overflow: hidden;
}

.style-picker-preview.loading .preview-loading-overlay { opacity: 1; }

.preview-loading-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-loading-text {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.preview-loading-text.fading {
  opacity: 0;
}

.style-picker-list {
  position: relative;
  overflow: hidden;
  background: #f5f6f8;
}

.style-list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.style-picker-list-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.style-pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--dark);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.style-pick:hover { border-color: #c5c5cc; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.style-pick.active { border-color: var(--accent); box-shadow: 0 2px 12px rgba(229,9,43,0.1); }

.style-pick-thumb { flex-shrink: 0; width: 46px; height: 46px; border-radius: 7px; overflow: hidden; }
.style-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.style-pick-info { flex: 1; display: flex; flex-direction: column; gap: 0.08rem; }
.style-pick-info strong { font-size: 0.88rem; color: var(--dark); }
.style-pick-info .hint { color: var(--muted); font-size: 0.78rem; }

.style-pick-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.15s ease;
}

.style-pick.active .style-pick-check { background: var(--accent); border-color: var(--accent); color: white; }

.style-picker-actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.customizer-drawer {
  position: absolute;
  inset: 0;
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}
.customizer-drawer.open { transform: translateX(0); }

.customizer-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.customizer-drawer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.customizer-drawer-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.customizer-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.customizer-drawer-close:hover { color: var(--dark); background: #f0f0f4; }

.customizer-fields-wrap {
  padding: 1.25rem 1.25rem 10rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
}

.customizer-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.customizer-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
}

.customizer-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--dark);
  background: #fff;
  transition: border-color 0.15s;
}
textarea.customizer-input { resize: vertical; min-height: 60px; }
.customizer-input:focus { outline: none; border-color: var(--accent); }

.customizer-options {
  display: grid;
  gap: 0.5rem;
}
.customizer-opt {
  padding: 0.42rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.customizer-opt:hover { border-color: #c5c5cc; }
.customizer-opt.active {
  border-color: var(--accent);
  background: rgba(229, 9, 43, 0.05);
  color: var(--accent);
  font-weight: 700;
}

.customizer-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  pointer-events: none;
}
.customizer-actions > * { pointer-events: auto; }

.customizer-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.25rem 0.5rem;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.customizer-apply:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 19, 26, 0.3);
}

.customizer-continue-wrap {
  padding: 0 1.25rem 1.25rem;
}

.editor-canvas {
  display: block;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  max-width: 100%;
  touch-action: none;
}

.adjust-photo-btn {
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.adjust-photo-btn:hover { border-color: var(--accent); color: var(--accent); }
.adjust-photo-btn.hidden { display: none; }

.editor-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.editor-controls.hidden { display: none; }

.editor-zoom { display: flex; gap: 0.35rem; }

.editor-zoom-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: border-color 0.15s, color 0.15s;
}
.editor-zoom-btn:hover { border-color: var(--accent); color: var(--accent); }

.editor-actions { display: flex; gap: 0.5rem; align-items: center; }

.cta-small-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--dark);
  border-radius: 999px;
  background: none;
  color: var(--dark);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.cta-small-secondary:hover { background: var(--bg); }

.preview-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: block;
  object-fit: contain;
}

.preview-image.small { max-height: 280px; }

.tunnel-shipping-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 2rem;
  overflow-y: auto;
  background: #f5f6f8;
}

.tunnel-shipping-inner {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.tunnel-shipping-inner .tunnel-title { margin-bottom: 0.2rem; }
.tunnel-shipping-inner .tunnel-subtitle { margin-bottom: 1.25rem; }

.form-field { display: flex; flex-direction: column; gap: 0.22rem; margin-bottom: 0.75rem; flex: 1; }
.form-row { display: flex; gap: 0.75rem; }

.form-field label { font-size: 0.76rem; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }

.form-field input {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.58rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--dark);
  transition: border-color 0.15s, background 0.15s;
}

.form-field input::placeholder { color: #c0c2cc; }

.form-field input:focus { outline: none; border-color: var(--accent); background: #fff; }

.form-field select {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.58rem 2.2rem 0.58rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2312131a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
  -webkit-appearance: none;
  appearance: none;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  width: 100%;
}

.form-field select:focus { outline: none; border-color: var(--accent); background-color: #fff; }

.tunnel-checkout-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  grid-template-rows: 1fr;
  min-height: 0;
  overflow: hidden;
}

.tunnel-checkout-preview {
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem;
  background: #f5f6f8;
  overflow: hidden;
  position: relative;
}

.tunnel-checkout-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  gap: 1rem;
  overflow-y: auto;
  background: #fff;
}

.tunnel-checkout-info h1 { font-size: 1.45rem; font-weight: 800; color: var(--dark); margin: 0; }

.shipping-picker { margin-top: 0.1rem; }

.shipping-option { cursor: default; }

.shipping-option-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shipping-option-left svg { flex-shrink: 0; color: var(--accent); }

.size-picker {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.size-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-option:hover { border-color: #c7c8d1; }

.size-option.selected {
  border-color: var(--accent);
  background: rgba(229, 9, 43, 0.04);
}

.size-option-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.size-option-dims {
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.size-option-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-left: auto;
  white-space: nowrap;
}

.size-popular-tag {
  position: absolute;
  top: -0.6rem;
  left: 1.1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 1rem;
  color: var(--dark);
}

.order-summary strong { font-size: 1.15rem; }
.stripe-pay-btn { width: 100%; }

.payment-trust {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  background: var(--bg);
}

.payment-trust-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.payment-trust p { font-size: 0.76rem; color: var(--muted); margin-bottom: 0.55rem; }

.payment-methods { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; }

.payment-methods span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
}

.pending-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

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

.tunnel-success-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vh, 3rem) 0;
  text-align: center;
  background: #fff;
  overflow-y: auto;
}

.success-badge {
  display: inline-block;
  background: #e8f7ee;
  color: #1a8a4b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.tunnel-success-body h1 { font-size: 1.8rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.tunnel-success-body .tunnel-subtitle { margin-bottom: 1.5rem; }

.tunnel-success-preview {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 620px;
}

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(300px, 85vw); margin: 1.5rem auto 0; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .tunnel-layout { height: auto; min-height: calc(100vh - var(--nav-h)); overflow: visible; }
  .tunnel-progress { padding: 0 1.25rem; }
  .tunnel-success-preview { height: 380px; }
  .tunnel-step span:not(.tunnel-step-dot) { display: none; }

  .style-picker-layout { grid-template-columns: 1fr; grid-template-rows: auto auto; overflow-y: auto; }
  .style-picker-preview-col { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; min-height: 400px; }
  .style-picker-preview { height: 320px; flex: none; }
  .style-picker-list { overflow-y: visible; }

  .customizer-drawer {
    position: relative;
    transform: none;
    display: none;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .customizer-drawer.open { display: flex; }

    .customizer-actions { position: fixed; }
  .style-picker-list:has(.customizer-drawer.open) .style-list-inner { display: none; }

  .tunnel-checkout-body { grid-template-columns: 1fr; overflow-y: auto; }
  .tunnel-checkout-preview { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem; min-height: 72vw; }
  .size-picker { gap: 0.5rem; }
  .size-option { padding: 0.7rem 0.9rem; }
  .size-option-label { font-size: 0.88rem; }
  .size-option-dims { font-size: 0.7rem; margin-left: 0.35rem; }
  .size-option-price { font-size: 0.9rem; }

  .form-row { flex-direction: column; gap: 0; }

  .style-row { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
  .style-row-reverse { direction: ltr; }
    .style-row-img { --frame-w: 10px; }
  .style-row-img img { max-height: 300px; }
  .styles-list { gap: 3.5rem; }

  .hero-visual-card { --frame-w: 5px; }
}
