/* ==========================================================
   PanoGallery Editor — CSS
   ========================================================== */

:root{
  --bg: #0b0f14;
  --panel: #0f1620;
  --panel2: #0c121b;
  --border: rgba(255,255,255,.10);
  --text: #e9f0fa;
  --muted: #97a6ba;
  --shadow: 0 18px 45px rgba(0,0,0,.55);
  --topA: #22c55e;
  --topB: #16a34a;
  --accent: #22c55e;
  --accent2: #86efac;
  --good: #22c55e;
  --warn: #fbbf24;
  --bad: #ef4444;
  --iconbar: #0a0f16;
}

/* Themes */
body[data-theme="aurora"]{
  --topA:#22c55e; --topB:#3b82f6;
  --accent:#3b82f6; --accent2:#22c55e;
  --panel:#0f1620; --panel2:#0b1220;
}
body[data-theme="sunset"]{
  --topA:#ff6b6b; --topB:#fbbf24;
  --accent:#ff6b6b; --accent2:#fbbf24;
  --panel:#121826; --panel2:#0e1420;
}
body[data-theme="ocean"]{
  --topA:#06b6d4; --topB:#2563eb;
  --accent:#06b6d4; --accent2:#60a5fa;
  --panel:#0b1420; --panel2:#08101a;
}
body[data-theme="forest"]{
  --topA:#22c55e; --topB:#16a34a;
  --accent:#22c55e; --accent2:#86efac;
  --panel:#0f1a12; --panel2:#0b130e;
}
body[data-theme="iris"]{
  --topA:#a78bfa; --topB:#22d3ee;
  --accent:#a78bfa; --accent2:#22d3ee;
  --panel:#121022; --panel2:#0e0c1a;
}
body[data-theme="midnight"]{
  --topA:#6366f1; --topB:#8b5cf6;
  --accent:#6366f1; --accent2:#a78bfa;
  --panel:#0f0f1a; --panel2:#0a0a14;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  overflow:hidden;
}

.shell{ height:100vh; display:flex; flex-direction:column; }

.topbar{
  height: 54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, color-mix(in srgb, var(--topA) 35%, transparent), color-mix(in srgb, var(--topB) 35%, transparent));
  backdrop-filter: blur(10px);
}

.topbar__left{ display:flex; align-items:center; gap: 12px; min-width: 0; }
.topbar__right{ display:flex; align-items:center; gap: 10px; }

.logo{ display:flex; align-items:center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.logo__mark{
  width: 32px; height: 32px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
}
.logo__text{ white-space:nowrap; font-size: 18px; }

.crumb{ color: rgba(255,255,255,.88); font-size: 13px; min-width: 0; }
#tourName{
  font-weight: 700;
  display:inline-block;
  max-width: 200px;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:bottom;
}

.badge{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.badge--server{
  background: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,.02));
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.badge--dirty{
  border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
  background: color-mix(in srgb, var(--warn) 20%, rgba(255,255,255,.02));
}

.main{ flex:1; display:flex; min-height:0; }

/* Icon Bar */
.iconbar{
  width: 62px;
  background: var(--iconbar);
  border-right: 1px solid var(--border);
  display:flex;
  flex-direction:column;
  padding: 10px 8px;
  gap: 8px;
}
.iconbar__spacer{ flex:1; }

.iconbtn{
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  display:grid; place-items:center;
  cursor:pointer;
  transition: all .15s;
}
.iconbtn:hover{ border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.iconbtn.active{
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.10));
  background: color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.02));
  color: var(--accent);
}
.iconbtn--link{ text-decoration:none; }
.iconbtn--small{ width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }

/* Left Panel */
.leftpanel{
  width: 340px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow:auto;
  padding: 12px;
}

.section{ display:none; }
.section.active{ display:block; }

.section__head{ margin-bottom: 16px; }
.section__title{ font-size: 20px; font-weight: 800; }
.section__sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.toolbar{ display:flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }

/* Forms */
.form{ display:flex; flex-direction:column; gap: 10px; }
.label{ font-size: 12px; color: var(--muted); margin-top: 6px; }
.input{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 13px;
  outline:none;
  transition: border .15s;
}
.input:focus{ border-color: var(--accent); }
.input[type="range"]{ padding: 0; }
.input[type="file"]{ padding: 8px; }

