/* ═══════════════════════════════════════════
   HOMEPAGE STYLES — FraudKe
   ═══════════════════════════════════════════ */

/* ─── Section Defaults ──────────────────── */
.homepage-section {
    overflow: hidden;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #111827;
}

.section-subtitle {
    font-size: 1.05rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Trust Metrics ─────────────────────── */
.metric-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.metric-icon-wrap {
    width: 56px;
    height: 56px;
    background: #eff6ff;
    color: #0d47a1;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.metric-icon-wrap.warning {
    background: #fff7ed;
    color: #d97706;
}

.metric-icon-wrap.success {
    background: #ecfdf5;
    color: #059669;
}

.metric-icon-wrap.danger {
    background: #fef2f2;
    color: #dc2626;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ─── Recent Activity ───────────────────── */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 1.5s infinite;
    vertical-align: middle;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

.activity-feed {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
    transition: background 0.2s, transform 0.2s;
    animation: fadeSlideIn 0.4s ease forwards;
    opacity: 0;
}

.activity-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.activity-badge {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-badge.phone {
    background: #eff6ff;
    color: #2563eb;
}

.activity-badge.website {
    background: #fef3c7;
    color: #d97706;
}

.activity-badge.bank {
    background: #fce7f3;
    color: #db2777;
}

.activity-badge.paybill {
    background: #ecfdf5;
    color: #059669;
}

.activity-badge.default {
    background: #f1f5f9;
    color: #475569;
}

.activity-text {
    flex: 1;
    min-width: 0;
}

.activity-text strong {
    display: block;
    font-size: 0.9rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-text small {
    color: #94a3b8;
    font-size: 0.8rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

.risk-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.risk-dot.low {
    background: #22c55e;
}

.risk-dot.medium {
    background: #f59e0b;
}

.risk-dot.high {
    background: #f97316;
}

.risk-dot.severe {
    background: #ef4444;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Skeleton Loaders ──────────────────── */
.skeleton-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
}

.skeleton-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 6px;
}

.skeleton-line.w-60 {
    width: 60%;
}

.skeleton-line.w-40 {
    width: 40%;
}

.skeleton-line.w-80 {
    width: 80%;
}

.skeleton-time {
    width: 48px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin: 0 auto;
}

.scam-card-skeleton {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ─── How It Works (Redesign) ───────────── */
.how-it-works-section {
    background: #fff;
    position: relative;
    padding: 100px 0;
}

.section-accent-dash {
    width: 40px;
    height: 4px;
    background: #2563eb;
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-illustration-wrap {
    width: 220px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS Browser/Card Illustrations */
.illustration-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 180px;
    height: 120px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.illustration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* Specific elements for each card */
.card-content-line {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-top: 24px;
    width: 70%;
}
.card-content-line.short { width: 40%; margin-top: 8px; }
.card-content-box {
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 4px;
    margin-right: 8px;
}

.step-label {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 240px;
    margin: 0 auto;
}

/* Wave Connectors */
.wave-connector {
    position: absolute;
    top: 30%;
    left: 55%;
    width: 90%;
    height: 60px;
    border: 2px dashed #3b82f6;
    border-color: #3b82f6 transparent transparent transparent;
    border-radius: 100% 100% 0 0;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.wave-connector::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #3b82f6;
    border-right: 2px solid #3b82f6;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .wave-connector { display: none; }
    .step-illustration-wrap { margin-bottom: 1rem; }
}

/* ─── Trending Scams ────────────────────── */
.scam-card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.scam-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.1);
}

.scam-icon {
    width: 56px;
    height: 56px;
    background: #fff7ed;
    color: #d97706;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.scam-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.scam-count {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

/* ─── Testimonials Marquee ───────────────── */
.testimonial-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 24px;
    animation: marqueeScroll 40s linear infinite;
    width: max-content;
    will-change: transform;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-track.paused {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-slide {
    flex: 0 0 360px;
    min-width: 360px;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12);
    border-color: #bfdbfe;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 80px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .testimonial-slide {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .testimonial-track {
        animation-duration: 30s;
    }

    .testimonial-text {
        min-height: auto;
    }
}

/* ─── Legal Assistance ──────────────────── */
.lawyer-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.lawyer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

.lawyer-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.lawyer-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e3a5f, #0d47a1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.verified-badge {
    position: absolute;
    bottom: 0;
    right: -4px;
    color: #2563eb;
    font-size: 1.1rem;
    background: #fff;
    border-radius: 50%;
    line-height: 1;
}

.lawyer-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.lawyer-specialty {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* ─── Fraud Map ─────────────────────────── */
.map-container-home {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home-map-canvas {
    height: 400px;
    width: 100%;
    background: #f1f5f9;
}

.map-overlay-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    transition: opacity 0.4s;
}

.map-overlay-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ─── Educational Guides ────────────────── */
.guide-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.08);
}

.guide-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.guide-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.guide-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0d47a1;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.guide-link:hover {
    gap: 8px;
    color: #08306b;
}

/* ─── Newsletter ────────────────────────── */
.newsletter-banner {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #0d47a1 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.newsletter-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

#newsletter-feedback .feedback-success {
    color: #34d399;
    font-size: 0.9rem;
    font-weight: 500;
}

#newsletter-feedback .feedback-error {
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─── FAQ Preview ───────────────────────── */
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    background: #fff;
    border: none;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #0d47a1;
    background: #f0f9ff;
}

.faq-accordion .accordion-body {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ─── Final CTA ─────────────────────────── */
.final-cta-banner {
    background: linear-gradient(135deg, #0d47a1 0%, #08306b 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.final-cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.final-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

/* ─── Scroll Reveal Animation ───────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Toast Notification ────────────────── */
.toast-container-homepage {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 3.6s forwards;
    max-width: 360px;
}

.toast-notification.success {
    background: #059669;
    color: #fff;
}

.toast-notification.error {
    background: #dc2626;
    color: #fff;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ─── Button Enhancements ───────────────── */
.btn-warning {
    transition: all 0.3s ease;
}

.btn-warning:hover {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

/* ─── Mobile Responsive ─────────────────── */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .metric-card {
        padding: 1.25rem 0.75rem;
    }

    .metric-value {
        font-size: 1.75rem;
    }

    .step-connector {
        display: none !important;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .newsletter-banner {
        padding: 2rem 1.5rem;
    }

    .final-cta-banner {
        padding: 2.5rem 1.5rem;
    }

    .home-map-canvas {
        height: 280px;
    }

    .testimonial-card,
    .guide-card,
    .lawyer-card {
        margin-bottom: 0;
    }

    .toast-container-homepage {
        left: 16px;
        right: 16px;
    }

    .toast-notification {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .metric-value {
        font-size: 1.5rem;
    }

    .metric-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════
   LIVE FEED ENHANCEMENT STYLES
   ═══════════════════════════════════════════ */

/* ─── Live Indicator ───────────────────── */
.live-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
}

.live-pulse-core {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.live-pulse-ring {
    width: 16px;
    height: 16px;
    border: 2px solid #ef4444;
    border-radius: 50%;
    position: absolute;
    animation: livePulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 1;
}

@keyframes livePulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.live-indicator.active .live-pulse-ring {
    animation-duration: 0.8s;
}

.live-status-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 12px 4px rgba(16, 185, 129, 0.2); }
}

/* ─── Trending Ticker ──────────────────── */
.trending-ticker-wrap {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    height: 40px;
}

.trending-ticker-label {
    flex-shrink: 0;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    padding: 0 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.trending-ticker-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.trending-ticker-track {
    display: flex;
    gap: 32px;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
    will-change: transform;
    padding: 0 16px;
}

.trending-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.8rem;
    white-space: nowrap;
    padding: 0 4px;
}

.ticker-item .ticker-value {
    color: #fbbf24;
    font-weight: 700;
}

.ticker-item .ticker-count {
    color: #94a3b8;
    font-size: 0.7rem;
}

.ticker-item .ticker-sep {
    color: #334155;
    margin: 0 4px;
}

.ticker-placeholder {
    color: #64748b;
    font-size: 0.8rem;
    padding: 0 16px;
}

/* ─── Mini Stats Bar ───────────────────── */
.feed-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 14px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feed-stat-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.feed-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d47a1;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.feed-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feed-stat-divider {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, #cbd5e1, transparent);
    flex-shrink: 0;
    margin: 0 0.75rem;
}

/* ─── Glassmorphism Feed Card ──────────── */
.feed-glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Enhanced Activity Feed */
.feed-glass-card .activity-feed {
    max-height: 480px;
}

/* ─── Enhanced Feed Items ──────────────── */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.activity-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* New item highlight */
.activity-item.is-new {
    animation: feedItemSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-left: 3px solid #fbbf24;
}

.activity-item.is-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent 60%);
    pointer-events: none;
    animation: highlightFade 2s ease-out forwards;
}

@keyframes feedItemSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes highlightFade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Activity Badge Enhancement */
.activity-badge {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.activity-item:hover .activity-badge {
    transform: scale(1.08);
}

/* Activity Content Enhanced */
.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.activity-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-type-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 6px;
    text-transform: capitalize;
}

/* ─── Risk Level Bar ───────────────────── */
.risk-bar-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.risk-bar {
    width: 48px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.risk-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.risk-bar-fill.low { background: #22c55e; }
.risk-bar-fill.medium { background: #f59e0b; }
.risk-bar-fill.high { background: #f97316; }
.risk-bar-fill.severe { background: #ef4444; }

.risk-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.risk-label.low { color: #22c55e; }
.risk-label.medium { color: #f59e0b; }
.risk-label.high { color: #f97316; }
.risk-label.severe { color: #ef4444; }

/* ─── Feed Item Right Column ───────────── */
.activity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.activity-time {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    font-weight: 500;
}

/* ─── Feed Action Buttons ──────────────── */
.feed-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
}

.activity-item:hover .feed-actions {
    opacity: 1;
    transform: translateY(0);
}

.feed-action-btn {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.feed-action-btn:hover {
    background: #0d47a1;
    color: #fff;
    border-color: #0d47a1;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.25);
}

/* ─── Feed CTA Button ─────────────────── */
.feed-cta-btn {
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.feed-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
}

/* ─── Live Activity Section Background ── */
.live-activity-section {
    background: linear-gradient(180deg, #f0f4f8 0%, #f8fafc 100%);
    position: relative;
}

.live-activity-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

/* ─── Evidence Indicator ───────────────── */
.evidence-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    color: #0d47a1;
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: help;
}

/* ─── Feed Empty State ─────────────────── */
.feed-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.feed-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.5;
}

/* ─── Mobile Responsive Additions ──────── */
@media (max-width: 768px) {
    .trending-ticker-wrap {
        border-radius: 8px;
        height: 36px;
    }

    .trending-ticker-label {
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .feed-stats-bar {
        padding: 0.5rem 0.75rem;
        gap: 0;
        border-radius: 10px;
    }

    .feed-stat-value {
        font-size: 1.1rem;
    }

    .feed-stat-label {
        font-size: 0.6rem;
    }

    .feed-stat-divider {
        margin: 0 0.4rem;
        height: 24px;
    }

    .feed-glass-card {
        padding: 0.5rem;
        border-radius: 12px;
    }

    .feed-glass-card .activity-feed {
        max-height: 360px;
    }

    .activity-item {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .activity-badge {
        min-width: 36px;
        height: 36px;
    }

    .activity-value {
        font-size: 0.82rem;
    }

    .feed-actions {
        opacity: 1;
        transform: none;
    }

    .feed-action-btn {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .live-status-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
}

@media (max-width: 576px) {
    .feed-stats-bar {
        flex-wrap: wrap;
        gap: 4px;
    }

    .feed-stat-item {
        flex: 1 1 40%;
    }

    .feed-stat-divider:nth-child(4) {
        display: none;
    }

    .feed-stat-divider {
        height: 0;
        width: 100%;
        margin: 2px 0;
    }
}

/* ─── Accessibility ────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .live-pulse-ring,
    .trending-ticker-track,
    .activity-item,
    .activity-item.is-new,
    .activity-item.is-new::before,
    .risk-bar-fill,
    .feed-actions {
        animation: none !important;
        transition: none !important;
    }

    .activity-item.is-new {
        opacity: 1;
        transform: none;
    }

    .trending-ticker-track {
        animation: none !important;
    }
}