/* =============================================
   MESS MANAGER — PREMIUM DESIGN SYSTEM
   ============================================= */

/* --- BASE & TYPOGRAPHY --- */
body {
    font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: #0f172a;
    color: #1e293b;
    overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* --- PREMIUM ANIMATED BACKGROUND --- */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: linear-gradient(-45deg, 
        #1a472a 0%,
        #2d5f4f 8%,
        #1e3a3a 16%,
        #0f172a 24%,
        #1a2744 32%,
        #2d3e50 40%,
        #1e4d2b 48%,
        #0f3a2f 56%,
        #1a2f4a 64%,
        #2d4a3f 72%,
        #1e3d3a 80%,
        #0f472a 88%,
        #1a472a 96%,
        #1a472a 100%
    );
    background-size: 400% 400%;
    animation: gradientMove 25s ease-in-out infinite;
    filter: blur(0px);
    position: relative;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(52, 211, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(16, 185, 129, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Overlay mesh pattern for depth */
.animated-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientMove {
    0% { 
        background-position: 0% 50%; 
        filter: blur(0px) saturate(1.1) brightness(1.05);
    }
    25% { 
        background-position: 100% 50%; 
        filter: blur(0.8px) saturate(1.2) brightness(1.08);
    }
    50% { 
        background-position: 100% 0%; 
        filter: blur(0.4px) saturate(1.25) brightness(1.1);
    }
    75% { 
        background-position: 0% 100%; 
        filter: blur(0.8px) saturate(1.2) brightness(1.08);
    }
    100% { 
        background-position: 0% 50%; 
        filter: blur(0px) saturate(1.1) brightness(1.05);
    }
}

/* --- FLOATING PARTICLES --- */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.particles li {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    animation: floatUp 25s linear infinite;
    bottom: -150px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Food Items with Emojis */
.particles li:nth-child(1)::before { content: "🥕"; left: 25%; width: 60px; height: 60px; animation-delay: 0s; }
.particles li:nth-child(2)::before { content: "🥬"; left: 10%; width: 50px; height: 50px; animation-delay: 2s; animation-duration: 12s; }
.particles li:nth-child(3)::before { content: "🍅"; left: 70%; width: 45px; height: 45px; animation-delay: 4s; }
.particles li:nth-child(4)::before { content: "🥔"; left: 40%; width: 55px; height: 55px; animation-delay: 0s; animation-duration: 18s; }
.particles li:nth-child(5)::before { content: "🌽"; left: 65%; width: 50px; height: 50px; animation-delay: 0s; }
.particles li:nth-child(6)::before { content: "🥦"; left: 75%; width: 65px; height: 65px; animation-delay: 3s; }
.particles li:nth-child(7)::before { content: "🍆"; left: 35%; width: 55px; height: 55px; animation-delay: 7s; }
.particles li:nth-child(8)::before { content: "🫑"; left: 50%; width: 45px; height: 45px; animation-delay: 15s; animation-duration: 45s; }
.particles li:nth-child(9)::before { content: "🥒"; left: 20%; width: 50px; height: 50px; animation-delay: 2s; animation-duration: 35s; }
.particles li:nth-child(10)::before { content: "🧅"; left: 85%; width: 48px; height: 48px; animation-delay: 0s; animation-duration: 11s; }
.particles li:nth-child(11)::before { content: "🌶️"; left: 15%; width: 42px; height: 42px; animation-delay: 5s; animation-duration: 22s; }
.particles li:nth-child(12)::before { content: "🥗"; left: 55%; width: 58px; height: 58px; animation-delay: 8s; animation-duration: 28s; }
.particles li:nth-child(13)::before { content: "🍞"; left: 30%; width: 52px; height: 52px; animation-delay: 12s; animation-duration: 30s; }
.particles li:nth-child(14)::before { content: "🥐"; left: 80%; width: 46px; height: 46px; animation-delay: 6s; animation-duration: 24s; }
.particles li:nth-child(15)::before { content: "🍇"; left: 45%; width: 50px; height: 50px; animation-delay: 10s; animation-duration: 26s; }
.particles li:nth-child(16)::before { content: "🍪"; left: 22%; width: 54px; height: 54px; animation-delay: 3s; animation-duration: 20s; }
.particles li:nth-child(17)::before { content: "🍊"; left: 62%; width: 48px; height: 48px; animation-delay: 9s; animation-duration: 32s; }
.particles li:nth-child(18)::before { content: "🍌"; left: 38%; width: 52px; height: 52px; animation-delay: 14s; animation-duration: 27s; }
.particles li:nth-child(19)::before { content: "🍎"; left: 78%; width: 46px; height: 46px; animation-delay: 1s; animation-duration: 23s; }
.particles li:nth-child(20)::before { content: "🍉"; left: 8%; width: 60px; height: 60px; animation-delay: 11s; animation-duration: 34s; }
.particles li:nth-child(21)::before { content: "🥚"; left: 68%; width: 44px; height: 44px; animation-delay: 7s; animation-duration: 19s; }
.particles li:nth-child(22)::before { content: "🧀"; left: 42%; width: 50px; height: 50px; animation-delay: 13s; animation-duration: 29s; }
.particles li:nth-child(23)::before { content: "🍚"; left: 88%; width: 48px; height: 48px; animation-delay: 4s; animation-duration: 25s; }
.particles li:nth-child(24)::before { content: "🛢️"; left: 5%; width: 52px; height: 52px; animation-delay: 16s; animation-duration: 40s; }
.particles li:nth-child(25)::before { content: "🥖"; left: 52%; width: 54px; height: 54px; animation-delay: 9s; animation-duration: 21s; }

.particles li:nth-child(1) { left: 25%; width: 60px; height: 60px; animation-delay: 0s; }
.particles li:nth-child(2) { left: 10%; width: 50px; height: 50px; animation-delay: 2s; animation-duration: 12s; }
.particles li:nth-child(3) { left: 70%; width: 45px; height: 45px; animation-delay: 4s; }
.particles li:nth-child(4) { left: 40%; width: 55px; height: 55px; animation-delay: 0s; animation-duration: 18s; }
.particles li:nth-child(5) { left: 65%; width: 50px; height: 50px; animation-delay: 0s; }
.particles li:nth-child(6) { left: 75%; width: 65px; height: 65px; animation-delay: 3s; }
.particles li:nth-child(7) { left: 35%; width: 55px; height: 55px; animation-delay: 7s; }
.particles li:nth-child(8) { left: 50%; width: 45px; height: 45px; animation-delay: 15s; animation-duration: 45s; }
.particles li:nth-child(9) { left: 20%; width: 50px; height: 50px; animation-delay: 2s; animation-duration: 35s; }
.particles li:nth-child(10) { left: 85%; width: 48px; height: 48px; animation-delay: 0s; animation-duration: 11s; }
.particles li:nth-child(11) { left: 15%; width: 42px; height: 42px; animation-delay: 5s; animation-duration: 22s; }
.particles li:nth-child(12) { left: 55%; width: 58px; height: 58px; animation-delay: 8s; animation-duration: 28s; }
.particles li:nth-child(13) { left: 30%; width: 52px; height: 52px; animation-delay: 12s; animation-duration: 30s; }
.particles li:nth-child(14) { left: 80%; width: 46px; height: 46px; animation-delay: 6s; animation-duration: 24s; }
.particles li:nth-child(15) { left: 45%; width: 50px; height: 50px; animation-delay: 10s; animation-duration: 26s; }
.particles li:nth-child(16) { left: 22%; width: 54px; height: 54px; animation-delay: 3s; animation-duration: 20s; }
.particles li:nth-child(17) { left: 62%; width: 48px; height: 48px; animation-delay: 9s; animation-duration: 32s; }
.particles li:nth-child(18) { left: 38%; width: 52px; height: 52px; animation-delay: 14s; animation-duration: 27s; }
.particles li:nth-child(19) { left: 78%; width: 46px; height: 46px; animation-delay: 1s; animation-duration: 23s; }
.particles li:nth-child(20) { left: 8%; width: 60px; height: 60px; animation-delay: 11s; animation-duration: 34s; }
.particles li:nth-child(21) { left: 68%; width: 44px; height: 44px; animation-delay: 7s; animation-duration: 19s; }
.particles li:nth-child(22) { left: 42%; width: 50px; height: 50px; animation-delay: 13s; animation-duration: 29s; }
.particles li:nth-child(23) { left: 88%; width: 48px; height: 48px; animation-delay: 4s; animation-duration: 25s; }
.particles li:nth-child(24) { left: 5%; width: 52px; height: 52px; animation-delay: 16s; animation-duration: 40s; }
.particles li:nth-child(25) { left: 52%; width: 54px; height: 54px; animation-delay: 9s; animation-duration: 21s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(-5deg) scale(1); opacity: 0.9; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)); }
    50% { transform: translateX(80px) translateY(-500px) rotate(180deg) scale(1.15); opacity: 0.85; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15)); }
    100% { transform: translateY(-1000px) rotate(360deg) scale(0.9); opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); }
}


