/* SwatchPicker Styles - Self-contained, scoped to avoid conflicts */

.swatch-picker-container {
  --swatch-border-color: rgba(56, 189, 248, 0.3);
  --swatch-hover-border: rgba(56, 189, 248, 0.6);
  --swatch-selected-glow: rgba(56, 189, 248, 0.8);
  --picker-bg: rgba(15, 23, 42, 0.95);
  --picker-border: rgba(56, 189, 248, 0.4);
  --gap-size: 12px;

  background: var(--picker-bg);
  border: 1px solid var(--picker-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  animation: swatchPickerFadeIn 0.2s ease-out;
}

.swatch-picker-container[data-theme="light"] {
  --picker-bg: rgba(255, 255, 255, 0.95);
  --picker-border: rgba(100, 116, 139, 0.3);
  --swatch-border-color: rgba(100, 116, 139, 0.2);
  --swatch-hover-border: rgba(100, 116, 139, 0.5);
  --swatch-selected-glow: rgba(56, 189, 248, 0.6);
}

@keyframes swatchPickerFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swatch-picker-grid {
  display: flex;
  gap: 0;
}

.swatch-picker-column {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Add visual gap after grayscale column */
.swatch-picker-column-grayscale {
  margin-right: var(--gap-size);
  position: relative;
}

.swatch-picker-column-grayscale::after {
  content: "";
  position: absolute;
  right: calc(var(--gap-size) / -2 - 1px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--swatch-border-color) 20%, var(--swatch-border-color) 80%, transparent 100%);
}

.swatch-picker-swatch {
  border: 2px solid var(--swatch-border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
  outline: none;
  position: relative;
}

.swatch-picker-swatch:hover {
  border-color: var(--swatch-hover-border);
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.swatch-picker-swatch:active {
  transform: scale(1.05);
}

.swatch-picker-swatch-selected {
  border-color: var(--swatch-selected-glow);
  box-shadow:
    0 0 0 3px var(--picker-bg),
    0 0 0 5px var(--swatch-selected-glow),
    0 0 16px var(--swatch-selected-glow);
  z-index: 20;
}

.swatch-picker-swatch-selected:hover {
  box-shadow:
    0 0 0 3px var(--picker-bg),
    0 0 0 5px var(--swatch-selected-glow),
    0 0 20px var(--swatch-selected-glow);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .swatch-picker-container {
    padding: 10px;
  }

  .swatch-picker-swatch {
    width: 32px !important;
    height: 32px !important;
  }

  .swatch-picker-column-grayscale {
    margin-right: 10px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .swatch-picker-swatch {
    border-width: 3px;
  }

  .swatch-picker-swatch-selected {
    border-width: 4px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .swatch-picker-container {
    animation: none;
  }

  .swatch-picker-swatch {
    transition: none;
  }

  .swatch-picker-swatch:hover {
    transform: none;
  }
}
/* Image Uploader Component */
.image-uploader {
  width: 100%;
}

.image-uploader__label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.image-uploader__drop-zone {
  position: relative;
  width: 100%;
  min-height: 200px;
  padding: 24px;
  background: rgba(30, 41, 59, 0.3);
  border: 2px dashed rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.image-uploader__drop-zone--drag-over {
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(56, 189, 248, 0.1);
}

.image-uploader__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: #38bdf8;
  opacity: 0.7;
}

.image-uploader__text-container {
  display: block;
}

.image-uploader__text-container--hidden {
  display: none;
}

.image-uploader__text-primary {
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.image-uploader__text-secondary {
  color: #64748b;
  font-size: 12px;
}

.image-uploader__preview-container {
  display: none;
  width: 100%;
  max-width: 300px;
}

.image-uploader__preview-container--visible {
  display: block;
}

.image-uploader__preview-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.image-uploader__preview-info {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.image-uploader__file-name {
  color: #cbd5e1;
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-uploader__remove-btn {
  padding: 4px 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 4px;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.image-uploader__remove-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

.image-uploader__file-input {
  display: none;
}

.image-uploader__validation-message {
  margin: 8px 0 0 0;
  color: #ef4444;
  font-size: 12px;
  display: none;
}

.image-uploader__validation-message--visible {
  display: block;
}
/**
 * Gallery Styles  
 * Following Tailwind CSS utility-first patterns with BEM-like component naming
 * Structure: Base → Layout → Components → Utilities
 * 
 * NOTE: This file contains intentional duplicates marked with comments.
 * Duplicates are preserved in their original order for debugging CSS cascade conflicts.
 */

/* ====================================================================
   BASE STYLES
   ==================================================================== */

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Prevent scrolling on mobile */
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3); /* Translucent black background */
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui;
  margin-left: 12px;
  transition: color 0.2s;
}

body.is-processing {
  cursor: wait !important;
  pointer-events: none; /* Prevents double-clicks while loading */
  opacity: 0.7;
  transition: opacity 0.2s;
}

/* DUPLICATE: body.is-processing (original at line 52, this was line 723) */
/* body.is-processing {
  cursor: wait !important;
  pointer-events: none; 
  opacity: 0.7;
  transition: opacity 0.2s;
} */

/* ====================================================================
   ADMIN CONSOLE
   ==================================================================== */

.admin-console__toggle {
  position: absolute;
  top: 8px;
  right: 18px;
  background: none;
  border: none;
  color: #38bdf8;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.2s;
}

.admin-console__toggle:hover {
  color: #38bdf8;
}

.admin-console.collapsed .admin-console__content {
  display: none;
}

.admin-console.collapsed {
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.12);
}

.admin-console__button-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-console__info-btn {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.75em;
  transition: all 0.2s;
  text-align: center;
  min-width: max-content;
  white-space: normal;
  word-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.admin-console__info-btn:hover {
  background: rgba(56, 189, 248, 0.25);
}

.admin-console__card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  flex-shrink: 1;
}

.admin-console__card-title {
  color: #ffffff;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 2px;
}

.admin-console__controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.admin-console__controls-row--tight {
  gap: 10px;
}

.admin-console__control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.admin-console__control-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.admin-console__control-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-console__label {
  color: #94a3b8;
  font-size: 0.75em;
  font-weight: 600;
  margin-bottom: 2px;
}

.admin-console__slider-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.admin-console__slider--color {
  writing-mode: vertical-lr;
  width: 12px;
  height: 100px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 15%,
    hsl(0, 100%, 50%) 15%,
    hsl(30, 100%, 50%) 23.5%,
    hsl(60, 100%, 50%) 32%,
    hsl(90, 100%, 50%) 40.5%,
    hsl(120, 100%, 50%) 49%,
    hsl(150, 100%, 50%) 57.5%,
    hsl(180, 100%, 50%) 66%,
    hsl(210, 100%, 50%) 74.5%,
    hsl(240, 100%, 50%) 83%,
    hsl(270, 100%, 50%) 91.5%,
    hsl(300, 100%, 50%) 100%,
    hsl(330, 100%, 50%) 100%,
    hsl(360, 100%, 50%) 100%
  );
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.admin-console__slider--intensity {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 8px;
  height: 100px;
  background: rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.admin-console__color-swatch {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.admin-console__value-display {
  font-size: 0.7em;
  color: #94a3b8;
  min-width: 26px;
  text-align: center;
}

.admin-console__action-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-console__save-asterisk {
  display: none;
  position: absolute;
  top: 3px;
  right: 6px;
  color: #fbbf24;
  font-size: 1.2em;
  line-height: 1;
}

.admin-console {
  /* display: none; */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh;
  background: transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); /* Fix for Safari */
  border-top: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.admin-console--visible {
  transform: translateY(0);
}

.admin-console__header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  padding: 8px 0;
  color: #ffffff;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-align: center;
  z-index: 1;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.admin-console__content {
  display: flex;
  gap: clamp(10px, 1.5vw, 16px);
  align-items: flex-start;
  justify-content: center;
  padding: 16px clamp(10px, 2vw, 24px);
  width: 100%;
  flex-wrap: wrap;
  min-width: 1024px;
  max-width: 1800px;
  margin: 0 auto;
}

.admin-console__section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-console__section-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ====================================================================
   MODALS & OVERLAYS
   ==================================================================== */

.info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.info-modal--visible {
  display: flex;
}

.info-modal__content {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 24px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.info-modal__title {
  color: #ffffff;
  font-size: 1.3em;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-align: center;
}

.info-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-modal__field-label {
  display: block;
  color: #94a3b8;
  font-size: 0.85em;
  margin-bottom: 6px;
}

.info-modal__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.95em;
}

.info-modal__textarea {
  width: 100%;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.95em;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.info-modal__hint {
  color: #64748b;
  font-size: 0.75em;
  margin: 4px 0 0 0;
}

.info-modal__checkbox-wrapper {
  margin-top: 8px;
  display: none;
}

.info-modal__checkbox-label {
  display: flex;
  align-items: center;
  color: #94a3b8;
  cursor: pointer;
}

.info-modal__checkbox {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #10b981;
}

.info-modal__checkbox-text {
  font-size: 1em;
}

.info-modal__checkbox-hint {
  color: #64748b;
  font-size: 0.8em;
  margin: 6px 0 0 30px;
}

.info-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.info-modal__actions .button {
  flex: 1;
}

.info-modal__radio-option {
  display: flex;
  align-items: center;
  color: #94a3b8;
  cursor: pointer;
  padding: 10px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
}

.info-modal__radio-input {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  cursor: pointer;
}

.info-modal__radio-title {
  font-size: 1em;
  color: #e2e8f0;
  font-weight: 600;
}

.info-modal__radio-desc {
  font-size: 0.8em;
  color: #64748b;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 109;
  transition: opacity 0.3s;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.gate-modal__container {
  max-width: 400px;
  width: 90%;
  padding: 32px 24px 16px 24px;
  background: #1a2336;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
  text-align: center;
  height: auto;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  pointer-events: auto;
}

.auth-modal__form .button--link {
  align-self: flex-end;
}

#gateModal {
  z-index: 950;
  display: none; /* Hidden by default, inherits from .modal base */
}

#gateModal.modal--visible {
  display: flex; /* Show when visible class added */
}

/* Come Back Later Overlay */
.come-back-later-overlay {
  position: fixed;
  inset: 0;
  z-index: 980; /* Above gate modal (950) */
  background: rgba(0, 0, 0, 0.4); /* Less dark - was 0.85 */
  backdrop-filter: blur(4px); /* Less blur - was 8px */
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto; /* Block ALL interactions */
}

.come-back-later-overlay--visible {
  display: flex;
}

.come-back-later-overlay__container {
  max-width: 500px;
  width: 90%;
  padding: 40px 32px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  pointer-events: auto;
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.come-back-later-overlay__icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.come-back-later-overlay__title {
  color: #ffffff;
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  /* transition set dynamically via JavaScript */
}

.come-back-later-overlay__title.fade-out {
  opacity: 0;
}

.come-back-later-overlay__message {
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
  /* transition set dynamically via JavaScript */
}

.come-back-later-overlay__message.fade-out {
  opacity: 0;
}

.come-back-later-overlay__details {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

.gate-modal__headline {
  color: #ffffff;
  font-size: 1.6em;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.gate-modal__welcome {
  color: #fff;
  font-size: 1.3em;
  font-weight: 600;
  margin: 0 0 28px 0;
}

.gate-modal__body {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.gate-modal__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 32px 0;
  align-items: center;
}

.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 220;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.legal-overlay--visible {
  display: flex;
  opacity: 1;
}

.legal-overlay__container {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 1) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin: auto;
}

.legal-overlay__close-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.4);
  color: #94a3b8;
  font-size: 1.8em;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.2s;
}

.legal-overlay__close-top:hover {
  background: rgba(100, 116, 139, 0.3);
  border-color: rgba(100, 116, 139, 0.6);
  color: #cbd5e1;
}

.legal-overlay__content {
  padding: 48px 40px 24px 40px;
  overflow-y: auto;
  flex: 0 1 auto;
  max-height: calc(90vh - 120px);
}

.legal-overlay__title {
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.legal-overlay__text {
  color: #cbd5e1;
  font-size: 1em;
  line-height: 1.8;
}

.legal-overlay__text p {
  margin: 0 0 16px 0;
}

.legal-overlay__text p:last-child {
  margin-bottom: 0;
}

.legal-overlay__text h1 {
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.legal-overlay__text h2 {
  color: #ffffff;
  font-size: 1.5em;
  font-weight: 700;
  margin: 32px 0 16px 0;
}

.legal-overlay__text h2:first-child {
  margin-top: 0;
}

.legal-overlay__text h3 {
  color: #94a3b8;
  font-size: 1.2em;
  font-weight: 600;
  margin: 24px 0 12px 0;
}

.legal-overlay__text strong {
  color: #e2e8f0;
  font-weight: 600;
}

.legal-overlay__text ul,
.legal-overlay__text ol {
  margin: 16px 0;
  padding-left: 24px;
}

.legal-overlay__text li {
  margin: 8px 0;
}

.legal-overlay__text a {
  color: #38bdf8;
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-overlay__text a:hover {
  color: #60a5fa;
}

.legal-overlay__close-bottom {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid rgba(100, 116, 139, 0.4);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 1em;
  font-weight: 600;
  padding: 12px 24px;
  margin: 0 24px 24px 24px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.legal-overlay__close-bottom:hover {
  background: rgba(100, 116, 139, 0.3);
  border-color: rgba(100, 116, 139, 0.6);
  color: #cbd5e1;
}

.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal--visible {
  display: flex;
}

.auth-modal__container {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal__header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-modal__title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.auth-modal__subtitle {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 0;
}

.auth-modal__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-modal__tabs--hidden {
  display: none;
}

.auth-modal__tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-modal__tab:hover {
  color: #ffffff;
}

.auth-modal__tab--active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-modal__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s;
}

.auth-modal__input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal__input::placeholder {
  color: #64748b;
}

.auth-modal__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}

.auth-modal__divider::before,
.auth-modal__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-modal__divider-text {
  color: #64748b;
  font-size: 0.85rem;
}

.auth-modal__social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal__social-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.auth-modal__social-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.auth-modal__social-icon {
  width: 20px;
  height: 20px;
}

.auth-modal__message {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-align: center;
}

.auth-modal__message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-modal__message--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.auth-modal__close:hover {
  color: #ffffff;
}

/* ============================================
   Get In Touch Modal
   ============================================ */

.get-in-touch__info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.get-in-touch__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.get-in-touch__email a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.2s;
}

.get-in-touch__email a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.get-in-touch__icon {
  width: 20px;
  height: 20px;
  color: #38bdf8;
}

.get-in-touch__textarea {
  min-height: 120px;
  max-height: 300px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* Email validation feedback */
.get-in-touch__input--error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.05);
}

.get-in-touch__input--valid {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.05);
}

/* Privacy policy text */
.get-in-touch__privacy {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  margin: 16px 0;
  line-height: 1.5;
}

.get-in-touch__privacy .button--link {
  color: #38bdf8;
  font-size: 0.85rem;
}

.get-in-touch__privacy .button--link:hover {
  color: #7dd3fc;
}

.profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.profile-modal--visible {
  display: flex;
}

.profile-modal__container {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.profile-modal__header {
  text-align: center;
  margin-bottom: 32px;
}

.profile-modal__title {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.profile-modal__avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.profile-modal__avatar-display {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(56, 189, 248, 0.3);
  position: relative;
}

.profile-modal__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-modal__avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 2.5rem;
}

.profile-modal__avatar-upload {
  position: relative;
}

.profile-modal__avatar-input {
  display: none;
}

.profile-modal__avatar-button {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  color: #38bdf8;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-modal__avatar-button:hover {
  background: rgba(56, 189, 248, 0.3);
}

.profile-modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-modal__label {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-modal__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.2s;
}

.profile-modal__input:focus {
  outline: none;
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
}

.profile-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.profile-modal__actions .button {
  flex: 1;
}

.scene-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100; /* Below modals (typically 1000+), above canvas */
  pointer-events: auto; /* Captures all clicks */
  /* transition: opacity 0.2s ease; */
  /* opacity: 0.5; */
}

/* ====================================================================
   DRAWERS & PANELS
   ==================================================================== */

#quickSetupModal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: transparent;
  backdrop-filter: blur(16px);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.5);
  z-index: 110;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.quick-setup__content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.quick-setup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.quick-setup__title {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0;
}

.quick-setup__close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.quick-setup__close-btn:hover {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

.quick-setup__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.quick-setup__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.support-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s;
}

.support-tab.active {
  border-bottom-color: #38bdf8;
  color: #38bdf8;
}

.quick-setup__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.quick-setup__grid--hidden {
  display: none;
}

#imageUploadDrawerOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: opacity 0.3s;
}

#imageUploadModal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 330px;
  background: transparent;
  backdrop-filter: blur(16px);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.image-upload__content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.image-upload__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.image-upload__title {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0;
}

.image-upload__close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.image-upload__close-btn:hover {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

.image-upload__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.image-upload__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-upload__field-label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.image-upload__input {
  width: 100%;
  padding: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 14px;
}

.image-upload__textarea {
  width: 100%;
  padding: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 14px;
  resize: vertical;
}

.image-upload__progress {
  display: none;
  margin-bottom: 20px;
}

.image-upload__progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.image-upload__progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  transition: width 0.3s;
}

.image-upload__progress-text {
  margin: 8px 0 0 0;
  color: #10b981;
  font-size: 12px;
  text-align: center;
}

.image-upload__error {
  display: none;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  color: #ef4444;
  font-size: 14px;
}

.image-upload__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.console-feedback {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9em;
  z-index: 100;
}

.console {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 100%;
  background: #1a2336;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.console--visible {
  transform: translateX(0);
}

.console__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.console__title {
  color: #ffffff;
  font-size: 1.3em;
  font-weight: 700;
  margin: 0;
}

.console__content {
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.console__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.console__section {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
}

.console__close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.console__close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.support-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  height: 100%;
  background: #1a2336;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.support-panel--visible {
  transform: translateX(0);
}

/* ====================================================================
   NAVIGATION
   ==================================================================== */

.hamburger-menu {
  position: fixed;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5em;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 201;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.hamburger-menu__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger-menu--visible {
  display: flex;
}

.navigation-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: transparent;
  backdrop-filter: blur(16px);
  border-right: 2px solid rgba(56, 189, 248, 0.4);
  box-shadow: 8px 0 48px rgba(0, 0, 0, 0.5);
  z-index: 210;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.navigation-sidebar--visible {
  display: block;
  transform: translateX(0);
}

.navigation-sidebar__content {
  padding: 5px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.navigation-sidebar__close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.5em;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  z-index: 10;
}

.navigation-sidebar__close-btn:hover {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
}

.navigation-sidebar__header {
  margin-bottom: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  /* gap: 8px; */
}

.navigation-sidebar__business-name {
  color: #ffffff;
  font-size: 1em;
  font-weight: 500;
  margin: 0;
  padding: 6px 0;
  text-decoration: none;
  cursor: default;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.navigation-sidebar__business-name:hover {
  text-decoration: underline;
}

.navigation-sidebar__divider {
  width: 100%;
  height: 1px;
  background: rgba(56, 189, 248, 0.2);
  margin: 16px 0;
  flex-shrink: 0;
}

.navigation-sidebar__divider:first-child {
  display: none;
}

.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.account-menu-btn-sidebar {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.account-menu-btn-sidebar:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.account-menu-btn-sidebar__icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-menu-btn-sidebar__icon svg {
  width: 100%;
  height: 100%;
  stroke: #ffffff;
  stroke-width: 2;
}

.account-menu-btn-sidebar__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.account-menu-btn-sidebar__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-btn-sidebar__avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.account-dropdown-sidebar {
  position: absolute;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  background: #1e293b;
  opacity: 0.95;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  top: 50%;
  left: 20%;
  /* min-width: 200px; */
}

.account-dropdown-sidebar__item {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.account-dropdown-sidebar__item:hover {
  text-decoration: underline;
}

.account-dropdown-sidebar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #94a3b8;
}

.navigation-sidebar__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
}

.navigation-sidebar__gallery-list {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.navigation-sidebar__main-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.navigation-sidebar__link {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1em;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.navigation-sidebar__link:hover {
  text-decoration: underline;
}

.navigation-sidebar__spacer {
  flex: 1;
  min-height: 20px;
}

.navigation-sidebar__other-galleries {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.navigation-sidebar__other-gallery-link {
  display: block;
  color: #ffffff;
  font-size: 0.85em;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 2px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.navigation-sidebar__other-gallery-link:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
  border-bottom-color: #ffffff;
}

.navigation-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.navigation-sidebar__footer-link {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.75em;
  text-align: left;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
}

.navigation-sidebar__footer-link:hover {
  text-decoration: underline;
}

.navigation-sidebar__your-galleries {
  padding: 16px 0;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.navigation-sidebar__section-header h3 {
  color: #ffffff;
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.navigation-sidebar__gallery-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.navigation-sidebar__gallery-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.4);
}

.navigation-sidebar__gallery-card--selected {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.6);
}

.navigation-sidebar__gallery-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.navigation-sidebar__gallery-card-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9em;
}

.navigation-sidebar__gallery-card-status {
  font-size: 0.75em;
  font-weight: 600;
}

.navigation-sidebar__gallery-card-status--live {
  color: #10b981;
}

.navigation-sidebar__gallery-card-status--draft {
  color: #64748b;
}

.navigation-sidebar__gallery-card-slug {
  color: #94a3b8;
  font-size: 0.75em;
}

.navigation-sidebar__empty-state,
.navigation-sidebar__error-state {
  color: #64748b;
  font-size: 0.85em;
  margin: 12px 0;
}

.navigation-sidebar__error-state {
  color: #ef4444;
}

.navigation-sidebar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.navigation-sidebar__contact-us a,
.navigation-sidebar__contact-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #cbd5e1; /* slightly brighter than footer */
  font-size: 0.9em; /* larger than footer */
  font-weight: 600;
  padding: 10px 0; /* larger vertical rhythm */
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.navigation-sidebar__contact-us a:hover,
.navigation-sidebar__contact-link:hover {
  color: #e2e8f0;
  text-decoration: underline;
}

.navigation-sidebar__contact-us a:focus-visible,
.navigation-sidebar__contact-link:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.navigation-sidebar__cart-count {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75em;
  font-weight: 700;
  vertical-align: baseline;
}

/* ====================================================================
   FORMS & INPUTS
   ==================================================================== */

.form-group {
  position: relative;
  margin-top: 12px;
}

.form-group--column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.form-group--row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.form-label {
  display: block;
  color: #cbd5e1;
  font-size: 0.9em;
  margin-bottom: 4px;
}

.form-label--sm {
  color: #94a3b8;
  font-size: 0.75em;
  font-weight: 600;
  margin-bottom: 2px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #3b82f6;
}

.form-select {
  width: 100%;
  padding: 8px 10px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  color: #e5e7eb;
  cursor: pointer;
  margin-bottom: 18px;
}

input[type="range"] {
  width: 100%;
  margin-bottom: 18px;
}

input[type="color"] {
  cursor: pointer;
  border: 1px solid #38bdf8;
}

.form-input--with-icon {
  padding: 10px 38px 10px 10px;
}

/* ====================================================================
   BUTTONS
   ==================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  background: #64748b;
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  background: #38bdf8;
  border: none;
  color: #ffffff;
}

.button--primary:hover {
  background: #0ea5e9;
}

.button--primary:disabled {
  background: #64748b;
  cursor: not-allowed;
  opacity: 0.5;
}

.button--secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button--destructive {
  background: #ef4444;
  border: none;
  color: #ffffff;
}

.button--destructive:hover {
  background: #dc2626;
}

.button--link {
  background: transparent;
  border: none;
  padding: 0;
  color: #38bdf8;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 400;
}

.button--link:hover {
  color: #0ea5e9;
  background: transparent;
  transform: none;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn--secondary {
  background: #374151;
  color: #e5e7eb;
}

.btn--secondary:hover {
  background: #4b5563;
}

.btn--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn--danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn--full {
  width: 100%;
}

.btn--warning {
  background: #fbbf24;
  color: #222;
}

.btn--success {
  background: #10b981;
  color: #fff;
}

.button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ====================================================================
   CONTROL GROUPS & SETTINGS
   ==================================================================== */

.settings-panel {
  margin-top: 18px;
  text-align: left;
}

.settings-panel__title {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 12px;
}

.settings-panel__subtitle {
  text-align: center;
  color: #cbd5e1;
  font-size: 0.85em;
  margin-top: -12px;
  margin-bottom: 12px;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.control-group__controls {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.control-group--inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-group--color-settings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}

.control-group__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ====================================================================
   COLOR SWATCHES
   ==================================================================== */

#consoleBaseboardColor option,
#consoleFloorColor option {
  padding-left: 24px;
  background-repeat: no-repeat;
  background-position: 4px center;
  background-size: 12px 12px;
}

#consoleWallColor option[value="#374151"],
#consolePanelColor option[value="#374151"] {
  background-image: linear-gradient(#374151, #374151);
}

#consoleWallColor option[value="#1e293b"],
#consolePanelColor option[value="#1e293b"] {
  background-image: linear-gradient(#1e293b, #1e293b);
}

#consoleWallColor option[value="#4a5568"],
#consolePanelColor option[value="#4a5568"] {
  background-image: linear-gradient(#4a5568, #4a5568);
}

#consoleWallColor option[value="#2d3748"],
#consolePanelColor option[value="#2d3748"] {
  background-image: linear-gradient(#2d3748, #2d3748);
}

#consoleWallColor option[value="#8b7355"],
#consolePanelColor option[value="#8b7355"] {
  background-image: linear-gradient(#8b7355, #8b7355);
}

#consoleWallColor option[value="#6b5b4a"],
#consolePanelColor option[value="#6b5b4a"] {
  background-image: linear-gradient(#6b5b4a, #6b5b4a);
}

#consoleWallColor option[value="#5a4a3a"],
#consolePanelColor option[value="#5a4a3a"] {
  background-image: linear-gradient(#5a4a3a, #5a4a3a);
}

#consoleWallColor option[value="#4a4034"],
#consolePanelColor option[value="#4a4034"] {
  background-image: linear-gradient(#4a4034, #4a4034);
}

#consoleBaseboardColor option[value="#ffffff"] {
  background-image: linear-gradient(#ffffff, #ffffff);
}

#consoleBaseboardColor option[value="#f5f5f5"] {
  background-image: linear-gradient(#f5f5f5, #f5f5f5);
}

#consoleBaseboardColor option[value="#e5e5e5"] {
  background-image: linear-gradient(#e5e5e5, #e5e5e5);
}

#consoleBaseboardColor option[value="#4a5568"] {
  background-image: linear-gradient(#4a5568, #4a5568);
}

#consoleBaseboardColor option[value="#2d3748"] {
  background-image: linear-gradient(#2d3748, #2d3748);
}

#consoleBaseboardColor option[value="#1a1a1a"] {
  background-image: linear-gradient(#1a1a1a, #1a1a1a);
}

#consoleBaseboardColor option[value="#8b7355"] {
  background-image: linear-gradient(#8b7355, #8b7355);
}

#consoleBaseboardColor option[value="#6b5545"] {
  background-image: linear-gradient(#6b5545, #6b5545);
}

#consoleFloorColor option[value="#1f2f37"] {
  background-image: linear-gradient(#1f2f37, #1f2f37);
}

#consoleFloorColor option[value="#3b2f2f"] {
  background-image: linear-gradient(#3b2f2f, #3b2f2f);
}

#consoleFloorColor option[value="#2f3b2f"] {
  background-image: linear-gradient(#2f3b2f, #2f3b2f);
}

#consoleFloorColor option[value="#8b7355"] {
  background-image: linear-gradient(#8b7355, #8b7355);
}

#consoleFloorColor option[value="#6b5545"] {
  background-image: linear-gradient(#6b5545, #6b5545);
}

#consoleFloorColor option[value="#5a4a3a"] {
  background-image: linear-gradient(#5a4a3a, #5a4a3a);
}

#consoleFloorColor option[value="#4a5568"] {
  background-image: linear-gradient(#4a5568, #4a5568);
}

#consoleFloorColor option[value="#2d3748"] {
  background-image: linear-gradient(#2d3748, #2d3748);
}

/* ====================================================================
   UI ELEMENTS & PROMPTS
   ==================================================================== */

#blocker {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

#instructions {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  pointer-events: all;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  line-height: 1.5;
  z-index: 30;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.mobile-hidden {
  display: none;
}

#welcomePrompt {
  position: absolute;
  inset: auto;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 20;
}

#unlockHint {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  display: none;
}

#crosshair {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  pointer-events: none;
  z-index: 40;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

#crosshair.hidden {
  display: none;
}

.appearance-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.appearance-card:hover {
  border-color: #38bdf8;
  background: rgba(15, 23, 42, 0.95);
}

/* ====================================================================
   UTILITY CLASSES
   ==================================================================== */

.w-full {
  width: 100%;
}

.mb-18 {
  margin-bottom: 18px;
}

.text-value {
  font-size: 0.7em;
  color: #94a3b8;
  min-width: 26px;
  text-align: center;
}

.text-helper {
  font-size: 0.85em;
  color: #cbd5e1;
  margin-top: 4px;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.mt-18 {
  margin-top: 18px;
}

.mb-12 {
  margin-bottom: 12px;
}

.h-40 {
  height: 40px;
}

.text-white {
  color: #fff;
}

.cursor-grabbing {
  cursor: grabbing;
}

.cursor-none {
  cursor: none;
}

.cursor-auto {
  cursor: auto;
}

.display-flex {
  display: flex;
}

.opacity-0 {
  opacity: 0;
}

.opacity-1 {
  opacity: 1;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

.inline {
  display: inline;
}

.tab-active {
  border-bottom: 2px solid #38bdf8;
  color: #38bdf8;
}

.tab-inactive {
  border-bottom: 2px solid transparent;
  color: #64748b;
}

.error-message {
  padding: 12px;
  color: #ef4444;
  font-size: 0.85em;
}

.error-message-inline {
  color: #ef4444;
  margin-top: 8px;
}

.gallery-title-vg-name {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.gallery-title-main {
  font-size: 1.875rem;
  font-weight: bold;
}

.gallery-title-artist {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.message-success {
  color: #22c55e;
}

.message-error {
  color: #ef4444;
}

.save-button-pending {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: rgba(34, 197, 94, 0.4);
}

.renderer-dimmed {
  opacity: 0.2;
}

.feedback-toast {
  display: block;
  color: #ffffff;
}

.feedback-toast-success {
  background: #22c55e;
}

.feedback-toast-error {
  background: #ef4444;
}

.gallery-title-shadow {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

#createFirstGalleryBtn:hover {
  background: #0ea5e9;
  transform: scale(1.05);
}

/* ====================================================================
   MEDIA QUERIES
   ==================================================================== */

@media (min-width: 640px) {
  .gallery-title-vg-name {
    font-size: 1rem;
  }
}

/* DUPLICATE: @media (min-width: 640px) (original at line 2680, this was line 2691) */
@media (min-width: 640px) {
  .gallery-title-main {
    font-size: 2.25rem;
  }
}

/* DUPLICATE: @media (min-width: 640px) (original at line 2680, this was line 2702) */
@media (min-width: 640px) {
  .gallery-title-artist {
    font-size: 1rem;
  }
}

/* ====================================================================
   UNCATEGORIZED (needs manual review)
   ==================================================================== */

/* Line 822: .modal__content */
.modal__content {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
