.elementor-799 .elementor-element.elementor-element-ff0c4fa{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--overlay-opacity:0.5;border-style:none;--border-style:none;--margin-top:-60px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-799 .elementor-element.elementor-element-ff0c4fa:not(.elementor-motion-effects-element-type-background), .elementor-799 .elementor-element.elementor-element-ff0c4fa > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#555555;}.elementor-799 .elementor-element.elementor-element-ff0c4fa::before, .elementor-799 .elementor-element.elementor-element-ff0c4fa > .elementor-background-video-container::before, .elementor-799 .elementor-element.elementor-element-ff0c4fa > .e-con-inner > .elementor-background-video-container::before, .elementor-799 .elementor-element.elementor-element-ff0c4fa > .elementor-background-slideshow::before, .elementor-799 .elementor-element.elementor-element-ff0c4fa > .e-con-inner > .elementor-background-slideshow::before, .elementor-799 .elementor-element.elementor-element-ff0c4fa > .elementor-motion-effects-container > .elementor-motion-effects-layer::before{background-color:#000000;--background-overlay:'';}.elementor-799 .elementor-element.elementor-element-ff0c4fa.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-799 .elementor-element.elementor-element-aa17f5b{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-799 .elementor-element.elementor-element-aa17f5b.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-799 .elementor-element.elementor-element-8568180.elementor-element{--flex-grow:0;--flex-shrink:0;}.elementor-799 .elementor-element.elementor-element-8568180 > .elementor-widget-container{border-style:solid;}.elementor-799 .elementor-element.elementor-element-c2adc0a{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-799 .elementor-element.elementor-element-c2adc0a:not(.elementor-motion-effects-element-type-background), .elementor-799 .elementor-element.elementor-element-c2adc0a > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#000000;}.elementor-799 .elementor-element.elementor-element-c782317{--display:flex;}.elementor-799 .elementor-element.elementor-element-9eb5455{--display:flex;}.elementor-799 .elementor-element.elementor-element-38c268f{--display:flex;}.elementor-799 .elementor-element.elementor-element-1b61b3b{--display:flex;}@media(max-width:767px){.elementor-799 .elementor-element.elementor-element-ff0c4fa{--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:-60px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-799 .elementor-element.elementor-element-aa17f5b{--min-height:0px;}.elementor-799 .elementor-element.elementor-element-aa17f5b.e-con{--flex-grow:1;--flex-shrink:0;}.elementor-799 .elementor-element.elementor-element-8568180{width:100%;max-width:100%;}.elementor-799 .elementor-element.elementor-element-8568180 > .elementor-widget-container{border-width:1px 1px 1px 1px;}}@media(min-width:768px){.elementor-799 .elementor-element.elementor-element-ff0c4fa{--width:100%;}.elementor-799 .elementor-element.elementor-element-aa17f5b{--width:73.19%;}.elementor-799 .elementor-element.elementor-element-c2adc0a{--width:25%;}}/* Start custom CSS *//* -----------------------------------------------------------
   NIGHTLIGHTCUBE PUBLIC PAGE - UPDATED CSS
----------------------------------------------------------- */

/* ===========================================================
   VIEWER HOST
=========================================================== */
#nlc-viewer-container {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: min(78vh, 920px);
  background: #090b0f;
  overflow: hidden;
}

#nlc-viewer {
  width: 100%;
  height: 100%;
}

#nlc-viewer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===========================================================
   HIDDEN ADMIN PANEL SUPPORT
=========================================================== */
#controls.is-hidden {
  display: none !important;
}

/* ===========================================================
   VIEWER OVERLAYS
=========================================================== */
#nlc-loading-overlay,
#nlc-environment-fade,
#nlc-interaction-hint,
#nlc-environment-toggle {
  position: absolute;
  z-index: 2;
}

#nlc-loading-overlay {
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(5, 8, 12, 0.72);
}

#nlc-loading-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: rgba(255,255,255,0.82);
  animation: nlc-spin 0.8s linear infinite;
}

#nlc-loading-text {
  font-size: 13px;
  color: #d6dce3;
}

#nlc-environment-toggle {
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.72);
  color: #f4f7fb;
  box-shadow: 0 8px 20px rgba(0,0,0,0.24);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

#nlc-environment-toggle:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(18, 24, 32, 0.92);
  transform: translateY(-1px);
}

