/* ==========================================================================
   MYCODEBLOCK NEWSLETTER TEMPLATE - PURE UNBOXED LUXURY CANVAS
   ========================================================================== */

html, body {
    overflow-x: hidden !important;
}

.nl-page__container,
.nl-page__container * {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box !important;
}

.nl-page__container { 
    width: 100% !important; 
    max-width: 1000px !important;
    margin: 0 auto !important;
    color: #f8f9fa !important; 
    background: transparent !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    position: relative !important;
}

/* 100% UNBOXED (ZERO BACKGROUND, ZERO BORDER) */
.nl-page__form-view { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nl-page__header { 
    text-align: center !important; 
    margin-bottom: 36px !important; 
}

.nl-page__header-icon { 
    width: 60px !important; 
    height: 60px !important; 
    min-width: 60px !important;
    min-height: 60px !important;
    background-color: #27272a !important; 
    color: #818cf8 !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    margin: 0 auto 18px auto !important; 
}

.nl-page__header-icon svg { 
    width: 30px !important; 
    height: 30px !important; 
}

.nl-page__header h2 { 
    font-size: 32px !important; 
    font-weight: 800 !important; 
    margin: 0 0 10px 0 !important; 
    color: #ffffff !important; 
    letter-spacing: -0.5px !important; 
    line-height: 1.25 !important;
}

.nl-page__header p { 
    font-size: 15.5px !important; 
    color: #94a3b8 !important; 
    margin: 0 auto !important; 
    max-width: 600px !important; 
    line-height: 1.6 !important; 
}

.nl-page__layout { 
    display: grid !important; 
    grid-template-columns: 1fr 1.25fr !important; 
    gap: 48px !important; 
    align-items: start !important; 
    width: 100% !important;
}

@media (max-width: 900px) { 
    .nl-page__layout { 
        grid-template-columns: 1fr !important; 
        gap: 36px !important; 
    } 
}

/* --- Benefits Column --- */
.nl-page__benefits-column h3 { 
    font-size: 18px !important; 
    font-weight: 700 !important; 
    margin: 0 0 20px 0 !important; 
    color: #f8f9fa !important; 
}

.nl-page__benefits-list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 15px !important; 
}

.nl-page__benefits-list li { 
    padding-left: 32px !important; 
    position: relative !important; 
    font-size: 14.5px !important; 
    color: #cbd5e1 !important; 
    line-height: 1.55 !important; 
}

.nl-page__benefits-list li::before { 
    content: '' !important; 
    position: absolute !important; 
    left: 0 !important; 
    top: 3px !important; 
    width: 20px !important; 
    height: 20px !important; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f9e44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3e") !important; 
    background-repeat: no-repeat !important; 
    background-size: contain !important; 
}

/* --- Form Column --- */
.nl-page__form-group { 
    margin-bottom: 26px !important; 
    width: 100% !important;
}

.nl-page__form-group label { 
    display: block !important; 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    margin-bottom: 12px !important; 
    color: #f8f9fa !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.6px !important; 
}

/* --- Alert Notice --- */
.nl-page__alert-banner { 
    background-color: rgba(240, 140, 0, 0.1) !important; 
    border: 1px solid rgba(240, 140, 0, 0.25) !important; 
    color: #fcd34d !important; 
    padding: 16px !important; 
    border-radius: 10px !important; 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 12px !important; 
    margin-bottom: 25px !important; 
    animation: nlSlideDown 0.3s ease-out !important; 
}

.nl-page__alert-icon { 
    flex-shrink: 0 !important; 
    margin-top: 2px !important; 
    color: #fbbf24 !important; 
}

.nl-page__alert-content h4 { 
    margin: 0 0 4px 0 !important; 
    font-size: 15px !important; 
    font-weight: 800 !important; 
    color: #fbbf24 !important; 
}

.nl-page__alert-content p { 
    margin: 0 !important; 
    font-size: 13px !important; 
    line-height: 1.5 !important; 
    color: #fcd34d !important; 
}

/* --- Input Group & States --- */
.nl-page__input-group { 
    display: flex !important; 
    align-items: stretch !important; 
    width: 100% !important; 
    position: relative !important; 
    border-radius: 8px !important; 
    background: transparent !important;
}

.nl-page__input-group.has-error { 
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4) !important; 
}

.nl-page__input-group.is-verified { 
    box-shadow: 0 0 0 2px rgba(47, 158, 68, 0.4) !important; 
}

.nl-page__form-control { 
    flex-grow: 1 !important; 
    padding: 14px 18px !important; 
    border: 1.5px solid #27272a !important; 
    border-radius: 8px 0 0 8px !important; 
    font-size: 15px !important; 
    background-color: #09090b !important; 
    color: #f8f9fa !important; 
    min-width: 0 !important; 
    z-index: 1 !important; 
    outline: none !important;
}