/* =============================================
   PREMIUM GLASS CARD SYSTEM
   ============================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.glass-card:hover {
    box-shadow: 
        0 20px 60px rgba(31, 38, 135, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
}


/* =============================================
   ANIMATION KEYFRAMES
   ============================================= */

/* Smooth Fade In (enhanced) */
.fade-in { 
    animation: fadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; 
}
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(16px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* Slide Up entrance */
.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scale In (for modals) */
.scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Shimmer sweep for cards */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 40%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 60%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Pulse glow for icons */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 20px 6px rgba(16, 185, 129, 0.15); }
}
.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.animated-gradient-text {
    background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #10b981);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float-animation {
    animation: float 4s ease-in-out infinite;
}

/* Stagger delay utilities for list items */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }


/* =============================================
   LOGIN CARD ENHANCEMENTS
   ============================================= */
.login-card-wrapper {
    position: relative;
}
.login-card-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, #10b981, #06b6d4, #8b5cf6, #f59e0b, #10b981);
    background-size: 400% 400%;
    animation: gradientText 6s ease infinite;
    z-index: -1;
    opacity: 0.7;
    filter: blur(4px);
}

/* Google button premium hover */
.google-btn-premium {
    position: relative;
    overflow: hidden;
}
.google-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.06), transparent);
    transition: left 0.5s ease;
}
.google-btn-premium:hover::before {
    left: 100%;
}


