/* Shared Header and Footer Styles */
@font-face {
    font-family: 'Inertia Matte';
    src: url('../fonts/inertia-matte.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --header-height: 70px;
    --header-bg: rgba(5, 45, 32, 0.95);
    /* Deep Emerald Darkest */
    --header-blur: 15px;
    --sidebar-bg: #032117;
}

/* Header Area */
.header-area {
    background-color: var(--header-bg);
    -webkit-backdrop-filter: blur(var(--header-blur));
    backdrop-filter: blur(var(--header-blur));
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: all 0.5s ease;
    height: var(--header-height);
}

.header-area.header-sticky {
    position: fixed;
}

.header-area.background-header {
    height: 70px;
    background-color: rgba(5, 45, 32, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.header-area .main-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 100% !important;
    position: relative;
    background: transparent !important;
    padding-top: 12px !important;
    padding-bottom: 2px !important;
}

/* Logo Styles */
.header-area .main-nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-area .main-nav .logo .logo-text {
    display: flex;
    flex-direction: column;
}

.header-area .main-nav .logo .logo-text .title {
    font-family: 'Inertia Matte', 'InertiaMatte', 'inertia-matte', sans-serif !important;
    background: linear-gradient(to right, #6C63FF, #F4B942);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    /* Increased size since logo is gone */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.header-area .main-nav .logo .logo-subtitle {
    font-family: var(--font-nature);
    color: #ffffff;
    /* White text for desktop dark header */
    font-size: 0.8rem;
    /* Increased from 0.55rem */
    font-weight: 700;
    /* Bolder */
    text-transform: none;
    letter-spacing: 1px;
    /* Reduced spacing for readability */
    margin-top: -2px;
    line-height: 1.2;
    opacity: 1;
    /* Full visibility */
    display: block;
}

/* Navigation Links - PC Specific Centering */
@media (min-width: 1151px) {
    .header-area .main-nav .nav {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .header-area .main-nav .nav li {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .header-area .main-nav .nav>li>a {
        color: #fff !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        text-transform: uppercase !important;
        padding: 0 10px !important;
        height: 100% !important;
        line-height: normal !important;
        transition: all 0.3s;
        position: relative;
        display: flex !important;
        align-items: center !important;
        text-shadow: none !important;
    }

    .header-area .main-nav .nav>li>a::after {
        content: '';
        position: absolute;
        bottom: 15px;
        left: 10px;
        right: 10px;
        height: 2px;
        background: var(--grad-emerald);
        transition: all 0.3s;
        opacity: 0;
    }

    .header-area .main-nav .nav>li>a:hover::after,
    .header-area .main-nav .nav>li>a.active::after {
        opacity: 1;
    }
}

/* Universal Nav Styles */
.header-area .main-nav .nav {
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.header-area .main-nav .nav>li>a {
    color: #fff !important;
    transition: all 0.3s;
}

.header-area .main-nav .nav>li>a:hover,
.header-area .main-nav .nav>li>a.active {
    color: var(--emerald-light) !important;
}

/* Dropdown Styles */
.has-sub {
    position: relative;
}

.has-sub>a i {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block !important;
}

/* Remove double arrow from zyndora.css */
.header-area .main-nav .nav li.has-sub::after,
.header-area .main-nav .nav li.has-sub:after {
    display: none !important;
    content: none !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    vertical-align: middle;
    min-width: 220px;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 22px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: none !important;
    z-index: 1000 !important;
}

.header-area .main-nav .nav li.has-sub:hover ul.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Specific Override for Mobile Hover State */
@media (max-width: 1150px) {
    .header-area .main-nav .nav li.has-sub:hover ul.sub-menu {
        transform: none !important;
        position: relative !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
    }
}

.sub-menu li {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 12px 20px !important;
    color: #085D36 !important;
    font-size: var(--font-size-xs) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    background: transparent !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: normal !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #085D36 !important;
    font-family: var(--font-nature) !important;
    letter-spacing: 1px !important;
    border: none !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
    color: #085D36 !important;
    background: rgba(8, 93, 54, 0.05) !important;
    transform: scale(1.02) !important;
    text-shadow: none !important;
    padding-left: 20px !important;
    /* Force reset padding-left from zyndora.css */
    padding-right: 20px !important;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: 20px;
}

#user-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(80, 200, 120, 0.3);
}

#user-menu-toggle:hover {
    background: rgba(80, 200, 120, 0.2);
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.4);
}

.user-initial {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--emerald-light);
}

#clerk-user-button {
    display: flex;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
}

/* Guest State: Show a balanced user icon */
#clerk-user-button:empty::before {
    content: '\f2bd';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 34px;
    color: var(--emerald-light);
    opacity: 0.8;
    transition: all 0.3s;
}

