@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Gochi+Hand&family=Caveat:wght@500;600;700&family=Grand+Hotel&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: auto !important;
  overscroll-behavior-y: none;
}

body {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Gochi Hand', 'Caveat', 'Courier Prime', cursive, monospace;
}

.font-insta {
  font-family: 'Grand Hotel', cursive, sans-serif !important;
}

/* Lenis Smooth Scroll Overrides */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* 60 FPS GPU Accelerated Keyframes */
@keyframes fadeInUpGPU {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale3d(0.98, 0.98, 1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes floatOrbGPU {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
}

@keyframes pulseGlowGPU {
  0%, 100% {
    opacity: 0.35;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
  50% {
    opacity: 0.65;
    transform: translate3d(0, 0, 0) scale3d(1.04, 1.04, 1);
  }
}

/* 60 FPS GPU Animation Classes */
.animate-fade-in-up {
  will-change: transform, opacity;
  animation: fadeInUpGPU 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float-orb {
  will-change: transform;
  animation: floatOrbGPU 7s ease-in-out infinite;
}

.animate-pulse-glow {
  will-change: transform, opacity;
  animation: pulseGlowGPU 6s ease-in-out infinite;
}

/* 60-120 FPS High-Performance Hardware-Accelerated Layout */
section, header, footer, main, .glass-card, .hover-lift {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Glassmorphism Lux Card */
.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Hover Lift */
.hover-lift {
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.08), 0 0 20px rgba(244, 63, 94, 0.1);
}

/* Button Click Feedback */
button, a {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, opacity 0.15s ease;
  touch-action: manipulation;
}

button:active, a:active {
  transform: scale3d(0.97, 0.97, 1) !important;
}

/* Hide Scrollbar */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Squircle Corner Shape */
@supports (corner-shape: squircle) {
  .rounded-3xl {
    corner-shape: squircle;
  }
}

/* =========================================================
   APPLE LIQUID GLASS FLOATING PILL DOCK (MOBILE NAV BAR)
   ========================================================= */
.apple-liquid-glass-dock,
.glass-pill-dock,
.liquid-glass-mobile-dock {
  background: #ffffff !important;
  opacity: 1 !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  outline: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 
    0 16px 36px -6px rgba(15, 23, 42, 0.22),
    0 4px 12px -2px rgba(15, 23, 42, 0.08),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 1) !important;
  border-radius: 9999px !important;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-liquid-glass-dock::before,
.glass-pill-dock::before,
.liquid-glass-mobile-dock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  z-index: 1;
}

/* Sliding Liquid Glass Glider Indicator for Mobile Pill Dock */
.apple-liquid-glass-dock .mobile-dock-glider,
.glass-pill-dock .mobile-dock-glider {
  position: absolute;
  top: 0.35rem;
  left: 0;
  border-radius: 9999px;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 
    0 4px 14px -1px rgba(15, 23, 42, 0.22),
    0 2px 6px -1px rgba(15, 23, 42, 0.10),
    0 0 0 1px rgba(15, 23, 42, 0.06),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 1) !important;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease !important;
  will-change: transform, width;
  opacity: 0;
}

.apple-liquid-glass-dock-dark .mobile-dock-glider,
.glass-pill-dock-dark .mobile-dock-glider {
  position: absolute;
  top: 0.35rem;
  left: 0;
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.28) !important;
  backdrop-filter: blur(20px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(200%) !important;
  border: 1px solid rgba(6, 182, 212, 0.65) !important;
  box-shadow: 
    0 0 18px rgba(6, 182, 212, 0.5),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.3) !important;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease !important;
  will-change: transform, width;
  opacity: 0;
}

.apple-liquid-glass-dock a,
.glass-pill-dock a {
  position: relative;
  z-index: 2;
  border-radius: 9999px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.apple-liquid-glass-dock a:active,
.glass-pill-dock a:active {
  transform: scale(0.92) !important;
}

.apple-liquid-glass-dock a.active-pill {
  color: #E11D48 !important; /* Rose-600 */
}
.apple-liquid-glass-dock a.active-pill i,
.apple-liquid-glass-dock a.active-pill span {
  color: #E11D48 !important;
  font-weight: 800 !important;
}

.apple-liquid-glass-dock-dark,
.glass-pill-dock-dark {
  background: #090d16 !important;
  opacity: 1 !important;
  border: 1.5px solid rgba(6, 182, 212, 0.45) !important;
  outline: 1px solid rgba(0, 0, 0, 0.7) !important;
  box-shadow: 
    0 16px 36px -6px rgba(0, 0, 0, 0.85),
    0 0 20px 0 rgba(6, 182, 212, 0.25),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.15) !important;
  border-radius: 9999px !important;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-liquid-glass-dock-dark::before,
.glass-pill-dock-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  z-index: 1;
}

.apple-liquid-glass-dock-dark a {
  position: relative;
  z-index: 2;
  border-radius: 9999px;
  transition: color 0.2s ease, transform 0.15s ease;
}

.apple-liquid-glass-dock-dark a:active {
  transform: scale(0.92) !important;
}

.apple-liquid-glass-dock-dark a.active-pill {
  color: #22D3EE !important; /* Cyan-400 */
}
.apple-liquid-glass-dock-dark a.active-pill i,
.apple-liquid-glass-dock-dark a.active-pill span {
  color: #22D3EE !important;
  font-weight: 800 !important;
}

/* =========================================================
   TOP NAVBAR SCROLLED LIQUID GLASS EFFECT
   ========================================================= */
header {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: clip;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              backdrop-filter 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Scrolled state: True Apple Liquid Glass */
header.navbar-scrolled,
header.scrolled {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(28px) saturate(190%) contrast(102%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(102%) !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 
    0 14px 36px -10px rgba(15, 23, 42, 0.12),
    0 2px 8px -2px rgba(15, 23, 42, 0.04),
    inset 0 -1px 0 0 rgba(15, 23, 42, 0.04),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 1) !important;
}

header.navbar-scrolled-dark,
header.scrolled-dark {
  background: rgba(8, 12, 20, 0.82) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 
    0 16px 40px -10px rgba(0, 0, 0, 0.75),
    0 0 24px rgba(6, 182, 212, 0.18),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.15) !important;
}

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@700;800&display=swap');

/* 3D Animated Hero Title & Shimmer */
@keyframes heroTitle3DFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
    background-position: 0% 50%;
    filter: drop-shadow(0 10px 22px rgba(109, 40, 217, 0.3)) drop-shadow(0 2px 0px rgba(15, 23, 42, 0.4));
  }
  50% {
    transform: translate3d(0, -6px, 12px) rotateX(5deg) rotateY(-3deg) scale3d(1.025, 1.025, 1);
    background-position: 100% 50%;
    filter: drop-shadow(0 22px 36px rgba(244, 63, 94, 0.4)) drop-shadow(0 4px 0px rgba(99, 102, 241, 0.5));
  }
}

