/* Figma design tokens — Template 2 baseline (1:4944) */
.figma-template {
  width: 1440px;
  font-family: var(--t-body);
  color: var(--t-text);
  background: var(--t-bg);
  line-height: 1.5;
}

/* Header — px 160, py 20, shadow per Figma */
.ft-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 160px;
  background: #fff;
  box-shadow: 0 0 4px rgba(68, 83, 113, 0.1), 0 2px 2px rgba(68, 83, 113, 0.05);
}
.ft-header--air { padding: 20px 232px; }
.ft-header--dark { background: var(--t-text); }
.ft-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0 48px;
  font-size: 18px;
  line-height: 24px;
  color: var(--t-text);
}
.ft-nav--light { color: #fff; }
.ft-nav span { cursor: pointer; white-space: nowrap; }
.ft-lang { font-size: 18px; line-height: 24px; white-space: nowrap; }

/* Hero — 485px height, overlay #3e3e3e @ 30% */
.ft-hero-wrap { position: relative; margin-bottom: 0; }
.ft-hero { position: relative; height: 485px; width: 100%; }
.ft-hero--t1 { height: 544px; }
.ft-hero--t3 { height: 604px; }
.ft-hero--t4 { height: 600px; }
.ft-hero-img {
  position: absolute; inset: 0;
  background-image: var(--t-hero);
  background-size: cover;
  background-position: center;
}
.ft-hero-img--fade { opacity: 0.18; }
.ft-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(62, 62, 62, 0.3);
}
.ft-hero-overlay--light { background: rgba(0, 0, 0, 0.25); }
.ft-hero-overlay--heavy { background: rgba(0, 0, 0, 0.5); }
.ft-hero-overlay--vibrant { background: color-mix(in srgb, var(--t-secondary) 55%, transparent); }

.ft-hero-copy {
  position: absolute;
  left: 160px;
  top: 145px;
  max-width: 1116px;
  z-index: 2;
}
.ft-hero-copy--center {
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; width: 90%;
}
.ft-hero-title {
  font-family: var(--t-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 64px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}
.ft-hero-title--center { justify-content: center; text-align: center; display: block; }
.ft-hero-title--light { color: #fff; }
.ft-hero-accent { color: var(--t-accent); }
.ft-hero-sub {
  font-size: 18px;
  color: var(--t-text);
  margin-top: 12px;
  text-align: center;
}
.ft-hero-sub--light { color: rgba(255,255,255,0.9); }

.ft-btn-outline {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 100px;
  padding: 16px 28px;
  font-size: 16px;
  font-family: var(--t-body);
  cursor: pointer;
}
.ft-btn-primary {
  background: var(--t-primary);
  color: var(--t-primary-text);
  border: none;
  border-radius: 8px;
  padding: 16px 20px;
  height: 56px;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--t-body);
  cursor: pointer;
}
.ft-btn-sm { height: 44px; padding: 10px 20px; font-size: 14px; }

.ft-carousel-dots {
  position: absolute;
  right: 160px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.ft-dot { width: 4px; height: 24px; border-radius: 2px; background: rgba(255,255,255,0.4); }
.ft-dot.on { background: var(--t-primary); }

/* Search widget — 1128px, overlaps hero by 100px */
.ft-search-float {
  position: relative;
  margin: -100px auto 0;
  width: 1128px;
  z-index: 10;
  padding-bottom: 40px;
}
.ft-search-float--t1 { margin-top: -80px; }
.ft-search-float--inline {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}
.ft-search {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(68,83,113,0.1), 0 8px 24px rgba(68,83,113,0.12);
  padding: 0;
  overflow: hidden;
}
.ft-search-tabs {
  display: flex;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0 20px;
}
.ft-search-tab {
  padding: 14px 20px;
  font-size: 16px;
  color: #787878;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ft-search-tab.on {
  color: var(--t-text);
  border-bottom-color: var(--t-primary);
}
.ft-search-radios {
  display: flex;
  gap: 24px;
  padding: 24px 20px 0;
  font-size: 14px;
  color: var(--t-text);
}
.ft-search-radios label { display: flex; align-items: center; gap: 8px; }
.ft-search-fields {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px 20px;
}
.ft-field {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 12px;
  min-height: 56px;
}
.ft-field-lbl { display: block; font-size: 12px; color: #787878; }
.ft-field-val { font-size: 14px; color: var(--t-text); }
.ft-search-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 24px;
}
.ft-promo { font-size: 14px; color: var(--t-secondary); cursor: pointer; }

/* Deals — px 160 */
.ft-deals { padding: 60px 160px 40px; background: #fff; }
.ft-sec-title {
  font-family: var(--t-heading);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--t-text);
}
.ft-sec-sub { font-size: 14px; color: #787878; margin: 0 0 28px; }
.ft-sec-sub em { color: var(--t-secondary); font-style: normal; font-weight: 500; }
.ft-sec-sub--left { text-align: left; }
.ft-deal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ft-deal-card {
  position: relative;
  height: 280px;
  border-radius: 8px;
  overflow: hidden;
}
.ft-deal-card img { width: 100%; height: 100%; object-fit: cover; }
.ft-deal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
}
.ft-deal-name {
  position: absolute; bottom: 12px; left: 12px;
  font-size: 14px; font-weight: 500; color: #fff;
}
.ft-deal-cta {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--t-primary); color: var(--t-primary-text);
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 4px;
}
.ft-see-more { text-align: center; margin-top: 28px; }
.ft-see-more span {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 100px;
  padding: 12px 28px;
  font-size: 14px;
  color: #505050;
}

.ft-banner-strip { height: 460px; overflow: hidden; }
.ft-banner-img {
  width: 100%; height: 100%;
  background-image: var(--t-banner);
  background-size: cover;
  background-position: center;
}

/* Journey section */
.ft-journey {
  padding: 60px 160px;
  background: var(--t-bg);
}
.ft-journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ft-journey-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  min-height: 96px;
}
.ft-journey-body { padding: 16px 20px; }
.ft-j-card-title { font-size: 16px; font-weight: 500; margin: 0 0 4px; }
.ft-j-card-link { font-size: 14px; color: var(--t-secondary); }