#clerk-user-button:empty:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

#clerk-user-button .cl-userButtonBox,
#clerk-user-button .cl-rootBox {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.user-dropdown {
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 20px;
    min-width: 170px;
    padding: 12px 0;
    display: none;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.user-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s forwards;
}

/* Force Clerk Modals (Sign-in, User Profile) to stay above the header */
.cl-modalBackdrop,
.cl-modalContent,
.cl-modalContentWrap {
    z-index: 9999999 !important;
}

.user-dropdown a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 10px 15px;
    color: #085D36;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s;
}

.user-dropdown a:hover {
    color: #085D36;
    background: rgba(8, 93, 54, 0.05);
}

/* Mobile Menu Trigger */
.menu-trigger {
    display: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: relative;
}

.menu-trigger span,
.menu-trigger span::before,
.menu-trigger span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.menu-trigger span {
    top: 14px;
}

.menu-trigger span::before {
    top: -8px;
}

.menu-trigger span::after {
    top: 8px;
}

.menu-trigger.active span {
    background: transparent;
}

.menu-trigger.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-trigger.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Responsive Header */
@media (max-width: 1150px) {
    .header-area {
        height: 70px !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .header-area .main-nav .logo .logo-text .title {
        font-size: 2.4rem !important;
        letter-spacing: 0.5px !important;
    }

    .header-area .main-nav .logo .logo-subtitle {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 800 !important;
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
        margin-top: -4px !important;
    }

    .header-area .main-nav .nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        right: 15px !important;
        left: auto !important;
        width: 75% !important;
        max-width: 360px !important;
        background: #ffffff !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 0 !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
        height: auto !important;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 20px !important;
        margin-top: 15px !important;
        border: 1px solid #eee !important;
    }

    .header-area .main-nav .nav.show {
        display: flex !important;
        animation: slideFromRight 0.4s ease forwards;
    }

    .header-area .main-nav .nav li {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .header-area .main-nav .nav li a {
        display: flex !important;
        justify-content: center !important;
        padding: 15px 15px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        color: #222 !important;
        font-weight: 700 !important;
        line-height: normal !important;
    }

    .header-area .main-nav .nav li.has-sub ul.sub-menu {
        position: relative !important;
        display: none !important;
        background: #fafafa !important;
        width: 100% !important;
        left: 0 !important;
        border-radius: 0 !important;
    }

    .header-area .main-nav .nav li.has-sub.is-open-sub ul.sub-menu {
        display: block !important;
    }

    .menu-trigger {
        display: block !important;
        z-index: 10001;
        margin-left: 15px;
    }

    .menu-trigger span,
    .menu-trigger span::before,
    .menu-trigger span::after {
        background: #085D36 !important;
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Shared Footer Styles */
.shared-footer {
    padding: 40px 0 20px;
    background: linear-gradient(to bottom, #032117, #01100a) !important;
    border-top: 1px solid rgba(80, 200, 120, 0.1);
    position: relative;
    z-index: 100;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-center {
    text-align: center;
    flex: 2;
    min-width: 300px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(80, 200, 120, 0.3);
    margin-right: 15px;
    margin-bottom: 10px;
}

.query-btn {
    background: rgba(80, 200, 120, 0.1);
    color: var(--emerald-light);
}

.donate-btn {
    background: var(--grad-crimson);
    color: #fff;
    border: none;
    position: relative;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(80, 200, 120, 0.2);
}

.footer-center p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

/* Brand Colors for Social Icons */
.social-link.facebook i {
    color: #1877F2;
}

.social-link.instagram i {
    color: #E4405F;
}

.social-link.x-twitter i {
    color: #fff;
}

.social-link.linkedin i {
    color: #0A66C2;
}

.social-link.youtube i {
    color: #FF0000;
}

.social-link.whatsapp i {
    color: #25D366;
}

.social-link:hover i {
    color: #fff !important;
}


.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: scale(1.1) rotate(10deg);
    background: var(--emerald-light);
}

.developer-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.developer-info span {
    font-size: 0.85rem;
    color: #888;
}

.developer-info strong {
    color: #fff;
    display: block;
}

.dev-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--emerald-light);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(80, 200, 120, 0.3);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main (Compact) Footer Styles */
.main-footer {
    padding: 20px 0 !important;
    background-color: #01100a !important;
}

.main-footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.main-footer .footer-left p {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.main-footer .footer-right {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.main-footer .footer-social {
    gap: 25px;
    /* Increased gap for better spacing */
}

.main-footer .social-link {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    font-size: 1.4rem;
}

.main-footer .social-link:hover {
    transform: scale(1.2);
    background: transparent;
}

@media (max-width: 991px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .main-footer .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left,
    .footer-right,
    .footer-center,
    .main-footer .footer-left,
    .main-footer .footer-right {
        width: 100%;
        justify-content: center !important;
        display: flex;
    }

    .main-footer .footer-left p {
        text-align: center;
        width: 100%;
    }

    .developer-info {
        justify-content: center;
    }
}

/* Tool Footer Specific Styles */
.tool-footer {
    padding: clamp(10px, 2vh, 18px) 0 !important;
    background: #01100a !important;
}

.tool-footer .footer-container {
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap;
}

.tool-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(3px, 0.8vw, 6px);
    padding: clamp(5px, 1.2vh, 8px) clamp(10px, 1.6vw, 16px);
    border-radius: 8px;
    font-size: clamp(0.65rem, 1vw, 0.75rem) !important;
    font-weight: 700;
    /* Bolded text */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
}

.tool-footer-btn.query-btn {
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: #4da3ff;
    margin-right: 15px;
}

.tool-footer-btn.query-btn:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: #007aff;
    box-shadow: 0 0 15px rgba(0, 122, 255, 0.2);
}

.tool-footer-btn.donate-btn {
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff5e57;
}

.tool-footer-btn.donate-btn:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: #ff3b30;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.2);
}

.developer-capsule {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.2vw, 10px);
    background: rgba(255, 255, 255, 0.04);
    padding: clamp(3px, 0.8vh, 6px) clamp(10px, 1.6vw, 16px);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    margin-left: auto;
    /* Force to right end within its flex box */
}

.tool-footer .footer-left,
.tool-footer .footer-right,
.tool-footer .footer-center {
    flex: 1;
    display: flex;
    align-items: center;
}

.tool-footer .footer-center {
    justify-content: center;
}

.tool-footer .footer-right {
    justify-content: flex-end;
}

.tool-copyright {
    font-size: clamp(0.65rem, 1vw, 0.75rem) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
    letter-spacing: 0.03em;
}

.developer-capsule span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-capsule span em {
    font-style: italic;
    font-weight: 400;
    margin-right: 4px;
}

.developer-capsule strong {
    color: #fff;
    margin-left: 2px;
}

.dev-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--emerald-light);
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .tool-footer .footer-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 25px 30px !important;
        align-items: center !important;
    }

    .tool-footer .footer-left {
        flex: 0 1 auto !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        justify-content: center !important;
        order: 1 !important;
    }

    .tool-footer .footer-right {
        flex: 0 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        order: 2 !important;
    }

    .tool-footer .footer-center {
        flex: 1 0 100% !important;
        display: flex !important;
        justify-content: center !important;
        order: 3 !important;
        margin-top: 5px !important;
    }

    .developer-capsule {
        margin-left: 0 !important;
    }

    /* Mobile Layout Refinement */
    @media (max-width: 767px) {
        .tool-footer .footer-container {
            flex-direction: column !important;
            gap: 20px !important;
            align-items: center !important;
        }

        .tool-footer .footer-left {
            width: 100% !important;
            justify-content: center !important;
            order: 1 !important;
            gap: 10px !important;
        }

        .tool-footer .footer-right {
            width: 100% !important;
            justify-content: center !important;
            order: 2 !important;
        }

        .tool-footer .footer-center {
            width: 100% !important;
            justify-content: center !important;
            order: 3 !important;
            margin-top: 5px !important;
        }

        .tool-footer-btn {
            padding: 8px 15px !important;
            font-size: 0.75rem !important;
        }

        .developer-capsule {
            margin: 0 auto !important;
        }

        .donate-wrapper {
            position: static !important;
        }
    }

    /* Message Box Adaptive Fix */
    .donate-popup {
        width: min(320px, 90vw) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(10px) scale(0.95) !important;
        bottom: 120% !important;
        position: absolute !important;
    }

    .donate-wrapper:hover .donate-popup {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

/* Donate Hover Message Box */
.donate-wrapper {
    position: relative;
    display: inline-block;
}

.donate-popup {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    width: clamp(200px, 25vw, 240px);
    /* Reduced size by ~50% from 380px */
    background: rgba(13, 23, 19, 0.98) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 12px;
    padding: clamp(8px, 1.5vh, 12px);
    /* Further reduced padding */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(80, 200, 120, 0.05);
    z-index: 1000;
    pointer-events: none;
}

.donate-wrapper:hover .donate-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

/* Tooltip Arrow */
.donate-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: rgba(13, 23, 19, 0.98) transparent transparent transparent;
}

