#ios-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
    backdrop-filter: blur(3px);
}

#ios-modal .modal-content {
    background: #FFF9FC;
    padding: 1.25rem 1.5rem;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    text-align: center;
    pointer-events: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15),
                0 -8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

#ios-modal .modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.12) 20%,
        rgba(0, 0, 0, 0.12) 80%,
        rgba(0, 0, 0, 0.05)
    );
}

#ios-modal .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

#ios-modal .icon-wrapper {
    background: #FFF0F7;
    padding: 0.2rem;
    margin-right: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: scale(0.95);
    opacity: 0;
    animation: iconAppear 0.5s ease forwards 0.2s;
}

#ios-modal .icon-wrapper img {
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    width: 32px;
    height: 32px;
    border-radius: 12px;
}

#ios-modal .text-container {
    text-align: left;
    transform: translateX(-10px);
    opacity: 0;
    animation: textAppear 0.5s ease forwards 0.3s;
}

#ios-modal .title-button {
    background: #FFE5F0;
    border: 1px solid #FFB6D0;
    border-radius: 12px;
    padding: 0.25em 1.0em;
    cursor: pointer;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 500;
    color: #FF6B9C;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 107, 156, 0.1);
}

#ios-modal .title-button:hover {
    background: #FFD6E7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 156, 0.15);
}

#ios-modal .title-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(255, 107, 156, 0.1);
}

#ios-modal .text-container .subtitle {
    text-align: center;
    font-size: 0.6em;
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

#ios-modal .message-container {
    background: #FFF0F7;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem 0;
    transform: translateY(10px);
    opacity: 0;
    animation: contentAppear 0.5s ease forwards 0.4s;
    border: 1px solid rgba(255, 107, 156, 0.1);
}

#ios-modal .message-container p {
    margin: 0;
    font-size: 0.8rem;
    color: #585858;
    line-height: 1.3;
}

#ios-modal .button-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    transform: translateY(10px);
    opacity: 0;
    animation: buttonsAppear 0.5s ease forwards 0.5s;
}

#ios-modal .button {
    flex: 1;
    max-width: 200px;
    padding: 0.75rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

#ios-modal .button-secondary {
    background: #F0F7FF;
    color: #4A90E2;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
}

#ios-modal .button-secondary:hover {
    background: #E5F0FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.15);
}

#ios-modal .button-primary {
    background: #FFE5F0;
    color: #FF6B9C;
    box-shadow: 0 2px 4px rgba(255, 107, 156, 0.1);
    font-weight: 600;
}

#ios-modal .button-primary:hover {
    background: #FFD6E7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 107, 156, 0.15);
}

@keyframes iconAppear {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes textAppear {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes contentAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes buttonsAppear {
    to {
        transform: translateY(0);
        opacity: 1;
    }
} 