/* ========================================
   VENARY — Design System & Global Styles
   ======================================== */

:root {
  /* Color Palette - Premium Fluid & Glass */
  --bg-primary: #05060A;
  --bg-secondary: #0A0C14;
  --bg-tertiary: #121520;
  --bg-card: rgba(10, 12, 20, 0.45);
  --bg-card-hover: rgba(18, 21, 32, 0.6);
  --bg-glass: rgba(5, 6, 10, 0.55);
  --bg-input: rgba(10, 12, 20, 0.7);

  /* Modern Accents */
  --neon-cyan: #29b6f6;
  --neon-magenta: #ab47bc;
  --neon-pink: #ec407a;
  --neon-green: #66bb6a;
  --neon-orange: #ffa726;
  --neon-yellow: #ffee58;
  --neon-blue: #42a5f5;

  /* Gradient Combos */
  --gradient-primary: linear-gradient(135deg, #29b6f6 0%, #ab47bc 100%);
  --gradient-secondary: linear-gradient(135deg, #ab47bc 0%, #ec407a 100%);
  --gradient-accent: linear-gradient(135deg, #66bb6a 0%, #29b6f6 100%);
  --gradient-warm: linear-gradient(135deg, #ffa726 0%, #ec407a 100%);
  --gradient-dark: linear-gradient(135deg, #05060A 0%, #121520 100%);

  /* Text Colors */
  --text-primary: #f0f2f5;
  --text-secondary: #a3abb8;
  --text-muted: #6b7280;
  --text-highlight: #29b6f6;

  /* Borders - Refined Glass Edge */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(41, 182, 246, 0.4);

  /* Shadows - Modern Soft Depth */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 24px rgba(41, 182, 246, 0.2);
  --shadow-neon-strong: 0 0 40px rgba(41, 182, 246, 0.35);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-nav: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-particle: -1;

  /* Layout */
  --nav-width: 260px;
  --nav-collapsed: 72px;
}

/* ========== Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-magenta);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* ========== Particle Canvas ========== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
}

/* ========== Utility Classes ========== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(41, 182, 246, 0.15);
  }

  50% {
    box-shadow: 0 0 24px rgba(41, 182, 246, 0.3), 0 0 48px rgba(41, 182, 246, 0.1);
  }
}

@keyframes neonFlicker {

  0%,
  100% {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8), 0 0 12px rgba(41, 182, 246, 0.6), 0 0 24px rgba(41, 182, 246, 0.4);
  }

  50% {
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5), 0 0 8px rgba(41, 182, 246, 0.3), 0 0 16px rgba(41, 182, 246, 0.2);
  }
}

@keyframes borderGlow {

  0%,
  100% {
    border-color: rgba(41, 182, 246, 0.2);
  }

  50% {
    border-color: rgba(41, 182, 246, 0.5);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

.animate-fade-up {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-scale-in {
  animation: scaleIn var(--transition-normal) ease-out;
}

.animate-slide-right {
  animation: slideInRight var(--transition-slow) ease-out;
}

/* Staggered children animation */
.stagger-children>* {
  animation: fadeInUp 0.4s ease-out both;
}

.stagger-children>*:nth-child(1) {
  animation-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
  animation-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
  animation-delay: 0.2s;
}

.stagger-children>*:nth-child(5) {
  animation-delay: 0.25s;
}

.stagger-children>*:nth-child(6) {
  animation-delay: 0.3s;
}

.stagger-children>*:nth-child(7) {
  animation-delay: 0.35s;
}

.stagger-children>*:nth-child(8) {
  animation-delay: 0.4s;
}

.stagger-children>*:nth-child(9) {
  animation-delay: 0.45s;
}

.stagger-children>*:nth-child(10) {
  animation-delay: 0.5s;
}

/* ── Donation Rank Badge (inline, global) ── */
.rank-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
 . p o s t - i m a g e   { 
         m a r g i n - t o p :   1 2 p x ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         o v e r f l o w :   h i d d e n ; 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - s u b t l e ) ; 
 } 
 . p o s t - i m a g e   i m g   { 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   a u t o ; 
         d i s p l a y :   b l o c k ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ; 
 } 
 . p o s t - i m a g e   i m g : h o v e r   { 
         t r a n s f o r m :   s c a l e ( 1 . 0 2 ) ; 
 } 
  
 
 / *   G a l l e r y   S y s t e m   * / 
 . p o s t - g a l l e r y   { 
         d i s p l a y :   g r i d ; 
         g a p :   4 p x ; 
         m a r g i n - t o p :   1 2 p x ; 
         b o r d e r - r a d i u s :   1 2 p x ; 
         o v e r f l o w :   h i d d e n ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r - s u b t l e ) ; 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 2 ) ; 
 } 
 . g a l l e r y - i t e m   { 
         p o s i t i o n :   r e l a t i v e ; 
         c u r s o r :   p o i n t e r ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 . g a l l e r y - i t e m   i m g   { 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   1 0 0 % ; 
         o b j e c t - f i t :   c o v e r ; 
         d i s p l a y :   b l o c k ; 
         t r a n s i t i o n :   t r a n s f o r m   0 . 3 s   e a s e ; 
 } 
 . g a l l e r y - i t e m : h o v e r   i m g   { 
         t r a n s f o r m :   s c a l e ( 1 . 0 5 ) ; 
 } 
 . g a l l e r y - o v e r l a y   { 
         p o s i t i o n :   a b s o l u t e ; 
         i n s e t :   0 ; 
         b a c k g r o u n d :   r g b a ( 0 , 0 , 0 , 0 . 5 ) ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   c e n t e r ; 
         f o n t - s i z e :   2 r e m ; 
         f o n t - w e i g h t :   b o l d ; 
         c o l o r :   # f f f ; 
         p o i n t e r - e v e n t s :   n o n e ; 
 } 
 
 / *   G r i d   L a y o u t s   * / 
 . p o s t - g a l l e r y . o n e - i m g   {   g r i d - t e m p l a t e - c o l u m n s :   1 f r ;   } 
 . p o s t - g a l l e r y . t w o - i m g s   {   g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ;   h e i g h t :   3 0 0 p x ;   } 
 . p o s t - g a l l e r y . t h r e e - i m g s   {   
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ;   
         g r i d - t e m p l a t e - r o w s :   1 f r   1 f r ;   
         h e i g h t :   4 0 0 p x ; 
 } 
 . p o s t - g a l l e r y . t h r e e - i m g s   . g a l l e r y - i t e m : f i r s t - c h i l d   {   g r i d - r o w :   s p a n   2 ;   } 
 
 . p o s t - g a l l e r y . f o u r - p l u s - i m g s   { 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   1 f r ; 
         g r i d - t e m p l a t e - r o w s :   1 f r   1 f r ; 
         h e i g h t :   4 0 0 p x ; 
 } 
 
 @ m e d i a   ( m a x - w i d t h :   6 0 0 p x )   { 
         . p o s t - g a l l e r y . t w o - i m g s ,   . p o s t - g a l l e r y . t h r e e - i m g s ,   . p o s t - g a l l e r y . f o u r - p l u s - i m g s   { 
                 h e i g h t :   2 5 0 p x ; 
         } 
 } 
  
 
 / *   M e d i a   G a l l e r y   E n h a n c e m e n t s   * / 
 . y o u t u b e - e m b e d   { 
         p o s i t i o n :   r e l a t i v e ; 
         p a d d i n g - b o t t o m :   5 6 . 2 5 % ;   / *   1 6 : 9   * / 
         h e i g h t :   0 ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 . g a l l e r y - i t e m   i f r a m e   { 
         p o s i t i o n :   a b s o l u t e ; 
         t o p :   0 ; 
         l e f t :   0 ; 
         w i d t h :   1 0 0 % ; 
         h e i g h t :   1 0 0 % ; 
 } 
 . g a l l e r y - i t e m   v i d e o   { 
         b a c k g r o u n d :   # 0 0 0 ; 
 } 
  
 