:root {
    color-scheme: dark;
    --accent: #00ff88;
    --flash: #c800ff;
    --yellow: #ffeb3b;
    --yellow-glow: rgba(255, 235, 59, .5);
    --text: #e2e8f0;
    --bg: #0a0e17;
    --border: #1e293b;
    --glow: 0 0 20px rgba(0, 255, 136, .4);
    --glass: rgba(17, 24, 39, 0.75);
    --glass-heavy: rgba(10, 14, 23, 0.85);
}

.hidden {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #000;
    color: var(--text);
    font-family: 'Roboto Mono', monospace;
}

/* UFO TRACKER v9.19.49 - MAIN STYLESHEET
 * 5-Column Grid, Mobile Optimization, High Fidelity HUD */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.5;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }

    15% {
        opacity: 0.5;
    }

    85% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100px) translateX(80px);
        opacity: 0;
    }
}

#map {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1 !important;
    opacity: .45 !important;
    pointer-events: none !important;
    /* CRITICAL: Allow clicks to pass through */
    filter: brightness(.68) contrast(1.15) saturate(1.1) hue-rotate(90deg);
}

.scanline {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(transparent 50%, rgba(0, 255, 136, .02) 50%);
    background-size: 100% 3px;
    animation: scan 6s linear infinite;
    opacity: .3;
}

@keyframes scan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 100%;
    }
}

/* --- LAYOUT --- */
.overlay {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: relative;
    padding: 0;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(14px);
    z-index: 100;
    overflow: hidden;
    min-height: 250px;
}

/* --- HUD STRIP (v10.2 Redesign) --- */
.hud-strip {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 250px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

.hud-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.hud-panel.left {
    flex: 0 0 25%;
    align-items: center;
}

.hud-panel.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 50%;
    border-left: 1px solid rgba(0, 255, 136, 0.2);
    border-right: 1px solid rgba(0, 255, 136, 0.2);
}

.hud-panel.right {
    flex: 0 0 25%;
}

.hud-title-wrap {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* --- GLOBAL NAVIGATION (Transparent HUD Style) --- */
.nav-categories {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3rem;
    width: 100%;
    z-index: 90;
    /* NO BLACK BAR (v10.2) */
    background: transparent !important;
}

.nav-link {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.8;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 15px var(--accent);
}

.nav-link.active {
    border-bottom: 2px solid var(--flash);
    color: #fff;
    text-shadow: 0 0 15px var(--flash);
}

/* Featured Large Button (v10.2) */
.btn-sightings-large {
    background: var(--accent);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-sightings-large:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.8);
    background: #fff;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/8/83/Equirectangular_projection_SW.jpg') center/contain repeat-x;
    opacity: 0.25;
    filter: brightness(0.4) contrast(1.3) sepia(1) saturate(3) hue-rotate(90deg);
    z-index: 0;
}

.version-badge {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
    opacity: 0.6;
    font-weight: 800;
    box-shadow: 0 0 15px var(--accent);
    z-index: 10;
    animation: badge-pulse 2s infinite alternate;
    padding: 5px 12px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
}

.tac-cluster-left {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.tac-cluster-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    z-index: 100;
}

.tac-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: var(--accent);
    cursor: pointer;
    background: rgba(0, 255, 136, 0.05);
    padding: 5px 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    transition: all 0.3s;
    letter-spacing: 1.5px;
    z-index: 100;
}

.tac-toggle:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.tac-toggle.muted {
    opacity: 0.5;
    color: var(--flash);
    border-color: var(--flash);
}


@keyframes badge-pulse {
    from {
        box-shadow: 0 0 10px var(--accent);
    }

    to {
        box-shadow: 0 0 25px var(--accent);
    }
}

.tac-cluster-left {
    position: absolute;
    top: 2.2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    z-index: 100;
}

.tac-cluster-right {
    position: absolute;
    top: 2.2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 100;
}

.tac-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 2px 0;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tac-link:hover {
    color: #fff;
    text-shadow: 0 0 15px var(--accent);
    cursor: pointer;
}

