/*
 * Home Page CSS — WeAreInvictus210
 * Estilos específicos de front-page.php
 *
 * @package InvictusChild
 */

/* =============================================================================
   ZONA 1 — Hero Section
   ============================================================================= */
.inv-home-hero {
    position: relative;
    min-height: 70svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inv-home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 0;
    animation: inv-hero-ken 14s ease-in-out infinite alternate;
    will-change: transform;
}

.inv-home-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(8, 13, 26, 0.82) 0%,
        rgba(8, 13, 26, 0.88) 60%,
        rgba(8, 13, 26, 0.97) 100%
    );
    z-index: 1;
}

.inv-home-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 1.25rem 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
}

.inv-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1.5rem;
}

.inv-home-hero__title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    letter-spacing: 0.03em;
    color: #ffffff;
}

.inv-home-hero__title span {
    color: #f59e0b;
    display: block;
}

.inv-home-hero__subtitle {
    font-size: 0.9rem;
    color: rgba(200, 204, 232, 0.7);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

/* Stats row */
.inv-home-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.inv-home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 80px;
}

.inv-home-stat__num {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 2rem;
    color: #f59e0b;
    line-height: 1;
}

.inv-home-stat__label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.inv-home-stat + .inv-home-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 1.5rem;
}

/* CTA buttons */
.inv-home-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

@media (min-width: 480px) {
    .inv-home-ctas {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
}

.inv-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 3rem;
    padding: 0 1.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #f59e0b;
    color: #000000;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.inv-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: #000000;
}

.inv-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 3rem;
    padding: 0 1.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.inv-btn-secondary:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* ── Hero: Ken Burns on background ──────────────────────────────────────── */
@keyframes inv-hero-ken {
    from { transform: scale(1) translateX(0); }
    to   { transform: scale(1.08) translateX(-2%); }
}

/* ── Hero: staggered entrance on left column ─────────────────────────────── */
@keyframes inv-hero-enter {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.inv-home-hero__left > * {
    animation: inv-hero-enter 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.inv-home-hero__left > *:nth-child(1) { animation-delay: 0.1s; }
.inv-home-hero__left > *:nth-child(2) { animation-delay: 0.22s; }
.inv-home-hero__left > *:nth-child(3) { animation-delay: 0.34s; }
.inv-home-hero__left > *:nth-child(4) { animation-delay: 0.46s; }
.inv-home-hero__left > *:nth-child(5) { animation-delay: 0.56s; }

/* ── Hero: floating portrait card (right column, desktop only) ───────────── */
@keyframes inv-hero-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-14px) rotate(0.5deg); }
}

.inv-home-hero__right {
    display: none;
}

.inv-hero-float-card {
    position: relative;
    width: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(245, 158, 11, 0.1);
    animation: inv-hero-float 5s ease-in-out infinite;
    animation-delay: 0.6s;
}

.inv-hero-float-card__img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.inv-hero-float-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 0.9rem;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.inv-hero-float-card__meta {
    padding: 7px 10px 2px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f59e0b;
}

.inv-hero-float-card__name {
    padding: 2px 10px 10px;
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f0f4ff;
    line-height: 1.15;
}

/* ── Hero: desktop 2-column layout ─────────────────────────────────────── */
@media (min-width: 768px) {
    .inv-home-hero__content {
        grid-template-columns: 1fr 0.5fr;
        align-items: center;
        gap: 4rem;
        text-align: left;
        padding: 6rem 2rem 4rem;
    }

    .inv-home-hero__subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    .inv-home-stats {
        justify-content: flex-start;
    }

    .inv-home-ctas {
        justify-content: flex-start;
    }

    .inv-home-hero__right {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* =============================================================================
   Section layout shared
   ============================================================================= */
.inv-home-section {
    padding: 4rem 1.25rem;
}

@media (min-width: 1024px) {
    .inv-home-section {
        padding: 5rem 2rem;
    }
}

.inv-home-section__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.inv-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .inv-section-header {
        text-align: left;
    }
}

.inv-section-title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f0f4ff;
    line-height: 1.1;
    margin: 0 0 0.3rem;
}

