* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "YekanBakh";
    src: url("fonts/YekanBakhFaNum-VF.woff2") format("woff2"),
    url("fonts/YekanBakhFaNum-VF.woff") format("woff");
    font-weight: 100 900;
    font-display: swap;
}
body, * {
    font-family: "YekanBakh", sans-serif !important;
}
body {
    font-weight: 400;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    direction: rtl;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    margin: 0 auto;
}

.alert-container {
    position: relative;
    margin-bottom: 30px;
}

.alert {
    position: relative;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.alert::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.alert.show {
    transform: translateX(0);
    opacity: 1;
}

.alert.hide {
    transform: translateX(100%);
    opacity: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-left: 4px solid #10b981;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(16, 185, 129, 0.1);
}

.alert-success::after {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    top: 85%;
    left: 10%;
    animation: bubbleFloat 6s ease-in-out infinite;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
}

.alert-success::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 90%;
    left: 30%;
    animation: bubbleFloat 8s ease-in-out infinite 2s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
    z-index: 0;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-left: 4px solid #10b981;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(16, 185, 129, 0.1);
}

.alert-success::after {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    top: 85%;
    left: 10%;
    animation: bubbleFloat 6s ease-in-out infinite;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
}

.alert-success::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 90%;
    left: 30%;
    animation: bubbleFloat 8s ease-in-out infinite 2s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
    z-index: 0;
}

.alert-success .bubble-1 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    top: 80%;
    left: 5%;
    animation: bubbleFloat 7s ease-in-out infinite 1s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
    z-index: 0;
}

.alert-success .bubble-2 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 88%;
    left: 35%;
    animation: bubbleFloat 9s ease-in-out infinite 3s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
    z-index: 0;
}

.alert-success .bubble-3 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    top: 82%;
    left: 55%;
    animation: bubbleFloat 5s ease-in-out infinite 4s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(16, 185, 129, 0.2);
    z-index: 0;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    color: #fbbf24;
    border-left: 4px solid #fbbf24;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(251, 191, 36, 0.1);
}

.alert-warning::after {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 88%;
    left: 15%;
    animation: bubbleFloat 7s ease-in-out infinite;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(251, 191, 36, 0.2);
}

.alert-warning::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 6px;
    height: 6px;
    top: 92%;
    left: 40%;
    animation: bubbleFloat 9s ease-in-out infinite 1.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(251, 191, 36, 0.2);
    z-index: 0;
}

.alert-warning .bubble-1 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 8px;
    height: 8px;
    top: 85%;
    left: 5%;
    animation: bubbleFloat 6s ease-in-out infinite 2.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(251, 191, 36, 0.2);
    z-index: 0;
}

.alert-warning .bubble-2 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    top: 80%;
    left: 35%;
    animation: bubbleFloat 8s ease-in-out infinite 4s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(251, 191, 36, 0.2);
    z-index: 0;
}

.alert-warning .bubble-3 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    width: 7px;
    height: 7px;
    top: 90%;
    left: 55%;
    animation: bubbleFloat 10s ease-in-out infinite 5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(251, 191, 36, 0.2);
    z-index: 0;
}

.alert-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.05));
    color: #f87171;
    border-left: 4px solid #f87171;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(248, 113, 113, 0.1);
}

.alert-error::after {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    top: 82%;
    left: 20%;
    animation: bubbleFloat 5s ease-in-out infinite;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(248, 113, 113, 0.2);
}

.alert-error::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    width: 9px;
    height: 9px;
    top: 88%;
    left: 50%;
    animation: bubbleFloat 7s ease-in-out infinite 3s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(248, 113, 113, 0.2);
    z-index: 0;
}

.alert-error .bubble-1 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    width: 11px;
    height: 11px;
    top: 85%;
    left: 5%;
    animation: bubbleFloat 6s ease-in-out infinite 1.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(248, 113, 113, 0.2);
    z-index: 0;
}

.alert-error .bubble-2 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    width: 7px;
    height: 7px;
    top: 90%;
    left: 35%;
    animation: bubbleFloat 8s ease-in-out infinite 4.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(248, 113, 113, 0.2);
    z-index: 0;
}

.alert-error .bubble-3 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 50%;
    width: 13px;
    height: 13px;
    top: 78%;
    left: 55%;
    animation: bubbleFloat 9s ease-in-out infinite 6s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(248, 113, 113, 0.2);
    z-index: 0;
}

.alert-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    color: #60a5fa;
    border-left: 4px solid #60a5fa;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(96, 165, 250, 0.1);
}

.alert-info::after {
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    width: 11px;
    height: 11px;
    top: 87%;
    left: 25%;
    animation: bubbleFloat 8s ease-in-out infinite;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(96, 165, 250, 0.2);
}

.alert-info::before {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    width: 7px;
    height: 7px;
    top: 91%;
    left: 55%;
    animation: bubbleFloat 10s ease-in-out infinite 2.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(96, 165, 250, 0.2);
    z-index: 0;
}

.alert-info .bubble-1 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    width: 9px;
    height: 9px;
    top: 83%;
    left: 5%;
    animation: bubbleFloat 7s ease-in-out infinite 3.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(96, 165, 250, 0.2);
    z-index: 0;
}