.hero-title-3d {
  font-family: 'Gochi Hand', 'Caveat', 'Courier Prime', cursive, monospace !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #6366f1 25%, #ec4899 50%, #f43f5e 75%, #f59e0b 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTitle3DFloat 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, background-position;
  display: inline-block;
}

.by-sinancial-badge {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  background: linear-gradient(135deg, #f43f5e, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.14em;
  filter: drop-shadow(0 2px 8px rgba(244, 63, 94, 0.3));
}

/* Typewriter Cursor Blinking Keyframes */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.animate-blink {
  animation: cursorBlink 0.7s step-end infinite;
}

/* Community Splash Screen Overlay */
#splash-screen.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(1.02);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease-out;
}

/* =========================================================
   APPLE VISIONOS / LIQUID GLASS DESIGN SYSTEM (60-120 FPS)
   ========================================================= */

/* Primary Liquid Glass */
.liquid-glass {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(20px) saturate(180%) contrast(102%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) contrast(102%) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 
    0 16px 36px -10px rgba(0, 0, 0, 0.08),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.4) !important;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle Specular Sheen for Liquid Glass */
.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.01) 100%);
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  z-index: 1;
}

/* Dark Mode / Midnight Liquid Glass */
.liquid-glass-dark {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.45),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25) !important;
}