.header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    transform: translateX(-50%);
    opacity: .08;
    animation: pulse-glow 5s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse-glow {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.05;
    }

    100% {
        transform: translateX(-50%) scale(1.1);
        opacity: 0.1;
    }
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), #00ffcc, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow);
    animation: gradient-shift 4s linear infinite;
    position: relative;
    z-index: 2;
    letter-spacing: 4px;
    margin: 0 auto;
    width: fit-content;
    white-space: nowrap;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.subtitle {
    font-size: 1rem;
    opacity: .85;
    margin-top: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* --- NAVIGATION HELPERS --- */
.tac-link-spacer {
    height: 0.75rem;
    line-height: inherit;
    display: block;
    margin-bottom: 0.6rem;
}

@keyframes tab-breathe {
    from {
        opacity: 0.6;
        transform: scaleX(0.8);
    }

    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* --- WELCOME --- */
#welcome-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 4rem;
    max-width: 90%;
    width: 800px;
    box-shadow: 0 0 80px rgba(0, 255, 136, .15);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    transition: all 1s ease;
    pointer-events: none;
    text-align: center;
}

#welcome-message.show {
    opacity: 1;
    pointer-events: auto;
}

#welcome-message.fade {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.welcome-inner {
    line-height: 2;
}

.welcome-inner strong {
    font-size: 1.5rem;
}

.welcome-inner .highlight {
    color: var(--accent);
    font-size: 1.4rem;
    display: block;
    margin-top: 2rem;
}

/* --- CONTENT --- */
#content-wrapper {
    opacity: 0;
    transition: opacity 1.5s ease;
    padding: 1.5rem 3rem 3rem 3rem;
    /* Reduced top padding by half */
    max-width: 100%;
    margin: 0 auto;
}

#content-wrapper.visible {
    opacity: 1;
}

/* --- HERO SECTION --- */
#hero-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    height: 450px;
    z-index: 200;
}

.loading-state {
    background: rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px dashed rgba(255, 255, 255, 0.1) !important;
}

.hero-card {
    flex: 1;
    position: relative;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.25);
    z-index: 10;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.6);
    background-color: #000;
}

.hero-card:hover .hero-bg {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-badge {
    background: var(--accent);
    color: #000;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    display: inline-block;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Orbitron';
    font-size: 24px !important;
    /* Fixed pixel size to prevent runaway scaling */
    letter-spacing: 1px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}

.hero-meta {
    font-size: 0.9rem;
    color: #cbd5e0;
    line-height: 1.5;
    opacity: 0.9;
}

.hidden {
    display: none !important;
}

/* --- AGENCY PORTAL (HIGH-FIDELITY HUD v9.19.02) --- */
.agency-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    padding: 4rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    justify-content: center;
    animation: fadeIn 0.8s ease-out;
}

.agency-card {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 4rem 2rem 3rem;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 520px;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px),
            calc(100% - 20px) 100%, 0 100%, 0 20px);
    overflow: hidden;
}

/* Detailed Circuit Frame */
.agency-card::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px),
            calc(100% - 18px) 100%, 0 100%, 0 18px);
    pointer-events: none;
    z-index: 1;
}

.agency-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 19px, rgba(0, 255, 136, 0.1) 20px, transparent 21px),
        linear-gradient(-135deg, transparent 19px, rgba(0, 255, 136, 0.1) 20px, transparent 21px),
        repeating-linear-gradient(45deg, rgba(0, 255, 136, 0.02) 0px, rgba(0, 255, 136, 0.02) 1px, transparent 1px, transparent 10px);
    pointer-events: none;
    z-index: 0;
}

.card-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--accent);
    z-index: 5;
    filter: drop-shadow(0 0 15px var(--accent));
}

.card-corner.tl {
    top: -5px;
    left: -5px;
    border-right: 0;
    border-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 4px, 4px 100%, 0 100%);
}

.card-corner.tr {
    top: -5px;
    right: -5px;
    border-left: 0;
    border-bottom: 0;
}

.card-corner.bl {
    bottom: -5px;
    left: -5px;
    border-right: 0;
    border-top: 0;
}