.alert-info .bubble-2 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    width: 5px;
    height: 5px;
    top: 89%;
    left: 35%;
    animation: bubbleFloat 9s ease-in-out infinite 5.5s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(96, 165, 250, 0.2);
    z-index: 0;
}

.alert-info .bubble-3 {
    content: '';
    position: absolute;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    width: 15px;
    height: 15px;
    top: 79%;
    left: 55%;
    animation: bubbleFloat 11s ease-in-out infinite 7s;
    backdrop-filter: blur(1px);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.1),
        0 0 10px rgba(96, 165, 250, 0.2);
    z-index: 0;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

.alert-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2.5;
}

.alert-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.alert-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    animation: slideInUp 0.8s ease-out 0.2s both;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.alert-content p {
    font-size: 14px;
    opacity: 0.8;
    animation: slideInUp 0.8s ease-out 0.4s both;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.alert-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: slideInUp 0.8s ease-out 0.6s both;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3), 0 0 20px rgba(16, 185, 129, 0.1);
}

.btn-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.8), rgba(245, 158, 11, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3), 0 0 20px rgba(251, 191, 36, 0.1);
}

.btn-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.8), rgba(239, 68, 68, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.3), 0 0 20px rgba(248, 113, 113, 0.1);
}

.btn-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.8), rgba(59, 130, 246, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3), 0 0 20px rgba(96, 165, 250, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.8), rgba(100, 116, 139, 0.9));
    color: white;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.3), 0 0 20px rgba(148, 163, 184, 0.1);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-45px) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-60px) scale(1);
        opacity: 0.2;
    }
}

.alert.show .alert-icon {
    animation: bounce 0.6s ease-out;
}

.alert.show .alert-content h3 {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.alert.show .alert-content p {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.alert.show .alert-close {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    .alert {
        padding: 15px;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .alert-content h3 {
        font-size: 15px;
    }
    
    .alert-content p {
        font-size: 13px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .controls {
        gap: 8px;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        min-width: 100px;
    }
    
    .alert-success::after,
    .alert-warning::after,
    .alert-error::after,
    .alert-info::after {
        width: 8px;
        height: 8px;
    }
    
    .alert-success::before,
    .alert-warning::before,
    .alert-error::before,
    .alert-info::before {
        width: 6px;
        height: 6px;
    }
    
    .alert-success .bubble-1,
    .alert-warning .bubble-1,
    .alert-error .bubble-1,
    .alert-info .bubble-1 {
        width: 4px;
        height: 4px;
    }
    
    .alert-success .bubble-2,
    .alert-warning .bubble-2,
    .alert-error .bubble-2,
    .alert-info .bubble-2 {
        width: 6px;
        height: 6px;
    }
    
    .alert-success .bubble-3,
    .alert-warning .bubble-3,
    .alert-error .bubble-3,
    .alert-info .bubble-3 {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .alert {
        padding: 12px;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .alert-content h3 {
        font-size: 14px;
    }
    
    .alert-content p {
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .controls {
        gap: 6px;
        flex-direction: column;
    }
    
    .btn {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    
    .alert-success::after,
    .alert-warning::after,
    .alert-error::after,
    .alert-info::after {
        width: 6px;
        height: 6px;
    }
    
    .alert-success::before,
    .alert-warning::before,
    .alert-error::before,
    .alert-info::before {
        width: 4px;
        height: 4px;
    }
    
    .alert-success .bubble-1,
    .alert-warning .bubble-1,
    .alert-error .bubble-1,
    .alert-info .bubble-1 {
        width: 3px;
        height: 3px;
    }
    
    .alert-success .bubble-2,
    .alert-warning .bubble-2,
    .alert-error .bubble-2,
    .alert-info .bubble-2 {
        width: 4px;
        height: 4px;
    }
    
    .alert-success .bubble-3,
    .alert-warning .bubble-3,
    .alert-error .bubble-3,
    .alert-info .bubble-3 {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px;
    }
    
    .alert {
        padding: 10px;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .alert-content h3 {
        font-size: 13px;
    }
    
    .alert-content p {
        font-size: 11px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .controls {
        gap: 4px;
        flex-direction: column;
    }
    
    .btn {
        flex: none;
        min-width: auto;
        width: 100%;
    }
    
    .alert-success::after,
    .alert-warning::after,
    .alert-error::after,
    .alert-info::after {
        width: 4px;
        height: 4px;
    }
    
    .alert-success::before,
    .alert-warning::before,
    .alert-error::before,
    .alert-info::before {
        width: 3px;
        height: 3px;
    }
    
    .alert-success .bubble-1,
    .alert-warning .bubble-1,
    .alert-error .bubble-1,
    .alert-info .bubble-1 {
        width: 2px;
        height: 2px;
    }
    
    .alert-success .bubble-2,
    .alert-warning .bubble-2,
    .alert-error .bubble-2,
    .alert-info .bubble-2 {
        width: 3px;
        height: 3px;
    }
    
    .alert-success .bubble-3,
    .alert-warning .bubble-3,
    .alert-error .bubble-3,
    .alert-info .bubble-3 {
        width: 4px;
        height: 4px;
    }
}
