/**************************************************************************************************/
/* */
/* SYSTEM ARCHITECTURAL BLUEPRINT V2.5                                                           */
/* */
/* +---------------------------------------+                                                       */
/* |             CORE & LAYOUT             |                                                       */
/* +---------------------------------------+                                                       */
/* | (Unchanged)                                                                        */
/* v                                                                            */
/* +---------------------------------------+   +---------------------------------------+          */
/* |           REUSABLE COMPONENTS           |   |       INTERACTIVE BACKGROUND          |          */
/* +---------------------------------------+   +---------------------------------------+          */
/* | (Unchanged)                             |   | (Unchanged)                             |          */
/* v                                                                            */
/* +------------------+--------------------+   +---------------------+-------------------------+   */
/* |           PROFILE SECTION             |   |                  SUPPORT SECTION                |   */
/* +---------------------------------------+   +-------------------------------------------------+   */
/* | (Unchanged)                                                                  */
/* v                                                                            */
/* +------------------------------------------------------------------------------------------+  */
/* |                                        MODAL SYSTEM                                      |  */
/* | (MODIFIED: Complete visual overhaul to a premium, 3D glassmorphic design)                |  */
/* +------------------------------------------------------------------------------------------+  */
/* |                                                                            */
/* v                                                                            */
/* +------------------------------------------------------------------------------------------+  */
/* |                               NEW: NOTIFICATION TOAST SYSTEM                             |  */
/* | (NEW: Styles and animations for the custom 'Copied!' notification)                       |  */
/* +------------------------------------------------------------------------------------------+  */
/* */
/**************************************************************************************************/


/* ========================================================================== */
/* |                        CORE & LAYOUT RESET                             | */
/* ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
}

body.modal-open {
    overflow: hidden;
}

#interactive-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
}

.content-container {
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}


/* ========================================================================== */
/* |                     REUSABLE GLASS COMPONENT                           | */
/* ========================================================================== */

.glass-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(25px) saturate(150%);
    border-radius: 25px;
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.2),
        inset 0 0 1.5px 1px rgba(255, 255, 255, 0.9);
    border-top: 1.5px solid rgba(255, 255, 255, 0.6);
    border-left: 1.5px solid rgba(255, 255, 255, 0.6);
    border-right: 1.5px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 65%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}


/* ========================================================================== */
/* |                       PROFILE CARD SECTION                             | */
/* ========================================================================== */

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    margin-bottom: 1.5rem;
    object-fit: cover;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-name {
    color: #FFD700;
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.5em;
    line-height: 1.2;
}

.name-part {
    white-space: nowrap;
}

.name-part>span {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile-description {
    color: #444;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.8;
    transform: translateZ(30px);
}

.profile-description>span {
    display: inline-block;
    transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon {
    width: 40px;
    height: 40px;
    fill: #333;
    transition: fill 0.3s ease, filter 0.3s ease;
}


/* ========================================================================== */
/* |                       SUPPORT CARD SECTION                             | */
/* ========================================================================== */

.support-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 1100px;
    gap: 1.5rem;
}

.support-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 700;
    color: #333;
    text-align: center;
}

.support-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 400;
    color: #555;
    text-align: center;
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

.support-content {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

.supporter-group {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.supporter-heading {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #444;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
}

.supporter-description {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    margin-top: -1rem;
}

.section-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
    align-self: stretch;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
}

.payment-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    aspect-ratio: 1 / 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.payment-icon {
    width: 40%;
    max-width: 50px;
    height: auto;
    object-fit: contain;
}

.payment-method-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.preferred-ribbon {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    z-index: 2;
}

.preferred-ribbon span {
    position: absolute;
    display: block;
    width: 100px;
    padding: 5px 0;
    background-color: #FFD700;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-align: center;
    right: -25px;
    top: 15px;
    transform: rotate(45deg);
}


/* ========================================================================== */
/* |                  PREMIUM MODAL SYSTEM (REDESIGNED)                     | */
/* ========================================================================== */

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    /* MODIFICATION: The modal is now a premium glass card, inheriting the theme of the main page. */
    background: linear-gradient(135deg, rgba(35, 35, 35, 0.25), rgba(35, 35, 35, 0.1));
    /* A darker glass for a more premium, focused look. */
    backdrop-filter: blur(40px) saturate(180%);
    /* A heavier blur to obscure the background more effectively. */
    border-radius: 20px;
    /* Consistent border radius. */
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    /* Brighter top border for a 3D lighting effect. */
    border-left: 1.5px solid rgba(255, 255, 255, 0.4);
    /* Brighter left border. */
    border-right: 1.5px solid rgba(255, 255, 255, 0.2);
    /* Dimmer right border. */
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
    /* Dimmer bottom border. */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), inset 0 0 1px 1px rgba(255, 255, 255, 0.6);
    /* A more pronounced shadow for depth and a sharper inner bevel. */

    position: fixed;
    top: 50%;
    left: 50%;
    /* A subtle transform to lift the card in 3D space, enhancing the premium feel. */
    transform: translate(-50%, -50%) scale(0.95) translateZ(5px);
    z-index: 1000;
    padding: 2.5rem;
    /* Increased padding for more internal white space. */
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) translateZ(5px);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.2);
    /* Slightly darker for better contrast on the new glass. */
    border: none;
    border-radius: 50%;
    width: 35px;
    /* Slightly larger for easier clicking. */
    height: 35px;
    color: #fff;
    /* Reverted to white for visibility. */
    font-size: 1.8rem;
    font-weight: 300;
    /* A thinner 'X' for a more elegant look. */
    line-height: 33px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-title {
    text-align: center;
    font-size: 2rem;
    /* Larger title font size. */
    font-weight: 700;
    /* Bolder title. */
    color: #FFD700;
    /* Gold color to match the site's accent theme. */
    letter-spacing: 1px;
    /* More spacing for a premium feel. */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* A stronger shadow for readability and depth. */
    margin-bottom: 2rem;
    /* More space below the title. */
}

