/* TLAB Specific Styles */
:root {
    --timnex-blue: #21A1E1;
    --timnex-black: #050505;
}

/* Nigeria Map Command Center Styling */
.nigeria-svg {
    width: 100%;
    max-width: 550px;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg) brightness(0.7);
    opacity: 0.8;
    transition: 0.5s;
}

.nigeria-map-wrapper:hover .nigeria-svg {
    opacity: 1;
    filter: invert(1) sepia(1) saturate(10) hue-rotate(185deg) brightness(1);
}
.funk {
    color: white;
}
/* New Scanner Effect */
.map-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(33, 161, 225, 0.1) 1px, transparent 1px);
    background-size: 100% 40px;
    animation: scanLine 4s linear infinite;
    pointer-events: none;
    border-radius: 10px;
}

@keyframes scanLine {
    0% { background-position: 0 0; }
    100% { background-position: 0 400px; }
}

/* State Node Feed */
.state-node {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.state-node:hover {
    background: rgba(33, 161, 225, 0.1);
    border-color: var(--timnex-blue);
    transform: translateX(10px);
}

.active-node {
    border-left: 3px solid var(--timnex-blue) !important;
}

/* Coordinate Positions on Nigeria Map */
.node-lagos { top: 78%; left: 16%; }
.node-abuja { top: 48%; left: 45%; }
.node-kano { top: 18%; left: 55%; }

/* Map Pulse Enhancements */
.node-pulse {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--timnex-blue);
    cursor: crosshair;
    z-index: 5;
}

.map-info-float {
    position: absolute;
    bottom: 0;
    right: 20px;
    border: 1px solid var(--timnex-blue);
    background: rgba(0,0,0,0.8);
    color: var(--timnex-blue);
    letter-spacing: 1px;
}

.node-pulse {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--timnex-blue);
    cursor: pointer;
}