.inv-section-sub {
    font-size: 0.78rem;
    color: #6b7494;
}

.inv-section-footer {
    margin-top: 2rem;
    text-align: center;
}

/* =============================================================================
   ZONA 2 — Featured Lineup
   ============================================================================= */
.inv-featured-lineup {
    background-color: #080d1a;
}

.inv-featured-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #0d1424;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.inv-featured-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.3) saturate(0.6);
    transform: scale(1.08);
    z-index: 0;
}

.inv-featured-card__body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .inv-featured-card__body {
        padding: 2rem 2.5rem;
    }
}

.inv-featured-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.inv-featured-card__name {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    color: #f0f4ff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.inv-tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    color: #fff;
    flex-shrink: 0;
}

.inv-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: #c8cce8;
}

.inv-featured-card__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.inv-stars {
    display: flex;
    gap: 2px;
    font-size: 1rem;
    line-height: 1;
}

.inv-star--on  { color: #f59e0b; }
.inv-star--off { color: #3d4560; }

.inv-rating-text {
    font-size: 0.78rem;
    color: #6b7494;
}

/* Commanders row */
.inv-commanders-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.inv-commander-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    min-width: 0;
}

.inv-commander-pill__thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    object-fit: cover;
    object-position: top;
    background: #1a2235;
    flex-shrink: 0;
}

.inv-commander-pill__name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c8cce8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

/* =============================================================================
   ZONA 3 — Hero Tier Preview
   ============================================================================= */
.inv-tier-preview {
    background-color: #0a0f1e;
}

.inv-tier-row {
    display: flex;
    align-items: stretch;
    min-height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
}

.inv-tier-row__label {
    width: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .inv-tier-row__label {
        width: 88px;
        min-width: 88px;
        font-size: 2.4rem;
    }
}

.inv-tier-row__heroes {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    align-items: flex-start;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #1e2d45 transparent;
}

.inv-hero-card-sm {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    flex-shrink: 0;
    text-decoration: none;
    color: #6b7494;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}

.inv-hero-card-sm:hover {
    border-color: var(--tier-color, #f59e0b);
    transform: translateY(-2px);
    color: #f0f4ff;
}

.inv-hero-card-sm__thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    object-position: top;
    background: #1a2235;
    display: block;
}

.inv-hero-card-sm__name {
    font-size: 0.58rem;
    font-weight: 500;
    text-align: center;
    padding: 3px 4px 4px;
    line-height: 1.25;
    color: inherit;
    word-break: break-word;
    transition: color 0.15s;
}

/* =============================================================================
   ZONA 4 — Recent Lineups Grid
   ============================================================================= */
.inv-recent-lineups {
    background-color: #080d1a;
}

.inv-lineups-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .inv-lineups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .inv-lineups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.inv-lineup-card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.inv-lineup-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.inv-lineup-card__portraits {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #131929;
}

.inv-lineup-card__portrait {
    position: absolute;
    top: 0;
    height: 100%;
    width: 37%;
    object-fit: cover;
    object-position: top;
}

.inv-lineup-card__portrait:nth-child(1) { left: 0;   z-index: 2; }
.inv-lineup-card__portrait:nth-child(2) { left: 32%; z-index: 1; }
.inv-lineup-card__portrait:nth-child(3) { left: 64%; z-index: 0; }

.inv-lineup-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(13, 20, 36, 0.85) 100%);
    z-index: 3;
}

