/* Mobile-First Welcome Card */

.welcome-card {
    /* Mobile: Full screen with safe area */
    width: 100% !important;
    max-width: 100vw !important;
    height: 100dvh !important; /* Dynamic viewport height */
    min-height: 100svh !important; /* Small viewport height */
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Mobile content area flex */
@media (max-width: 767px) {
    .welcome-card {
        /* Fallback for older browsers */
        height: 100vh !important;
        height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
        justify-content: space-between !important;
    }
    
    .welcome-card > div:nth-child(2) {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 15px 30px !important;
        min-height: 0 !important;
    }
    
    /* Force ulos visibility */
    .welcome-card > div:first-child {
        flex-shrink: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        z-index: 10 !important;
    }
    
    .welcome-card > div:last-child {
        flex-shrink: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        z-index: 10 !important;
        margin-top: auto !important;
    }
}

/* Desktop: Mobile-like size centered */
@media (min-width: 768px) {
    .welcome-card {
        width: 375px !important;
        max-width: 375px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        border-radius: 25px !important;
        margin: 0 auto;
        display: block !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    .welcome-card > div:nth-child(2) {
        flex: none !important;
        display: block !important;
        padding: 40px 30px 30px 30px !important;
        overflow-y: visible !important;
    }
}

/* Large Desktop: Keep mobile size */
@media (min-width: 1200px) {
    .welcome-card {
        width: 390px !important;
        max-width: 390px !important;
    }
}

/* Ulos responsive sizing */
@media (max-width: 767px) {
    .welcome-card .ulos-border {
        border-radius: 0 !important;
    }
}

@media (min-width: 768px) {
    .welcome-card .ulos-border {
        border-radius: 25px 25px 0 0 !important;
    }
    
    .welcome-card .ulos-border:last-child {
        border-radius: 0 0 25px 25px !important;
    }
}