.guest-card-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
    overflow: auto;
    padding: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.guest-card-modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    padding-top: calc(1rem + var(--safe-area-inset-top, 0px));
    padding-bottom: calc(1rem + var(--safe-area-inset-bottom, 0px));
    width: 90%;
    max-height: calc(100vh - 4rem);
    overflow: visible;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    margin: 2rem auto;
}

@media (min-width: 1024px) {
    .guest-card-modal-content {
        width: auto;
        max-width: 50vw;
        min-width: 400px;
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .guest-card-modal-content {
        width: 90%;
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .guest-card-modal {
        padding: 0.5rem;
        align-items: center;
    }
    
    .guest-card-modal-content {
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        padding: 0.75rem;
        margin: auto;
        max-height: calc(100vh - 1rem);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #8b0000;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10002;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(160, 0, 0, 1);
    border-color: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.guest-card-modal .guest-card {
   
    
}

.guest-card-modal .guest-card-avatar {
    
   
}

.room-avatar {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-avatar:hover {
    transform: scale(1.15);
    
}

.room-avatar:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .guest-card-modal .guest-card {
        flex-direction: column;
        align-items: center;
    }
    
    .guest-card-modal .guest-card-avatar {
        width: 120px;
    }
    
    .guest-card-modal .guest-card-avatar img {
        max-height: 160px;
        object-fit: contain;
    }
    
    .guest-card-modal .guest-card-content {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .guest-card-modal-content {
        padding: 0.5rem;
        margin: 0.5rem auto;
    }
    
    .guest-card-modal .guest-card-avatar {
        width: 100px;
    }
    
    .guest-card-modal .guest-card-avatar img {
        max-height: 130px;
    }
}