.select{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  cursor:pointer;
}
.select--small{ padding: 6px 10px; font-size: 12px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 13px;
  cursor:pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover{ background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.btn--primary{
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}
.btn--primary:hover{ background: var(--accent2); border-color: var(--accent2); }
.btn--ghost{
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn--ghost:hover{ background: color-mix(in srgb, var(--accent) 15%, transparent); }

.btn--bar{
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.btn--preview.active{
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn--social{ padding: 10px 14px; }
.btn--whatsapp{ background: #25D366; border-color: #25D366; color: #fff; }
.btn--facebook{ background: #1877F2; border-color: #1877F2; color: #fff; }
.btn--twitter{ background: #1DA1F2; border-color: #1DA1F2; color: #fff; }

.chip{
  display:inline-flex;
  align-items:center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 12px;
  cursor:pointer;
  transition: all .15s;
}
.chip:hover{ border-color: rgba(255,255,255,.22); }
.chip.active{
  background: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,.04));
  border-color: var(--accent);
  color: var(--accent);
}

.row{ display:flex; gap: 10px; flex-wrap: wrap; }
.row--between{ justify-content: space-between; align-items: center; }

.divider{ height: 1px; background: var(--border); margin: 12px 0; }

.miniTitle{ font-size: 13px; font-weight: 700; margin-bottom: 8px; }

.muted{ color: var(--muted); }
.small{ font-size: 11px; }

.card{
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.toggleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 8px 0;
  font-size: 13px;
}

/* Switch */
.switch{ position:relative; display:inline-block; width: 44px; height: 24px; }
.switch input{ display:none; }
.slider{
  position:absolute; cursor:pointer; inset:0;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  transition: .18s;
  border-radius: 999px;
}
.slider:before{
  position:absolute; content:"";
  height: 18px; width: 18px;
  left: 3px; top: 2px;
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  transition: .18s;
}
.switch input:checked + .slider{
  background: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.10));
  border-color: color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.18));
}
.switch input:checked + .slider:before{
  transform: translateX(20px);
  background: var(--accent);
}

/* Scenes List */
.scenes{ display:flex; flex-direction:column; gap: 8px; max-height: 400px; overflow-y: auto; }

.sceneCard{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor:pointer;
  transition: all .15s;
}
.sceneCard:hover{ border-color: rgba(255,255,255,.22); }
.sceneCard.active{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel2));
}

.thumb{
  width: 80px; height: 50px;
  border-radius: 8px;
  overflow:hidden;
  flex-shrink: 0;
}
.thumb img{ width:100%; height:100%; object-fit:cover; }

.sceneMeta{ flex:1; min-width:0; }
.sceneName{ font-size: 14px; font-weight: 600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sceneBadges{ display:flex; gap: 6px; margin-top: 4px; }
.pill{
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}

.sceneActions{ display:flex; flex-direction:column; gap: 4px; }
.miniBtn{
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
  display:grid; place-items:center;
  font-size: 12px;
}
.miniBtn:hover{ background: rgba(255,255,255,.12); color: var(--text); }

/* Hint */
.hint{
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.kbd{
  display:inline-block;
  padding: 2px 6px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  font-family: monospace;
}

/* Apps Grid */
.appgrid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.appcard{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor:pointer;
  transition: all .15s;
}
.appcard:hover{ border-color: var(--accent); }
.appcard__art{
  width: 50px; height: 50px;
  display:grid; place-items:center;
  font-size: 24px;
  color: var(--accent);
}
.appcard__name{ font-size: 12px; font-weight: 600; text-align:center; }

/* Viewer */
.viewer{
  flex:1;
  position:relative;
  background: #000;
  overflow:hidden;
}
.viewer__media{
  position:absolute;
  inset:0;
}
.viewer__overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  display:flex;
  flex-direction:column;
}

.viewerTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding: 14px;
}
.sceneTitle{
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events:auto;
}
.viewerBtns{ display:flex; gap: 8px; pointer-events:auto; }

.roundbtn{
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  backdrop-filter: blur(8px);
  display:grid; place-items:center;
}
.roundbtn:hover{ background: rgba(255,255,255,.15); }
.roundbtn.disabled, .roundbtn:disabled{ opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.actionbar{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 14px;
  pointer-events:auto;
  flex-wrap: wrap;
}
.actionbar__sep{
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,.2);
  margin: 0 4px;
}

.watermark{
  position:absolute;
  bottom: 14px;
  right: 14px;
  font-size: 11px;
  color: rgba(255,255,255,.4);
}

/* Compass */
.compass-overlay{
  position:absolute;
  top: 80px;
  right: 20px;
  width: 70px;
  height: 70px;
  pointer-events:none;
  z-index: 10;
}
.compass-ring{
  width:100%;
  height:100%;
  border: 2px solid rgba(255,255,255,.3);
  border-radius:50%;
  position:relative;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}