.nl-page__form-control:disabled { 
    background-color: #111114 !important; 
    border-color: #27272a !important; 
    color: #71717a !important; 
    cursor: not-allowed !important; 
}

.nl-page__form-control.is-invalid { 
    border-color: #ef4444 !important; 
    background-color: rgba(239, 68, 68, 0.08) !important; 
}

.nl-page__form-control:focus { 
    border-color: #818cf8 !important; 
    box-shadow: inset 0 0 0 1px #818cf8 !important; 
    z-index: 2 !important; 
}

.nl-page__input-btn { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 8px !important; 
    padding: 0 24px !important; 
    background-color: #6366f1 !important; 
    color: #fff !important; 
    border: 1.5px solid #6366f1 !important; 
    border-radius: 0 8px 8px 0 !important; 
    font-weight: 700 !important; 
    font-size: 14.5px !important; 
    cursor: pointer !important; 
    transition: background 0.2s !important; 
    white-space: nowrap !important; 
    flex-shrink: 0 !important; 
    margin-left: -1px !important; 
    outline: none !important;
}

.nl-page__input-btn:hover:not(:disabled) { 
    background-color: #818cf8 !important; 
    border-color: #818cf8 !important; 
}

.nl-page__input-btn.verified-btn { 
    background-color: #2f9e44 !important; 
    border-color: #2f9e44 !important; 
    cursor: default !important; 
}

.nl-inline-spin {
    animation: nlSpin 0.75s linear infinite !important;
    display: block !important;
}

@keyframes nlSpin {
    100% { transform: rotate(360deg); }
}

.nl-page__input-error-text { 
    display: flex !important; 
    align-items: center !important; 
    gap: 6px !important; 
    color: #ef4444 !important; 
    font-size: 13px !important; 
    font-weight: 600 !important; 
    margin-top: 8px !important; 
    animation: nlSlideDown 0.25s ease !important; 
}

.nl-page__switch-link-wrapper { 
    text-align: center !important; 
    margin-top: 15px !important; 
}

.nl-page__switch-link { 
    font-size: 13px !important; 
    color: #71717a !important; 
    text-decoration: underline !important; 
    cursor: pointer !important; 
    background: none !important; 
    border: none !important; 
    padding: 0 !important; 
    transition: color 0.3s !important; 
}

.nl-page__switch-link:hover { 
    color: #a1a1aa !important; 
}

/* --- Social Proof --- */
.nl-page__social-proof { 
    display: flex !important; 
    align-items: center !important; 
    gap: 15px !important; 
    margin-top: 15px !important; 
}

.nl-page__avatar-group { 
    display: flex !important; 
}

.nl-page__avatar-group img { 
    width: 34px !important; 
    height: 34px !important; 
    border-radius: 50% !important; 
    border: 2px solid #18181b !important; 
    margin-left: -12px !important; 
    object-fit: cover !important; 
}

.nl-page__avatar-group img:first-child { 
    margin-left: 0 !important; 
}

.nl-page__avatar-count { 
    width: 34px !important; 
    height: 34px !important; 
    border-radius: 50% !important; 
    border: 2px solid #18181b !important; 
    margin-left: -12px !important; 
    background: #27272a !important; 
    color: #f8f9fa !important; 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
}

.nl-page__social-proof-text { 
    font-size: 13.5px !important; 
    color: #a1a1aa !important; 
    margin: 0 !important; 
}

.nl-page__social-proof-text strong { 
    color: #f8f9fa !important; 
}

/* --- Checkbox & Toggle States --- */
.nl-page__checkbox-group { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 12px !important; 
    background-color: #09090b !important; 
    padding: 20px !important; 
    border-radius: 12px !important; 
    border: 1px solid #27272a !important; 
}

.nl-page__select-all-label { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding-bottom: 15px !important; 
    margin-bottom: 5px !important; 
    border-bottom: 1px solid #27272a !important; 
}

.nl-page__custom-checkbox-label { 
    display: flex !important; 
    align-items: flex-start !important; 
    gap: 15px !important; 
    padding: 10px !important; 
    border-radius: 8px !important; 
    cursor: pointer !important; 
    transition: background 0.2s !important; 
}

.nl-page__custom-checkbox-label:hover:not(.is-locked) { 
    background-color: #111114 !important; 
}

.nl-page__custom-checkbox-label input { 
    display: none !important; 
}

.nl-page__custom-checkbox-box { 
    width: 22px !important; 
    height: 22px !important; 
    border: 2px solid #3f3f46 !important; 
    border-radius: 6px !important; 
    flex-shrink: 0 !important; 
    margin-top: 3px !important; 
    position: relative !important; 
    transition: all 0.2s !important; 
    background: #18181b !important; 
}