.card-corner.br {
    bottom: -5px;
    right: -5px;
    border-left: 0;
    border-top: 0;
    clip-path: polygon(100% 100%, 0 100%, 0 calc(100% - 4px), calc(100% - 4px) 0, 100% 0);
}

.agency-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
}

.agency-card:hover::before {
    inset: -10px;
    border-color: var(--accent);
    opacity: 1;
}

.agency-seal {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    background: transparent;
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2), inset 0 0 15px rgba(0, 255, 136, 0.1);
    transition: 0.4s;
    position: relative;
    z-index: 2;
}

.agency-seal::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px dashed rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.agency-seal img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.agency-card h2 {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    text-transform: uppercase;
}

.agency-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.agency-access-btn {
    margin-top: auto;
    background: var(--accent);
    color: #000;
    padding: 0.6rem 2rem;
    border-radius: 2px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.agency-card:hover .agency-access-btn {
    background: #fff;
    box-shadow: 0 0 30px #fff;
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .agency-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- NEWS GRID --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* FORCED 5 columns per user request */
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
    width: 100%;
}

/* @media (max-width: 1400px) removed to force 5 columns on desktop */

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        /* Reduced gap for mobile */
    }

    /* Force vertical stack and full width */
    #hero-section {
        flex-direction: column !important;
        height: auto !important;
        display: flex !important;
        gap: 1rem !important;
    }

    .hero-card {
        min-height: 250px;
        width: 100% !important;
        flex: none !important;
        margin-bottom: 1rem;
    }

    #content-wrapper {
        padding: 1.5rem 0.25rem !important;
        /* Extremely minimal side padding */
        width: 100% !important;
        max-width: 100% !important;
    }

    .news-grid {
        grid-template-columns: 1fr;
        /* 1 column for mobile (full width stories) */
        gap: 1rem !important;
    }
}

.article {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    height: 260px;
    opacity: 1;
    transform: none;
    min-width: 0;
    /* CRITICAL: Allows grid to shrink items to fit 5 across */
}

.article:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.15);
}

.article img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s ease;
    background-color: #000;
}

.article:hover img {
    transform: scale(1.05);
}