.inv-lineup-card__body {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.inv-lineup-card__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.inv-lineup-card__name {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    color: #f0f4ff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    margin: 0;
}

.inv-lineup-card__rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.inv-lineup-card__cta {
    font-size: 0.65rem;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

/* =============================================================================
   ZONA 5 — Community CTA
   ============================================================================= */
.inv-community-cta {
    background-color: #0d1424;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.inv-community-cta__title {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 7vw, 4rem);
    color: #f0f4ff;
}

.inv-community-cta__title span {
    color: #f59e0b;
}

.inv-community-cta__sub {
    font-size: 0.9rem;
    color: rgba(200, 204, 232, 0.6);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.inv-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 360px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

@media (min-width: 640px) {
    .inv-benefits {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 700px;
        gap: 0.5rem 1.5rem;
    }
}

.inv-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #c8cce8;
}

.inv-benefit__icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.inv-community-cta__note {
    margin-top: 1rem;
    font-size: 0.65rem;
    color: rgba(107, 116, 148, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inv-btn-primary--lg {
    height: 3.5rem;
    padding: 0 2.5rem;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.inv-btn-primary--lg:hover {
    box-shadow: 0 6px 28px rgba(245, 158, 11, 0.4);
}

/* =============================================================================
   ZONA 6 — Footer
   ============================================================================= */
.inv-home-footer {
    background-color: #080d1a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.75rem 1.25rem;
}

.inv-home-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .inv-home-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.inv-home-footer__logo span:first-child {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inv-home-footer__logo span:last-child {
    font-family: var(--wp--preset--font-family--rajdhani, 'Rajdhani', sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.inv-home-footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.inv-home-footer__links a {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7494;
    text-decoration: none;
    transition: color 0.15s;
}

.inv-home-footer__links a:hover {
    color: #f59e0b;
}

.inv-home-footer__copy {
    font-size: 0.65rem;
    color: rgba(107, 116, 148, 0.6);
    text-align: center;
}

/* =============================================================================
   ZONA 5b — New Members Showcase
   ============================================================================= */

.inv-new-members {
    background: #0a0f1e;
}

/* Horizontal scroll marquee — JS-driven, no native scroll */
.inv-members-scroll {
    overflow: hidden;
    position: relative;
}

.inv-members-track {
    display: flex;
    gap: 10px;
    min-width: max-content;
    will-change: transform;
    padding: 4px 0;
}

/* Member card */
.inv-member-card {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #0d1424;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.inv-member-card:hover {
    border-color: rgba(245,158,11,0.4);
    text-decoration: none;
}

/* Avatar circle — shows image or initial letter */
.inv-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a2235;
    border: 2px solid rgba(245,158,11,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #f59e0b;
    overflow: hidden;
    flex-shrink: 0;
}

.inv-member-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.inv-member-card__username {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.inv-member-card__time {
    font-size: 0.5rem;
    color: #4b5563;
    line-height: 1.2;
}

.inv-stamp-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 1px 5px;
    font-size: 0.65rem;
    line-height: 1.4;
}

.inv-stamp-badge__count {
    color: #f59e0b;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
}

/* =============================================================================
   ZONA 5c — Community Activity Feed (streaming chat style)
   ============================================================================= */

.inv-activity-feed {
    background: #080d1a;
    padding-top: 0;
}

/* ── Activity list — fixed-height scrollable feed ─────────────────────────── */
.inv-activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #1e2540;
    border-top: none;
    border-radius: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #111827;
    max-height: 520px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #1e2540 transparent;
}

.inv-activity-list::-webkit-scrollbar {
    width: 4px;
}

.inv-activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.inv-activity-list::-webkit-scrollbar-thumb {
    background: #1e2540;
    border-radius: 2px;
}

/* ── Activity item ─────────────────────────────────────────────────────────── */
.inv-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(30, 37, 64, 0.7);
    transition: background 0.15s ease;
}

.inv-activity-item:last-child {
    border-bottom: none;
}

.inv-activity-item:hover {
    background: rgba(255,255,255,0.025);
}

.inv-activity-item__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 1px;
}

.inv-activity-item__avatar .inv-user-avatar,
.inv-activity-item__avatar img {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.inv-activity-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.inv-activity-item__action {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.inv-activity-item__action a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.inv-activity-item__action a:hover {
    text-decoration: underline;
}

.inv-activity-item__time {
    font-size: 0.65rem;
    color: #3d4560;
    font-family: 'Inter', sans-serif;
}

/* No-activity empty state */
.inv-activity-empty {
    text-align: center;
    padding: 32px 16px;
    color: #3d4560;
    font-size: 0.85rem;
    margin: 0;
}

/* ── LIVE badge ───────────────────────────────────────────────────────────── */
.inv-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    padding: 2px 7px 2px 5px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    margin-left: 8px;
    transition: background 0.3s ease;
}

.inv-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: inv-live-pulse 1.8s ease-in-out infinite;
}

@keyframes inv-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%       { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

/* Last updated counter */
.inv-last-updated {
    font-size: 0.65rem;
    color: #6b7494;
    margin-left: 6px;
    font-style: normal;
    transition: color 0.5s ease;
}

.inv-last-updated--fresh {
    color: #22c55e;
}

/* Avatar link */
.inv-activity-item__avatar-link {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    outline-offset: 2px;
    transition: opacity 0.15s ease;
}

.inv-activity-item__avatar-link:hover {
    opacity: 0.8;
}

/* ── New item: slide in from top (streaming chat feel) ────────────────────── */
@keyframes inv-chat-in {
    0%   { opacity: 0; transform: translateY(-18px); max-height: 0; }
    40%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); max-height: 80px; }
}

.inv-activity-item--entering {
    animation: inv-chat-in 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    overflow: hidden;
}

/* Amber highlight for new items */
@keyframes inv-activity-new {
    0%   { background-color: rgba(245, 158, 11, 0.14); }
    100% { background-color: transparent; }
}

.inv-activity-item--new {
    animation: inv-activity-new 3s ease-out forwards;
}

/* Typing indicator */
.inv-typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(30, 37, 64, 0.7);
}

.inv-typing-dots {
    display: flex;
    gap: 3px;
    align-items: center;
}

.inv-typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3d4560;
    animation: inv-typing-bounce 1.2s ease-in-out infinite;
}

.inv-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.inv-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes inv-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-4px); opacity: 1; }
}