.compass-arrow{
  position:absolute;
  top:50%;
  left:50%;
  width: 3px;
  height: 28px;
  background: linear-gradient(to bottom, #ef4444 50%, #fff 50%);
  transform-origin: center bottom;
  transform: translate(-50%, -100%) rotate(0deg);
  border-radius: 2px;
  transition: transform .1s;
}
.compass-n{
  position:absolute;
  top: 4px;
  left:50%;
  transform:translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: #ef4444;
}
.compass-center{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius:50%;
}

/* Floorplan */
.floorplan{
  position:absolute;
  bottom: 80px;
  left: 20px;
  width: 280px;
  background: rgba(0,0,0,.75);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow:hidden;
  z-index: 10;
}
.floorplan__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.floorplan__body{
  position:relative;
  min-height: 180px;
}
.floorplan__upload{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 30px;
  cursor:pointer;
  color: var(--muted);
}
.floorplan__upload i{ font-size: 32px; color: var(--accent); }
.floorplan__upload input{ display:none; }
.floorplan__img{
  width:100%;
  max-height: 200px;
  object-fit:contain;
}
.floorplan__markers{
  position:absolute;
  inset:0;
}

/* Nadir Preview */
.nadir-preview{
  width: 120px;
  height: 120px;
  margin: 20px auto;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  border: 2px dashed var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.nadir-preview__default{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  color: var(--accent);
}
.nadir-preview__default i{ font-size: 32px; }
.nadir-preview__default span{ font-size: 11px; font-weight: 700; }
.nadir-preview img{ max-width:100%; max-height:100%; }

.nadir-upload{ margin-top: 16px; }

/* Inspector */
.inspector{
  width: 300px;
  background: var(--panel);
  border-left: 1px solid var(--border);
  display:flex;
  flex-direction:column;
}
.inspector__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.inspector__title{ font-size: 15px; font-weight: 700; }
.inspector__sub{ font-size: 11px; color: var(--muted); margin-top: 2px; }
.inspector__body{ flex:1; overflow-y:auto; padding: 14px; }
.inspector__foot{ padding: 14px; border-top: 1px solid var(--border); }

.empty{
  text-align:center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 20px;
}

/* Hotspots */
.hotspot{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4);
  color: rgba(255,255,255,.92);
  display:grid; place-items:center;
  cursor:pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  user-select:none;
  transition: all .15s;
}
.hotspot:hover{ border-color: rgba(255,255,255,.5); transform: scale(1.1); }
.hotspot--info{ background: color-mix(in srgb, var(--accent2) 25%, rgba(0,0,0,.4)); }
.hotspot--link{ background: color-mix(in srgb, var(--accent) 25%, rgba(0,0,0,.4)); }
.hotspot--video{ background: color-mix(in srgb, #ef4444 25%, rgba(0,0,0,.4)); }
.hotspot--gallery{ background: color-mix(in srgb, #f59e0b 25%, rgba(0,0,0,.4)); }
.hotspot--audio{ background: color-mix(in srgb, #8b5cf6 25%, rgba(0,0,0,.4)); }
.hotspot.selected{ border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }

.hotspotLabel{
  position:absolute;
  left:50%;
  transform: translate(-50%, calc(-100% - 12px));
  background: rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.95);
  font-weight: 700;
  font-size: 11px;
  pointer-events:none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.hotspotWrap{ position:relative; }

/* Modal */
.modal{
  position:fixed; inset:0;
  background: rgba(0,0,0,.6);
  display:grid;
  place-items:center;
  z-index: 50;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal__box{
  width: min(480px, 95vw);
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__box--wide{ width: min(640px, 95vw); }
.modal__head{
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.modal__title{ font-size: 17px; font-weight: 800; }
.modal__body{ padding: 18px; }
.modal__foot{
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
}

.qr-section{ text-align:center; padding: 20px 0; }
.qr-code{
  display:inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
}

/* Toast */
.toast{
  position:fixed;
  bottom: 30px;
  left:50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 100;
  animation: toastIn .2s;
}
@keyframes toastIn{
  from{ opacity:0; transform: translateX(-50%) translateY(10px); }
}

/* Utility */
.hidden{ display:none !important; }

/* Avatar */
.avatar{
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  cursor:pointer;
  display:grid; place-items:center;
}
.avatar:hover{ background: rgba(255,255,255,.12); }

/* Responsive */
@media (max-width: 1200px) {
  .leftpanel{ width: 280px; }
  .inspector{ width: 260px; }
}

@media (max-width: 900px) {
  .topbar__right .btn span{ display:none; }
  .leftpanel{ width: 240px; }
}

/* RTL Support for Arabic */
[lang="ar"] .leftpanel{ border-right: none; border-left: 1px solid var(--border); }
[lang="ar"] .inspector{ border-left: none; border-right: 1px solid var(--border); }
[lang="ar"] .iconbar{ border-right: none; border-left: 1px solid var(--border); }

/* Select Option Fix for Dark Theme */
.select option {
  background: #1a1f2e;
  color: #e9f0fa;
  padding: 8px;
}
.select option:hover,
.select option:checked {
  background: #2a3142;
}
.select--small option {
  padding: 6px;
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2397a6ba' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

/* Street View Section */
.card--highlight {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--panel2));
}
.streetview-price {
  margin: 12px 0;
  padding: 12px;
  background: rgba(0,0,0,.2);
  border-radius: 8px;
  text-align: center;
}
.streetview-price .price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
}
.feature-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.feature-list li i {
  color: var(--good);
  margin-right: 8px;
}
.streetview-custom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.btn--large {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* Publish Tabs */
.publish-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.publish-tab {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  font-size: 13px;
  transition: .15s;
}
.publish-tab:hover {
  background: rgba(255,255,255,.05);
}
.publish-tab.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}
.publish-content {
  display: none;
}
.publish-content.active {
  display: block;
}
.qr-section {
  text-align: center;
  padding: 20px;
}
.qr-code {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
}
.success-icon {
  text-align: center;
  padding: 20px 0;
}

/* Radio as Switch */
input[type="radio"] {
  display: none;
}
input[type="radio"] + .slider {
  background: rgba(255,255,255,.10);
}
input[type="radio"]:checked + .slider {
  background: color-mix(in srgb, var(--accent) 30%, rgba(255,255,255,.10));
}
input[type="radio"]:checked + .slider:before {
  transform: translateX(20px);
  background: var(--accent);
}

/* Slider Container */
.slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform .15s;
}
.range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.range-val {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  color: var(--accent);
}
.sliderRow {
  margin: 12px 0;
}

/* ========================================
   HOTSPOT STYLES - Pulse, Glow Animations
   ======================================== */

/* Hotspot Base */
.hotspot {
  cursor: pointer;
  transition: transform 0.2s ease;
}
.hotspot:hover {
  transform: scale(1.15);
}

/* Default Style */
.hotspot-default {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Pulse Style */
.hotspot-pulse {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  position: relative;
  animation: pulse-core 2s ease-in-out infinite;
}
.hotspot-pulse::before,
.hotspot-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-ring 2s ease-out infinite;
}
.hotspot-pulse::before {
  width: 48px;
  height: 48px;
}
.hotspot-pulse::after {
  width: 64px;
  height: 64px;
  animation-delay: 0.4s;
}
@keyframes pulse-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes pulse-ring {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); }
}

/* Glow Style */
.hotspot-glow {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border: 3px solid white;
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite alternate;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 30px var(--accent);
}
@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--accent), 0 0 10px var(--accent), 0 0 15px var(--accent);
  }
  100% {
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent), 0 0 45px var(--accent);
  }
}

/* Ring Style */
.hotspot-ring {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 3px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.hotspot-ring::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: ring-rotate 3s linear infinite;
}
@keyframes ring-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Neon Style */
.hotspot-neon {
  width: 32px;
  height: 32px;
  background: rgba(0,255,255,0.2);
  border: 2px solid #00ffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, inset 0 0 10px rgba(0,255,255,0.3);
  animation: neon-flicker 2s ease-in-out infinite;
}
@keyframes neon-flicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
  50% { opacity: 0.8; box-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff; }
}

