/* ============================================================
   RENEWAL HERO UI - FINAL VERSION
   Scoped to .cm-container to prevent theme conflicts
   ============================================================ */

.cm-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 1. TOP SECTION: GLASSY PURPLE BANNER */
.cm-container .cm-renewal-banner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 60px 24px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(37, 117, 252, 0.4);
}

/* --- NUCLEAR FIX FOR TITLE COLOR --- */
.cm-container .cm-renewal-banner h1,
.cm-container .cm-renewal-banner h2,
.cm-container .cm-renewal-title,
div.cm-renewal-banner h1,
div.cm-renewal-banner h2 {
    color: #ffffff !important;
    fill: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    margin: 0 0 40px 0 !important;
    font-weight: 800 !important;
    font-size: 48px !important;
    line-height: 1.1 !important;
    border: none !important;
}

/* 2. BADGES ROW */
.cm-container .cm-renewal-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* 3. BADGE DESIGN */
.cm-container .cm-renewal-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff !important;
    
    /* Glass Base */
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Animation */
    animation: cmBreathingGlow 3s ease-in-out infinite alternate;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.cm-container .cm-renewal-badge i,
.cm-container .cm-renewal-badge .cm-ico {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
}

/* Animation Keyframes */
@keyframes cmBreathingGlow {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

/* Stagger animation */
.cm-container .cm-renewal-badge:nth-child(1) { animation-delay: 0s; }
.cm-container .cm-renewal-badge:nth-child(2) { animation-delay: 1.2s; }
.cm-container .cm-renewal-badge:nth-child(3) { animation-delay: 2.4s; }

/* 4. SERVICE TABS - ALL STAY BLUE WITH GLOW EFFECT */
.cm-container .cm-service-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 20px 0 30px;
}

.cm-container .cm-tab {
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: #fff !important;
    
    /* ALL TABS: Solid blue gradient (always visible) */
    background: linear-gradient(135deg, #667eea, #4f5bd5) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    
    box-shadow: 0 6px 16px rgba(90, 70, 255, 0.3);
    transition: all 0.25s ease;
    
    /* Add subtle glow animation to all tabs */
    animation: tabGlowSubtle 3s ease-in-out infinite alternate;
}

/* Subtle glow animation for all tabs */
@keyframes tabGlowSubtle {
    0% {
        box-shadow: 0 6px 16px rgba(90, 70, 255, 0.3);
    }
    100% {
        box-shadow: 0 8px 20px rgba(90, 70, 255, 0.45);
    }
}

/* Stagger the glow animation */
.cm-container .cm-tab:nth-child(1) { animation-delay: 0s; }
.cm-container .cm-tab:nth-child(2) { animation-delay: 1s; }
.cm-container .cm-tab:nth-child(3) { animation-delay: 2s; }

/* HOVER: Brighter glow */
.cm-container .cm-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 70, 255, 0.6) !important;
    background: linear-gradient(135deg, #7c3aed, #5a67d8) !important;
    animation: none; /* Stop base animation on hover */
}

/* ACTIVE: Extra bright with stronger border */
.cm-container .cm-tab.active {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    box-shadow: 0 12px 35px rgba(120, 90, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05);
    animation: none; /* Stop base animation when active */
}

/* 5. INPUT SECTION */
.cm-container .cm-checker {
    background: #fff;
    margin: 0 auto;
    max-width: 1100px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cm-container .cm-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #edf2f7;
}

.cm-container input#cm_serial {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 18px 30px !important;
    font-size: 17px !important;
    color: #1a202c !important;
    box-shadow: none !important;
    margin: 0 !important;
    height: auto !important;
}

.cm-container input#cm_serial::placeholder {
    color: #a0aec0;
}

.cm-container button#cm_check {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 18px 48px !important;
    border-radius: 100px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.3);
    transition: all 0.2s ease;
    margin: 0 !important;
    white-space: nowrap;
}

.cm-container button#cm_check:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.45);
    filter: brightness(1.1);
}

/* 6. RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .cm-container .cm-renewal-banner { 
        padding: 40px 20px; 
        border-radius: 16px;
    }
    
    .cm-container .cm-renewal-banner h1,
    .cm-container .cm-renewal-title,
    div.cm-renewal-banner h1 { 
        font-size: 32px !important; 
        margin-bottom: 30px !important;
    }
    
    .cm-container .cm-renewal-badges { 
        flex-direction: column; 
        align-items: center; 
        gap: 15px;
    }
    
    .cm-container .cm-renewal-badge { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
    }
    
    .cm-container .cm-service-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cm-container .cm-input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 12px;
    }
    
    .cm-container input#cm_serial {
        width: 100%;
        text-align: center;
        border-radius: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .cm-container button#cm_check {
        width: 100%;
        border-radius: 16px !important;
    }
}