/* --- BLOG & COSMIC CALENDAR LAYOUT (Restored v9.19.04) --- */
.container {
    position: relative;
    z-index: 10;
    max-width: 98%;
    /* Was 1400px - Widened for Shop/Video consistency */
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem 2rem 2rem;
    /* Reduced top padding by half */
    /* Reduced top padding? No, keep standard */
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Layout Reset for Mobile */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.back-btn {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.back-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

/* SIDEBAR */
.sidebar-widget {
    background: rgba(17, 24, 39, .96);
    border: 1px solid var(--border);
    border-top: 4px solid var(--yellow);
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 2rem;
    margin-bottom: 2rem;
    height: fit-content;
}

.widget-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.widget-link {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s;
    font-size: 0.9rem;
}

.widget-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* POST STYLES */
.post {
    background: rgba(17, 24, 39, .96);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.post-meta {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 1rem;
}

.post-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.post-body {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #bdc3c7;
}

.post-body p {
    margin-bottom: 1.2rem;
}

img.post-img {
    width: 100%;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
    border-bottom: none !important;
    height: auto !important;
    background: transparent !important;
}

img.post-img:hover {
    opacity: 1;
    transform: none !important;
}

.article h3 {
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0.8rem 0.8rem 0.3rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article p {
    font-size: 0.75rem;
    margin: 0 0.8rem 0.8rem;
    opacity: 0.8;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    padding: 0.5rem 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex !important;
    visibility: visible !important;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.3);
    margin-top: auto;
    flex-shrink: 0;
}

.source {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SHOP & VIDEO GRID SUPPORT --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    /* FORCE 3 COLUMNS */
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

/* --- CHANNEL GRID --- */
#channel-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem;
    margin-top: 2rem;
    width: 100%;
    background: rgba(10, 14, 23, .6);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    width: 100% !important;
}

@media (max-width: 1300px) {
    #channel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1000px) {
    #channel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    #channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #channel-grid {
        grid-template-columns: 1fr;
    }
}

#channel-grid.visible {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.yt-channel {
    background: rgba(17, 24, 39, .8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #ec4899;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.yt-channel:hover {
    transform: translateY(-5px);
    border-color: #ec4899;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

.yt-icon {
    font-size: 2.5rem;
}

/* Base thumb setup (Desktop) */
.yt-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.yt-channel:hover .play-overlay {
    opacity: 1;
}

.yt-name {
    font-weight: 800;
    font-family: 'Orbitron';
    font-size: 1rem;
    color: #fff;
}

.yt-desc {
    font-size: 0.8rem;
    opacity: 0.7;
    color: #ec4899;
}

/* --- UTILS --- */
.load-more-wrapper {
    text-align: center;
    padding: 4rem 0;
}

#load-more-btn {
    background: #000;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 14px 45px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 25px var(--yellow-glow);
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.1rem;
    font-family: 'Orbitron', sans-serif;
}

#load-more-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px var(--yellow-glow);
    background: var(--yellow);
    color: #000;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MODAL --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-content.glass {
    background: var(--glass-heavy);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
    color: var(--flash);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

/* Custom Checkbox */
.check-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #cbd4e1;
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.check-container:hover input~.checkmark {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.check-container input:checked~.checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.check-container input:checked~.checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.privacy-statement {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--accent);
    padding: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.privacy-statement strong {
    color: var(--accent);
    letter-spacing: 1px;
}

.submit-btn {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    filter: brightness(1.1);
}

.feedback-message {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.feedback-message.hidden {
    display: none;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse-glow 2s infinite alternate;
}

.feedback-message p {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    letter-spacing: 1px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    #hero-section {
        height: auto;
        flex-direction: column;
    }

    .hero-card {
        height: 250px;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 2rem;
    }

    .tac-cluster-left,
    .tac-cluster-right {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-bottom: 1rem;
        gap: 1rem;
        padding: 0;
    }

    .tac-cluster-left {
        margin-top: 1rem;
        align-items: center;
    }

    .tac-cluster-right {
        align-items: center;
    }

    .dashboard-link {
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }

    .agency-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .agency-card {
        padding: 1.5rem 1rem 1rem;
        min-height: auto;
    }

    .agency-seal {
        width: 140px;
        height: 140px;
        margin-bottom: 1rem;
    }

    .hud-panel.left,
    .hud-panel.right {
        display: none;
    }

    .hud-panel.center {
        flex: 0 0 100%;
        width: 100%;
        border-left: none;
        border-right: none;
        padding: 1rem;
    }

    .hud-title-wrap {
        text-align: center;
        width: 100%;
    }

    .hud-title-wrap h1 {
        font-size: clamp(1.5rem, 5vw, 3.5rem);
        /* word-break removed to prevent "Ne-ws" splitting */
        line-height: 1.1;
        letter-spacing: 1px;
        /* FIX: Reduce from 4px to prevent overflow */
    }

    /* Force .News to new line on mobile */
    .brand-suffix {
        display: block;
        font-size: 0.9em;
        white-space: nowrap;
        /* CRITICAL: Prevent Ne-ws split */
    }

    /* Mobile Header Adjustments */
    .nav-categories {
        position: static;
        /* Stack on mobile */
        background: none;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
        padding: 0;
    }

    #welcome-message {
        padding: 2rem;
    }

    .news-grid {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        margin-inline: auto;
        padding: 0;
        /* Clear padding */
        gap: 2rem;
    }

    /* Force Center Content inside Cards */
    .article,
    .hero-card {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        /* Center text inside cards */
    }

    .article img {
        margin: 0 auto 1rem auto;
        /* Center images */
    }

    /* GLOBAL MOBILE RESET TO FIX LEFT GAP */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .container,
    .news-grid {
        padding: 0 0.5rem !important;
        /* Ensure consistent edges */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        /* CRITICAL: Break the 1fr 350px grid on mobile */
    }

    /* COSMIC CALENDAR & BLOG MOBILE TEXT WRAP FIX */
    .post {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto !important;
        padding: 1.5rem !important;
    }

    .media-container {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1.5rem 0 !important;
    }
}