#nlc-environment-toggle:focus-visible {
  outline: 2px solid rgba(128, 189, 255, 0.9);
  outline-offset: 2px;
}

#nlc-environment-toggle-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  line-height: 0;
}

#nlc-environment-toggle-icon svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#nlc-environment-toggle-icon svg[hidden] {
  display: none !important;
}

#nlc-interaction-hint {
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

#nlc-interaction-hint span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.56);
  border: 1px solid rgba(255,255,255,0.12);
  color: #d1d6dc;
  font-size: 12px;
  letter-spacing: 0.02em;
}

#nlc-environment-fade {
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

/* ===========================================================
   SHARED PANEL / CONTROL GROUP WRAPPERS
=========================================================== */
.texture-group,
.control-group {
  margin-bottom: 18px;
  padding: 12px 12px 2px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  font-family: Arial, sans-serif;
  color: #ddd;
}

.texture-group:last-child,
.control-group:last-child {
  margin-bottom: 0;
}

.texture-group-heading,
.control-group-heading {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.texture-group-heading strong,
.control-group-heading strong {
  display: block;
  margin-bottom: 0;
}

.texture-group-note,
.control-group-note {
  display: block;
  color: #a7a7a7;
  font-size: 12px;
  line-height: 1.35;
}

/* ===========================================================
   BASIC FORM CONTROLS
=========================================================== */
label {
  display: block;
  margin-top: 8px;
}

input[type="range"] {
  width: 160px;
  vertical-align: middle;
}

span.value {
  margin-left: 6px;
  min-width: 40px;
  display: inline-block;
  text-align: right;
}

.preview,
img.preview {
  display: block;
  margin-top: 4px;
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #222;
  border: 1px solid #444;
}

.settings-subsection {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.settings-subsection strong {
  display: block;
  margin-bottom: 6px;
}

/* ===========================================================
   ACCORDIONS
=========================================================== */
.accordion-section,
.control-section {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
  background: transparent;
}

.accordion-section summary,
.control-section summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  user-select: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 600;
}

.accordion-section summary::-webkit-details-marker,
.control-section summary::-webkit-details-marker {
  display: none;
}

.accordion-section summary::after,
.control-section summary::after {
  content: "+";
  color: #bbb;
  font-size: 16px;
  line-height: 1;
}

.accordion-section[open] summary::after,
.control-section[open] summary::after {
  content: "\2212";
}

.accordion-section summary strong,
.control-section summary strong {
  margin-bottom: 0;
}

.accordion-content,
.control-section-content {
  padding-top: 2px;
}

/* ===========================================================
   TOP-LEVEL RIGHT PANEL TABS
=========================================================== */
.texture-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.texture-tab-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

button.texture-tab-button {
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: #1a1f23 !important;
  color: #ddd !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

button.texture-tab-button.is-active {
  border-color: rgba(212,175,55,0.8) !important;
  background: rgba(212,175,55,0.12) !important;
  color: #f4df8c !important;
}

.texture-tab-panel[hidden] {
  display: none !important;
}

/* ===========================================================
   RIGHT PANEL - SHARED CUBE DESIGN EDITOR
=========================================================== */
.texture-group label {
  display: block;
  margin: 4px 0;
}

.texture-group strong {
  display: block;
  margin-bottom: 6px;
}

.shared-panel-editor {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.shared-panel-editor-title {
  margin-bottom: 10px;
}

.shared-panel-editor-title strong {
  display: block;
  margin: 0;
}

#sharedPanelEditor {
  display: flex;
  flex-direction: column;
}

.panel-field-label {
  display: block;
  margin: 4px 0;
  font-size: inherit;
  line-height: 1.35;
}

.panel-editor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-editor-heading strong {
  display: block;
  margin: 0;
}

.panel-editor-note {
  display: block;
  margin: 0;
  color: #aeb7bf;
  font-size: 12px;
  line-height: 1.35;
}

.panel-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.panel-preview-row .preview {
  cursor: pointer;
}

.panel-preview-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.panel-preview-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-file-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 8px 0;
}

.panel-file-row label {
  margin: 0;
}

.panel-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-file-input,
#activePanelFile {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.panel-file-button {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
}

.panel-file-name {
  color: #aeb9c2;
  font-size: 12px;
  line-height: 1.4;
}

