/**
 * ALLSAFE Arena - 11.11 Mega Sale (FLAT 50% OFF) Notification Modal & Expert Community Banner Styles
 * Rebuilt completely according to 11.11 Sale: FLAT 50% OFF on ALL International Trainings & Courses
 */

/* ==========================================================================
   1. 11.11 MEGA SALE NOTIFICATION POPUP (LIGHT THEME & MEDIUM SIZE - $1M SAAS POLISH)
   ========================================================================== */

/* Frosted modern backdrop overlay */
.sale-1111-overlay,
.winter-1111-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.sale-1111-overlay.active,
.winter-1111-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Viewport Wrapper */
.sale-1111-modal-wrapper,
.winter-1111-modal-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    overflow-y: auto;
}

.sale-1111-modal-wrapper.active,
.winter-1111-modal-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Medium-Sized Light Theme Card */
.sale-1111-card,
.winter-1111-card {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: auto;
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 1.85rem 1.75rem 1.5rem !important;
    text-align: center;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 
        0 25px 50px -12px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.sale-1111-modal-wrapper.active .sale-1111-card,
.winter-1111-modal-wrapper.active .winter-1111-card,
.sale-1111-card.open-anim {
    transform: scale(1) translateY(0);
}

/* Minimalist Top Gradient Accent Stripe */
.sale-1111-card::before,
.winter-1111-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #10b981 100%);
}

.sale-1111-card::after,
.winter-1111-card::after {
    display: none !important;
}

.sale-1111-content,
.winter-1111-content {
    position: relative;
    z-index: 1;
}

/* Floating Sleek Close Button */
.sale-1111-close-btn,
.winter-1111-close-btn {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.sale-1111-close-btn:hover,
.winter-1111-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.06);
}

/* 11.11 Eyebrow Badge */
.sale-1111-badge,
.winter-1111-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1d4ed8 !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.08);
}

.sale-1111-badge i,
.winter-1111-badge i {
    color: #ef4444;
}

/* Headline: 50% OFF (Medium, Crisp, High-Contrast) */
.sale-1111-main-discount,
.winter-1111-discount {
    font-size: 1.85rem !important;
    font-weight: 900 !important;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0.15rem 0 0.35rem 0 !important;
    color: #0f172a !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #0f172a !important;
    filter: none !important;
    text-transform: none;
}

/* Scope Subtitle */
.sale-1111-offer-scope,
.winter-1111-offer-sub {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
    display: block;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

/* Clean Light Timer Strip */
.sale-1111-timer-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    margin: 0.2rem auto 0.85rem;
    max-width: 320px;
}

.sale-timer-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569 !important;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sale-timer-label i {
    color: #d97706 !important;
}

.sale-timer-digits {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
}

.sale-timer-unit {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 6px;
    padding: 0.15rem 0.4rem;
    min-width: 28px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a !important;
    text-shadow: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: inline-block;
    text-align: center;
}

.sale-timer-colon {
    font-weight: 800;
    color: #94a3b8 !important;
    font-size: 0.85rem;
}

/* Descriptive paragraph */
.sale-1111-desc,
.winter-1111-desc {
    font-size: 0.84rem !important;
    line-height: 1.55;
    color: #475569 !important;
    margin: 0 auto 0.85rem;
    max-width: 390px;
}

/* Value Checklist (2x2 Clean Slate Grid) */
.sale-1111-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.6rem;
    text-align: left;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1.1rem;
}

.sale-perk-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: #1e293b !important;
    font-weight: 600;
}

.sale-perk-item i {
    color: #059669 !important;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Action Buttons Container */
.sale-1111-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

/* Primary High-Impact CTA Button */
.sale-1111-cta-btn,
.winter-1111-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.78rem 1.25rem;
    background: #25d366 !important;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-radius: 10px;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.sale-1111-cta-btn:hover,
.winter-1111-cta-btn:hover {
    background: #20ba5a !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

/* Secondary Button to View Fee Page */
.sale-1111-secondary-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.65rem 1rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sale-1111-secondary-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #000000;
}

/* Secondary footnote */
.sale-1111-secondary-info,
.winter-1111-secondary-info {
    font-size: 0.68rem;
    color: #94a3b8 !important;
    margin-top: 0.65rem;
    letter-spacing: 0.2px;
}

/* Mobile responsive adjustments */
@media (max-width: 520px) {
    .sale-1111-card,
    .winter-1111-card {
        padding: 1.6rem 1.15rem 1.3rem !important;
        border-radius: 16px !important;
    }

    .sale-1111-main-discount,
    .winter-1111-discount {
        font-size: 1.6rem !important;
    }

    .sale-1111-perks {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .sale-1111-cta-btn,
    .winter-1111-cta-btn {
        padding: 0.75rem 1rem;
        font-size: 0.84rem;
    }
}


/* ==========================================================================
   2. ANIMATED EXPERT COMMUNITY BANNER SECTION (Theme Matched)
   ========================================================================== */

.expert-community-section {
    position: relative;
    padding: 5rem 0;
    background: radial-gradient(circle at 50% 30%, #081735 0%, #040915 100%);
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

#communityNetworkCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.expert-community-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.expert-community-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: 10%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.expert-community-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.8rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.expert-community-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 25px;
    margin-bottom: 1.4rem;
}

.expert-community-badge .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: communityDotPulse 1.8s infinite;
}

@keyframes communityDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.4; }
}

.expert-community-headline {
    font-size: 2.45rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 1.3rem;
    text-transform: uppercase;
}

.expert-word-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 40%, #38bdf8 75%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 3px 10px rgba(56, 189, 248, 0.35));
}

.community-word-highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 3px 12px rgba(96, 165, 250, 0.35));
}

.rotating-keywords-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 1.5rem;
    padding: 6px 20px;
    border-radius: 30px;
    background: rgba(15, 30, 60, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.22);
    backdrop-filter: blur(8px);
}

.rotating-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rotating-keyword-box {
    display: inline-block;
    min-width: 130px;
    height: 28px;
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

.rotating-keyword-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.rotating-keyword-item.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-keyword-item.exiting {
    opacity: 0;
    transform: translateY(-16px);
}

.expert-community-message {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 780px;
    margin: 0 auto 2.4rem;
}

.expert-community-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.expert-community-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.95rem 2.4rem;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.expert-community-cta:hover,
.expert-community-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.55);
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #6366f1 100%);
    color: #ffffff !important;
    outline: none;
}

.expert-community-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.community-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.community-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.community-stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.community-stat-label {
    font-size: 0.76rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .winter-1111-card,
    .winter-1111-discount,
    .pulse-dot,
    .rotating-keyword-item {
        animation: none !important;
        transition: none !important;
    }
    .winter-1111-flake {
        display: none !important;
    }
}
