/* ODBsite – preview generator */
.gen-page { background: #070816; }
.gen-header .header-in { height: 66px; gap: 18px; }
.gen-title { color: var(--mu); font-size: 15px; padding-inline-start: 18px; border-inline-start: 1px solid var(--line2); }
.gen-reset { margin-inline-start: auto; display: inline-flex !important; }
.gen-back { display: inline-flex !important; }

.gen { display: grid; grid-template-columns: 480px 1fr; gap: 0; min-height: calc(100vh - 66px); }

/* Wizard */
.wizard { position: sticky; top: 66px; padding: 22px 34px 34px; border-inline-end: 1px solid var(--line); background: linear-gradient(180deg, #0C0E24, #090A1C); max-height: calc(100vh - 66px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2A2E55 transparent; }
.wz-top { margin-bottom: 22px; }
.progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress span { display: block; height: 100%; width: 12%; background: var(--grad); border-radius: 99px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.dots-nav { list-style: none; display: flex; justify-content: space-between; margin: 12px 0 0; }
.dots-nav button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--mu); font-size: 12.5px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: all .25s; }
.dots-nav button.done { color: var(--tx); border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.12); }
.dots-nav button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px rgba(124,92,255,.9); transform: scale(1.08); }
.dots-nav button:disabled { opacity: .35; cursor: not-allowed; }
.dots-nav button:not(:disabled):not(.on):hover { border-color: var(--a1); color: var(--tx); }
.step-count { color: var(--mu); font-size: 13.5px; margin-top: 12px; }
.wstep { border: 0; min-width: 0; animation: stepIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.wstep legend { padding: 0; margin-bottom: 22px; }
.wstep legend h1, .wstep legend h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; outline: none; }
.wstep legend p { color: var(--mu); font-size: 15.5px; }
.wstep .field { margin-bottom: 16px; }
.hint { display: block; color: #8B90B5; font-size: 13px; margin-top: 6px; }

.choices { display: grid; gap: 10px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-1 { grid-template-columns: 1fr; }
.choice {
  position: relative; text-align: center; background: rgba(255,255,255,.03); border: 1.5px solid var(--line2); border-radius: 16px;
  padding: 16px 10px; cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.choice:hover { border-color: rgba(124,92,255,.6); background: rgba(124,92,255,.06); transform: translateY(-2px); }
.choice:active { transform: scale(.98); }
.choice[aria-checked="true"] { border-color: var(--a1); background: rgba(124,92,255,.14); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.choice[aria-checked="true"]::after { content: ""; position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%; z-index: 3;
  background: #7C5CFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 0 2px #0C0E24; }
.choice .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #C3B8FF; transition: background .2s, color .2s; }
.choice[aria-checked="true"] .ci { background: var(--grad); color: #fff; }
.choice b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.choice small { color: var(--mu); font-size: 12.5px; line-height: 1.35; }
.cols-1 .choice { flex-direction: row; text-align: start; padding: 16px 18px; gap: 14px; }
.cols-1 .choice .txt { flex: 1; display: flex; flex-direction: column; }
.cols-1 .choice .from { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--tx); white-space: nowrap; }
.cols-1 .choice .from small { display: block; font-family: var(--body); font-weight: 400; }

/* Style cards with live mini preview */
.style-card { padding: 0 !important; overflow: hidden; align-items: stretch !important; text-align: start !important; gap: 0 !important; }
.style-card .thumb { position: relative; display: block; aspect-ratio: 16 / 10.5; overflow: hidden; border-bottom: 1px solid var(--line); }
.style-card .thumb iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.style-card .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 10px; }
.row-between .lbl { margin: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.4); color: #CFC6FF; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.link-btn:hover { background: rgba(124,92,255,.22); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: transform .15s; position: relative; }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 3px rgba(124,92,255,.6); }
.swatch.custom { background: conic-gradient(#f43f5e, #f97316, #eab308, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); overflow: hidden; }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.swatch.custom:focus-within { outline: 3px solid var(--a2); outline-offset: 3px; }

/* Uploads */
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upl { position: relative; }
.upl-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line2); cursor: pointer; transition: border-color .2s, background .2s; height: 100%; }
.upl-box:hover, .upl input:focus-visible + .upl-box { border-color: var(--a1); background: rgba(124,92,255,.07); }
.upl input:focus-visible + .upl-box { outline: 3px solid var(--a2); outline-offset: 2px; }
.upl.has .upl-box { border-style: solid; border-color: rgba(52,211,153,.5); }
.upl-prev { width: 48px; height: 48px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #C3B8FF; overflow: hidden; }
.upl-prev img { width: 100%; height: 100%; object-fit: cover; }
#logoPrev img { object-fit: contain; background: #fff; padding: 4px; }
.upl-box b { display: block; font-size: 14.5px; }
.upl-box small { color: var(--mu); font-size: 12.5px; }
.upl-x { position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #FF6B86; color: #fff; display: grid; place-items: center; cursor: pointer; }
.note { display: flex; align-items: center; gap: 7px; color: var(--mu); font-size: 13px; margin-top: 10px; }
.note svg { color: var(--ok); }

/* Section toggles */
.toggles { display: grid; gap: 8px; }
.tgl { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; transition: border-color .2s, background .2s; }
.tgl:hover { border-color: rgba(124,92,255,.5); }
.tgl .ci { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #C3B8FF; }
.tgl .t { flex: 1; font-size: 15px; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl .sw { width: 42px; height: 24px; border-radius: 99px; background: rgba(255,255,255,.14); position: relative; transition: background .25s; flex: none; }
.tgl .sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tgl input:checked ~ .sw { background: var(--a1); }
.tgl input:checked ~ .sw::after { transform: translateX(-18px); }
.tgl:has(input:checked) { border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.07); }
.tgl input:focus-visible ~ .sw { outline: 3px solid var(--a2); outline-offset: 2px; }

.addons { display: grid; gap: 8px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; transition: border-color .2s, background .2s; font-size: 15px; }
.addon:hover { border-color: rgba(124,92,255,.5); }
.addon input { width: 18px; height: 18px; accent-color: var(--a1); flex: none; }
.addon span { flex: 1; }
.addon small { color: var(--mu); font-size: 13px; }
.addon:has(input:checked) { border-color: var(--a1); background: rgba(124,92,255,.1); }

.estimate { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,92,255,.2), rgba(34,211,238,.1)); border: 1px solid rgba(124,92,255,.4); display: flex; flex-direction: column; gap: 2px; }
.estimate span { font-size: 13.5px; color: #CFC6FF; }
.estimate b { font-family: var(--head); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.estimate small { color: var(--mu); font-size: 12.5px; }

.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 18px; font-size: 13.5px; }
.summary div { display: flex; flex-direction: column; }
.summary small { color: var(--mu); font-size: 12px; }
.summary b { display: flex; align-items: center; gap: 6px; }
.summary .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.summary .full { grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--line2); }
.summary .full b { font-family: var(--head); font-size: 19px; }
.err-consent { color: #FF8FA3; font-size: 13px; margin-top: -8px; }

.wnav { display: flex; gap: 10px; margin-top: 26px; position: sticky; bottom: -34px; padding: 14px 0 6px; background: linear-gradient(transparent, #090A1C 30%); z-index: 2; }
.wnav .btn { flex: 1; }
.wnav #prevBtn { flex: 0 0 auto; }
.wnav [hidden] { display: none !important; }

.done { text-align: center; padding: 40px 6px; }
.done .ic { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(52,211,153,.15); color: var(--ok); animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h2 { font-size: 28px; margin-bottom: 10px; outline: none; }
.done p { color: var(--mu); margin-bottom: 24px; }
.done-actions { display: grid; gap: 10px; }

/* Stage */
.stage { position: sticky; top: 66px; height: calc(100vh - 66px); display: flex; flex-direction: column; padding: 16px 26px 22px; overflow: hidden;
  background: radial-gradient(700px 400px at 70% 0%, rgba(124,92,255,.16), transparent 70%), radial-gradient(500px 400px at 0% 100%, rgba(34,211,238,.08), transparent 70%); }
.stage-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-height: 42px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); flex: none; }
.seg button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 7px 12px; border-radius: 9px; color: var(--mu); cursor: pointer; font-size: 14px; transition: background .2s, color .2s; }
.seg button.on { background: rgba(255,255,255,.1); color: var(--tx); }
.jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); padding: 0 12px; }
.jump::-webkit-scrollbar { display: none; }
.jump button { flex: none; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--mu); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; transition: all .2s; }
.jump button:hover { color: var(--tx); border-color: var(--a1); background: rgba(124,92,255,.12); }
.stage-note { display: inline-flex; align-items: center; gap: 7px; color: var(--mu); font-size: 13px; flex: none; }
.icon-btn { flex: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--tx); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.1); }

.canvas { position: relative; flex: 1; min-height: 0; -webkit-user-select: none; user-select: none; }
.device { position: absolute; inset: 0; display: none; }
.device.on { display: flex; }
.device.desktop .browser { flex: 1; display: flex; flex-direction: column; }
.screen { position: relative; overflow: hidden; flex: 1; background: #fff; }
.screen iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; opacity: 0; z-index: 0; transition: opacity .22s ease; }
.screen iframe.on { opacity: 1; z-index: 1; }
.device.mobile, .device.tablet { align-items: center; justify-content: center; }
.phone { position: relative; padding: 12px; border-radius: 46px; background: #15172E; border: 1px solid var(--line2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 80px -40px rgba(124,92,255,.6), inset 0 0 0 2px #1F2240; display: flex; }
.phone .screen { border-radius: 34px; }
.phone .notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 99px; background: #0A0B18; z-index: 3; }
.tab-frame { position: relative; padding: 18px; border-radius: 30px; background: #15172E; border: 1px solid var(--line2); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 30px 80px -40px rgba(124,92,255,.6), inset 0 0 0 2px #1F2240; display: flex; }
.tab-frame .screen { border-radius: 14px; }

.loading { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 6; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
.loading.on { opacity: 1; }
.loading span { position: absolute; inset: 0; width: 40%; background: var(--grad); animation: load 1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Watermark – sits above the preview but lets scrolling through */
.wm { position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='200'%3E%3Ctext x='20' y='120' transform='rotate(-20 170 100)' font-family='Rubik,Arial' font-size='18' font-weight='700' fill='%23888' fill-opacity='.16'%3EODBsite · תצוגה לדוגמה%3C/text%3E%3C/svg%3E"); }
.empty { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: 16px; background: rgba(7,8,22,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px dashed var(--line2); transition: opacity .4s; }
.empty.gone { opacity: 0; pointer-events: none; }
.empty-in { text-align: center; max-width: 340px; padding: 20px; }
.empty .ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad); color: #fff; box-shadow: 0 20px 50px -15px rgba(124,92,255,.8); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--mu); }

.to-stage { display: none; }

/* Expanded (focus) mode */
.expanded .gen { grid-template-columns: 0 1fr; }
.expanded .wizard { display: none; }
.expanded .stage { padding-inline: 40px; }

/* View-only mode (opened from a link) */
.view-only .gen { grid-template-columns: 1fr; }
.view-only .wizard, .view-only .to-stage, .view-only .gen-reset, .view-only #expandBtn { display: none !important; }
.view-only .gen-title::after { content: " · צפייה בלבד"; }

@media (max-width: 1280px) { .stage-note { display: none; } }
@media (max-width: 1100px) {
  .gen { grid-template-columns: 410px 1fr; }
  .wizard { padding: 20px 24px 30px; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .seg button span { display: none; }
}
@media (max-width: 900px) {
  .gen { grid-template-columns: 1fr; }
  .wizard { position: static; max-height: none; border: 0; padding: 20px 20px 26px; }
  .wnav { bottom: 0; }
  .stage { position: relative; top: 0; height: 86vh; min-height: 580px; padding: 14px 12px 18px; border-top: 1px solid var(--line); }
  .gen-title, #expandBtn { display: none; }
  .to-stage { display: inline-flex; align-items: center; gap: 8px; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 40; padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 14px 40px -10px rgba(124,92,255,.9); transition: opacity .3s; }
  .to-stage.hide { opacity: 0; pointer-events: none; }
  .view-only .stage { height: calc(100vh - 66px); }
  .seg button[data-dev="tablet"] { display: none; }
}
@media (max-width: 480px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .wstep legend h1, .wstep legend h2 { font-size: 24px; }
  .summary { grid-template-columns: 1fr; }
  .gen-back span, .gen-reset span { display: none; }
  .uploads { grid-template-columns: 1fr; }
  .dots-nav button { width: 28px; height: 28px; }
}
.dots-nav li { display: flex; }
.dots-nav button { flex: none; padding: 0; line-height: 1; aspect-ratio: 1; }
.upl-x[hidden] { display: none; }
.a11y-slot { display: inline-flex; }
.a11y-btn.in-slot { position: static; width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }
.gen-page .a11y-panel { right: auto; left: 22px; top: 76px; bottom: auto; transform-origin: top left; }

/* v3: fonts, edit mode, pages */
.fonts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.font-card { padding: 10px 6px !important; gap: 2px !important; }
.font-card .fs { font-size: 26px; line-height: 1.2; color: var(--tx); }
.font-card small { font-size: 12px; }
.style-grid { grid-template-columns: repeat(2, 1fr); }
.edit-btn { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; border: 1px solid rgba(124,92,255,.5); background: rgba(124,92,255,.14); color: #E4DEFF; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s; }
.edit-btn:hover { background: rgba(124,92,255,.24); }
.edit-btn[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -10px rgba(124,92,255,.9); }
.edit-hint { display: none; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(34,211,238,.12)); border: 1px solid rgba(124,92,255,.45); font-size: 14px; }
.edit-hint span { flex: 1; }
.edit-hint .x { background: #fff; color: #10132D; border: 0; border-radius: 8px; padding: 6px 14px; font-weight: 700; cursor: pointer; }
.is-editing .edit-hint { display: flex; }
.is-editing .wm { opacity: .35; }
.stage-tip { display: flex; align-items: center; gap: 7px; color: var(--mu); font-size: 13px; margin: -4px 0 10px; }
.stage-tip svg { color: var(--a2); }
.is-editing .stage-tip { display: none; }
.jump .jl { flex: none; align-self: center; color: var(--mu); font-size: 12.5px; padding-inline-end: 2px; }
.jump button.on { color: #fff; border-color: transparent; background: var(--grad); }
@media (max-width: 1280px) { .edit-btn span { display: none; } }
@media (max-width: 900px) { .stage-tip { display: none; } .edit-btn span { display: inline; } }

/* v4: discreet preview mark instead of a full-screen watermark */
.wm { position: absolute; inset: auto; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4; pointer-events: none; background: rgba(10,11,28,.72) !important; background-image: none !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(255,255,255,.88); font-size: 12px; font-weight: 500; padding: 6px 12px 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 1; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.wm span { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 800; font-family: var(--head); }
.device.mobile.on ~ .wm, .device.tablet.on ~ .wm { bottom: 2px; }
.is-editing .wm { opacity: .5; }
@media (max-width: 600px) { .wm { font-size: 11px; } }
/* no printing / "save as PDF" of the preview */
@media print { .stage, .canvas, .wizard { display: none !important; } body::after { content: "התצוגה המקדימה זמינה לצפייה באתר ODBsite בלבד"; display: block; padding: 40px; font-size: 20px; } }

/* v5: extras without prices */
.addons { grid-template-columns: 1fr 1fr; }
.addon .ai { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: #C3B8FF; flex: none; }
.addon span:last-child { font-size: 14px; line-height: 1.3; }
.addon input { order: 3; margin-inline-start: auto; }
@media (max-width: 480px) { .addons { grid-template-columns: 1fr; } }

/* v6: rich site-type cards + included list */
.cols-1 .choice .cnt { flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 11.5px; color: #A7F3D0; padding: 6px 10px; border-radius: 10px; background: rgba(52,211,153,.1); }
.cols-1 .choice .cnt b { font-family: var(--head); font-size: 20px; color: #fff; }
.incl { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(52,211,153,.08), rgba(124,92,255,.06)); border: 1px solid rgba(52,211,153,.25); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; animation: stepIn .4s ease; }
.incl-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #A7F3D0; }
.incl-g h4 { font-size: 12.5px; color: var(--a2); margin-bottom: 6px; letter-spacing: .04em; }
.incl-g ul { list-style: none; display: grid; gap: 5px; }
.incl-g li { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #D7DAF0; }
.incl-g li svg { flex: none; margin-top: 3px; color: var(--ok); }
.summary .get ul { list-style: none; display: grid; gap: 5px; margin-top: 4px; }
.summary .get li { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; }
.summary .get li svg { flex: none; margin-top: 4px; color: var(--ok); }
.logo-color i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
@media (max-width: 480px) { .incl { grid-template-columns: 1fr; } }

/* v7: never show an empty white screen – shimmer until the preview is ready */
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.screen { background: linear-gradient(100deg, #E9ECF4 30%, #F6F7FB 50%, #E9ECF4 70%) 0 0 / 300% 100% #E9ECF4; animation: skel 1.3s linear infinite; }
.screen iframe { background: transparent; }
.style-card .thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%) 0 0 / 300% 100%; animation: skel 1.3s linear infinite; }
.style-card .thumb iframe { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .screen, .style-card .thumb::before { animation: none; } }

/* v8: expand fix + design studio */
.expanded .gen { grid-template-columns: 1fr; }
.expanded .stage { height: calc(100vh - 66px); }
.palettes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.pal { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 4px 8px; border-radius: 12px; border: 1.5px solid var(--line2); background: rgba(255,255,255,.03); color: var(--tx); cursor: pointer; transition: border-color .2s, transform .2s; }
.pal:hover { transform: translateY(-2px); border-color: rgba(124,92,255,.6); }
.pal[aria-checked="true"] { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.pal-sw { position: relative; width: 100%; height: 34px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); display: flex; align-items: flex-end; justify-content: flex-start; gap: 4px; padding: 5px; }
.pal-sw i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.pal small { font-size: 11px; line-height: 1.2; text-align: center; color: var(--mu); }
.pickers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.pick { display: flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.pick-sw { position: relative; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.pick-sw input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); border: 0; padding: 0; cursor: pointer; }
.pick:focus-within .pick-sw { outline: 3px solid var(--a2); outline-offset: 2px; }
.seg2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.seg2 .choice.seg-item { padding: 9px 4px; border-radius: 11px; font-size: 13px; font-weight: 600; }
#hzRow { grid-template-columns: repeat(3, 1fr); }
.tones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tones .choice.tone { align-items: flex-start; text-align: start; padding: 12px 14px; }
.tones .tone small { font-size: 12px; }
.order { list-style: none; display: grid; gap: 6px; }
.order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.order .on { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(124,92,255,.18); color: #CFC6FF; font-size: 12px; font-weight: 700; flex: none; }
.order b { flex: 1; font-size: 14.5px; font-weight: 600; }
.order button { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--tx); display: grid; place-items: center; cursor: pointer; transform: rotate(90deg); }
.order button:hover:not(:disabled) { border-color: var(--a1); background: rgba(124,92,255,.15); }
.order button:disabled { opacity: .3; cursor: default; }
@media (max-width: 480px) { .palettes { grid-template-columns: repeat(4, 1fr); } .seg2 { grid-template-columns: repeat(2, 1fr); } .tones { grid-template-columns: 1fr; } }

/* v9: hidden devices keep their size (visibility instead of display), so switching is instant */
.device { display: flex !important; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.device.on { visibility: visible; opacity: 1; pointer-events: auto; }

/* style filter */
.mood-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.mood-bar button { border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--mu); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.mood-bar button:hover { color: var(--tx); }
.mood-bar button[aria-pressed="true"] { background: rgba(124,92,255,.2); border-color: rgba(124,92,255,.6); color: #fff; }
.style-grid .choice[hidden] { display: none !important; }

.style-note { margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(124,92,255,.08); border: 1px solid rgba(124,92,255,.28); font-size: 13.5px; }

/* quick style flipper on the preview */
.style-flip { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(10,11,28,.85); border: 1px solid var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); }
.style-flip button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.style-flip button:hover { background: rgba(124,92,255,.5); }
.sf-l { min-width: 150px; text-align: center; line-height: 1.25; }
.sf-l small { display: block; font-size: 11px; color: var(--mu); }
.sf-l b { font-size: 14px; }

/* starting prices in the "what we build" step */
#productGrid .from { display: block; font-style: normal; font-size: 13px; color: var(--mu); margin-top: 4px; }
#productGrid .from b { font-family: var(--head); font-size: 17px; color: var(--tx); margin-inline-start: 3px; }
.price-note { margin: 10px 0 4px; font-size: 13px; color: var(--mu); }

/* v5: the camera lives in the phone's top bezel, the whole site stays visible */
.phone { padding: 36px 12px 12px; }
.phone .notch { top: 13px; width: 74px; height: 12px; }
.phone .notch::after { content: ""; position: absolute; top: 3px; right: 10px; width: 6px; height: 6px; border-radius: 50%; background: #1E2347; }

/* v5: style switcher in its own row under the preview, nothing covered */
.style-flip { position: relative; bottom: auto; left: auto; transform: none; flex: none; align-self: center; margin-top: 12px; }
@media (max-width: 900px) {
  .style-flip { margin-top: 10px; }
  .to-stage { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding: 10px 18px; font-size: 14.5px; }
}
.wm { position: relative !important; inset: auto !important; bottom: auto !important; left: auto !important; transform: none !important; flex: none; align-self: center; margin-top: 8px; background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; color: var(--mu) !important; font-size: 12px; opacity: .9; }
@media (max-width: 600px) { .wm { font-size: 11px; } }

/* v5: "view the preview" lives in the bottom bar on phones, next to חזרה/המשך, instead of floating over them */
@media (max-width: 900px) {
  .wnav .to-stage { position: static; transform: none; flex: 0 0 50px; width: 50px; height: auto; min-height: 50px; padding: 0; justify-content: center; border-radius: 14px; font-size: 0; box-shadow: none; background: rgba(124,92,255,.16); border: 1px solid rgba(124,92,255,.45); color: #D9D0FF; }
  .wnav .to-stage.hide { display: none; }
}
