body {
  background-color: #000000;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
}

.top-bar {
  padding: 0.5rem 0.25rem;
}

.site-logo img {
  filter: drop-shadow(0 4px 10px rgba(139, 92, 246, 0.35));
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  box-shadow: inset 0 0 10px rgba(139, 92, 246, 0.15), 0 6px 20px rgba(0, 0, 0, 0.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

/* High-tech animated background */
.liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #000000 0%, #0a0014 50%, #000000 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: float 25s infinite ease-in-out;
}

.orb-1 {
  top: -15%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #8b5cf6 0%, #6d28d9 50%, transparent 70%);
  animation-delay: 0s;
}

.orb-2 {
  bottom: -20%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, #a855f7 0%, #7c3aed 50%, transparent 70%);
  animation-delay: -8s;
}

.orb-3 {
  top: 50%;
  left: 50%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #9333ea 0%, #6d28d9 50%, transparent 70%);
  animation-delay: -15s;
  opacity: 0.2;
}

/* Grid overlay for high-tech feel */
.liquid-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(40px, -60px) rotate(15deg) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) rotate(-10deg) scale(0.9);
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

.glass-card {
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.1), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  transition: 0.5s;
}

.glass-input {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  outline: none !important;
}

/* Override Tailwind forms plugin white background */
input[type="text"],
input:where(:not([type])),
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="week"],
textarea,
select {
  background-color: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  outline: none !important;
  color: white !important;
}

/* Remove number input spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.glass-input:focus {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(139, 92, 246, 0.8) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3) !important;
  outline: none !important;
  ring: 0 !important;
}

/* Override Tailwind focus styles */
input:focus,
textarea:focus,
select:focus {
  --tw-ring-color: rgba(139, 92, 246, 0.5) !important;
  --tw-ring-offset-color: transparent !important;
  border-color: rgba(139, 92, 246, 0.8) !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3) !important;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-glossy {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(109, 40, 217, 1));
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 20px rgba(139, 92, 246, 0.5);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glossy:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 30px rgba(139, 92, 246, 0.7);
  filter: brightness(1.15);
}

.btn-glossy::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.3s;
}

.btn-glossy:active::after {
  opacity: 1;
  transform: scale(1);
  transition: 0s;
}

.btn-secondary-glossy {
  background: rgba(10, 10, 20, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(4px);
  color: white;
  transition: all 0.3s;
}

.btn-secondary-glossy:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

.selection-card {
  background: rgba(10, 10, 20, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.2s;
}

.selection-card:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
}

.selection-card.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #a7f3d0;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.2rem;
  width: fit-content;
}

.terms-row {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.terms-row input[type="checkbox"] {
  accent-color: #8b5cf6;
}

.terms-link {
  color: #c4b5fd;
  text-decoration: underline;
}

.footer-bar {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.25rem 0 0.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.12em;
}

/* Mobile-responsive footer centering */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

.verified-badge-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verified-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-radius: 999px;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.5s ease-out,
              padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1rem;
  opacity: 0;
}

.faq-content.active {
  max-height: 500px;
  transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.6s ease-in,
              padding 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 1rem 1rem 1rem;
  opacity: 1;
}

.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.package-option {
  background: rgba(10, 10, 20, 0.4);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.2s;
  cursor: pointer;
}

.package-option:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(2px);
}

.package-option.selected {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#ageModal {
  z-index: 1100;
}

.modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  justify-content: center;
  max-width: 100%;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  transition: transform 0.3s;
  max-width: 400px;
  justify-self: center;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* Transparent overlay to prevent direct image access */
.image-protection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
  background: transparent;
}

.gallery-click-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: white;
  background: rgba(10, 10, 20, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 999px;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.gallery-item:not(.blurred) .gallery-click-label {
  opacity: 0;
  visibility: hidden;
}

.gallery-modal-shell {
  max-height: 90vh;
}

.gallery-modal-card {
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-modal-header {
  position: sticky;
  top: 0;
  z-index: 5;
  /* background: rgba(10, 10, 20, 0.85); */
  padding-bottom: 0.75rem;
  flex-shrink: 0;
}

.gallery-modal-card .gallery-grid {
  max-height: calc(90vh - 210px);
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 300px;
}

.gallery-modal-card > div:last-child {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
  }
  
  .gallery-item {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
    padding: 1rem 1rem 1.25rem;
  }

  .gallery-item {
    border-radius: 0.75rem;
    aspect-ratio: 3 / 2;
    flex: 0 0 calc(100% - 2rem);
    max-width: 450px;
    width: 100%;
  }
  
  /* When multiple items exist, enable horizontal scroll */
  .gallery-grid:has(.gallery-item:nth-child(2)) {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  
  .gallery-grid:has(.gallery-item:nth-child(2)) .gallery-item {
    flex: 0 0 72%;
    max-width: 72%;
    scroll-snap-align: start;
  }

  .gallery-modal-shell {
    width: 100% !important;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
  }

  .gallery-modal-card {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 1rem;
  }

  .gallery-modal-header {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
  }

  .gallery-modal-card .gallery-grid {
    max-height: calc(100vh - 140px);
    padding: 0.75rem 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 0.75rem;
    padding: 0.75rem 0.75rem 1rem;
  }

  .gallery-item {
    aspect-ratio: 16 / 9;
    flex-basis: 85%;
    max-width: 85%;
  }

  .gallery-modal-header h2 {
    font-size: 1.25rem;
  }
}

.gallery-item.blurred img {
  filter: blur(5px);
  transition: filter 0.5s ease;
}

.gallery-item:not(.blurred) img {
  filter: none;
  transition: filter 0.5s ease;
}

.gallery-item.blurred .watermark-text {
  font-size: 3rem;
  opacity: 0.8;
}

/* Hide watermarks when blurred */
.gallery-item.blurred .watermark-pattern,
.gallery-item.blurred .diagonal-watermark {
  opacity: 0;
  visibility: hidden;
}

/* Show watermarks when unblurred */
.gallery-item:not(.blurred) .watermark-pattern,
.gallery-item:not(.blurred) .diagonal-watermark {
  opacity: 1;
  visibility: visible;
}

/* Watermark Overlay */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 100px,
    rgba(139, 92, 246, 0.15) 100px,
    rgba(139, 92, 246, 0.15) 200px
  );
  pointer-events: none;
  z-index: 2;
}

.watermark-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(139, 92, 246, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.watermark-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(139, 92, 246, 0.1) 35px,
      rgba(139, 92, 246, 0.1) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(139, 92, 246, 0.1) 35px,
      rgba(139, 92, 246, 0.1) 70px
    );
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diagonal-watermark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  transform: rotate(-20deg);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.diagonal-watermark span {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(139, 92, 246, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  white-space: nowrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
