/* Sensei TV — Cosmic Soft-Play Neumorphic Design System (from toys.ge) + 3D Earth Backdrop (from metafora-agency) */
:root {
  --surface-bg: #EEF2F6;
  --surface-card: #F4F7FA;
  --surface-glass: rgba(244, 247, 250, 0.84);
  --shadow-dark: #D1D9E6;
  --shadow-light: #FFFFFF;
  --primary: #0D1B2A;
  --secondary: #3A86FF;
  --secondary-container: #1470e8;
  --tertiary: #00F0FF;
  --tertiary-fixed: #7df4ff;
  --accent-sale: #FF006E;
  --badge-yellow: #FFBE0B;
  --text-muted: #6C7D93;
}

html {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
}

body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  background-color: var(--surface-bg);
  color: var(--primary);
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

h1, h2, h3, h4, h5, h6, .font-heading, .font-price {
  font-family: 'Outfit', 'Rubik', sans-serif;
}

/* =====================================================
   3D WEBGL EARTH GLOBE BACKDROP (from metafora-agency)
   ===================================================== */
#globe-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

#globe-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  pointer-events: none;
  will-change: transform;
}

#globe-bg-shadow {
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 240, 255, 0.14), rgba(58, 134, 255, 0.08) 55%, rgba(13, 27, 42, 0.04) 75%, transparent 100%);
  box-shadow: 24px 24px 60px rgba(209, 217, 230, 0.65), -18px -18px 46px rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

#global-globe {
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  opacity: 0.92;
}

.sat-overlay {
  position: absolute;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.2s ease;
}

#globe-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: rgba(13, 27, 42, 0.92);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.25);
  border: 1px solid rgba(0, 240, 255, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
  white-space: nowrap;
}

/* Main Content sits above the Earth backdrop */
.site-layer {
  position: relative;
  z-index: 10;
}

/* =====================================================
   TACTILE SOFT-NEUMORPHIC ELEVATION (from toys.ge)
   ===================================================== */
.tactile-extruded-sm {
  box-shadow: 4px 4px 10px #D1D9E6, -4px -4px 10px #FFFFFF;
}

.tactile-extruded {
  box-shadow: 6px 6px 14px #D1D9E6, -6px -6px 14px #FFFFFF;
}

.tactile-floating {
  box-shadow: 10px 10px 24px rgba(197, 208, 223, 0.92), -10px -10px 24px rgba(255, 255, 255, 0.95);
}

.tactile-inset-sm {
  box-shadow: inset 2px 2px 5px #D1D9E6, inset -2px -2px 5px #FFFFFF;
}

.tactile-inset {
  box-shadow: inset 3px 3px 6px #D1D9E6, inset -3px -3px 6px #FFFFFF;
}

.tactile-inset-deep {
  box-shadow: inset 4px 4px 8px #C5D0DF, inset -4px -4px 8px #FFFFFF;
}

/* Frosted Neumorphic Cards (let the 3D Earth glow gently behind) */
.neu-glass {
  background: rgba(244, 247, 250, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 8px 8px 20px rgba(209, 217, 230, 0.78), -8px -8px 20px rgba(255, 255, 255, 0.88);
}

.neu-glass-strong {
  background: rgba(244, 247, 250, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 10px 10px 26px rgba(197, 208, 223, 0.85), -10px -10px 26px rgba(255, 255, 255, 0.95);
}

.neu-card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.neu-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 12px 14px 28px rgba(197, 208, 223, 0.95), -10px -10px 24px rgba(255, 255, 255, 0.98);
  border-color: rgba(58, 134, 255, 0.35);
}

/* Cosmic Space Accents & Glows (from toys.ge) */
.space-cosmic-glow {
  box-shadow: 0 0 18px rgba(58, 134, 255, 0.42), inset 0 0 10px rgba(0, 240, 255, 0.35);
}

.space-cyan-glow {
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.5);
}

.space-pink-glow {
  box-shadow: 0 0 16px rgba(255, 0, 110, 0.38);
}

/* Shimmering & Breathing Cosmic Glow for Key CTA & Chat Buttons */
@keyframes shimmerSweep {
  0% { transform: translateX(-140%) skewX(-22deg); }
  45%, 100% { transform: translateX(260%) skewX(-22deg); }
}

@keyframes cosmicBreathe {
  0%, 100% {
    box-shadow: 0 0 16px rgba(58, 134, 255, 0.5), 0 0 28px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 26px rgba(58, 134, 255, 0.85), 0 0 44px rgba(0, 240, 255, 0.55), inset 0 0 14px rgba(0, 240, 255, 0.5);
  }
}

.btn-glow-shimmer {
  position: relative;
  overflow: hidden;
  animation: cosmicBreathe 2.6s ease-in-out infinite;
}

.btn-glow-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), rgba(0, 240, 255, 0.35), transparent);
  transform: translateX(-140%) skewX(-22deg);
  animation: shimmerSweep 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes chatPulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0.65), 0 0 22px rgba(0, 240, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(58, 134, 255, 0), 0 0 32px rgba(0, 240, 255, 0.65);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(58, 134, 255, 0), 0 0 22px rgba(0, 240, 255, 0.45);
  }
}

.chat-fab-glow {
  position: relative;
  overflow: hidden;
  animation: chatPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.chat-fab-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  transform: translateX(-140%) skewX(-22deg);
  animation: shimmerSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* Smooth Interactive Micro-animations */
.tap-effect {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.tap-effect:active {
  transform: scale(0.96);
}

@keyframes floatSmooth {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}
.animate-float {
  animation: floatSmooth 4.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.18); }
}
.animate-pulse-glow {
  animation: pulseGlow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Active Pill States */
.pill-active {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(13, 27, 42, 0.25), 0 0 12px rgba(58, 134, 255, 0.28) !important;
}

.pay-method-btn.active {
  border-color: var(--secondary);
  background: rgba(58, 134, 255, 0.1);
  box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.25), 4px 4px 10px #D1D9E6, -4px -4px 10px #FFFFFF;
}

/* FAQ Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  opacity: 0;
}
.faq-item.open .faq-content {
  max-height: 520px;
  opacity: 1;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--secondary);
}

/* Scrollbar */
::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #EEF2F6;
}
::-webkit-scrollbar-thumb {
  background: #c4cbd6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ea9ba;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Toast Notifications (from toys.ge) */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 270px;
  max-width: 390px;
  background: #ffffff;
  color: #0D1B2A;
  padding: 14px 18px;
  border-radius: 20px;
  box-shadow: 8px 8px 24px rgba(209, 217, 230, 0.9), -4px -4px 12px #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 5px solid #3A86FF;
  transform: translateX(-120%);
  opacity: 0;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.toast-success {
  border-left-color: #10B981;
}

.toast.toast-sale {
  border-left-color: #FF006E;
}

/* Remove duplicate native dropdown arrow when Tailwind forms is active */
select {
  appearance: none;
  -webkit-appearance: none;
}

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(13, 27, 42, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Responsive Globe Adjustments */
@media (max-width: 768px) {
  #globe-wrapper,
  #global-globe {
    width: 420px;
    height: 420px;
  }
  #toast-container {
    left: 14px;
    right: 14px;
    bottom: 84px;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }
}