.node-pulse::after {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    background: var(--timnex-blue);
    border-radius: 50%;
    opacity: 0.2;
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% { transform: scale(0.1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Positioning for Nigeria and Ghana on the SVG */
.nigeria { top: 58%; left: 48%; }
.ghana { top: 60%; left: 44%; }

/* Quote Ticker */
.quote-ticker {
    white-space: nowrap;
    width: 100%;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    font-family: 'Space Mono', monospace;
    color: var(--timnex-blue);
    font-size: 0.85rem;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Blueprint Section */
.blueprint-card {
    background: rgba(255,255,255,0.02);
    transition: 0.4s;
}

.blueprint-card:hover {
    background: rgba(33, 161, 225, 0.05);
}

.step-icon {
    font-size: 2rem;
    color: var(--timnex-blue);
    opacity: 0.7;
}

/* Evidence Cards */
.evidence-card {
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.evidence-card.active {
    border-color: var(--timnex-blue);
    transform: translateY(-5px);
}

.user-avatar-sm {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    background: #000;
}

/* Reusing Scan Line from PartP */
.scan-line {
    position: fixed; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(to bottom, transparent, var(--timnex-blue), transparent);
    opacity: 0.1;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

@keyframes scan { from { top: -10%; } to { top: 110%; } }

.grayscale-hover i {
    transition: 0.3s;
    cursor: help;
}

.grayscale-hover i:hover {
    filter: none;
    opacity: 1;
    color: var(--timnex-blue);
    transform: scale(1.1);
}

/* Alliance Cards Styling */
.alliance-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.alliance-card:hover {
    transform: translateY(-10px);
    border-color: rgba(33, 161, 225, 0.4);
    background: rgba(33, 161, 225, 0.05);
}

.alliance-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Tier Pills & Glows */
.tier-pill {
    display: inline-block;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Mono', monospace;
}

/* Bronze Tier */
.tier-bronze {
    background: #cd7f32;
    color: #000;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Silver Tier */
.tier-silver {
    background: #c0c0c0;
    color: #000;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

/* Gold Tier */
.tier-gold {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* Platinum Tier */
.tier-platinum {
    background: #e5e4e2;
    color: #000;
    box-shadow: 0 0 15px rgba(229, 228, 226, 0.6);
}

/* Diamond Tier (Max Glow) */
.tier-diamond {
    background: #b9f2ff;
    color: #000;
    box-shadow: 0 0 20px rgba(185, 242, 255, 0.8);
    animation: diamondGlow 2s infinite alternate;
}

@keyframes diamondGlow {
    from { box-shadow: 0 0 10px rgba(185, 242, 255, 0.5); }
    to { box-shadow: 0 0 25px rgba(185, 242, 255, 1); }
}

.font-mono {
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
}

/* Quote Card Styles */
.quote-frame {
    border: 1px solid rgba(33, 161, 225, 0.3);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.quote-frame:hover {
    border-color: var(--timnex-blue);
    box-shadow: 0 0 40px rgba(33, 161, 225, 0.15);
}

.quote-body {
    transition: all 0.5s ease;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--timnex-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

#mainQuote {
    font-size: 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

#quoteAuthor {
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lab-hero .text-gradient {
    background: linear-gradient(45deg, #fff, var(--timnex-blue), #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- JOURNAL LOG ENHANCEMENTS --- */
.journal-pulse {
    width: 12px; height: 12px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--timnex-blue);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.journal-entry {
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journal-entry:hover {
    border-color: var(--timnex-blue) !important;
    transform: translateX(10px) scale(1.02);
    background: rgba(33, 161, 225, 0.05);
}

.entry-status-tag {
    position: absolute;
    top: 0; right: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 2px 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom-left-radius: 8px;
}

.highlight-entry {
    border-left: 3px solid var(--timnex-blue) !important;
}

/* --- DEVSTACK ALPHA VISUALIZATION --- */
.future-vision-card {
    min-height: 500px;
    border: 1px solid rgba(33, 161, 225, 0.3);
}

.card-glow-bg {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(33, 161, 225, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.architecture-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-circle {
    width: 120px; height: 120px;
    border: 2px dashed rgba(33, 161, 225, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateCircle 20s linear infinite;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbiting-nodes .node {
    position: absolute;
    width: 35px; height: 35px;
    background: #000;
    border: 1px solid var(--timnex-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--timnex-blue);
    font-size: 0.8rem;
    animation: antiRotate 20s linear infinite;
}

@keyframes antiRotate {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.n1 { top: -17px; left: 50%; transform: translateX(-50%); }
.n2 { bottom: -17px; left: 10%; }
.n3 { bottom: -17px; right: 10%; }

.tracking-wider { letter-spacing: 3px; }

/* --- FRONTIER MAP VISUALIZATION --- */
.frontier-map {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

/* Connection Pulses representing different cities/sectors */
.connection-pulse {
    position: absolute;
    width: 10px; height: 10px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--timnex-blue);
}

.connection-pulse::before {
    content: '';
    position: absolute;
    top: -100%; left: -100%;
    width: 300%; height: 300%;
    border: 1px solid var(--timnex-blue);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.p1 { top: 20%; left: 45%; } /* Lagos Node */
.p2 { top: 60%; right: 30%; } /* Social Node */
.p3 { bottom: 10%; left: 40%; } /* Economic Node */

/* Data Streams (Animated lines) */
.data-stream {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--timnex-blue), transparent);
    height: 1px;
    opacity: 0.3;
}

.s1 { width: 100px; transform: rotate(45deg); top: 30%; left: 35%; animation: streamFlow 3s infinite; }
.s2 { width: 80px; transform: rotate(-30deg); bottom: 40%; right: 35%; animation: streamFlow 4s infinite; }

@keyframes streamFlow {
    0% { opacity: 0; transform: translateX(-20px) rotate(inherit); }
    50% { opacity: 0.5; }
    100% { opacity: 0; transform: translateX(20px) rotate(inherit); }
}

.highlight-entry {
    border-left: 3px solid var(--timnex-blue) !important;
}

.font-mono { font-family: 'Space Mono', monospace; }
.tracking-wider { letter-spacing: 3px; }


/* --- SEARCH BAR --- */
.cyber-search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(33, 161, 225, 0.2);
    border-radius: 4px;
    padding: 10px 15px 10px 40px;
    color: white;
    font-size: 0.75rem;
    width: 280px;
    transition: 0.3s;
    outline: none;
}
.cyber-search-input:focus {
    border-color: var(--timnex-blue);
    background: rgba(33, 161, 225, 0.1);
    box-shadow: 0 0 15px rgba(33, 161, 225, 0.2);
}

/* --- DYNAMIC JOURNAL ENTRIES --- */
.journal-entry {
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.journal-entry:hover {
    border-color: var(--timnex-blue) !important;
    transform: translateX(10px) scale(1.01);
    background: rgba(33, 161, 225, 0.05);
}
.entry-status-tag {
    position: absolute;
    top: 0; right: 0;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    padding: 3px 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom-left-radius: 8px;
    letter-spacing: 1px;
}
.journal-pulse {
    width: 12px; height: 12px;
    background: var(--timnex-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--timnex-blue);
    animation: pulseGlow 2s infinite;
}

/* --- PROJECT FRONTIER VISUALS --- */
.frontier-map { position: relative; display: flex; justify-content: center; align-items: center; height: 160px; }
.connection-pulse { position: absolute; width: 10px; height: 10px; background: var(--timnex-blue); border-radius: 50%; box-shadow: 0 0 15px var(--timnex-blue); }
.connection-pulse::after {
    content: ''; position: absolute; top: -100%; left: -100%; width: 300%; height: 300%;
    border: 1px solid var(--timnex-blue); border-radius: 50%; animation: pulseRing 2s infinite;
}
@keyframes pulseRing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.p1 { top: 20%; left: 45%; } .p2 { top: 60%; right: 30%; } .p3 { bottom: 15%; left: 40%; }

.data-stream { position: absolute; background: linear-gradient(90deg, transparent, var(--timnex-blue), transparent); height: 1px; opacity: 0.2; }
.s1 { width: 120px; transform: rotate(45deg); top: 30%; left: 30%; animation: stream 3s infinite; }
.s2 { width: 100px; transform: rotate(-30deg); bottom: 40%; right: 30%; animation: stream 4s infinite; }
@keyframes stream { 0% { opacity: 0; transform: translateX(-30px) rotate(inherit); } 50% { opacity: 0.4; } 100% { opacity: 0; transform: translateX(30px) rotate(inherit); } }

@keyframes pulseGlow { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }

/* Bug Bounty Glitch Animation */
.bug-trigger {
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.bug-trigger.glitching {
    animation: text-glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #ff003c !important; /* Red glitch color */
    text-shadow: 2px 0 #00fff9, -2px 0 #ff00c1;
}

@keyframes text-glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Modal Border Success Color */
.border-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
}

/* Footer Navigation Styling */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--timnex-blue);
    padding-left: 5px;
}

/* Small Social Buttons */
.social-btn-sm {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.social-btn-sm:hover {
    background: var(--timnex-blue);
    color: #000;
    border-color: var(--timnex-blue);
    transform: translateY(-3px);
}

/* Footer Input Field */
.footer-form .cyber-input-sm {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    color: white;
    padding: 12px 15px;
    font-size: 0.8rem;
    border-radius: 4px;
    outline: none;
}

.footer-form .cyber-input-sm:focus {
    border-color: var(--timnex-blue);
}

/* Metadata Indicator Animation */
.status-indicator {
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* TERMINAL FLOATING BUTTON */
.cli-float-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    border: 1px solid var(--timnex-blue);
    border-radius: 50%;
    color: var(--timnex-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(33, 161, 225, 0.3);
    transition: 0.3s;
}
.cli-float-btn:hover {
    transform: scale(1.1);
    background: var(--timnex-blue);
    color: #000;
}
.cli-badge {
    animation: blink 1s infinite;
    font-weight: bold;
    margin-left: 2px;
}

/* TERMINAL WINDOW */
.cli-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cli-window {
    width: 600px;
    height: 400px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-family: 'Space Mono', monospace;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
.cli-header {
    background: #1a1a1a;
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}
.dot-r, .dot-y, .dot-g { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.cli-title { margin-left: auto; margin-right: auto; color: #777; font-size: 0.8rem; }
.close-cli { cursor: pointer; color: #fff; font-size: 1.2rem; }

.cli-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    color: #eee;
    font-size: 0.9rem;
}
.cli-line { margin-bottom: 5px; }
.cli-input-area {
    padding: 10px 15px;
    border-top: 1px solid #333;
    display: flex;
    align-items: center;
}
.prompt { color: #27c93f; margin-right: 10px; }
#cliInput {
    background: transparent;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
    font-family: 'Space Mono', monospace;
}