/* --- Z-SPACE: INVITATION GATEWAY --- */
#zspace-page.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Let margins handle vertical positioning */
    background-color: #000000 !important;
    background-image: url('../assets/grid-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 !important;
    min-height: 100vh;
    width: 100%;
    color: #ffffff;
    overflow-y: auto;
}

.zspace-invitation-overlay {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zspace-invitation-card {
    background: #000000;
    border: 5px solid #ffffff;
    border-radius: 50px;
    /* Fixed radius prevents "stretched" look on tall cards */
    width: 90%;
    max-width: 600px;
    padding: 40px 30px;
    box-sizing: border-box;
    text-align: center;
    /* EDITABLE MARGINS */
    margin-top: 100px;
    margin-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

.invitation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-bottom: 5px solid #ffffff;
    padding-bottom: 20px;
}

.invitation-logo {
    height: 80px;
    width: auto;
}

.invitation-header h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 2px;
}

.invitation-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.invitation-intro {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.invitation-details p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: bold;
    opacity: 0.8;
}

.invitation-cta {
    margin: 20px 0;
}

.download-btn {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    border: 5px solid #ffffff;
    padding: 20px 40px;
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #000000;
    color: #ffffff;
}

.invitation-memo {
    font-size: 0.75rem;
    font-weight: 900;
    opacity: 0.5;
    text-transform: uppercase;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .zspace-invitation-card {
        padding: 40px 20px;
        margin-top: 10px;
        /* Reduced for mobile but still large */
        margin-bottom: 10px;
    }

    .invitation-header h1 {
        font-size: 1.8rem;
    }
}