/* =============================================
   FUND CARD (Credit Card Style) ENHANCEMENTS
   ============================================= */
.fund-card {
    position: relative;
    overflow: hidden;
}

/* Animated shine sweep */
.fund-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    transform: rotate(25deg);
    animation: cardShine 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes cardShine {
    0% { transform: rotate(25deg) translateX(-120%); }
    40%, 100% { transform: rotate(25deg) translateX(120%); }
}

/* Animated spending progress bar */
.spending-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-top: 16px;
}
.spending-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #34d399, #10b981, #059669);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.spending-progress-bar.over-budget {
    background: linear-gradient(90deg, #f87171, #ef4444, #dc2626);
}
.spending-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
    background-size: 200% 100%;
}


/* =============================================
   EXPENSE FORM ENHANCEMENTS
   ============================================= */
.expense-form-card {
    position: relative;
}
.expense-form-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6, #10b981);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    border-radius: 0 0 1rem 1rem;
}

/* Input focus animations */
.input-premium {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 2px solid transparent !important;
}
.input-premium:focus {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.08),
        0 4px 12px rgba(16, 185, 129, 0.1) !important;
    transform: translateY(-1px);
}

/* Submit button premium */
.submit-btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.submit-btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}
.submit-btn-premium:hover::before {
    left: 100%;
}
.submit-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}
.submit-btn-premium:active {
    transform: translateY(0) scale(0.98);
}