/* Newsletter */
.ft-newsletter {
  margin: 60px auto;
  max-width: 1171px;
  padding: 40px;
  background: #f4f4f4;
  border-radius: 12px;
  text-align: center;
}
.ft-newsletter h3 {
  font-family: var(--t-heading);
  font-size: 20px;
  margin: 0 0 20px;
}
.ft-nl-row {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}
.ft-nl-row input {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--t-body);
}
.ft-nl-legal { font-size: 11px; color: #787878; margin-top: 12px; }

/* Template 1 extras */
.ft-features { padding: 32px 248px 60px; background: #fff; }
.ft-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.ft-feature-card {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 21px;
}
.ft-feature-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--t-secondary) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}
.ft-feature-card h3 { font-family: var(--t-heading); font-size: 24px; margin: 0 0 8px; }
.ft-feature-card p { font-size: 14px; color: #787878; line-height: 1.5; }

.ft-manage { background: #f4f4f4; padding: 16px 248px 32px; }
.ft-manage-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
}
.ft-manage h3 { font-family: var(--t-heading); font-size: 32px; margin: 0 0 20px; }
.ft-manage-form { display: flex; gap: 16px; flex-wrap: wrap; }
.ft-manage-form input {
  flex: 1; min-width: 200px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--t-body);
}
.ft-manage--center { text-align: center; }
.ft-manage-form--center { justify-content: center; }

.ft-destinations { padding: 12px 248px 60px; }
.ft-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(0,0,0,0.08); margin: 20px 0; }
.ft-tabs span {
  flex: 1; text-align: center;
  padding: 24px;
  font-size: 16px;
  color: #787878;
  cursor: pointer;
}
.ft-tabs span.on {
  color: var(--t-text);
  border-bottom: 2px solid var(--t-primary);
  margin-bottom: -1px;
}
.ft-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ft-dest-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}
.ft-dest-card img { width: 100%; height: 180px; object-fit: cover; }
.ft-dest-body { padding: 16px; }
.ft-dest-body h4 { margin: 0 0 8px; font-size: 18px; }
.ft-dest-body span { color: var(--t-secondary); font-size: 14px; }