.nl-page__custom-checkbox-label input:checked + .nl-page__custom-checkbox-box { 
    background-color: #6366f1 !important; 
    border-color: #6366f1 !important; 
}

.nl-page__custom-checkbox-label input:checked + .nl-page__custom-checkbox-box::after { 
    content: '' !important; 
    position: absolute !important; 
    left: 7px !important; 
    top: 3px !important; 
    width: 5px !important; 
    height: 10px !important; 
    border: solid white !important; 
    border-width: 0 2px 2px 0 !important; 
    transform: rotate(45deg) !important; 
}

.nl-page__checkbox-text { 
    display: flex !important; 
    flex-direction: column !important; 
}

.nl-page__checkbox-text strong { 
    font-size: 14.5px !important; 
    font-weight: 700 !important; 
    color: #f8f9fa !important; 
}

.nl-page__checkbox-text span { 
    font-size: 13px !important; 
    color: #a1a1aa !important; 
    margin-top: 2px !important; 
}

.nl-page__custom-checkbox-label.is-locked { 
    cursor: default !important; 
    opacity: 0.8 !important; 
}

/* Switch Slider */
.nl-page__toggle-switch { 
    position: relative !important; 
    width: 60px !important; 
    height: 32px !important; 
    min-width: 60px !important;
    min-height: 32px !important;
    display: inline-block !important; 
    cursor: pointer !important; 
    user-select: none !important; 
}

.nl-page__toggle-switch input { 
    opacity: 0 !important; 
    width: 0 !important; 
    height: 0 !important; 
    display: none !important; 
}

.slider { 
    position: absolute !important; 
    cursor: pointer !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    bottom: 0 !important; 
    background-color: #27272a !important; 
    transition: .4s !important; 
    border-radius: 34px !important; 
    border: 1px solid #3f3f46 !important; 
    overflow: hidden !important; 
}

.slider-thumb { 
    position: absolute !important; 
    height: 26px !important; 
    width: 26px !important; 
    left: 3px !important; 
    bottom: 2px !important; 
    background-color: #a1a1aa !important; 
    transition: .4s !important; 
    border-radius: 50% !important; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    z-index: 2 !important; 
}

.toggle-label-on, .toggle-label-off { 
    position: absolute !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    font-size: 10px !important; 
    font-weight: 800 !important; 
    letter-spacing: 0.5px !important; 
}