/* Liquid Glass Interactive / Hover Sheen */
.liquid-glass-hover {
  will-change: transform, box-shadow;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.liquid-glass-hover:hover {
  transform: translate3d(0, -4px, 0);
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 
    0 24px 48px -12px rgba(109, 40, 217, 0.16),
    0 0 24px 0 rgba(244, 63, 94, 0.12),
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

/* Desktop Floating Side Quick Dock (Liquid Glass on the side) */
.liquid-glass-side-dock {
  position: fixed;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  z-index: 45;
  background: rgba(255, 255, 255, 0.70) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 9999px;
  padding: 0.5rem 0.35rem;
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1.5px 1.5px 0 rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-side-dock::-webkit-scrollbar {
  display: none;
}

.liquid-glass-side-dock:hover {
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 
    0 28px 70px -12px rgba(109, 40, 217, 0.25),
    0 0 20px 2px rgba(244, 63, 94, 0.15),
    inset 0 2px 2px 0 rgba(255, 255, 255, 1);
}

/* Sliding Liquid Glass Glider Indicator */
.liquid-glass-side-dock .dock-glider {
  position: absolute;
  left: 0.35rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 
    0 8px 24px -2px rgba(109, 40, 217, 0.30),
    0 0 18px 2px rgba(244, 63, 94, 0.20),
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 1);
  border: 1.5px solid rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  will-change: transform;
  opacity: 0;
}

.liquid-glass-side-dock a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  z-index: 2;
  transition: color 0.2s ease;
}

.liquid-glass-side-dock a i,
.liquid-glass-side-dock a span {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-side-dock a.active {
  color: #6d28d9 !important;
}

.liquid-glass-side-dock a:hover i,
.liquid-glass-side-dock a:hover span:first-child {
  transform: scale(1.22);
}

/* Tooltip for Side Dock */
.liquid-glass-side-dock a .dock-tooltip {
  position: absolute;
  right: 3.25rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.liquid-glass-side-dock a:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Liquid Glass Pill / Chips */
.liquid-glass-pill {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 6px 16px -4px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-glass-pill:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 10px 24px -6px rgba(0, 0, 0, 0.12),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 1);
}

/* Liquid Glass Card Container */
.liquid-glass-card {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(24px) saturate(190%) contrast(102%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) contrast(102%) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 
    0 20px 48px -12px rgba(0, 0, 0, 0.07),
    inset 0 2px 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= MOBILE LAYOUT OPTIMIZATION & TOUCH FLUIDITY ================= */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  
  /* Prevent side dock from ever showing on smaller screens */
  .liquid-glass-side-dock {
    display: none !important;
  }
  
  /* Ensure tap buttons feel native & responsive */
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Smooth horizontal scroll for pills / tabs */
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .overflow-x-auto::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0 !important;
  }
}

/* Instagram-Style Sleek Modern Scrollbars (Eliminates clunky Windows default scrollbars) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.6);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

/* ====================================================================
   AESTHETIC 3D GLASSMORPHISM & DEPTH SUITE
   The Teen Files by Sinancial
   ==================================================================== */

/* Clean, Gentle Instagram-Style Popup Elevation for Post Cards */
.card-3d {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  transform: translateY(0);
}
.card-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(147, 51, 234, 0.05);
}

/* Glassmorphism 3D Surfaces */
.glass-3d {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.dark-glass-3d {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

/* Aesthetic 3D Neon Ambient Glows */
.neon-glow-purple {
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), 0 0 50px rgba(168, 85, 247, 0.15);
}
.neon-glow-pink {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.35), 0 0 50px rgba(244, 63, 94, 0.15);
}
.neon-glow-cyan {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4), 0 0 50px rgba(6, 182, 212, 0.2);
}

/* 3D Button Bounce & Shine */
.btn-3d {
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  transform: perspective(600px) translate3d(0, 0, 0);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
}
.btn-3d:hover {
  transform: perspective(600px) translate3d(0, -2px, 4px);
  box-shadow: 0 8px 24px 0 rgba(147, 51, 234, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}
.btn-3d:active {
  transform: perspective(600px) translate3d(0, 1px, -2px);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
}

/* Animated Story Gradient Ring */
.story-ring-animated {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3D Floating Mesh */
@keyframes float3d {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
.float-3d {
  animation: float3d 5s ease-in-out infinite;
}

/* 3D Shimmer Effect */
.shimmer-3d {
  position: relative;
  overflow: hidden;
}
.shimmer-3d::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg);
  animation: shimmerMove 6s infinite;
  pointer-events: none;
}
@keyframes shimmerMove {
  0% { transform: translateX(-100%) rotate(30deg); }
  20%, 100% { transform: translateX(100%) rotate(30deg); }
}

/* De-colliding & safe typography rules */
.decollided-container {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}

/* ================= COMPREHENSIVE 3D ANIMATIONS & ELEMENTS ================= */

/* 1. Subtle Interactive Card Popup */
.interactive-tilt-3d {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 20px 40px -15px rgba(147, 51, 234, 0.06);
}
.interactive-tilt-3d:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.1), 0 20px 40px -15px rgba(147, 51, 234, 0.12);
}