.ft-highlight { padding: 12px 248px 60px; }
.ft-highlight-slider { position: relative; border-radius: 16px; overflow: hidden; height: 400px; }
.ft-highlight-card {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
  background: #fff; border-radius: 12px; padding: 32px;
  max-width: 380px; box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.ft-highlight-card h3 { font-family: var(--t-heading); margin: 0 0 12px; }
.ft-highlight-card p { font-size: 14px; color: #787878; margin: 0 0 20px; }

.ft-footer-simple {
  display: flex; justify-content: space-between;
  padding: 24px 248px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 14px; color: #787878;
}
.ft-footer-simple div { display: flex; gap: 24px; }

/* Template 3 */
.ft-features--center { text-align: center; padding: 60px 312px; }
.ft-icon-row { display: flex; justify-content: center; gap: 40px; margin-top: 40px; }
.ft-icon-item { text-align: center; }
.ft-icon-circle {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--t-primary) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

/* Template 4 */
.ft-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 36px 248px;
}
.ft-pillar {
  border: 1px solid color-mix(in srgb, var(--t-primary) 25%, transparent);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}
.ft-pillar-icon {
  width: 59px; height: 59px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--t-primary) 15%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--t-primary);
  margin-bottom: 12px;
}
.ft-pillar h3 { font-family: var(--t-heading); font-size: 20px; margin: 0 0 8px; }
.ft-pillar p { font-size: 14px; color: #787878; }
.ft-premium-banner { position: relative; height: 400px; }
.ft-premium-overlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--t-secondary) 60%, transparent);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.ft-premium-overlay h2 { font-family: var(--t-heading); font-size: 36px; margin: 0 0 20px; }

/* Template 5 */
.ft-carousel-hero { position: relative; height: 575px; }
.ft-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
}
.ft-carousel-btn--l { left: 16px; }
.ft-carousel-btn--r { right: 16px; }
.ft-carousel-pips {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; z-index: 3;
}
.ft-pip { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.5); }
.ft-pip.on { width: 24px; background: var(--t-primary); }
.ft-search-section { padding: 20px 287px 40px; }
.ft-partners { padding: 12px 287px 60px; }
.ft-partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.ft-partner-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}
.ft-partner-img {
  height: 200px;
  background-image: var(--t-banner);
  background-size: cover;
}
.ft-partner-body { padding: 20px; }
.ft-partner-tag {
  display: inline-block;
  background: color-mix(in srgb, var(--t-primary) 15%, transparent);
  color: var(--t-primary);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
}
.ft-partner-body h3 { font-family: var(--t-heading); margin: 12px 0 8px; }
.ft-partner-link { color: var(--t-secondary); font-size: 14px; }