.popup-content h3 {
    color: #ff2d75 !important;
    font-size: clamp(0.7rem, 1.2vw, 0.82rem) !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
    line-height: 1.1 !important;
    font-family: var(--font-fonarto), sans-serif !important;
    text-align: left !important;
}

.popup-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0 !important;
}

.popup-content p {
    font-size: clamp(0.6rem, 0.8vw, 0.72rem) !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.footer-highlight {
    font-size: clamp(0.6rem, 0.9vw, 0.75rem) !important;
    line-height: 1.3 !important;
    color: #00ff88 !important;
    font-weight: 600 !important;
    font-style: italic !important;
    margin-top: 10px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left !important;
}

/* Animations for Footer Icons */
@keyframes heartBreath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 5px rgba(255, 45, 117, 0.6));
    }
}

@keyframes queryRotate {

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

    25% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.donate-btn i {
    display: inline-block !important;
    animation: heartBreath 2s infinite ease-in-out;
}

.query-btn i {
    display: inline-block !important;
    animation: queryRotate 3s infinite ease-in-out;
}

/* =============================================
   UX POLISH: Toast Notifications
   ============================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    min-width: 280px;
    max-width: 420px;
    pointer-events: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    animation: toastSlideIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
    background: linear-gradient(135deg, rgba(9, 121, 105, 0.95), rgba(80, 200, 120, 0.9));
    border-left: 4px solid #50C878;
}

.toast-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(148, 1, 40, 0.9));
    border-left: 4px solid #ff6b6b;
}

.toast-info {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    border-left: 4px solid #6C63FF;
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
}

/* =============================================
   UX POLISH: Skeleton Loading Screens
   ============================================= */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.skeleton-text.w-75 {
    width: 75%;
}

.skeleton-text.w-50 {
    width: 50%;
}

.skeleton-text.w-100 {
    width: 100%;
}

.skeleton-title {
    height: 22px;
    width: 60%;
    margin-bottom: 16px;
    border-radius: 4px;
}

.skeleton-card {
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
}

@keyframes skeletonShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* =============================================
   UX POLISH: Page Progress Bar
   ============================================= */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #097969, #50C878, #d63384);
    z-index: 999999999;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(80, 200, 120, 0.5);
}

.page-progress.done {
    width: 100% !important;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.4s ease 0.3s;
}

/* =============================================
   UX POLISH: Button Loading State
   ============================================= */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes btnSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* =============================================
   UX POLISH: Smooth entrance animations
   ============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}