.payment-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    /* Increased gap between detail items. */
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    /* Darker, transparent background for detail rows. */
    padding: 1rem 1.5rem;
    /* More padding within each row. */
    border-radius: 12px;
    /* Softer corners. */
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border for definition. */
}

.detail-label {
    font-weight: 400;
    /* Lighter font weight for hierarchy. */
    color: rgba(255, 255, 255, 0.75);
    /* Off-white for the label. */
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-value {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    /* A more modern monospace font if available. */
    color: #ffffff;
    /* Pure white for the value for maximum contrast. */
    word-break: break-all;
    text-align: right;
    font-weight: 500;
    flex-grow: 1;
    /* This ensures the value takes up available space, aligning all copy buttons to the right. */
}

.copy-btn {
    background: #FFD700;
    color: #000;
    /* Black text for higher contrast on gold. */
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    /* Increased padding. */
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    /* Prevents the button from shrinking. */
}

.qr-code {
    display: block;
    margin: 1.5rem auto 0;
    width: 60%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #FFD700;
    /* Gold border to match the theme. */
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
    /* Gold shadow. */
}

/* ========================================================================== */
/* |              NEW: NOTIFICATION TOAST SYSTEM                            | */
/* ========================================================================== */

.toast {
    /* Base styling for the notification, using the glassmorphic theme. */
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 215, 0, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: #000;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;

    /* Positioning and Animation setup */
    position: fixed;
    z-index: 2000;
    /* Ensures it appears above everything. */
    bottom: 30px;
    left: 50%;
    opacity: 0;
    /* Starts invisible. */
    pointer-events: none;
    /* Starts non-interactive. */
    transform: translate(-50%, 100px);
    /* Starts below the screen. */
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    /* A smooth, energetic transition for its appearance. */
}

.toast.show {
    opacity: 1;
    /* Becomes visible. */
    pointer-events: auto;
    /* Becomes interactive. */
    transform: translate(-50%, 0);
    /* Slides up into its final position. */
}

/* ========================================================================== */
/* |                HOVER EFFECTS (POINTER DEVICES ONLY)                    | */
/* ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .content-container>.glass-card:hover {
        transform: translateY(-20px) scale(1.03);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
            inset 0 0 1.5px 1px rgba(255, 255, 255, 1);
    }

    .content-container>.glass-card:hover::before {
        left: 150%;
    }

    .content-container>.glass-card:hover::after {
        opacity: 1;
    }

    .profile-picture:hover {
        transform: scale(1.1) translateZ(80px) rotateZ(8deg);
        box-shadow: 0 0 50px rgba(255, 215, 0, 1);
    }

    .profile-name:hover .name-part>span {
        transform: translateY(-10px) scale(1.1) translateZ(50px);
    }

    .profile-description>span:hover {
        transform: translateY(-5px) scale(1.05);
        color: #FFD700;
    }

    .social-links a:hover {
        transform: translateY(-10px) scale(1.25) translateZ(60px);
    }

    .social-links a:hover .social-icon {
        fill: #FFD700;
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
    }

    .payment-method-card:hover {
        transform: translateY(-10px) scale(1.08);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .close-button:hover {
        background: rgba(255, 0, 0, 0.5);
        transform: rotate(90deg) scale(1.1);
    }

    .copy-btn:hover {
        background-color: #f0c400;
        transform: scale(1.05);
    }
}


/* ========================================================================== */
/* |                   RESPONSIVENESS MEDIA QUERIES                         | */
/* ========================================================================== */

@media (max-width: 1023px) {
    .support-content {
        flex-direction: column;
        align-items: center;
    }

    .section-divider {
        display: none;
    }

    .supporter-group {
        width: 100%;
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .profile-card {
        max-width: 700px;
        padding: 3rem;
        border-radius: 30px;
    }

    .profile-picture {
        width: 180px;
        height: 180px;
    }

    .profile-name {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

    .profile-description {
        font-size: clamp(1.1rem, 3vw, 1.2rem);
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }

    .social-links {
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .profile-card {
        max-width: 800px;
        padding: 3.5rem;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
    }

    .profile-name {
        font-size: clamp(3rem, 10vw, 3.5rem);
    }

    .profile-description {
        font-size: 1.25rem;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-links {
        gap: 2.5rem;
    }
}