/* =============================================
   EXPENSE LIST GROUP CARDS
   ============================================= */
.expense-group-card {
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}
.expense-group-card:nth-child(1) { animation-delay: 0s; }
.expense-group-card:nth-child(2) { animation-delay: 0.1s; }
.expense-group-card:nth-child(3) { animation-delay: 0.2s; }
.expense-group-card:nth-child(4) { animation-delay: 0.3s; }
.expense-group-card:nth-child(5) { animation-delay: 0.4s; }

/* Group header */
.expense-group-header {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    position: relative;
    overflow: hidden;
}
.expense-group-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.3), transparent);
}

/* Individual expense item */
.expense-item {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.expense-item:hover {
    background: rgba(248, 250, 252, 0.7) !important;
    transform: translateX(4px);
}
.expense-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #10b981, #06b6d4);
    border-radius: 0 4px 4px 0;
    transition: height 0.25s ease;
}
.expense-item:hover::before {
    height: 60%;
}

/* Cost badge */
.cost-badge {
    transition: all 0.25s ease;
}
.expense-item:hover .cost-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Action buttons */
.action-btn {
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.action-btn:hover {
    transform: scale(1.15);
}
.action-btn:active {
    transform: scale(0.9);
}


/* =============================================
   MODALS — PREMIUM ENTRANCE
   ============================================= */
.modal-backdrop {
    animation: backdropIn 0.3s ease forwards;
}
@keyframes backdropIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

.modal-content {
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal icon bounce */
.modal-icon {
    animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}
@keyframes iconBounce {
    from { transform: scale(0) rotate(-15deg); }
    to { transform: scale(1) rotate(0deg); }
}


/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-notification {
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}


/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state-icon {
    animation: float 4s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
}


/* =============================================
   VIEW TOGGLE SWITCH
   ============================================= */
.view-toggle-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.view-toggle-btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.view-toggle-btn.active {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}


/* =============================================
   LOADING SCREEN
   ============================================= */
.loading-screen {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(30px) saturate(1.5);
}
.loading-spinner {
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* =============================================
   CUSTOM SCROLLBAR
   ============================================= */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Styled scrollbar for content areas */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}


/* =============================================
   RESPONSIVE & UTILITY
   ============================================= */
@media (max-width: 480px) {
    .glass-card {
        backdrop-filter: blur(16px) saturate(1.6);
        -webkit-backdrop-filter: blur(16px) saturate(1.6);
    }
}

/* Selection colors */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

/* Social link hover glow */
.social-link {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

/* Logout button */
.logout-btn-premium {
    transition: all 0.3s ease;
}
.logout-btn-premium:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    transform: rotate(5deg);
}

/* Admin badge glow */
.admin-badge-glow {
    animation: adminGlow 2s ease-in-out infinite;
}
@keyframes adminGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 12px 3px rgba(245, 158, 11, 0.15); }
}

/* Edit/delete button container */
.action-buttons-container {
    transition: all 0.3s ease;
}

/* Download PDF button */
.download-pdf-btn {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.download-pdf-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.download-pdf-btn:active {
    transform: scale(0.95);
}


/* =============================================
   MEMBER FUND CONTRIBUTIONS
   ============================================= */
.member-funds-card {
    position: relative;
    overflow: hidden;
}
.member-funds-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #a855f7, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    z-index: 1;
}

.member-fund-item {
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}
.member-fund-item:hover {
    background: rgba(248, 250, 252, 0.7);
    transform: translateX(4px);
}
.member-fund-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 0 4px 4px 0;
    transition: height 0.25s ease;
}
.member-fund-item:hover::before {
    height: 60%;
}

/* Select dropdown styling */
select.input-premium {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Fund card member select (dark theme dropdown) */
.fund-member-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 32px;
    cursor: pointer;
}
.fund-member-select option {
    background: #1e293b;
    color: #e2e8f0;
}
