/* ============================================
   CRYPTO NEWSLETTER - FRONTEND STYLES
   ============================================ */

/* Main Section */
.crypto-newsletter-section {
    position: relative !important;
    width: 100% !important;
    padding: 25px 20px !important;
    background: linear-gradient(180deg, #0b0b0b, #050505) !important;
    border-top: 1px solid #1f1f1f !important;
    overflow: hidden !important;
    min-height: auto !important;
}

/* Container */
.crypto-newsletter-container {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 2;
}

/* Header */
.crypto-newsletter-section .crypto-newsletter-header {
    text-align: center !important;
    margin-bottom: 12px !important;
    animation: fadeInUp 0.8s ease-out !important;
}

.crypto-newsletter-section .crypto-newsletter-title {
    margin: 0 0 8px 0 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.5px !important;
}

.crypto-newsletter-section .crypto-newsletter-description {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #a1a1a1 !important;
}

/* Form */
.crypto-newsletter-form {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.form-group {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.crypto-newsletter-section .crypto-newsletter-input {
    height: 48px !important;
    width: 100% !important;
    max-width: 420px !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    color: #ffffff !important;
    background: #0f0f0f !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 12px !important;
    outline: none !important;
    flex: 1 !important;
    min-width: 280px !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.crypto-newsletter-input::placeholder {
    color: #666;
}

.crypto-newsletter-input:focus {
    border-color: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.1);
    background: #141414;
}

.crypto-newsletter-section .crypto-newsletter-button {
    position: relative !important;
    height: 48px !important;
    padding: 0 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    background: #facc15 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    overflow: hidden !important;
}

.crypto-newsletter-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.crypto-newsletter-button:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(250, 204, 21, 0.3);
}

.crypto-newsletter-button:hover::before {
    width: 300px;
    height: 300px;
}

.crypto-newsletter-button:active {
    transform: translateY(0);
}

.crypto-newsletter-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.button-text {
    display: inline-block;
    transition: opacity 0.3s;
}

.crypto-newsletter-button.loading .button-text {
    opacity: 0;
}

.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 6px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Message */
.form-message {
    margin-top: 0;
    padding: 0;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-message.show {
    margin-top: 10px;
    padding: 10px 20px;
    opacity: 1;
    max-height: 100px;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Note */
.crypto-newsletter-section .crypto-newsletter-note {
    margin: 8px 0 0 0 !important;
    text-align: center !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    animation: fadeInUp 0.8s ease-out 0.4s backwards !important;
}

/* ============================================
   BUBBLES ANIMATION
   ============================================ */

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, rgba(250, 204, 21, 0.4), rgba(250, 204, 21, 0.1));
    border-radius: 50%;
    opacity: 0.6;
    animation: rise 15s infinite ease-in;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.bubble:nth-child(1) {
    left: 10%;
    width: 60px;
    height: 60px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 30px;
    height: 30px;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    left: 30%;
    width: 50px;
    height: 50px;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    left: 40%;
    width: 35px;
    height: 35px;
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(5) {
    left: 50%;
    width: 45px;
    height: 45px;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    left: 60%;
    width: 55px;
    height: 55px;
    animation-duration: 17s;
    animation-delay: 5s;
}

.bubble:nth-child(7) {
    left: 70%;
    width: 40px;
    height: 40px;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    left: 80%;
    width: 50px;
    height: 50px;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(9) {
    left: 90%;
    width: 35px;
    height: 35px;
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(10) {
    left: 15%;
    width: 45px;
    height: 45px;
    animation-duration: 15s;
    animation-delay: 3s;
}

.bubble:nth-child(11) {
    left: 25%;
    width: 55px;
    height: 55px;
    animation-duration: 18s;
    animation-delay: 6s;
}

.bubble:nth-child(12) {
    left: 35%;
    width: 30px;
    height: 30px;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bubble:nth-child(13) {
    left: 45%;
    width: 40px;
    height: 40px;
    animation-duration: 14s;
    animation-delay: 2s;
}

.bubble:nth-child(14) {
    left: 55%;
    width: 50px;
    height: 50px;
    animation-duration: 16s;
    animation-delay: 4s;
}

.bubble:nth-child(15) {
    left: 65%;
    width: 35px;
    height: 35px;
    animation-duration: 13s;
    animation-delay: 1s;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110%;
        transform: translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .crypto-newsletter-section {
        padding: 50px 16px;
    }
    
    .crypto-newsletter-title {
        font-size: 24px;
    }
    
    .crypto-newsletter-description {
        font-size: 14px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .crypto-newsletter-input {
        max-width: 100%;
        min-width: 100%;
    }
    
    .crypto-newsletter-button {
        width: 100%;
    }
    
    .bubble {
        width: 30px;
        height: 30px;
    }
    
    .bubble:nth-child(1) {
        width: 40px;
        height: 40px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .crypto-newsletter-section {
        padding: 40px 12px;
    }
    
    .crypto-newsletter-header {
        margin-bottom: 24px;
    }
    
    .crypto-newsletter-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .crypto-newsletter-description {
        font-size: 13px;
    }
    
    .crypto-newsletter-input,
    .crypto-newsletter-button {
        height: 52px;
        font-size: 14px;
    }
    
    .crypto-newsletter-button {
        padding: 0 24px;
    }
    
    .crypto-newsletter-note {
        font-size: 12px;
    }
    
    .bubble {
        width: 25px;
        height: 25px;
    }
    
    .bubble:nth-child(1) {
        width: 35px;
        height: 35px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .crypto-newsletter-section {
        padding: 70px 20px;
    }
    
    .crypto-newsletter-title {
        font-size: 32px;
    }
    
    .crypto-newsletter-description {
        font-size: 16px;
    }
}
