@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root,
.nep-slidein,
.nep-slidein *,
.nep-mini-toggle {
    --ne-red: #da442b;
    --ne-red-dark: #c03520;
    --ne-green: #9fcf69;
    --ne-navy: #1e2a3a;
    --ne-slate: #2d3e50;
    --ne-muted: #6b6b6b;
    --ne-white: #ffffff;
    --ne-shadow-lg: 0 12px 48px rgba(30, 42, 58, 0.14);
}

/* SLIDE-IN */
.nep-slidein {
    position: fixed !important;
    right: -340px;
    bottom: 24px !important;
    z-index: 99990 !important;
    width: 310px;
    transition: right 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nep-slidein.active {
    right: 20px !important;
}

.nep-slidein-card {
    background: var(--ne-white);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--ne-shadow-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(30, 42, 58, 0.06);
}

.nep-slidein-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--ne-red);
}

.nep-slidein-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border: none;
    background: rgba(30, 42, 58, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    color: var(--ne-slate);
}

.nep-slidein-close:hover {
    background: rgba(30, 42, 58, 0.1);
    transform: scale(1.1);
}

.nep-slidein-close svg {
    width: 12px; height: 12px;
    stroke: var(--ne-slate);
}

.nep-slidein-icon {
    width: 44px; height: 44px;
    background: #fdf0ee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--ne-red);
}

.nep-slidein-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ne-red);
    color: var(--ne-white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.nep-slidein-badge svg { stroke: var(--ne-white); }

.nep-slidein-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ne-navy);
    margin-bottom: 6px;
    line-height: 1.3;
}

.nep-slidein-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.82rem;
    color: var(--ne-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.nep-slidein-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--ne-red);
    color: var(--ne-white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 3px 14px rgba(218, 68, 43, 0.2);
}

.nep-slidein-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(218, 68, 43, 0.3);
    background: var(--ne-red-dark);
    color: var(--ne-white);
    text-decoration: none;
}

/* MINI TOGGLE */
.nep-mini-toggle {
    position: fixed !important;
    right: -64px;
    bottom: 24px !important;
    z-index: 99989 !important;
    width: 54px; height: 54px;
    background: var(--ne-red);
    color: var(--ne-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(218, 68, 43, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    animation: none;
}

.nep-mini-toggle svg { stroke: var(--ne-white); }

.nep-mini-toggle.active {
    right: 20px !important;
    animation: nep-pulse 2.5s ease-in-out infinite 1s;
}

.nep-mini-toggle:hover {
    transform: scale(1.1);
    background: var(--ne-red-dark);
}

@keyframes nep-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(218, 68, 43, 0.3); }
    50% { box-shadow: 0 4px 28px rgba(218, 68, 43, 0.5), 0 0 0 8px rgba(218, 68, 43, 0.08); }
}

@media (max-width: 560px) {
    .nep-slidein {
        width: calc(100% - 32px);
        bottom: 16px !important;
    }
    .nep-slidein.active { right: 16px !important; }
    .nep-mini-toggle.active { right: 16px !important; bottom: 16px !important; }
}
