* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff88;
    --secondary-green: #00cc6f;
    --neon-green: #00FF7F;
    --cyber-blue: #0088FF;
    --dark-bg: #050505;
    --darker-bg: #000000;
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-accent: rgba(0, 255, 136, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #475569;
}

.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.neon-glow {
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3);
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Premium Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* Operational Grid Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Navigation Animation */
.nav-links a {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green) !important;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Card Interaction - High End */
.solution-card {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green) !important;
    background: #0c0c0c !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 136, 0.05);
}

.solution-card:hover svg {
    stroke: var(--primary-green);
    filter: drop-shadow(0 0 8px #00ff88);
}

/* Language Switcher */
.lang-switcher {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
}

#lang-switch-btn {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

#lang-switch-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

#lang-switch-btn .flag {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .lang-switcher {
        margin: 1.5rem 0 0 0;
        width: 100%;
        justify-content: center;
    }

    #lang-switch-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}

/* Smooth Scrolling & Performance */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Badge Styling */
.hero-badge {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Circle Animations */
.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    transform: translate(-50%, -50%);
    animation: radarPulse 6s infinite ease-out;
    pointer-events: none;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

/* Radar Grid & Visuals */
.radar-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.radar-grid-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
}

.radar-grid-axis {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(0, 255, 136, 0.3);
    transform-origin: center;
}

/* Radar Sweep Animation */
.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(0, 255, 136, 0.6) 0deg, transparent 80deg);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    pointer-events: none;
    z-index: 2;
    animation: sweepRotation 4s linear infinite;
}

@keyframes sweepRotation {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Radar Objects (Pings) */
.radar-object {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 15px #00ff88;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.ping-active {
    animation: objectPing 4s linear infinite;
}

@keyframes objectPing {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
        transform: scale(1.5);
    }

    15% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Centered Logo Container */
.shield-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
}

.shield-wrapper:hover .shield-container {
    border-color: #00ff88;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.2);
}

.hero-visual {
    margin-top: 5rem !important;
    padding-top: 2rem;
}

.shield-wrapper {
    position: relative;
    width: 420px;
    height: 420px;
    border: 2px solid #00ff88;
    /* Strong green border */
    border-radius: 50%;
    overflow: hidden;
    cursor: crosshair;
    background: #0a110d;
    /* Subtle green-black background */
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4rem !important;
    }

    .portfolio-grid,
    .tech-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Brand Logo Typography - Pure Code */
.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    letter-spacing: -0.5px;
    display: block;
}

.brand-dot {
    color: #00ff88;
}

/* Footer specific overrides */
.footer .brand-text {
    font-size: 1.8rem;
}

