* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
.main {
  position: relative;
  width: 100%;
  height: 100vh;
}
.category-selector {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 8px 15px;
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 30px;
  z-index: 1000;
  border: 1px solid rgba(0, 255, 242, 0.2);
}
.category-selector button {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: rgba(0, 255, 242, 0.1);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}
.category-selector button:hover {
  background: rgba(0, 255, 242, 0.2);
}
.category-selector button.selected {
  background: #00fff2;
  color: #1a1a2e;
}
#video_container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}
.ar-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at top,
      rgba(0, 255, 242, 0.08),
      transparent 40%),
    linear-gradient(
      180deg,
      rgba(6, 10, 18, 0.96),
      rgba(10, 15, 28, 0.98));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ar-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ar-loading-card {
  width: min(92vw, 420px);
  padding: 32px 28px;
  border-radius: 24px;
  text-align: center;
  color: #f5fbff;
  background: rgba(14, 20, 34, 0.88);
  border: 1px solid rgba(0, 255, 242, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}
.ar-loading-logo {
  width: 82px;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}
.ar-loading-card h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ar-loading-card p {
  margin: 0;
  color: rgba(230, 240, 255, 0.75);
  font-size: 0.98rem;
}
.ar-loading-spinner {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #00fff2;
  animation: spin 0.85s linear infinite;
}
.ar-powered-by {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 120;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 17, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(245, 251, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}
#video_container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
  transition: all 0.3s ease;
}
#compareArFrame {
  display: none;
}
.compare-pane-selector {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 90;
}
#livePaneSelector {
  left: 0;
}
#comparePaneSelector {
  left: 50%;
}
.compare-pane-selector.is-active-view {
  box-shadow: inset 0 0 0 2px rgba(0, 255, 242, 0.85);
}
#portraitBackdropCanvas,
#processedCanvas,
#compareCanvas {
  position: absolute;
  width: 100%;
  height: 100%;
}
#portraitBackdropCanvas {
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 0;
}
#processedCanvas,
#compareCanvas {
  object-fit: cover;
  transition: all 0.3s ease;
  backface-visibility: hidden;
  perspective: 1000;
  image-rendering: auto;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  z-index: 1;
}
#compareCanvas {
  display: none;
}
.compare-active #arFrame {
  width: 50%;
}
.compare-active #compareArFrame {
  width: 50%;
  left: 50%;
}
#arFrame.is-active-view,
#compareArFrame.is-active-view {
  box-shadow: inset 0 0 0 2px rgba(0, 255, 242, 0.85);
}
.radio-container {
  position: fixed;
  left: 20px;
  top: 80px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 12px;
  color: #00fff2;
  z-index: 100;
  border: 1px solid rgba(0, 255, 242, 0.2);
}
.radio-container fieldset {
  border: none;
  padding: 0;
}
.radio-container legend {
  margin-bottom: 10px;
  color: #00fff2;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.radio-container div {
  margin: 8px 0;
}
.radio-container input[type=radio] {
  display: none;
}
.radio-container label {
  display: flex;
  align-items: center;
  color: white;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 0;
}
.radio-container label:before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #00fff2;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s ease;
}
.radio-container input[type=radio]:checked + label:before {
  background: #00fff2;
  box-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
}
.right-section {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 150px;
  height: calc(100vh - 100px);
  background: rgba(26, 26, 46, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(0, 255, 242, 0.2);
  z-index: 100;
}
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
}
.image-gallery img:hover {
  transform: scale(1.05);
  border-color: #00fff2;
  box-shadow: 0 0 10px rgba(0, 255, 242, 0.3);
}
.image-gallery img.selected {
  border-color: #00fff2;
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
  background: rgba(0, 255, 242, 0.1);
}
.controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 25px;
  border-radius: 30px;
  z-index: 100;
  border: 1px solid rgba(0, 255, 242, 0.2);
}
.control-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 255, 242, 0.1);
  color: #00fff2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.control-btn i {
  font-size: 18px;
}
#wishlistBtn i {
  color: #fff;
  transition: color 0.3s ease;
}
#wishlistBtn.is-wishlisted i {
  color: red;
}
#wishlistBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#wishlistBtn:disabled:hover {
  background: rgba(0, 255, 242, 0.1);
  color: #00fff2;
  transform: none;
}
.control-btn:hover {
  background: #00fff2;
  color: #1a1a2e;
  transform: scale(1.1);
}
.control-btn.active {
  background: #00fff2;
  color: #1a1a2e;
}
.control-btn.wishlist-active {
  background: #00fff2;
  color: #1a1a2e;
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.35);
}
#wishlistBtn.is-wishlisted {
  background: rgba(0, 255, 242, 0.1);
  color: #00fff2;
  box-shadow: none;
}
.compare-controls {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
}
.compare-controls .control-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 255, 242, 0.35);
  background: rgba(26, 26, 46, 0.92);
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.loading-content {
  text-align: center;
  color: #00fff2;
  padding: 30px;
  animation: glow 2s infinite alternate;
}
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 242, 0.2);
  border-top: 3px solid #00fff2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
}
@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(0, 255, 242, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(0, 255, 242, 0.8);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(0, 255, 242, 0.2);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-content h2 {
  color: #00fff2;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  background: none;
  border: none;
  color: #00fff2;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-modal:hover {
  color: #fff;
}
#galleryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}
.gallery-item {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-controls {
  opacity: 1;
}
.gallery-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(26, 26, 46, 0.9);
  color: #00fff2;
}
.gallery-btn:hover {
  transform: scale(1.1);
}
.download-btn {
  background: rgba(0, 255, 242, 0.2);
}
.download-btn:hover {
  background: rgba(0, 255, 242, 0.8);
  color: #1a1a2e;
}
.delete-btn {
  background: rgba(255, 59, 59, 0.2);
}
.delete-btn:hover {
  background: rgba(255, 59, 59, 0.8);
  color: #fff;
}
.image-timestamp {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  color: #00fff2;
  padding: 8px;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .image-timestamp {
  opacity: 1;
}
.no-images {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 40px;
  grid-column: 1 / -1;
}
.capture-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 255, 255, 0.88) 0%,
      rgba(0, 255, 242, 0.52) 32%,
      rgba(0, 255, 242, 0.14) 58%,
      rgba(0, 255, 242, 0) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2001;
  animation: flash 0.45s ease-out;
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}
.camera-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 3000;
}
.camera-popup .popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(0, 255, 242, 0.2);
  border-radius: 18px;
  padding: 30px;
  width: min(420px, calc(100vw - 32px));
  max-width: 420px;
  text-align: center;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}