.panel-file-row button {
  align-self: flex-start;
}

.panel-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}

.panel-slider-row[hidden] {
  display: none !important;
}

.panel-slider-label {
  min-width: 68px;
  font-size: 13px;
}

.panel-slider-row input[type="range"] {
  flex: 1;
  min-width: 0;
}

.panel-slider-row .value {
  margin-left: 0;
}

.panel-slider-row button {
  flex: 0 0 auto;
}

.panel-inline-select {
  width: 100%;
  margin-top: 4px;
  margin-left: 0;
  background: #1a1a1a;
  color: #ddd;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 6px;
}

.design-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.design-actions button {
  flex: 1;
}

.panel-body.elementor-page-799-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 16px;
}

.panel-body.elementor-page-799-button,
button#panelSelectTop,
button#panelSelectFront,
button#panelSelectRight,
button#panelSelectLeft,
button#panelSelectBack {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: #1a1f23 !important;
  color: #ddd !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  min-height: 34px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.panel-body.elementor-page-799-button.is-active,
button#panelSelectTop.is-active,
button#panelSelectFront.is-active,
button#panelSelectRight.is-active,
button#panelSelectLeft.is-active,
button#panelSelectBack.is-active {
  border-color: rgba(212,175,55,0.8) !important;
  background: rgba(212,175,55,0.12) !important;
  color: #f4df8c !important;
}

/* ===========================================================
   PANEL COLOR SWATCHES
=========================================================== */
.panel-color-picker {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.panel-color-picker span {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.panel-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 24px));
  gap: 6px;
  margin-top: 6px;
}

.panel-color-swatch,
.panel-color-grid div {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.25);
  box-sizing: border-box;
}

.panel-color-swatch {
  padding: 0;
  background: transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.panel-color-swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.55);
}

.panel-color-swatch.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #111, 0 0 0 4px #ffffff;
}

/* ===========================================================
   CUSTOM COLOR PICKER
=========================================================== */
.native-color-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custom-color-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: #1a1f23;
  color: #ddd;
  cursor: pointer;
  font: inherit;
}

.custom-color-trigger:hover {
  border-color: rgba(255,255,255,0.3);
  background: #222930;
}

.custom-color-trigger:focus-visible {
  outline: 2px solid rgba(128, 189, 255, 0.9);
  outline-offset: 2px;
}

.custom-color-trigger-swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  background: #ffffff;
}

.custom-color-trigger-value {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.color-picker-modal[hidden] {
  display: none;
}

.color-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
}

.color-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(2px);
}

.color-picker-panel {
  position: relative;
  width: min(288px, calc(100vw - 24px));
  margin: 19px auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 15px;
  background: #12181d;
  color: #eef2f5;
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
  overflow: hidden;
}

.color-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.color-picker-header h2 {
  margin: 0;
  font-size: 15px;
  color: #eef2f5 !important;
  font-weight: 600;
  line-height: 1.2;
}

.color-picker-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px 14px 14px;
}

.color-picker-surface {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: crosshair;
  background: red;
  touch-action: none;
}

.color-picker-surface::before,
.color-picker-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.color-picker-surface::before {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.color-picker-surface::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, #000000 100%);
}

.color-picker-surface-thumb {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-preview {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.color-picker-hue-wrap {
  flex: 1;
  min-width: 0;
}

.color-picker-hue {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  height: 15px;
  padding: 0;
  background: transparent;
}

.color-picker-hue::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
}

.color-picker-hue::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -2px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #11161c;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
}

.color-picker-hue::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  background: linear-gradient(
    90deg,
    #ff0000 0%,
    #ffff00 17%,
    #00ff00 33%,
    #00ffff 50%,
    #0000ff 67%,
    #ff00ff 83%,
    #ff0000 100%
  );
}

.color-picker-hue::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #11161c;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
}

.color-picker-hue-label {
  display: block;
  margin-bottom: 3px;
  color: #aeb9c2;
  font-size: 11px;
  line-height: 1.35;
}

.color-picker-rgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.color-picker-rgb-grid label {
  margin: 0;
  color: #aeb9c2;
  font-size: 11px;
  line-height: 1.35;
}

.color-picker-rgb-grid .color-picker-hex-field {
  grid-column: 1 / -1;
}