/* --- RESPONSIVE HEADER GLOBAL OVERRIDES --- */
/* --- RESPONSIVE HEADER & NAVIGATION --- */
.navbar {
    font-family: 'Outfit', sans-serif;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 5% !important;
    background: rgba(10, 14, 23, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10001 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    height: 80px !important;
    box-sizing: border-box !important;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white !important;
    letter-spacing: 1px;
}

.brand-dot {
    color: #00ff88 !important;
}

body {
    padding-top: 80px !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10002;
    padding: 5px;
    width: 35px;
    height: 35px;
}

.menu-toggle .bar {
    width: 100% !important;
    height: 3px !important;
    background-color: #00ff88 !important;
    border-radius: 2px !important;
    transition: 0.3s !important;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ff88;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    min-width: 200px;
    background: rgba(10, 14, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88 !important;
    padding-left: 2rem;
}


.secure-btn {
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    border-radius: 4px;
    color: var(--neon-green) !important;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.secure-btn:hover {
    background: var(--neon-green);
    color: black !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
        width: 32px !important;
        height: 24px !important;
        justify-content: space-between !important;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        display: flex !important;
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }



    .nav-links a {
        font-size: 1.1rem;
    }

    /* Force all grids to 1 column */
    .grid,
    .portfolio-grid,
    .footer-grid,
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Stack flex containers */
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    .split-grid-hero,
    .split-grid-2,
    .split-grid-auto {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem !important;
    }

    .container {
        padding: 0 1.5rem !important;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta button {
        width: 100%;
    }
}

/* --- NEWS SECTION STYLES --- */
.news-section {
    padding: 6rem 0;
    background: #050505;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.news-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    color: white;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 136, 0.05);
}

.news-image {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.news-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.news-label {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(0, 255, 136, 0.05);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    color: white;
}


.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

.nopubly-recommendation {
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 4rem;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nopubly-recommendation::before {
    content: '// NOPUBLY_ADVISORY';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #050505;
    padding: 0 10px;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

/* Social Sharing Buttons */
.share-section {
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-align: center;
}

.share-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

.share-btn-x {
    background: #000;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.share-btn-x:hover {
    background: #111;
    border-color: #fff;
    transform: translateY(-2px);
}

.share-btn-wa {
    background: #25D366;
    color: #fff;
}

.share-btn-wa:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.share-btn-copy {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.share-btn-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
    transform: translateY(-2px);
}

.share-btn-copy.success {
    border-color: #00ff88;
    color: #00ff88;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .corporate-portal .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .corporate-portal .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-header {
        padding: 6rem 1rem 3rem;
    }

    .article-main-image {
        height: 250px;
        margin-bottom: 2rem;
    }

    .article-body {
        font-size: 1.05rem;
        padding: 0 1.5rem;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .share-section {
        padding: 1.5rem 1rem;
        margin: 2rem 1rem;
    }

    .share-buttons {
        flex-direction: column;
        width: 100%;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .nopubly-recommendation {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}

/* --- MISSION RUNNER MODAL --- */
.mission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mission-modal.active {
    opacity: 1;
    pointer-events: all;
}

.mission-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    /* Mobile friendly */
    background: #0f172a;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mission-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mission-progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.mission-progress-bar {
    height: 100%;
    width: 0%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    transition: width 0.3s ease;
}

.close-mission-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.close-mission-btn:hover {
    color: white;
}

.mission-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    color: #e2e8f0;
    line-height: 1.6;
}

.mission-slide {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mission-slide h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.mission-slide p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.mission-slide img {
    width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quiz-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.quiz-option.selected {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.quiz-option.correct {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.quiz-option.wrong {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    opacity: 0.7;
}

.mission-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.9);
}

.mission-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: #00ff88;
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: #00cc6a;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* --- CERTIFICATE MODAL --- */
.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    /* Above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cert-modal.active {
    opacity: 1;
    pointer-events: all;
}

.cert-window {
    width: 90%;
    max-width: 800px;
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.1);
    position: relative;
    text-align: center;
    color: white;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cert-modal.active .cert-window {
    transform: scale(1);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.cert-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-green);
}

.cert-id {
    font-family: 'JetBrains Mono', monospace;
    color: #666;
    font-size: 0.9rem;
}

.cert-body {
    margin-bottom: 3rem;
}

.cert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.cert-text {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 1rem;
}

.cert-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.cert-course {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 3rem;
}

.cert-signature {
    text-align: center;
}

.sig-line {
    width: 200px;
    height: 1px;
    background: #666;
    margin-bottom: 0.5rem;
}

.cert-signature p {
    color: #666;
    font-size: 0.9rem;
}

.cert-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.2s;
}

.cert-close-btn:hover {
    color: white;
    border-color: white;
}
/* --- INTELLIGENCE DASHBOARD STYLES --- */

.intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.intel-card {
    background: rgba(10, 14, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 255, 136, 0.3);
}

.intel-card h3 {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Threat Meter */
.threat-meter {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin: 1.5rem 0;
    position: relative;
    width: 100%;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffcc00, #ff4444);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    transition: width 1s ease-in-out;
}

.threat-text {
    display: block;
    text-align: right;
    font-size: 1.2rem;
    font-weight: 800;
    color: #ff4444;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.threat-desc {
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Stats Row */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* News Feed */
.news-feed-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.news-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

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

.news-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.news-severity {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-high {
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
    background: rgba(255, 68, 68, 0.1);
}

.severity-medium {
    color: #ffcc00;
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.1);
}

.news-title {
    color: white;
    font-weight: 600;
    display: block;
    margin-bottom: 0.3rem;
}

.news-snippet {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Scrollbar for news */
.news-feed-container::-webkit-scrollbar {
    width: 6px;
}

.news-feed-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.news-feed-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.intel-actions {
    margin-top: 2rem;
    text-align: right;
}