.camera-popup i {
  font-size: 48px;
  color: #00fff2;
  margin-bottom: 20px;
}
.camera-popup h3 {
  color: #00fff2;
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.camera-popup p {
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.5;
}
.popup-close {
  background: rgba(0, 255, 242, 0.2);
  color: #fff;
  border: 1px solid rgba(0, 255, 242, 0.4);
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}
.popup-close:hover {
  background: #00fff2;
  color: #1a1a2e;
}
.close-feedback-content h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.25;
}
.close-feedback-content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}
.close-feedback-content {
  text-align: left !important;
}
.close-feedback-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(0, 255, 242, 0.1);
  border: 1px solid rgba(0, 255, 242, 0.22);
  color: #9ffaf4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.close-feedback-rating-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.close-feedback-rating-btn,
.close-feedback-skip-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fbff;
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.close-feedback-rating-btn {
  min-height: 54px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
}
.close-feedback-rating-btn:hover,
.close-feedback-rating-btn.is-selected,
.close-feedback-skip-btn:hover,
.close-feedback-leave-btn:hover {
  transform: translateY(-1px);
}
.close-feedback-rating-btn:hover,
.close-feedback-rating-btn.is-selected {
  border-color: rgba(0, 255, 242, 0.48);
  background: rgba(0, 255, 242, 0.12);
}
.close-feedback-note-label {
  display: block;
  margin-top: 22px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
}
.close-feedback-note {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 12, 22, 0.88);
  color: #f5fbff;
  resize: vertical;
  font: inherit;
  box-sizing: border-box;
}
.close-feedback-note:focus {
  outline: none;
  border-color: rgba(0, 255, 242, 0.48);
  box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.14);
}
.close-feedback-error {
  margin-top: 12px;
  color: #ffb5b5;
  font-size: 13px;
  line-height: 1.45;
}
.close-feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 22px;
}
.close-feedback-skip-btn {
  min-width: 138px;
  padding: 11px 18px;
  font-size: 15px;
}
.close-feedback-leave-btn {
  min-width: 148px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}
.close-feedback-leave-btn:disabled,
.close-feedback-rating-btn:disabled,
.close-feedback-skip-btn:disabled,
.popup-close:disabled,
.close-feedback-note:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.close-feedback-leave-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .close-feedback-content h3 {
    font-size: 1.4rem;
  }
  .close-feedback-rating-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .close-feedback-actions > * {
    width: 100%;
  }
}
@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.camera-popup .popup-content {
  animation: popupFadeIn 0.3s ease forwards;
}
.performance-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 25px;
  border-radius: 30px;
  z-index: 2000;
  display: none;
  border: 1px solid rgba(0, 255, 242, 0.2);
}
.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notification-close {
  background: none;
  border: none;
  color: #00fff2;
  cursor: pointer;
  padding: 5px;
}
.view-indicator {
  position: absolute;
  top: 15px;
  padding: 8px 15px;
  background: rgba(26, 26, 46, 0.95);
  color: #00fff2;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 242, 0.2);
  display: none;
  z-index: 100;
}
.view-indicator.is-active {
  background: rgba(0, 255, 242, 0.18);
  border-color: rgba(0, 255, 242, 0.55);
  box-shadow: 0 0 16px rgba(0, 255, 242, 0.16);
}
#mainViewIndicator {
  left: 15px;
}
#compareViewIndicator {
  right: 15px;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.5);
}
::-webkit-scrollbar-thumb {
  background: #00fff2;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 242, 0.8);
}
.right-section::-webkit-scrollbar {
  width: 4px;
}
.right-section::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.3);
}
.right-section::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 242, 0.3);
  border-radius: 2px;
}
.right-section::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 242, 0.5);
}
