.font-cursive {
    font-family: 'Great Vibes', cursive;
}

.glass {
    background: rgba(255, 255, 255, 0.92);
    /* Higher opacity to reduce the need for heavy blur */
    backdrop-filter: blur(4px);
    /* Reduced from 8px for performance */
    -webkit-backdrop-filter: blur(4px);
    /* Force GPU acceleration */
    will-change: transform, backdrop-filter;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.text-gradient {
    background: linear-gradient(135deg, #d12e56 0%, #a37a25 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-premium {
    background: linear-gradient(135deg, #fce7eb 0%, #f7f4db 100%);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #a37a25 0%, #bc9631 50%, #d2b552 100%);
}

.card-shadow {
    box-shadow: 0 10px 30px -10px rgba(76, 10, 27, 0.08);
}

.premium-shadow {
    box-shadow: 0 20px 50px -12px rgba(76, 10, 27, 0.1);
}

.premium-border {
    border: 1px solid rgba(188, 150, 49, 0.2);
}

.premium-border-hover:hover {
    border-color: rgba(188, 150, 49, 0.6);
    box-shadow: 0 15px 35px -10px rgba(76, 10, 27, 0.12);
}

/* Custom animation for floating elements - GPU Accelerated */
@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -10px, 0) rotate(3deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Slow spinning - GPU Accelerated */
@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 35s linear infinite;
    /* Slowed down slightly for smoothness */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Simplified Pulse for performance */
@keyframes pulse-soft {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    will-change: opacity;
}

/* GPU Accelerated Bounce */
@keyframes bounce-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce-soft {
    animation: bounce-soft 3s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

/* Toast Notification Styles */
.toast-active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-hidden {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
}

.section-card {
    background: white;
    border-radius: 40px;
    padding: 2.5rem;
    border: 1px solid rgba(122, 26, 53, 0.05);
    box-shadow: 0 10px 30px -10px rgba(76, 10, 27, 0.05);
}

.form-input {
    width: 100%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #7a1a35;
    background-color: white;
    box-shadow: 0 0 0 1px #7a1a35;
}

/* Mobile dashboard */
.has-mobile-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (max-width: 1023px) {
    .has-mobile-nav {
        justify-content: flex-start;
    }

    /* Mobile page sections sit directly under the header */
    .has-mobile-nav .mobile-page-shell {
        flex: 1 0 auto;
        width: 100%;
    }

    .has-mobile-nav main.max-w-7xl {
        padding-top: 0;
    }

    .has-mobile-nav #toast {
        bottom: 5.5rem;
    }

    .has-mobile-nav > footer {
        display: none;
    }

    /* Hidden desktop panels must not reserve flex space */
    .has-mobile-nav > main.hidden {
        display: none !important;
    }
}

.safe-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.mobile-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
}

.mobile-drawer-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: background-color 0.15s, color 0.15s;
}

.mobile-drawer-link:hover {
    background-color: #fdf2f4;
    color: #b01e43;
}

.mobile-scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .mobile-scroll-hide::-webkit-scrollbar {
        display: none;
    }

    @media (max-width: 1023px) {
        .section-card {
            padding: 1rem;
            border-radius: 1rem;
        }

        .section-card h2 {
            margin-bottom: 1rem;
        }

        .profile-toolbar {
            margin-top: 0;
        }

        #profile-form .section-card + .section-card {
            margin-top: 0;
        }

        #profile-form .grid.gap-6 {
            gap: 1rem;
        }

        .profile-gallery-card .group .absolute {
            opacity: 1;
        }
    }