.color-picker-rgb-grid input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 3px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 7px;
  background: #11161a !important;
  color: #eef2f5 !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
  height: 31px !important;
  padding: 7px 9px !important;
}

.color-picker-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 11px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.color-picker-footer button {
  min-width: 88px;
  border-radius: 8px;
  box-sizing: border-box;
  min-height: 0 !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.2 !important;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16) !important;
  background: #1a1f23 !important;
  color: #ddd !important;
}

.color-picker-footer button:hover {
  filter: brightness(1.05);
}

.color-picker-footer button:focus-visible {
  outline: 2px solid rgba(128, 189, 255, 0.9);
  outline-offset: 2px;
}

/* ===========================================================
   LIGHTING CONTROLS
=========================================================== */
.panel-lighting-group {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.panel-radio-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.panel-radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  user-select: none;
}

.panel-radio-option input {
  margin: 0;
}

.panel-hidden-control {
  display: none !important;
}

.panel-lighting-engine-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.panel-lighting-engine-fields[hidden] {
  display: none !important;
}

.panel-lighting-phase {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 0;
}

.panel-lighting-phase-title {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.panel-lighting-phase > label {
  margin: 0;
}

/* ===========================================================
   SHARED BUTTON LOOK
=========================================================== */
.design-actions button,
.panel-file-row button,
.panel-file-button,
.panel-slider-row button,
.gallery-modal-close {
  border: 1px solid rgba(255,255,255,0.14) !important;
  background: #1a1f23 !important;
  color: #ddd !important;
  border-radius: 9px !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}

.panel-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.design-actions button:hover,
.panel-file-row button:hover,
.panel-file-button:hover,
.panel-slider-row button:hover,
button.texture-tab-button:hover,
button#panelSelectTop:hover,
button#panelSelectFront:hover,
button#panelSelectRight:hover,
button#panelSelectLeft:hover,
button#panelSelectBack:hover,
.gallery-modal-close:hover {
  border-color: rgba(255,255,255,0.3) !important;
  background: #222930 !important;
}

/* ===========================================================
   GALLERY MODAL
=========================================================== */
.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.gallery-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 32px));
  margin: 16px auto;
  background: #121619;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
  overflow: hidden;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.gallery-modal-header h2 {
  margin: 0;
  font-size: 18px;
  color: #ddd;
}

.gallery-modal-body {
  --gallery-sidebar-size: 220px;
  --gallery-sidebar-mobile-size: 42%;
  display: flex;
  min-height: 0;
  flex: 1;
}

.gallery-sidebar {
  width: var(--gallery-sidebar-size);
  flex: 0 0 var(--gallery-sidebar-size);
  padding: 14px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  overflow-y: auto;
}

.gallery-sidebar h3,
.gallery-content h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #aeb7bf;
}

.gallery-resizer {
  position: relative;
  flex: 0 0 12px;
  cursor: col-resize;
  touch-action: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 0;
  padding: 0;
}

.gallery-resizer::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 56px;
  border-radius: 999px;
  background: rgba(244,223,140,0.45);
  transform: translate(-50%, -50%);
}

.gallery-resizer:hover::before,
.gallery-resizer:focus-visible::before,
.gallery-modal-body.is-resizing .gallery-resizer::before {
  background: rgba(244,223,140,0.8);
}

.gallery-tree {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-tree-node {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

.gallery-tree-toggle,
.gallery-tree-spacer {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-tree-toggle {
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1f23;
  color: #ddd;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.gallery-tree-label {
  border: 1px solid rgba(255,255,255,0.14);
  background: #1a1f23;
  color: #ddd;
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  text-align: left;
}

.gallery-tree-label.is-active,
.gallery-tree-toggle.is-active {
  border-color: rgba(212,175,55,0.8);
  background: rgba(212,175,55,0.12);
  color: #f4df8c;
}

.gallery-tree-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gallery-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 18px;
  overflow: hidden;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
}

.gallery-toolbar label {
  color: #aeb7bf;
  font-size: 12px;
  white-space: nowrap;
}

.gallery-search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.14);
  background: #11161a;
  border-radius: 8px;
  color: #ddd;
  font: inherit;
  padding: 9px 11px;
}

.gallery-search-input::placeholder {
  color: #7f8a94;
}

.gallery-search-clear {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.14);
  background: #1a1f23;
  border-radius: 8px;
  color: #ddd;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  padding: 9px 11px;
  white-space: nowrap;
}