/* NEW badge on fresh items */
.inv-feed-new-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    animation: inv-new-badge-fade 2s ease 1s forwards;
}

@keyframes inv-new-badge-fade {
    from { opacity: 1; }
    to   { opacity: 0; display: none; }
}

/* Slide-in for new items */
@keyframes inv-feed-slide-in {
    from { opacity: 0; transform: translateY(-16px); max-height: 0; }
    to   { opacity: 1; transform: translateY(0);     max-height: 120px; }
}

.inv-feed-item-new {
    animation: inv-feed-slide-in 0.4s ease forwards;
    overflow: hidden;
}

/* Feed item enter / exit animations (used by JS showNextItem) */
@keyframes inv-chat-slide-up {
    from { opacity: 0; transform: translateY(20px); max-height: 0; padding: 0; }
    to   { opacity: 1; transform: translateY(0); max-height: 80px; padding: 12px 16px; }
}

.inv-feed-item-entering { animation: inv-chat-slide-up 0.4s ease forwards; }

@keyframes inv-chat-slide-out {
    from { opacity: 1; transform: translateY(0); max-height: 80px; }
    to   { opacity: 0; transform: translateY(-20px); max-height: 0; }
}

.inv-feed-item-exiting { animation: inv-chat-slide-out 0.3s ease forwards; overflow: hidden; }


/* Arrow link */
.inv-activity-link--arrow {
    font-size: 0.85em;
    opacity: 0.5;
    margin-left: 3px;
    transition: opacity 0.15s ease;
}

.inv-activity-link--arrow:hover {
    opacity: 1;
}

/* ── Skeleton rows ──────────────────────────────────────────────────────────  */
.inv-activity-item--skeleton {
    pointer-events: none;
}

.inv-skel-circle {
    background: #1e2540;
    animation: inv-skel-pulse 1.4s ease-in-out infinite;
}

.inv-skel-line {
    display: block;
    height: 10px;
    border-radius: 4px;
    background: #1e2540;
    animation: inv-skel-pulse 1.4s ease-in-out infinite;
}

.inv-skel-line--long  { width: 68%; }
.inv-skel-line--short { width: 28%; margin-top: 4px; }

@keyframes inv-skel-pulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.7; }
}