/* 2. Tactile 3D Push Button with Real Depth */
.btn-3d-tactile {
  position: relative;
  transform: perspective(600px) translateZ(0);
  box-shadow: 0 4px 0 #7e22ce, 0 8px 20px rgba(147, 51, 234, 0.25);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-3d-tactile:hover {
  transform: perspective(600px) translateY(-2px) translateZ(6px);
  box-shadow: 0 6px 0 #7e22ce, 0 12px 25px rgba(147, 51, 234, 0.35);
}
.btn-3d-tactile:active {
  transform: perspective(600px) translateY(3px) translateZ(-2px);
  box-shadow: 0 1px 0 #7e22ce, 0 4px 10px rgba(147, 51, 234, 0.2);
}

.btn-3d-rose {
  box-shadow: 0 4px 0 #be123c, 0 8px 20px rgba(244, 63, 94, 0.25);
}
.btn-3d-rose:hover {
  box-shadow: 0 6px 0 #be123c, 0 12px 25px rgba(244, 63, 94, 0.35);
}
.btn-3d-rose:active {
  box-shadow: 0 1px 0 #be123c, 0 4px 10px rgba(244, 63, 94, 0.2);
}

/* 3. Authentic 3D Vinyl Turntable System */
.turntable-deck-3d {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #1e1b4b 0%, #0f172a 100%);
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  perspective: 800px;
}

.vinyl-grooves-3d {
  background: repeating-radial-gradient(
    circle at 50% 50%,
    #09090b 0px,
    #18181b 2px,
    #09090b 4px,
    #27272a 5px
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.12);
  transform: rotateX(15deg);
  transition: transform 0.4s ease;
}

.turntable-playing .vinyl-grooves-3d {
  animation: spinTurntableDisc 2.8s linear infinite;
}

@keyframes spinTurntableDisc {
  0% { transform: rotateX(15deg) rotate(0deg); }
  100% { transform: rotateX(15deg) rotate(360deg); }
}

/* Turntable Tonearm Stylus Needle */
.turntable-tonearm {
  position: absolute;
  top: 18px;
  right: 28px;
  width: 70px;
  height: 120px;
  transform-origin: 55px 15px;
  transform: rotate(-12deg);
  transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 25;
}

.turntable-playing .turntable-tonearm {
  transform: rotate(24deg);
}

.tonearm-pivot {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #64748b);
  border: 2px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tonearm-stick {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 4px;
  height: 95px;
  background: linear-gradient(to right, #e2e8f0, #94a3b8);
  border-radius: 2px;
  transform-origin: top center;
  transform: rotate(-6deg);
  box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.35);
}

.tonearm-head {
  position: absolute;
  bottom: 0;
  left: -7px;
  width: 18px;
  height: 12px;
  background: #f43f5e;
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

/* 4. 3D Floating Particle Elements */
@keyframes float3DElement {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate3d(4px, -14px, 20px) rotate(4deg) scale(1.05);
  }
  66% {
    transform: translate3d(-6px, -6px, 10px) rotate(-3deg) scale(0.98);
  }
}

.floating-3d-node {
  animation: float3DElement 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

/* 5. Authentic Instagram Double-Tap Heart Burst Animation */
@keyframes instaHeartBurst {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  15% {
    opacity: 1;
    transform: scale(1.22);
  }
  30% {
    transform: scale(0.96);
  }
  45% {
    transform: scale(1.04);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

.animate-heart-burst-3d {
  animation: instaHeartBurst 0.72s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
  will-change: transform, opacity;
  pointer-events: none;
}

/* 6. Authentic Instagram Gradient Story Ring */
.story-ring-3d {
  position: relative;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2.5px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(220, 39, 67, 0.25);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  will-change: transform;
}
.story-ring-3d:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.4);
}
.story-ring-3d:active {
  transform: scale(0.96);
}

/* 7. Glitch-Free Subtle Post Card Hover */
.insta-post-card-subtle {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  will-change: transform;
  transform: translateZ(0);
}
.insta-post-card-subtle:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}
body.dark-mode .insta-post-card-subtle:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
}

/* 8. Invisible Glitch-Free Scrollbars for Stories and Filters */
.scrollbar-thin::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.scrollbar-thin,
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