/* Glass Style */
.hotspot-glass {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Gold Style */
.hotspot-gold {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f5d442 0%, #d4a012 50%, #f5d442 100%);
  border: 2px solid #c9a227;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(212,160,18,0.5);
  animation: gold-shine 3s ease-in-out infinite;
}
@keyframes gold-shine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

/* Hotspot Icons */
.hotspot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Nadir Logo */
.nadir-logo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotateX(70deg);
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.9;
}

/* Watermark Overlay (Free Users) */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: url('assets/watermark-overlay.svg');
  background-size: cover;
  opacity: 0.4;
  z-index: 100;
}

/* ========================================
   HOTSPOT POPUPS
   ======================================== */
.hotspot-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hotspot-popup__box {
  background: var(--panel);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.hotspot-popup__box h3 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: 20px;
}
.hotspot-popup__box p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.hotspot-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.hotspot-popup__close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

/* Video Popup */
.hotspot-popup__box--video {
  max-width: 800px;
  padding: 12px;
}
.hotspot-popup__box--video iframe {
  width: 100%;
  height: 450px;
  border-radius: 8px;
}

/* Gallery Popup */
.hotspot-popup__box--gallery {
  max-width: 700px;
}
.gallery-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.gallery-img {
  flex: 1;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.gallery-prev,
.gallery-next {
  background: var(--accent);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-prev:hover,
.gallery-next:hover {
  transform: scale(1.1);
}
.gallery-counter {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Gallery List in Inspector */
.gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.gallery-item {
  position: relative;
  width: 60px;
  height: 60px;
}
.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.gallery-item .btn--small {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  padding: 0;
  font-size: 10px;
  border-radius: 50%;
}
.btn--danger {
  background: var(--bad) !important;
}
.btn--small {
  padding: 4px 8px;
  font-size: 12px;
}
