@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Serif+Display&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Space+Grotesk:wght@300;400;500;600;700&family=Syne:wght@700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');
@import "tailwindcss";

.vids-font {
  font-family: "Space Grotesk", "Outfit", ui-sans-serif, system-ui, sans-serif !important;
}

.vids-brand {
  font-family: "Syne", sans-serif !important;
}

.vids-serif {
  font-family: "Playfair Display", "DM Serif Display", serif !important;
}

html, body {
  overscroll-behavior: none;
  @apply font-sans;
}

@layer utilities {
  .post-item {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
  }
  
  /* Hide scrollbar for Chrome, Safari, Opera and mobile browsers */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

@theme {
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "DM Serif Display", serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, monospace;

  --animate-glow-pulse: glow-pulse 2s infinite alternate;
  --animate-gold-glow-pulse: gold-glow-pulse 2.5s ease-in-out infinite alternate;
  --animate-flame-flicker: flame-flicker 0.5s infinite alternate;
  --animate-neon-pulse: neon-pulse 1.5s infinite alternate;
  --animate-glitch-anim: glitch-anim 0.2s infinite;
  --animate-galaxy-spin: galaxy-spin 4s linear infinite;
  --animate-marquee: marquee 12s linear infinite;

  @keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-33.33%, 0, 0); }
  }

  --animate-pulse-subtle: pulse-subtle 2s ease-in-out infinite;

  @keyframes pulse-subtle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.005); }
  }
  @keyframes glow-pulse {
    0% { box-shadow: 0 0 5px #4ade80, 0 0 10px #4ade80; }
    100% { box-shadow: 0 0 20px #4ade80, 0 0 30px #4ade80; }
  }
  @keyframes gold-glow-pulse {
    0% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.45), inset 0 0 6px rgba(251, 191, 36, 0.45); border-color: #fbbf24; }
    100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.95), inset 0 0 15px rgba(217, 119, 6, 0.6); border-color: #d97706; }
  }
  @keyframes flame-flicker {
    0% { box-shadow: 0 0 10px #f97316, 0 -5px 15px #f97316; border-color: #f97316; }
    50% { box-shadow: 0 0 15px #ef4444, 0 -10px 20px #ef4444; border-color: #ef4444; }
    100% { box-shadow: 0 0 5px #eab308, 0 -2px 10px #eab308; border-color: #eab308; }
  }
  @keyframes neon-pulse {
    0% { box-shadow: 0 0 5px #22d3ee, 0 0 10px #22d3ee, 0 0 20px #22d3ee; }
    100% { box-shadow: 0 0 10px #22d3ee, 0 0 20px #22d3ee, 0 0 40px #22d3ee; }
  }
  @keyframes glitch-anim {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
  }
  @keyframes galaxy-spin {
    0% { transform: rotate(0deg); box-shadow: 0 0 10px #a855f7, 0 0 20px #ec4899; }
    50% { box-shadow: 0 0 20px #3b82f6, 0 0 40px #8b5cf6; }
    100% { transform: rotate(360deg); box-shadow: 0 0 10px #a855f7, 0 0 20px #ec4899; }
  }
  @keyframes music-bar {
    0%, 100% { height: 4px; }
    50% { height: 12px; }
  }
  @keyframes rainbow-glass {
    0% { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateX(200%) skewX(-15deg); opacity: 0; }
  }
  @keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
  }
  @keyframes fire-flicker-hd {
    0% { transform: scale(1) translateY(0) rotate(0deg); opacity: 0.8; }
    25% { transform: scale(1.05) translateY(-2px) rotate(1deg); opacity: 1; }
    50% { transform: scale(0.95) translateY(1px) rotate(-1deg); opacity: 0.9; }
    75% { transform: scale(1.02) translateY(-1px) rotate(0.5deg); opacity: 0.85; }
    100% { transform: scale(1) translateY(0) rotate(0deg); opacity: 0.8; }
  }
  @keyframes amoled-rainbow {
    0% { border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
    16% { border-color: #ffff00; box-shadow: 0 0 15px rgba(255, 255, 0, 0.4); }
    33% { border-color: #00ff00; box-shadow: 0 0 15px rgba(0, 255, 0, 0.4); }
    50% { border-color: #00ffff; box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); }
    66% { border-color: #0000ff; box-shadow: 0 0 15px rgba(0, 0, 255, 0.4); }
    83% { border-color: #ff00ff; box-shadow: 0 0 15px rgba(255, 0, 255, 0.4); }
    100% { border-color: #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
  }
  @keyframes subtle-rainbow {
    0% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.2); }
    16% { box-shadow: 0 0 8px rgba(255, 255, 0, 0.2); }
    33% { box-shadow: 0 0 8px rgba(0, 255, 0, 0.2); }
    50% { box-shadow: 0 0 8px rgba(0, 255, 255, 0.2); }
    66% { box-shadow: 0 0 8px rgba(0, 0, 255, 0.2); }
    83% { box-shadow: 0 0 8px rgba(255, 0, 255, 0.2); }
    100% { box-shadow: 0 0 8px rgba(255, 0, 0, 0.2); }
  }
  @keyframes rainbow-fade-in-out {
    0% { border-color: transparent; box-shadow: 0 0 0px transparent; }
    20% { border-color: #ff0000; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }
    40% { border-color: #00ff00; box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
    60% { border-color: #0000ff; box-shadow: 0 0 10px rgba(0, 0, 255, 0.3); }
    100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0px transparent; }
  }

  @keyframes enter {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.animate-enter {
  animation: enter 0.3s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.4s ease-out forwards;
}

/* Pro Styles */
.pro-gradient-sunset {
  background: linear-gradient(to right, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pro-gradient-ocean {
  background: linear-gradient(to right, #60a5fa, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pro-gradient-magma {
  background: linear-gradient(to right, #dc2626, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pro-gradient-emerald {
  background: linear-gradient(to right, #34d399, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pro-border-rainbow {
  animation: amoled-rainbow 4s linear infinite;
  border-width: 2px !important;
}
.pro-border-glitch {
  animation: glitch-anim 0.2s infinite;
  border-width: 2px !important;
  border-color: #6366f1 !important;
}
.pro-border-neon {
  animation: neon-pulse 1.5s infinite alternate;
  border-width: 2px !important;
  border-color: #22d3ee !important;
}
.pro-border-gold {
   border-width: 2px !important;
   border-color: #f59e0b !important;
   box-shadow: 0 0 10px #f59e0b !important;
}

.pro-bg-aurora {
  background: linear-gradient(-45deg, rgba(238, 119, 82, 0.1), rgba(231, 60, 126, 0.1), rgba(35, 166, 213, 0.1), rgba(35, 213, 171, 0.1));
  background-size: 400% 400%;
  animation: aurora-bg 15s ease infinite;
}

@keyframes aurora-bg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.amoled-rainbow-border {
  animation: amoled-rainbow 4s linear infinite;
}

.subtle-rainbow-glow {
  animation: subtle-rainbow 8s linear infinite;
}

.rainbow-fade-border {
  animation: rainbow-fade-in-out 3s ease-out forwards;
}

.spin-reverse {
  animation: spin-reverse 4s linear infinite;
}
.spin-slow {
  animation: spin 8s linear infinite;
}
.spin-fast {
  animation: spin 1s linear infinite;
}

/* 3D Flip Effects */
.perspective-1000 {
  perspective: 1000px;
}
.transform-style-preserve-3d {
  transform-style: preserve-3d;
}
.backface-hidden {
  backface-visibility: hidden;
}
.rotate-x-180 {
  transform: rotateX(180deg);
}
.group-hover\:rotate-x-180:hover {
  transform: rotateX(180deg);
}
.group:hover .group-hover\:rotate-x-180 {
  transform: rotateX(180deg);
}

.hd-spin-3d {
  animation: hd-spin-3d 6s linear infinite;
}

@keyframes hd-spin-3d {
  0% { transform: perspective(800px) rotateY(0deg) rotateX(0deg); }
  50% { transform: perspective(800px) rotateY(180deg) rotateX(20deg); }
  100% { transform: perspective(800px) rotateY(360deg) rotateX(0deg); }
}

.hd-beam {
  position: relative;
  overflow: hidden !important;
}
.hd-beam::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,0.8) 10%, transparent 20%);
  animation: spin 3s linear infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hd-vhs {
  position: relative;
}
.hd-vhs::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}
.hd-vhs::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  animation: glitch-anim 0.2s infinite;
  pointer-events: none;
}

.hd-fire {
  position: relative;
  overflow: visible !important;
}
.hd-fire::before {
  content: "";
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, var(--fire-color-1, #ff5e00) 0%, var(--fire-color-2, #ff9900) 40%, transparent 70%);
  filter: blur(8px) contrast(1.5);
  animation: fire-flicker-hd 0.3s infinite alternate;
  z-index: -1;
  mix-blend-mode: screen;
}
.hd-fire::after {
  content: "";
  position: absolute;
  top: -5px; left: -5px; right: -5px; bottom: -5px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 100%, var(--fire-color-3, #ffffff) 0%, var(--fire-color-1, #ff5e00) 30%, transparent 60%);
  filter: blur(4px);
  animation: fire-flicker-hd 0.2s infinite alternate-reverse;
  z-index: -1;
  mix-blend-mode: overlay;
}

.hd-glow {
  box-shadow: 0 0 15px var(--glow-color, #fff), 0 0 30px var(--glow-color, #fff), inset 0 0 15px var(--glow-color, #fff);
}

.glass-rainbow {
  position: relative;
  overflow: hidden;
}

.glass-rainbow::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: skewX(-15deg);
  animation: rainbow-glass 4s infinite linear;
  pointer-events: none;
}

:root {
  --primary: #3b82f6;
  --background: #ffffff;
  --surface: #f5f5f5;
  --text: #000000;
  --border: #e5e5e5;
}

.custom {
  --tw-bg-opacity: 1;
  background-color: var(--background) !important;
  color: var(--text) !important;
}

.custom .bg-white, 
.custom .bg-neutral-50,
.custom .bg-neutral-100 {
  background-color: var(--surface) !important;
}

.custom .text-black,
.custom .text-neutral-900 {
  color: var(--text) !important;
}

.custom .border-black,
.custom .border-neutral-200,
.custom .border-neutral-100 {
  border-color: var(--border) !important;
}

.custom .bg-blue-500 {
  background-color: var(--primary) !important;
  color: var(--background) !important;
}

.custom .text-blue-500 {
  color: var(--primary) !important;
}

.custom .text-neutral-500,
.custom .text-neutral-400 {
  color: var(--text) !important;
  opacity: 0.7;
}

.custom .hover\:bg-neutral-100:hover,
.custom .hover\:bg-neutral-800:hover,
.custom .hover\:bg-neutral-200:hover,
.custom .hover\:bg-neutral-700:hover {
  background-color: var(--text) !important;
  color: var(--background) !important;
}

.custom .hover\:bg-neutral-100:hover *,
.custom .hover\:bg-neutral-800:hover *,
.custom .hover\:bg-neutral-200:hover *,
.custom .hover\:bg-neutral-700:hover * {
  color: var(--background) !important;
}

/* Custom Range Input for Video Player */
.video-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.video-volume-slider::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
}

.video-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -4px; /* Centers thumb on the 4px track */
  background-color: white;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.video-volume-slider::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: 4px;
  border-radius: 2px;
}

.video-volume-slider::-moz-range-thumb {
  background-color: white;
  border: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Time of Day Effects */
.time-day {
  background: linear-gradient(to bottom, #f0f9ff 0%, #ffffff 100%);
}
.dark .time-day {
  background: linear-gradient(to bottom, #0f172a 0%, #000000 100%);
}

.time-dusk {
  background: linear-gradient(to bottom, #ffedd5 0%, #ffffff 100%);
}
.dark .time-dusk {
  background: linear-gradient(to bottom, #2a1508 0%, #000000 100%);
}

.time-night {
  background: linear-gradient(to bottom, #0f172a 0%, #171717 100%);
}
.dark .time-night {
  background: linear-gradient(to bottom, #050b14 0%, #000000 100%);
}

.amoled .time-day {
  background: linear-gradient(to bottom, #050a14 0%, #000000 100%);
}
.amoled .time-dusk {
  background: linear-gradient(to bottom, #140a05 0%, #000000 100%);
}
.amoled .time-night {
  background: #000000;
}

.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  transition: opacity 3s ease-in-out, background 3s ease-in-out;
  filter: blur(120px) saturate(1.2);
  will-change: background, opacity;
}

.glow-day {
  background: 
    radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% -20%, rgba(147, 197, 253, 0.25) 0%, transparent 70%);
}

.glow-dusk {
  background: 
    radial-gradient(circle at 20% 30%, rgba(244, 63, 94, 0.2) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% -20%, rgba(251, 146, 60, 0.25) 0%, transparent 75%);
}

.glow-night {
  background: 
    radial-gradient(circle at 30% -10%, rgba(99, 102, 241, 0.25) 0%, transparent 55%),
    radial-gradient(circle at 75% 15%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% -20%, rgba(15, 23, 42, 0.7) 0%, transparent 80%);
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

.image-3d-container {
  perspective: 2000px;
  transform-style: preserve-3d;
  position: relative;
  display: block;
}

.image-3d {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
  transform: rotateY(12deg) rotateX(4deg) scale(0.96);
  box-shadow: 
    -10px 10px 20px rgba(0,0,0,0.2),
    -20px 20px 40px rgba(0,0,0,0.1);
  filter: saturate(0.9) brightness(0.9);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.image-3d-container:hover .image-3d {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.2),
    0 30px 60px rgba(0,0,0,0.12);
  filter: saturate(1) brightness(1);
  z-index: 30;
}

.image-3d-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 45%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0) 100%);
  background-size: 200% 200%;
  background-position: 200% 0%;
  pointer-events: none;
  z-index: 2;
  transition: background-position 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: inherit;
  opacity: 0;
}

.image-3d-container:hover .image-3d-shine {
  background-position: -100% 0%;
  opacity: 1;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

@keyframes vhs {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.animate-scanline {
  animation: scanline 4s linear infinite;
}

.animate-vhs {
  animation: vhs 0.2s linear infinite;
}

/* REALISTIC ADVANCED FRAME EFFECTS */
@keyframes matrix-rain {
  0% { background-position: 0px 0px; }
  100% { background-position: 0px 1000px; }
}
.animate-matrix-rain {
  background-image: 
    linear-gradient(180deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.45) 75%, rgba(16, 185, 129, 0.1) 100%),
    repeating-linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0px, rgba(16, 185, 129, 0.12) 2px, transparent 2px, transparent 8px);
  background-size: 100% 250px, 120px 100%;
  animation: matrix-rain 2.5s linear infinite;
}

@keyframes flames-rising {
  0% {
    box-shadow: 0 -3px 8px rgba(249, 115, 22, 0.95), -2px -2px 6px rgba(239, 68, 68, 0.75), 2px -4px 10px rgba(251, 191, 36, 0.65), 0 0 15px rgba(249, 115, 22, 0.3);
    border-color: #f97316;
  }
  50% {
    box-shadow: 0 -12px 20px rgba(239, 68, 68, 1), 3px -6px 14px rgba(249, 115, 22, 0.85), -3px -14px 18px rgba(252, 211, 77, 0.75), 0 0 25px rgba(239, 68, 68, 0.5);
    border-color: #ef4444;
  }
  100% {
    box-shadow: 0 -3px 8px rgba(249, 115, 22, 0.95), -2px -2px 6px rgba(239, 68, 68, 0.75), 2px -4px 10px rgba(251, 191, 36, 0.65), 0 0 15px rgba(249, 115, 22, 0.3);
    border-color: #f59e0b;
  }
}
.animate-flames-rising {
  animation: flames-rising 1s ease-in-out infinite alternate;
}

@keyframes sakura-fall {
  0% {
    box-shadow: -2px -1px 8px rgba(244, 114, 182, 0.45), 2px 2px 10px rgba(251, 113, 133, 0.35);
    background-position: 0px 0px;
  }
  100% {
    box-shadow: 4px -3px 12px rgba(244, 114, 182, 0.6), -4px 5px 16px rgba(251, 113, 133, 0.5);
    background-position: 50px 75px;
  }
}
.animate-sakura-drifting {
  background-image: 
    radial-gradient(circle, rgba(244, 114, 182, 0.22) 20%, transparent 20%),
    radial-gradient(circle, rgba(251, 113, 133, 0.17) 15%, transparent 15%);
  background-size: 20px 20px, 35px 35px;
  animation: sakura-fall 3.2s ease-in-out infinite alternate;
}

@keyframes pulse-speed-warp {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
    animation-timing-function: ease-in;
  }
  20% {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.9);
    animation-timing-function: ease-out;
  }
  40% {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
    animation-timing-function: ease-in;
  }
  65% {
    transform: scale(1.12);
    box-shadow: 0 0 35px rgba(139, 92, 246, 1);
    animation-timing-function: ease-out;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
  }
}
.animate-pulse-speed-warp {
  animation: pulse-speed-warp 2.2s infinite;
}

@keyframes pixel-rainbow-shift {
  0% { border-color: #ef4444; filter: hue-rotate(0deg); }
  100% { border-color: #ef4444; filter: hue-rotate(360deg); }
}
.animate-pixel-rainbow {
  animation: pixel-rainbow-shift 3.5s linear infinite;
  box-shadow: 3px 3px 0px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255,0.3);
}

/* PERFORMANCE MODE OVERRIDES */
body.performance-mode * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

body.performance-mode .ambient-glow {
  display: none !important;
}

/* DINO GLASS THEME */
.dino {
  --primary: #ffffff;
  --background: #0a0a0a;
  --surface: rgba(25, 25, 25, 0.4);
  --text: #ffffff;
  --border: rgba(255, 255, 255, 0.15);
  --glass-highlight: rgba(255, 255, 255, 0.2);
}

.dino body {
  background-color: var(--background);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.dino svg:not([style*="visibility: hidden"]) {
  filter: url('#pixelate-filter') drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
  stroke: #ffffff;
  color: #ffffff !important;
  will-change: filter;
}

.dino::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.03;
  mix-blend-mode: overlay;
}

.dino .bg-white,
.dino .dark\:bg-neutral-900,
.dino .bg-neutral-50,
.dino .dark\:bg-black\/40,
.dino .dark\:bg-neutral-800,
.dino .bg-neutral-100 {
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dino .glass-element,
.dino .post-item,
.dino aside .bg-white,
.dino aside .dark\:bg-neutral-900\/50,
.dino aside [class*="bg-gradient-to"],
.dino .compose-button {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.5) 0%, rgba(20, 20, 20, 0.7) 100%) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 
    0 10px 40px 0 rgba(0, 0, 0, 0.8), 
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 10px rgba(255, 255, 255, 0.02) !important;
  border-radius: 1rem !important; /* Force more curvy edges */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
}

.dino .compose-button {
  border-radius: 9999px !important;
}

.dino aside .bg-white,
.dino aside .dark\:bg-neutral-900\/50,
.dino aside [class*="bg-gradient-to"] {
  box-shadow: 
    0 4px 15px 0 rgba(0, 0, 0, 0.5), 
    inset 0 1px 2px rgba(255, 255, 255, 0.05),
    inset 0 -1px 5px rgba(255, 255, 255, 0.02) !important;
}

/* Add an inner liquid shimmer to glass elements */
.dino .glass-element::after,
.dino .post-item::after,
.dino aside .bg-white::after,
.dino aside .dark\:bg-neutral-900\/50::after,
.dino aside [class*="bg-gradient-to"]::after,
.dino .compose-button::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: all 0.7s ease;
}

.dino .glass-element:hover::after,
.dino .post-item:hover::after,
.dino aside .bg-white:hover::after,
.dino aside .dark\:bg-neutral-900\/50:hover::after,
.dino aside [class*="bg-gradient-to"]:hover::after,
.dino .compose-button:hover::after {
  left: 200%;
  transition: all 0.7s ease;
}

.dino .post-item:hover {
  background: linear-gradient(135deg, rgba(50, 50, 50, 0.6) 0%, rgba(25, 25, 25, 0.8) 100%) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  border-top-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 30px 45px -5px rgba(0, 0, 0, 0.8),
    0 15px 20px -5px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 255, 255, 0.1),
    inset 0 2px 2px rgba(255, 255, 255, 0.15) !important;
}

.dino-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 80%);
  pointer-events: none;
  z-index: 100; /* Increased to be above background but below most interactive stuff if possible, or just 9999 for full overlay */
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  filter: blur(30px);
  will-change: transform;
}

@keyframes liquid-flow {
  0% { background-position: 0% 50%; border-radius: 12px; }
  25% { border-radius: 14px 10px 10px 14px; }
  50% { background-position: 100% 50%; border-radius: 10px 14px 14px 10px; }
  75% { border-radius: 14px 10px 14px 10px; }
  100% { background-position: 0% 50%; border-radius: 12px; }
}

.dino .primary-button {
  background: linear-gradient(270deg, rgba(80, 80, 80, 0.8), rgba(120, 120, 120, 0.9), rgba(80, 80, 80, 0.8)) !important;
  background-size: 200% 200% !important;
  animation: liquid-flow 4s ease-in-out infinite !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 2px 5px rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

.dino .primary-button:hover {
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), inset 0 2px 8px rgba(255,255,255,0.5) !important;
  transform: scale(1.05) !important;
  filter: brightness(1.2) !important;
}

/* Extra shader effect using svg filter for backgrounds of specific blocks */
.dino .shader-bg {
  filter: url('#liquid-glass-shader');
}

@keyframes slash-away {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  20% {
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 55%);
    transform: scale(0.98);
    opacity: 1;
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 0%, 0 0%);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
}

.animate-slash-away {
  animation: slash-away 0.8s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

/* HIGH-CRAFTSMANSHIP PREMIUM AVATAR FRAME STYLING SELECTORS */

.frame-stpatricks {
  position: relative;
  overflow: visible !important;
  border: 3.5px solid #10b981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.85), inset 0 0 10px rgba(245, 158, 11, 0.6) !important;
  border-radius: 9999px;
}
.frame-stpatricks::after {
  content: "🍀";
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 13px;
  animation: spin 5s linear infinite;
  z-index: 30;
  pointer-events: none;
}
.frame-stpatricks::before {
  content: "💰";
  position: absolute;
  bottom: -4px;
  left: -4px;
  font-size: 11px;
  animation: bounce-subtle 3s ease-in-out infinite alternate;
  z-index: 30;
  pointer-events: none;
}
.frame-stpatricks img {
  filter: sepia(0.2) hue-rotate(85deg) saturate(1.75) contrast(1.1) !important;
}

.frame-matrix {
  position: relative;
  overflow: hidden !important;
  border: 3.5px solid #10b981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.9), inset 0 0 12px rgba(16, 185, 129, 0.8) !important;
  border-radius: 9999px;
  background-color: #000000;
}
.frame-matrix::after {
  content: "1 0 1\n0 1 0\n1 0 1";
  font-family: "DM Mono", monospace;
  font-weight: 900;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 2px;
  color: #10b981;
  text-shadow: 0 0 5px #10b981;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 25;
  mix-blend-mode: screen;
  white-space: pre;
  animation: matrix-scramble-real 1s steps(3) infinite;
  opacity: 0.9;
}
.frame-matrix::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(180deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.4) 50%, rgba(16, 185, 129, 0) 100%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 3px, transparent 3px, transparent 6px);
  animation: matrix-rain-down-real 3s linear infinite;
  pointer-events: none;
  z-index: 20;
}
.frame-matrix img {
  filter: brightness(0.8) sepia(0.5) hue-rotate(95deg) saturate(2.2) contrast(1.2) !important;
}
@keyframes matrix-scramble-real {
  0% { content: "1 0 0\n0 1 1\n1 0 1"; }
  33% { content: "0 1 1\n1 0 0\n0 1 1"; }
  66% { content: "1 1 0\n0 1 1\n1 0 0"; }
  100% { content: "0 0 1\n1 1 0\n0 1 1"; }
}
@keyframes matrix-rain-down-real {
  0% { background-position: 0px 0px; }
  100% { background-position: 0px 180px; }
}

.frame-zen {
  position: relative;
  overflow: hidden !important;
  border: 3px solid #f472b6 !important;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.8), inset 0 0 8px rgba(244, 114, 182, 0.5) !important;
  border-radius: 9999px;
}
.frame-zen::after {
  content: "🌸";
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 11px;
  animation: spin 7s linear infinite;
  pointer-events: none;
  z-index: 30;
}
.frame-zen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(244, 114, 182, 0.25) 15%, transparent 15%),
    radial-gradient(circle, rgba(251, 113, 133, 0.2) 10%, transparent 10%);
  background-size: 24px 24px, 32px 32px;
  animation: sakura-cascade-real 4.5s linear infinite;
  pointer-events: none;
  z-index: 15;
}
.frame-zen img {
  filter: saturate(1.25) contrast(1.05) brightness(1.02) sepia(0.05) hue-rotate(-5deg) !important;
}
@keyframes sakura-cascade-real {
  0% { background-position: 0px 0px; opacity: 0; }
  20% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { background-position: 40px 120px; opacity: 0; }
}

.frame-flame {
  position: relative;
  overflow: visible !important;
  border: 3.5px solid #f97316 !important;
  box-shadow: 0 0 15px #f97316, inset 0 0 8px rgba(249, 115, 22, 0.5) !important;
  border-radius: 9999px;
}
.frame-flame::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -5px;
  right: -5px;
  bottom: 0px;
  background: radial-gradient(circle at 50% 20%, transparent 15%, #f97316 40%, #ef4444 65%, transparent 80%);
  filter: blur(5px) contrast(2);
  animation: flame-surge-real 0.5s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
  border-radius: 9999px;
}
.frame-flame::after {
  content: "🔥";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  animation: flame-leap-real 0.7s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 30;
}
.frame-flame img {
  filter: sepia(0.25) hue-rotate(-20deg) saturate(1.6) contrast(1.15) !important;
}
@keyframes flame-surge-real {
  0% { transform: scaleX(0.92) scaleY(1.05) translateY(1px); opacity: 0.75; }
  100% { transform: scaleX(1.08) scaleY(1.25) translateY(-2px); opacity: 1; }
}
@keyframes flame-leap-real {
  0% { transform: translateX(-50%) translateY(2px) scale(0.9); }
  100% { transform: translateX(-50%) translateY(-6px) scale(1.18); filter: drop-shadow(0 0 6px #f97316); }
}

.frame-real_fire {
  position: relative;
  overflow: visible !important;
  border: 4px solid #ef4444 !important;
  box-shadow: 0 0 22px #ef4444, inset 0 0 10px rgba(239, 68, 68, 0.4) !important;
  border-radius: 9999px;
}
.frame-real_fire::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, #ff3c00 0%, #ff9900 45%, transparent 75%);
  filter: blur(7px) contrast(2.2);
  animation: fire-flicker-hd-real 0.3s infinite alternate;
  z-index: -1;
  pointer-events: none;
}
.frame-real_fire::after {
  content: "🔥";
  position: absolute;
  bottom: -6px;
  right: -6px;
  font-size: 13px;
  animation: spin 10s linear infinite;
  z-index: 30;
  pointer-events: none;
}
.frame-real_fire img {
  filter: sepia(0.5) hue-rotate(-15deg) saturate(2) contrast(1.2) !important;
}
@keyframes fire-flicker-hd-real {
  0% { transform: scale(0.96) rotate(-1deg); opacity: 0.8; }
  100% { transform: scale(1.06) rotate(1deg); opacity: 1; }
}

.frame-summer_cooler {
  position: relative;
  overflow: hidden !important;
  border: 4px solid #22d3ee !important;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.85), inset 0 0 12px rgba(34, 211, 238, 0.6) !important;
  border-radius: 9999px;
}
.frame-summer_cooler::after {
  content: "❄️";
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 9px;
  animation: spin 5s linear infinite;
  pointer-events: none;
  z-index: 30;
}
.frame-summer_cooler::before {
  content: "🧊";
  position: absolute;
  bottom: 2px;
  left: 2px;
  font-size: 8px;
  animation: bounce-subtle 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 30;
}
.frame-summer_cooler img {
  filter: hue-rotate(180deg) saturate(1.4) brightness(1.08) !important;
}

.frame-pixel_rainbow {
  position: relative;
  overflow: hidden !important;
  border: 4px solid #eab308 !important;
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.85) !important;
  border-radius: 9999px;
  animation: amoled-rainbow 5s linear infinite;
}
.frame-pixel_rainbow img {
  image-rendering: pixelated;
  filter: contrast(1.3) saturate(1.6) brightness(1.03) !important;
}

.frame-eco_sprout {
  position: relative;
  overflow: visible !important;
  border: 3px solid #4ade80 !important;
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.8), inset 0 0 8px rgba(34, 197, 94, 0.5) !important;
  border-radius: 9999px;
}
.frame-eco_sprout::after {
  content: "🍃";
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 14px;
  animation: spin 6s linear infinite;
  z-index: 30;
  pointer-events: none;
}
.frame-eco_sprout::before {
  content: "🌱";
  position: absolute;
  bottom: -6px;
  left: -6px;
  font-size: 14px;
  animation: bounce-subtle 3.5s ease-in-out infinite alternate;
  z-index: 30;
  pointer-events: none;
}

.frame-lite_ring {
  position: relative;
  overflow: visible !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
  border-radius: 9999px;
}
.frame-lite_ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), inset 0 0 6px rgba(255, 255, 255, 0.4);
  animation: spin 3s linear infinite;
  z-index: 20;
  pointer-events: none;
}

/* PREMIUM SPECIAL ROTATION DYNAMIC KEYFRAMES & CLASSES */

@keyframes electricity-crackle-anim {
  0% {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.7), inset 0 0 10px rgba(59, 130, 246, 0.5);
  }
  20% {
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.95), inset 0 0 15px rgba(139, 92, 246, 0.7);
  }
  22% {
    border-color: #ffffff;
    box-shadow: 0 0 35px rgba(255, 255, 255, 1), inset 0 0 22px rgba(6, 182, 212, 0.9);
  }
  25% {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.7), inset 0 0 10px rgba(59, 130, 246, 0.5);
  }
  48% {
    border-color: #06b6d4;
  }
  50% {
    border-color: #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.9), inset 0 0 15px rgba(236, 72, 153, 0.6);
  }
  52% {
    border-color: #ffffff;
    box-shadow: 0 0 35px rgba(255, 255, 255, 1), inset 0 0 20px rgba(168, 85, 247, 0.9);
  }
  55% {
    border-color: #a855f7;
  }
  85% {
    border-color: #3b82f6;
  }
  87% {
    border-color: #06b6d4;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.9), inset 0 0 12px rgba(59, 130, 246, 0.8);
  }
  100% {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.7), inset 0 0 10px rgba(59, 130, 246, 0.5);
  }
}
.animate-electricity-crackle {
  animation: electricity-crackle-anim 1.8s linear infinite;
}

@keyframes spark-burst-anim {
  0% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), -1px -1px 4px rgba(239, 68, 68, 0.4), 1px 1px 4px rgba(253, 224, 71, 0.4);
  }
  50% {
    box-shadow: 0 0 32px rgba(245, 158, 11, 0.95), 2px -4px 12px rgba(239, 68, 68, 0.85), -2px 4px 12px rgba(253, 224, 71, 0.85);
  }
  100% {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5), -1px -1px 4px rgba(239, 68, 68, 0.4), 1px 1px 4px rgba(253, 224, 71, 0.4);
  }
}
.animate-spark-burst {
  animation: spark-burst-anim 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes space-warp-anim {
  0% {
    transform: perspective(600px) rotateX(0deg) rotateY(0deg) scale(1);
    filter: saturate(1);
  }
  25% {
    transform: perspective(600px) rotateX(4deg) rotateY(-4deg) scale(1.04);
    filter: saturate(1.25) hue-rotate(15deg);
  }
  50% {
    transform: perspective(600px) rotateX(-4deg) rotateY(4deg) scale(0.97);
    filter: saturate(1.1) hue-rotate(-10deg);
  }
  75% {
    transform: perspective(600px) rotateX(-2deg) rotateY(-2deg) scale(1.06);
    filter: saturate(1.4) hue-rotate(30deg);
  }
  100% {
    transform: perspective(600px) rotateX(0deg) rotateY(0deg) scale(1);
    filter: saturate(1);
  }
}
.animate-space-warp {
  animation: space-warp-anim 6s ease-in-out infinite;
}

@keyframes hyperspace-speed-anim {
  0% {
    transform: scale(0.98) rotate(0deg);
    border-radius: 50%;
  }
  50% {
    transform: scale(1.08) rotate(180deg);
    border-radius: 46%;
  }
  100% {
    transform: scale(0.98) rotate(360deg);
    border-radius: 50%;
  }
}
.animate-hyperspace-speed {
  animation: hyperspace-speed-anim 4.5s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

@keyframes magnetic-pulse-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5), inset 0 0 5px rgba(6, 182, 212, 0.3);
  }
  45% {
    transform: scale(1.10);
    box-shadow: 0 0 35px rgba(236, 72, 153, 0.95), inset 0 0 20px rgba(6, 182, 212, 0.82);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.7), inset 0 0 15px rgba(6, 182, 212, 0.6);
  }
  90% {
    transform: scale(0.93);
    box-shadow: 0 0 5px rgba(236, 72, 153, 0.2), inset 0 0 3px rgba(6, 182, 212, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5), inset 0 0 5px rgba(6, 182, 212, 0.3);
  }
}
.animate-magnetic-pulse {
  animation: magnetic-pulse-anim 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}


