/* ===== API Credit Banner ===== */
.api-banner-wrapper {
    padding: 0.5rem 0 1.5rem 0;
    background: transparent;
}

.api-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
    animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    display: block !important;
    border-radius: 24px;
    background-size: 200% 200%;
    animation: slideDown 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), gradientShift 8s ease infinite;
    min-height: 140px;
}

.api-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.api-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.api-banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.api-banner-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    animation: pulse 2.5s ease-in-out infinite, rotate 10s linear infinite;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.api-banner-icon svg {
    stroke-width: 2.5;
}

.api-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.api-banner-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.95;
    line-height: 1;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.api-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0.25rem 0;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

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

.api-banner-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 650px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.api-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: white;
    color: #667eea;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    animation: fadeInScale 0.6s ease-out 0.5s both;
    position: relative;
    overflow: hidden;
}

.api-banner-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.api-banner-btn:hover::before {
    width: 300px;
    height: 300px;
}

.api-banner-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    background: #f8f9ff;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.api-banner-btn svg {
    transition: transform 0.3s ease;
}

.api-banner-btn:hover svg {
    transform: translateX(4px);
}


/* Telegram Support Button */
.telegram-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0088cc 0%, #00a0e9 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #00a0e9 0%, #0088cc 100%);
}

.telegram-support-btn svg {
    transition: transform 0.3s ease;
}

.telegram-support-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .api-banner-desc {
        font-size: 0.8rem;
        max-width: 400px;
    }
    
    .api-banner-title {
        font-size: 1.25rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .api-banner-wrapper {
        padding: 1rem 0;
    }
    
    .api-banner {
        padding: 1.25rem 1.5rem;
        border-radius: 16px;
    }
    
    .api-banner-content {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .api-banner-left {
        width: 100%;
        gap: 1rem;
    }
    
    .api-banner-right {
        width: 100%;
    }
    
    .api-banner-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .api-banner-title {
        font-size: 1.15rem;
    }
    
    .api-banner-desc {
        font-size: 0.8rem;
    }
    
    .api-banner-btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .api-banner-wrapper {
        padding: 0.75rem 0;
    }
    
    .api-banner {
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }
    
    .api-banner-left {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .api-banner-icon {
        width: 40px;
        height: 40px;
    }
    
    .api-banner-title {
        font-size: 1rem;
    }
    
    .api-banner-desc {
        display: none;
    }
    
    .api-banner-btn {
        width: 100%;
    }
}

/* Dark Theme Support */
.dark-theme .api-banner {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.dark-theme .telegram-support-btn {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.5);
}