/* ── Simulator shell (embedded in questionnaire) ── */
#simulator-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #1e1e1e;
  display: flex;
  flex-direction: column;
}
.sim-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #2c2c2c;
  border-bottom: 1px solid #3d3d3d;
  flex-shrink: 0;
}
.sim-top-bar button {
  background: transparent;
  border: 1px solid #3d3d3d;
  color: #e8e8e8;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
}
.sim-top-bar button:hover { border-color: #0d99ff; color: #0d99ff; }
.sim-top-title { font-size: 13px; color: #a0a0a0; }
.sim-layout { display: flex; flex: 1; overflow: hidden; }

#sim-controls,
#questionnaire-customize-panel {
  width: 280px;
  flex-shrink: 0;
  background: #2c2c2c;
  border-right: 1px solid #3d3d3d;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#questionnaire-customize-panel {
  width: 100%;
  border-right: none;
  border-radius: 8px;
  max-height: none;
}
.q-customize-wrap { margin-top: 4px; }
.q-inline-preview {
  margin-top: 1rem;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  overflow: auto;
  background: #1a1a1a;
  padding: 16px;
}
.q-inline-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  color: #a0a0a0;
  gap: 12px;
}
.q-inline-preview-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.q-inline-preview-close {
  background: transparent;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  color: #e8e8e8;
  font-size: 11px;
  font-family: 'Lexend', sans-serif;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.q-inline-preview-close:hover { border-color: #0d99ff; color: #0d99ff; }
#inline-preview-outer { margin: 0 auto; overflow: hidden; }
#inline-preview-inner { transform-origin: top left; width: 1905px; }
.sim-ctrl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #3d3d3d;
}
.sim-ctrl-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: #a0a0a0; margin: 0; }
.sim-ctrl-title { font-size: 14px; font-weight: 500; color: #fff; margin: 4px 0 0; }
.sim-close-btn {
  background: transparent; border: none; color: #a0a0a0;
  font-size: 16px; cursor: pointer; padding: 4px;
}
.sim-close-btn:hover { color: #fff; }
.sim-ctrl-body { flex: 1; overflow-y: auto; padding: 0 16px; }
.sim-ctrl-section { padding: 16px 0; border-bottom: 1px solid #3d3d3d; }
.sim-ctrl-section h3 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #e8e8e8; margin: 0 0 12px;
}
.sim-ctrl-section-hint {
  font-size: 11px;
  line-height: 1.45;
  color: #a0a0a0;
  margin: -4px 0 14px;
}
.sim-ctrl-hint {
  font-size: 10px;
  line-height: 1.4;
  color: #8a8a8a;
  margin: -2px 0 6px;
}
.sim-ctrl label { display: block; font-size: 11px; color: #a0a0a0; margin-bottom: 6px; }
.sim-ctrl-input {
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  padding: 7px 8px;
  font-size: 12px;
  color: #e8e8e8;
  font-family: 'Lexend', sans-serif;
}
.sim-ctrl-input:focus { outline: none; border-color: #0d99ff; }
.sim-color-row { display: flex; gap: 10px; align-items: center; }
.sim-color-row input[type=color] {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
.sim-color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.sim-color-row input[type=color]::-webkit-color-swatch {
  border: none;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -8px 16px rgba(0,0,0,0.18);
}
.sim-color-row input[type=color]::-moz-color-swatch {
  border: none;
  border-radius: 11px;
}
.sim-swatch {
  --swatch: #888;
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  padding: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.05) 40%, rgba(0,0,0,0.12)),
    #2a2a2a;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.25),
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sim-swatch::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--swatch) 35%, transparent), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.sim-swatch:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    0 12px 24px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.sim-swatch:hover::after { opacity: 1; }
.sim-swatch:focus-within {
  box-shadow:
    0 0 0 3px rgba(13, 153, 255, 0.28),
    0 10px 22px rgba(0,0,0,0.2);
}
.sim-color-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.sim-color-prefix {
  position: absolute;
  left: 12px;
  z-index: 1;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  pointer-events: none;
  font-family: 'Lexend', sans-serif;
}
.sim-color-field .sim-ctrl-input {
  padding-left: 46px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sim-upload-btn {
  width: 100%; margin-top: 6px;
  background: transparent;
  border: 1px dashed #3d3d3d;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
  color: #a0a0a0;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
}
.sim-upload-btn:hover { border-color: #0d99ff; color: #0d99ff; }

/* ── Image dropzone upload ── */
.sim-ctrl--image {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  align-self: stretch;
}
.sim-ctrl--image > label,
.sim-ctrl--image > .sim-ctrl-label {
  flex-shrink: 0;
  margin-bottom: 4px;
  line-height: 1.35;
  overflow: hidden;
}
.sim-ctrl--image > .sim-ctrl-hint {
  flex-shrink: 0;
  margin: 0 0 10px;
  min-height: 0;
  line-height: 1.45;
  overflow: hidden;
}
.sim-ctrl--image > .sim-ctrl-hint:empty {
  display: none;
  margin: 0;
}
.sim-dropzone {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 132px;
  max-height: 200px;
  margin-top: auto;
  flex: 0 0 auto;
  border: 1.5px dashed #3d3d3d;
  border-radius: 12px;
  background: #1e1e1e;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
/* Full-zone transparent file input — native browse without JS .click() */
.sim-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  z-index: 2;
  font-size: 16px;
}
.sim-dropzone[data-state="filled"] .sim-file {
  /* Under overlay; Replace uses label[for] so the input can ignore pointer events */
  z-index: 0;
  pointer-events: none;
}
.sim-dropzone:hover {
  border-color: #0d99ff;
  background: #232323;
}
.sim-dropzone.is-dragover {
  border-color: #dbfb37;
  background: rgba(219, 251, 55, 0.08);
  box-shadow: inset 0 0 0 1px rgba(219, 251, 55, 0.35);
  transform: scale(1.01);
}
.sim-dropzone-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  text-align: center;
  z-index: 0;
  pointer-events: none;
}
.sim-dropzone[data-state="filled"] .sim-dropzone-idle { display: none; }
.sim-dropzone[data-state="idle"] .sim-dropzone-preview { display: none; }
.sim-dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #dbfb37;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.sim-dropzone-title {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: #e8e8e8;
  font-family: 'Lexend', sans-serif;
}
.sim-dropzone-sub {
  margin: 0;
  font-size: 12px;
  color: #a0a0a0;
  font-family: 'Lexend', sans-serif;
}
.sim-dropzone-browse {
  color: #dbfb37;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sim-dropzone-formats {
  margin: 6px 0 0;
  font-size: 11px;
  color: #6f6f6f;
  font-family: 'Lexend', sans-serif;
}
.sim-dropzone-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111;
  overflow: hidden;
  z-index: 3;
}
.sim-dropzone-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.sim-dropzone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 1;
  pointer-events: auto;
  z-index: 4;
}
.sim-dropzone-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.sim-dropzone-replace {
  background: #dbfb37;
  color: #00363e;
}
.sim-dropzone-replace:hover { background: #c8e030; }
.sim-dropzone-remove {
  background: rgba(255, 255, 255, 0.92);
  color: #282828;
}
.sim-dropzone-remove:hover { background: #fff; }

.sim-ctrl-foot { padding: 14px 16px; border-top: 1px solid #3d3d3d; display: flex; flex-direction: column; gap: 8px; }
.sim-preview-btn {
  width: 100%;
  background: #dbfb37;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #3a4a00;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
}
.sim-preview-btn:hover { background: #c8e030; }
.sim-reset-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  color: #a0a0a0;
  cursor: pointer;
  font-family: 'Lexend', sans-serif;
}
.sim-reset-btn:hover { border-color: #0d99ff; color: #0d99ff; }

#sim-canvas {
  flex: 1;
  overflow: auto;
  padding: 24px;
  background: #1a1a1a;
}
.sim-canvas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.sim-canvas-bar span { font-size: 12px; color: #a0a0a0; }
.sim-live-dot { display: inline-flex; align-items: center; gap: 6px; }
.sim-live-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
#sim-preview-outer {
  margin: 0 auto;
  overflow: hidden;
}
#sim-preview-inner {
  transform-origin: top left;
}

/* Enhanced template gallery in questionnaire */
.tpl-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .tpl-gallery-grid { grid-template-columns: 1fr 1fr; } }
.tpl-card-v2 {
  border: 1.5px solid var(--color-border-tertiary);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-background-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tpl-card-v2.on {
  border-color: #dbfb37;
  box-shadow: 0 0 0 2px #dbfb3744;
}
.tpl-card-v2-preview {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #f4f4f4;
  cursor: pointer;
}
.tpl-card-v2-preview iframe,
.tpl-card-v2-preview .tpl-mini {
  width: 1440px;
  height: 400px;
  transform-origin: top left;
  pointer-events: none;
}
.tpl-card-v2-body { padding: 12px 14px 14px; }
.tpl-card-v2-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}
.tpl-card-v2-meta { font-size: 10px; color: var(--color-text-tertiary); margin-bottom: 10px; }
.tpl-card-v2-desc { font-size: 11px; color: var(--color-text-secondary); line-height: 1.45; margin-bottom: 12px; }
.btn-simulate {
  width: 100%;
  background: #282828;
  color: #dbfb37;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Lexend', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-simulate:hover { background: #3a3a3a; }
.tpl-card-v2.on .btn-simulate { background: #dbfb37; color: #3a4a00; }

.sim-hidden { display: none !important; }

/* Widen wrap when showing gallery */
.wrap--wide { max-width: 1440px; }
