body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    background: #121212;
    color: #E0E0E0;
    padding-top: 20px;
    transition: background-color 0.5s ease;
    line-height: 1.6;
    overflow-x: hidden;
}

#walletconnect-wrapper {
    z-index: 9999999 !important;
    position: fixed !important; 
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.section, .referral-section, .airdrop-section {
    padding: 1.5rem;
    max-width: 1000px;
    margin: 1rem auto;
    background: rgba(30, 30, 30, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.section.show, .referral-section.show, .airdrop-section.show {
    opacity: 1;
    transform: translateY(0);
}

.section:hover, .referral-section:hover, .airdrop-section:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.section h2, .referral-section h2, .airdrop-section h2 {
    color: #FCA311;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section ul, .section ol, .referral-section ul, .airdrop-section ul {
    line-height: 1.7;
    padding-left: 1.5rem;
    margin: 0.8rem 0;
}

.section li, .referral-section li, .airdrop-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 750px) {
    body {
        padding-top: 0;
    }
    .section, .referral-section, .airdrop-section {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 8px;
    }

    .section h2, .referral-section h2, .airdrop-section h2 {
        font-size: 1.3rem;
        padding-bottom: 0.3rem;
        margin-bottom: 0.8rem;
    }

    .section ul, .section ol, .referral-section ul, .airdrop-section ul {
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }

    .section li, .referral-section li, .airdrop-section li {
        margin-bottom: 0.4rem;
        white-space: normal;
    }

    .section li.contract-address {
        word-break: break-all;
        overflow-wrap: break-word;
        display: block;
        overflow: hidden;
    }
}

.hero-image-container {
    max-width: 1048px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    padding: 0;
    z-index: 1;
}

.hero-image-container.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    object-fit: contain;
}

.hero-image-container.show .hero-image {
    opacity: 1;
}

@media (max-width: 750px) {
    .hero-image-container {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 8px;
    }

    .hero-image {
        border-radius: 8px;
    }
}

.referral-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0; 
    margin: 0;
}

.referral-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: nowrap;
}

.referral-row input {
    flex: 1 1 60%;
    min-width: 0; 
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #E0E0E0;
    font-size: 0.95rem;
}

.referral-row input:read-only {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
}

.referral-row button {
    flex: 0 0 40%;
    padding: 0.6rem 1.5rem;
    background: #FCA311;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.referral-row button:hover {
    background: #e5940d;
}

.referral-note {
    font-size: 0.9rem;
    color: #B0B0B0;
    margin-top: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 750px) {
    .referral-row {
        flex-direction: column;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .referral-row input, .referral-row button {
        width: 100%; 
        flex-basis: auto; 
        min-width: unset;
        font-size: 0.9rem;
        padding: 0.7rem;
        box-sizing: border-box;
    }

    .referral-note {
        font-size: 0.85rem;
    }
}

.airdrop-form-container {
    padding: 0; 
    margin: 0;
}
.airdrop-form-container .referral-row input {
    flex: 1 1 60%;
    min-width: 0; 
    padding: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #E0E0E0;
    font-size: 0.95rem;
}

.airdrop-form-container .referral-row button {
    flex: 0 0 40%;
    padding: 0.6rem 1.5rem;
    background: #FCA311;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.airdrop-form-container .referral-row button:hover {
    background: #e5940d;
}

#airdropDetails div {
    margin-bottom: 0.4rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#claimButton:hover:not(:disabled) {
    background: #45a049;
}

@media (max-width: 750px) {
    .airdrop-form-container .referral-row {
        flex-direction: column;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .airdrop-form-container .referral-row input, .airdrop-form-container .referral-row button {
        width: 100%; 
        flex-basis: auto; 
        min-width: unset;
        font-size: 0.9rem;
        padding: 0.7rem;
        box-sizing: border-box;
    }

    #airdropDetails div {
        font-size: 0.85rem;
    }
}

#pdf-viewer-container {
    width: 100%;
    max-width: 1000px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin: 1rem auto;
    z-index: 1;
}

#pdf-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#pdf-page-nav {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 18px;
    border-radius: 20px;
}

#prev-page, #next-page {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

#prev-page:hover, #next-page:hover {
    color: #FCA311;
}

#page-info {
    color: #FFFFFF;
    font-size: 0.95rem;
}

@media (max-width: 750px) {
    #pdf-viewer-container {
        display: none;
    }

    .mobile-notice {
        display: block !important;
        font-size: 0.85rem;
        text-align: center;
        margin-top: 0.5rem;
    }

    .mobile-notice a {
        color: #FCA311;
        text-decoration: underline;
    }
}

footer {
    background: #121212;
    color: #B0B0B0;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    margin: 1rem auto;
    z-index: 1;
}

.contact a {
    color: #FCA311;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: #FFFFFF;
}

@media (max-width: 750px) {
    footer {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .contact a {
        font-size: 0.85rem;
    }
}

.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.loading-spinner {
    border: 3px solid #333;
    border-top: 3px solid #FCA311;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#alertModal {
    z-index: 99999 !important;
}
.modal {
    display: none;
    position: fixed;
    z-index: 99998; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #1E1E1E;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #444;
    width: 80%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content button.modal-btn {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #fff;
    margin-top: 15px;
    background-color: #FCA311;
}
.modal-content button.modal-btn:hover {
    background-color: #e5940d;
}
.modal-content button.error-btn {
    background-color: #ff4d4f !important; 
}
.modal-content button.error-btn:hover {
    background-color: #e60000 !important;
}
#alertModal h3 {
    color: #FCA311; 
}