/* n360.css — Nauti360 configurator UI: dark glass over a full-bleed WebGL canvas. */
:root {
  --ink: #eef3f8; --mute: #93a3b4; --line: rgba(255,255,255,.12); --glass: rgba(10,16,24,.62); --glass-2: rgba(16,24,34,.78);
  --accent: #2fd4ff; --accent-2: #1e7bff; --hot: #ff3b5c; --r: 14px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body.n360 { margin: 0; height: 100%; background: #05080c; color: var(--ink); font: 14px/1.4 var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
#n360-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#n360-ui { position: fixed; inset: 0; pointer-events: none; }
#n360-ui > * { pointer-events: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; flex: none; }

/* loader */
.n360-loader { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 60%, #0b1a29, #020406 70%); z-index: 50; transition: opacity 1.2s ease, visibility 1.2s; }
.n360-loader.is-done { opacity: 0; visibility: hidden; }
.n360-loader-in { text-align: center; width: min(320px, 80vw); }
.n360-loader p { color: var(--mute); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; margin-top: 14px; }
.n360-progress { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; margin-top: 22px; }
.n360-progress i { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .6s ease; box-shadow: 0 0 12px var(--accent); }
.n360-mark { font-weight: 800; letter-spacing: .32em; font-size: 28px; }
.n360-mark span { color: var(--accent); }
.n360-mark.sm { font-size: 13px; letter-spacing: .26em; }

/* top bar */
.n360-top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: max(16px, env(safe-area-inset-top)) 20px 0; pointer-events: none; }
.n360-top > * { pointer-events: auto; }
.n360-brand { display: flex; gap: 14px; align-items: center; }
.n360-brand .n360-mark { padding-right: 14px; border-right: 1px solid var(--line); }
.n360-builder { margin: 0; color: var(--mute); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.n360-brand h1 { margin: 2px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.n360-actions { display: flex; gap: 8px; }
.n360-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 18px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #021018; font-weight: 700; box-shadow: 0 6px 24px rgba(30,123,255,.35); }
.n360-btn.ghost { background: var(--glass); color: var(--ink); box-shadow: none; border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 600; padding: 9px 14px; }
.n360-btn.ghost:hover { border-color: rgba(255,255,255,.3); }

/* options panel */
.n360-panel { position: fixed; top: 84px; right: 16px; bottom: 96px; width: 392px; display: flex; gap: 0; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.n360-rail { width: 74px; flex: none; display: flex; flex-direction: column; padding: 8px 6px; gap: 4px; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); }
.n360-rail button { border: 0; background: transparent; border-radius: 10px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--mute); font-size: 10.5px; letter-spacing: .02em; }
.n360-rail button svg { width: 22px; height: 22px; }
.n360-rail button:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.n360-rail button.on { color: var(--ink); background: linear-gradient(160deg, rgba(47,212,255,.18), rgba(30,123,255,.08)); box-shadow: inset 0 0 0 1px rgba(47,212,255,.35); }
.n360-rail button.on svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(47,212,255,.6)); }
.n360-sheet { flex: 1; overflow-y: auto; padding: 18px 18px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.n360-grab { display: none; }
.n360-ghead h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.n360-badge { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #021018; background: linear-gradient(90deg, #ffb24d, #ff6a3d); padding: 3px 8px; border-radius: 999px; font-weight: 800; margin-bottom: 8px; }
.n360-opt { padding: 14px 0; border-top: 1px solid var(--line); }
.n360-opt:first-of-type { border-top: 0; }
.n360-ohead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.n360-ohead h3 { margin: 0; font-size: 13px; font-weight: 650; }
.n360-ohead span { color: var(--mute); font-size: 12px; text-align: right; }
.n360-note { color: var(--mute); font-size: 12px; margin: -4px 0 10px; }
.n360-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 9px; }
.n360-sw { aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -6px 10px rgba(0,0,0,.25), inset 0 5px 8px rgba(255,255,255,.18); transition: transform .15s; position: relative; }
.n360-sw:hover { transform: scale(1.08); }
.n360-sw.on { box-shadow: 0 0 0 2px #05080c, 0 0 0 4px var(--accent), 0 0 18px rgba(47,212,255,.45); }
.n360-sw.none, .n360-sw.off { background: repeating-linear-gradient(45deg, #2a333d 0 4px, #1a2027 4px 8px); }
.n360-choices { display: grid; gap: 8px; }
.n360-ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 10px; padding: 11px 13px; text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.n360-ch em { font-style: normal; color: var(--mute); font-size: 12px; white-space: nowrap; }
.n360-ch:hover { background: rgba(255,255,255,.07); }
.n360-ch.on { border-color: rgba(47,212,255,.6); background: linear-gradient(135deg, rgba(47,212,255,.14), rgba(30,123,255,.06)); }
.n360-ch.on em { color: var(--accent); }

/* bottom dock */
.n360-dock { position: fixed; left: 20px; bottom: max(18px, env(safe-area-inset-bottom)); right: 430px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.n360-dock > * { pointer-events: auto; }
.n360-scene { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.n360-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.n360-seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; color: var(--mute); font-weight: 600; font-size: 12.5px; }
.n360-seg button.on { background: rgba(255,255,255,.12); color: var(--ink); }
.n360-time { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 12.5px; font-weight: 600; }
.n360-time span { min-width: 62px; font-variant-numeric: tabular-nums; }
.n360-time input { width: 170px; accent-color: var(--accent); }
.n360-cams { display: flex; gap: 6px; flex-wrap: wrap; }
.n360-cams button { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--mute); display: inline-flex; align-items: center; }
.n360-cams button:hover, .n360-cams button.on { color: var(--ink); border-color: rgba(47,212,255,.5); }
.n360-total { position: fixed; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); width: 392px; display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 14px 18px; border-radius: var(--r); border: 1px solid rgba(47,212,255,.35); background: linear-gradient(135deg, rgba(30,123,255,.28), rgba(10,16,24,.75)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.n360-total span { color: var(--mute); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.n360-total strong { grid-row: span 2; font-size: 24px; letter-spacing: -.01em; }
.n360-total em { font-style: normal; color: #ffb24d; font-size: 11px; }
.n360-hint { position: fixed; left: 50%; top: 92px; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--mute); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .6s; pointer-events: none !important; animation: n360pulse 2.4s ease-in-out 3; }
.n360-hint.is-gone { opacity: 0; }
@keyframes n360pulse { 50% { box-shadow: 0 0 0 6px rgba(47,212,255,.08); } }
.n360-toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); max-width: min(92vw, 440px); padding: 11px 16px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; text-align: center; }

/* modal */
.n360-modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(2,4,6,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 20; padding: 16px; }
.n360-modal[hidden], .n360-toast[hidden] { display: none; }
.n360-modal-in { position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 18px; padding: 26px; background: var(--glass-2); border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.n360-modal-in h2 { margin: 2px 0 14px; font-size: 22px; }
.n360-kicker { margin: 0; color: var(--accent); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.n360-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1; }
.n360-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0 0 16px; }
.n360-specs div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.n360-specs dt { color: var(--mute); font-size: 11px; }
.n360-specs dd { margin: 2px 0 0; font-weight: 700; }
.n360-lines { width: 100%; border-collapse: collapse; font-size: 13px; }
.n360-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.n360-lines td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.n360-lines small { color: var(--mute); }
.n360-lines tfoot td { font-size: 17px; font-weight: 800; border: 0; padding-top: 12px; }
.n360-mactions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.n360-form { display: grid; gap: 12px; }
.n360-form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--mute); }
.n360-form input, .n360-form textarea { font: inherit; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.n360-form input:focus, .n360-form textarea:focus { outline: 2px solid rgba(47,212,255,.5); border-color: transparent; }
.n360-form .n360-btn { justify-self: start; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* phones: options become a bottom sheet */
@media (max-width: 860px) {
  .n360-brand .n360-mark { display: none; }
  .n360-brand h1 { font-size: 17px; }
  .n360-actions .n360-btn span { display: none; }
  .n360-actions .n360-btn { padding: 9px; }
  .n360-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 46vh; border-radius: 18px 18px 0 0; flex-direction: column; transform: translateY(calc(100% - 132px)); transition: transform .35s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .n360-panel.is-open { transform: none; }
  .n360-rail { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; order: 0; }
  .n360-rail button { flex: 1 0 64px; }
  .n360-sheet { padding: 12px 16px 70px; }
  .n360-dock { right: 16px; left: 12px; bottom: 140px; }
  .n360-cams { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .n360-cams button { flex: none; }
  .n360-time input { width: 110px; }
  .n360-total { width: auto; left: auto; right: 12px; top: 64px; bottom: auto; padding: 8px 12px; }
  .n360-total strong { font-size: 16px; }
  .n360-total span, .n360-total em { font-size: 9.5px; }
  .n360-hint { top: auto; bottom: 230px; }
}
@media (prefers-reduced-motion: reduce) { .n360-hint { animation: none; } }

/* walk aboard */
.n360-walkbtn { color: var(--ink) !important; border-color: rgba(47,212,255,.55) !important; background: linear-gradient(135deg, rgba(47,212,255,.22), rgba(30,123,255,.12)) !important; gap: 6px; }
.n360-walkbtn svg { width: 16px; height: 16px; }
.n360-dnbtn { gap: 6px; display: inline-flex; align-items: center; }
.n360-dnbtn svg { width: 15px; height: 15px; }
body.is-walking .n360-panel, body.is-walking .n360-dock, body.is-walking .n360-total, body.is-walking .n360-hint { opacity: 0; pointer-events: none !important; transition: opacity .4s; }
.n360-walkui { position: fixed; inset: auto 0 max(20px, env(safe-area-inset-bottom)) 0; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none !important; }
.n360-walkui[hidden] { display: none; }
.n360-walkui > * { pointer-events: auto; }
.n360-walkui p { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--mute); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.n360-walkui p b { color: var(--ink); }
.n360-joy { display: none; position: fixed; left: 28px; bottom: 90px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); backdrop-filter: blur(8px); touch-action: none; }
.n360-joy i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: 0 0 18px rgba(47,212,255,.4); }
@media (pointer: coarse) { .n360-joy { display: block; } .n360-walkui p { display: none; } }
.n360-total.is-call strong { font-size: 19px; }
.n360-total.is-call em { color: var(--accent); }
.n360-note a { color: var(--accent); }

/* catalog items: add-ons, sub-options, photo choices, info rows */
.n360-addon { display: grid; gap: 10px; }
.n360-addon .n360-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.n360-addrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.n360-addrow b { display: block; font-size: 13px; font-weight: 650; }
.n360-addrow small { display: block; color: var(--mute); font-size: 12px; margin-top: 3px; }
.n360-addr { display: flex; align-items: center; gap: 10px; flex: none; }
.n360-addr em { font-style: normal; color: var(--mute); font-size: 12px; }
.n360-addon.is-on .n360-addr em { color: var(--accent); }
.n360-switch { appearance: none; -webkit-appearance: none; width: 40px; height: 23px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.n360-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.n360-switch:checked { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.n360-switch:checked::after { transform: translateX(17px); }
.n360-subs { margin: 4px 0 0 2px; padding-left: 12px; border-left: 2px solid rgba(47,212,255,.35); }
.n360-sub { padding: 10px 0; border-top: 0; }
.n360-sub .n360-ohead h3 { font-size: 12.5px; color: var(--mute); }
.n360-info .n360-ohead h3::before { content: "✓ "; color: var(--accent); }
.n360-choices.has-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.n360-choices.has-pics .n360-ch { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; }
.n360-choices.has-pics .n360-ch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.n360-copy { width: 100%; font: inherit; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.n360-sel { user-select: all; }

/* photo-led configurator (catalog with no 3D scene) */
body.n360-photo #n360-canvas { display: none; }
.n360-stage { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 40% 45%, #13283c, #05080c 70%); padding: 90px 430px 40px 40px; }
.n360-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; opacity: 0; transform: scale(.985); transition: opacity .5s, transform .6s; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.n360-stage img.in { opacity: 1; transform: none; }
@media (max-width: 860px) { .n360-stage { padding: 70px 12px 150px; } }
.n360-models { margin-left: 4px; font: 600 12.5px var(--font); color: var(--ink); background: var(--glass); border: 1px solid var(--line); border-radius: 999px; padding: 7px 28px 7px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.n360-models option { background: #0d141c; }
@media (max-width: 860px) { .n360-models { max-width: 140px; } }

/* phones: when the options sheet is up, only the camera row stays, lifted above the sheet; model picker drops under the name */
@media (max-width: 860px) {
  .n360-dock { transition: bottom .35s cubic-bezier(.2,.8,.2,1); }
  #n360-ui:has(.n360-panel.is-open) .n360-dock { bottom: calc(46vh + 8px); }
  #n360-ui:has(.n360-panel.is-open) .n360-dock > :not(.n360-cams) { display: none; }
  #n360-ui:has(.n360-panel.is-open) .n360-hint { display: none; }
  .n360-brand { flex-wrap: wrap; row-gap: 6px; }
  .n360-brand h1 { white-space: nowrap; }
  .n360-models { order: 3; }
}
@media (max-width: 860px) { #n360-ui:has(.n360-models:not([hidden])) .n360-total { top: 106px; } }
.n360-gone { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--ink); }
.n360-gone h2 { margin: 6px 0; }
.n360-gone p { color: var(--mute); }
.n360-fine { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--mute); opacity: .85; }
.n360-fine a { color: inherit; text-decoration: underline; }