.gallery-search-clear:disabled {
  cursor: default;
  opacity: 0.45;
}

.gallery-status {
  min-height: 20px;
  margin-bottom: 10px;
  color: #aeb7bf;
  font-size: 12px;
}

.gallery-status.is-error {
  color: #ff9a8f;
}

.gallery-selection-path {
  margin-bottom: 14px;
  color: #aeb7bf;
  font-size: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-card {
  border: 1px solid rgba(255,255,255,0.14);
  background: #1a1f23;
  border-radius: 10px;
  color: #ddd;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #0d1012;
}

.gallery-card-label {
  display: block;
  padding: 8px 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

/* ===========================================================
   IMAGE OPTIONS MODAL
=========================================================== */
.image-options-modal[hidden] {
  display: none;
}

.image-options-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.image-options-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 16, 0.72);
  backdrop-filter: blur(2px);
}

.image-options-panel {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  margin: 14px auto;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: #12181d;
  color: #eef2f5;
  box-shadow: 0 26px 70px rgba(0,0,0,0.42);
  overflow: hidden;
}

.image-options-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.image-options-header h2 {
  margin: 0;
  font-size: 18px;
}

.image-options-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
  overflow-y: auto;
}

.image-options-note {
  margin: 0;
  color: #aeb9c2;
  font-size: 12px;
  line-height: 1.45;
}

.image-options-preview-wrap {
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: #0d1012;
  padding: 12px;
}

.image-options-preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: repeating-conic-gradient(from 45deg, #11171b 0% 25%, #0a0d10 0% 50%) 50% / 18px 18px;
  cursor: grab;
  touch-action: none;
}

.image-options-preview-stage.is-dragging {
  cursor: grabbing;
}

.image-options-preview {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform;
}

.image-options-preview-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

.image-options-preview-controls button {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(13, 16, 18, 0.86);
  color: #eef2f5;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.image-options-preview-hint {
  margin: 10px 0 0;
  color: #aeb9c2;
  font-size: 12px;
  line-height: 1.45;
}

.image-options-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-options-section label,
.image-options-section select {
  color: inherit;
}

.image-options-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.image-options-footer button {
  min-width: 110px;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  border: 1px solid rgba(255,255,255,0.16);
  background: #1a1f23;
  color: #ddd;
}

.image-options-footer button:hover {
  filter: brightness(1.05);
}

.image-options-footer button:focus-visible {
  outline: 2px solid rgba(128, 189, 255, 0.9);
  outline-offset: 2px;
}

/* ===========================================================
   SIDE LABELS ON THE 3D MODEL
=========================================================== */
.side-label-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.side-label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(10, 14, 22, 0.72);
  color: #f4f7fb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease;
  line-height: 1;
}

.side-label.is-visible {
  opacity: 1;
}

/* ===========================================================
   RESPONSIVE RULES
=========================================================== */
@media (max-width: 1024px) {
  #nlc-viewer-container {
    height: 62vh;
    min-height: 480px;
  }
}

@media (max-width: 860px) {
  .gallery-modal-panel {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .gallery-modal-body {
    flex-direction: column;
  }

  .gallery-sidebar {
    width: auto;
    flex: 0 0 var(--gallery-sidebar-mobile-size);
    max-height: none;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .gallery-resizer {
    flex: 0 0 12px;
    cursor: row-resize;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  }

  .gallery-resizer::before {
    width: 56px;
    height: 3px;
  }

  .gallery-content {
    flex: 1 1 58%;
    min-height: 0;
  }

  .image-options-modal:not([hidden]) {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
  }

  .image-options-panel {
    width: 100%;
    max-height: min(86vh, 760px);
    margin: 0;
    border-radius: 18px 18px 0 0;
  }

  .image-options-preview-stage {
    height: min(42vh, 320px);
  }
}

@media (max-width: 768px) {
  #nlc-viewer-container {
    height: 42vh !important;
    min-height: 300px !important;
  }

  .panel-body.elementor-page-799-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .elementor-element.elementor-element-aa17f5b,
  .elementor-element.elementor-element-aa17f5b.elementor-sticky--active {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: #090b0f !important;
    overflow: hidden !important;
  }
}

/* ===========================================================
   KEYFRAMES
=========================================================== */
@keyframes nlc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}/* End custom CSS */