.toggle-label-on { left: 8px !important; color: white !important; opacity: 0 !important; }
.toggle-label-off { right: 8px !important; color: #868e96 !important; opacity: 1 !important; }

.thumb-icon { width: 14px !important; height: 14px !important; stroke-width: 3 !important; }
.icon-check { display: none !important; color: #6366f1 !important; }
.icon-cross { display: block !important; color: #18181b !important; }

.nl-page__toggle-switch input:checked + .slider { 
    background-color: #6366f1 !important; 
    border-color: #6366f1 !important; 
}

.nl-page__toggle-switch input:checked + .slider .slider-thumb { 
    transform: translateX(27px) !important; 
    background-color: #ffffff !important; 
}

.nl-page__toggle-switch input:checked + .slider .toggle-label-on { opacity: 1 !important; }
.nl-page__toggle-switch input:checked + .slider .toggle-label-off { opacity: 0 !important; }
.nl-page__toggle-switch input:checked + .slider .slider-thumb .icon-check { display: block !important; }
.nl-page__toggle-switch input:checked + .slider .slider-thumb .icon-cross { display: none !important; }

/* --- Archive Links --- */
.nl-page__archive-links { 
    margin-top: 36px !important; 
    padding-top: 24px !important; 
    border-top: 1px solid #27272a !important; 
}

.nl-page__archive-links h4 { 
    font-size: 13px !important; 
    font-weight: 700 !important; 
    margin: 0 0 14px 0 !important; 
    text-transform: uppercase !important; 
    color: #71717a !important; 
    letter-spacing: 0.5px !important; 
}

.nl-page__archive-links ul { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.nl-page__archive-links li { 
    margin-bottom: 10px !important; 
}

.nl-page__archive-links a { 
    color: #818cf8 !important; 
    text-decoration: none !important; 
    font-size: 14px !important; 
    font-weight: 600 !important; 
    transition: color 0.2s !important; 
}

.nl-page__archive-links a:hover { 
    text-decoration: underline !important; 
    color: #a5b4fc !important; 
}

/* ==========================================================================
   INITIAL PULSE RING PAGE LOADER (FIXED SPECIFICITY)
   ========================================================================== */
.nl-page__loading-overlay { 
    position: relative; 
    width: 100%;
    min-height: 480px; 
    background: transparent; 
    z-index: 50; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

/* When loaded, force it completely off the screen without conflict */
.nl-page__loading-overlay.is-loaded {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.nl-page__spinner { 
    width: 50px !important; 
    height: 50px !important; 
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
    position: relative !important; 
    display: block !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
}

.nl-page__spinner::before, 
.nl-page__spinner::after { 
    content: '' !important; 
    position: absolute !important; 
    border-radius: 50% !important; 
    box-sizing: border-box !important;
}

.nl-page__spinner::before { 
    width: 100% !important; 
    height: 100% !important; 
    box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.7) !important; 
    top: 0 !important; 
    left: 0 !important; 
    animation: nlPulseRing 1.8s linear infinite !important; 
}

.nl-page__spinner::after { 
    width: 80% !important; 
    height: 80% !important; 
    background-color: #818cf8 !important; 
    top: 10% !important; 
    left: 10% !important; 
    animation: nlPulseDot 1.8s linear infinite !important; 
}

.nl-page__loading-text { 
    margin-top: 24px !important; 
    font-size: 15px !important; 
    font-weight: 700 !important; 
    color: #818cf8 !important; 
    letter-spacing: 0.5px !important; 
    animation: nlPulseText 1.5s infinite ease-in-out !important; 
    display: block !important;
    text-align: center !important;
}

@keyframes nlPulseRing { 
    0% { transform: scale(0.33); } 
    80%, 100% { opacity: 0; } 
}

@keyframes nlPulseDot { 
    0% { transform: scale(0.8); } 
    50% { transform: scale(1); } 
    100% { transform: scale(0.8); } 
}

@keyframes nlPulseText { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.6; } 
}

/* ==========================================================================
   EMERALD GREEN FULLSCREEN BLUR OVERLAY (NO CARD - PURE FLOATING GLASS)
   ========================================================================== */
.nl-fullscreen-blur-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(18, 15, 23, 0.88) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 2147483647 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    animation: nlFadeIn 0.25s ease-out forwards !important;
}

.nl-blur-modal-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-width: 500px !important;
    width: 100% !important;
    text-align: center !important;
    animation: nlModalBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    box-sizing: border-box !important;
}

@keyframes nlModalBounce {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.nl-modal-tick-container {
    position: relative !important;
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 24px auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nl-modal-glow-ring {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background: rgba(34, 197, 94, 0.25) !important;
    animation: nlPulseGlow 2s infinite ease-in-out !important;
}

@keyframes nlPulseGlow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

.nl-modal-tick-circle {
    width: 76px !important;
    height: 76px !important;
    border-radius: 50% !important;
    background: #16a34a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.55) !important;
}

.nl-modal-tick-svg {
    width: 52px !important;
    height: 52px !important;
    display: block !important;
    stroke: #ffffff !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.nl-modal-circle-path {
    stroke-dasharray: 166 !important;
    stroke-dashoffset: 166 !important;
    stroke-width: 3.5 !important;
    stroke-miterlimit: 10 !important;
    stroke: #ffffff !important;
    animation: nlStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards !important;
}

.nl-modal-check-path {
    transform-origin: 50% 50% !important;
    stroke-dasharray: 48 !important;
    stroke-dashoffset: 48 !important;
    stroke-width: 4.5 !important;
    stroke: #ffffff !important;
    animation: nlCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards !important;
}

@keyframes nlStroke { 100% { stroke-dashoffset: 0; } }
@keyframes nlCheck { 100% { stroke-dashoffset: 0; } }

/* FULL TOP-CLASS GREEN TYPOGRAPHY */
.nl-modal-title {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #4ade80 !important; /* EMERALD GREEN HEADLINE */
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.5px !important;
}

.nl-modal-desc {
    font-size: 16px !important;
    color: #bbf7d0 !important; /* LIGHT COMPLEMENTARY GREEN */
    line-height: 1.6 !important;
    margin: 0 0 30px 0 !important;
}

.nl-modal-desc strong {
    color: #22c55e !important;
    font-weight: 700 !important;
}

/* PURE GREEN TEXT DISMISS ACTION (NO BUTTON BOX) */
.nl-modal-ok-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nl-modal-ok-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #22c55e !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 6px 12px !important;
    position: relative !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
    letter-spacing: 0.3px !important;
}

.nl-modal-ok-text::after {
    content: '' !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 2px !important;
    height: 2px !important;
    background: #22c55e !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s, transform 0.2s !important;
    transform: scaleX(0.8) !important;
}

.nl-modal-ok-text:hover {
    color: #4ade80 !important;
    transform: translateY(-2px) !important;
}

.nl-modal-ok-text:hover::after {
    opacity: 1 !important;
    background: #4ade80 !important;
    transform: scaleX(1) !important;
}

/* Helper Animations */
@keyframes nlSlideDown { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes nlFadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}