
/* Tactical Carousel Page Styles - V8.8 (Repaired Navigation Layout) */

:root {
    --mission-gap: 30px;
    --teal: #0d9488;
    --teal-glow: rgba(13, 148, 136, 0.3);
    --text-main: #0f172a;
    --text-muted: #475569;
    --font-mono: 'Fira Code', monospace;
    --card-bg: #ffffff;
    --card-border: rgba(13, 148, 136, 0.1);
    --hud-white: rgba(255, 255, 255, 0.9);
}

.mission-registry-view {
    background: #fdfdfe;
    overflow-x: hidden;
}

/* --- Mission Hero --- */
.mission-hero {
    position: relative;
    padding: 160px 0 100px;
    background: #f1f5f9;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.radar-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.05) 0%, transparent 60%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 40px, rgba(13, 148, 136, 0.03) 41px, transparent 42px);
    opacity: 0.8;
}

.mission-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 25px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--teal);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.pulse-dot {
    width: 8px; height: 8px; background: var(--teal);
    border-radius: 50%; animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--teal); }
}

.system-metrics {
    margin-top: 40px; display: flex; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}

.metric { text-align: right; font-family: var(--font-mono); min-width: 120px; }
[dir="ltr"] .metric { text-align: left; }
.metric label { display: block; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; }
.metric .val { font-size: 1.1rem; font-weight: 800; color: var(--teal); }

/* --- Carousel Viewer Frame --- */
.carousel-outer-frame {
    position: relative; background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05); border-radius: 24px;
    padding: 20px; box-shadow: 0 40px 100px rgba(0,0,0,0.04);
}

@media (min-width: 768px) { .carousel-outer-frame { padding: 40px; } }

.frame-corners .c { position: absolute; width: 30px; height: 30px; border: 2px solid var(--teal); z-index: 5; }
.frame-corners .tl { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.frame-corners .tr { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.frame-corners .bl { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }
.frame-corners .br { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }

[dir="ltr"] .frame-corners .tl { right: auto; left: 20px; border-left: 2px solid var(--teal); border-right: 0; }
[dir="ltr"] .frame-corners .tr { left: auto; right: 20px; border-right: 2px solid var(--teal); border-left: 0; }
[dir="ltr"] .frame-corners .bl { right: auto; left: 20px; border-left: 2px solid var(--teal); border-right: 0; }
[dir="ltr"] .frame-corners .br { left: auto; right: 20px; border-right: 2px solid var(--teal); border-left: 0; }

/* --- Carousel Header Refinement --- */
.carousel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding-bottom: 20px;
}

.carousel-title-meta { 
font-size: 1.5rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
  font-weight: bold;
}
.carousel-title-meta span{
	
}
.carousel-title-meta i { color: var(--teal); animation: rotateChip 5s linear infinite; }
@keyframes rotateChip { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }

/* --- NEW CAROUSEL FOOTER --- */
.carousel-footer-v3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

@media (min-width: 768px) {
    .carousel-footer-v3 {
        flex-direction: row;
        justify-content: space-between;
    }
}

.carousel-nav-controls {
    display: flex; align-items: center; gap: 12px; padding: 10px 15px;
    background: #f1f5f9; border-radius: 50px;
    border: 1px solid rgba(13, 148, 136, 0.1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.nav-btn {
    width: 44px; height: 44px; background: #fff; border: 1px solid #cbd5e1; color: var(--text-main);
    cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; border-radius: 50%; z-index: 1;
}

.nav-btn::before { content: ''; position: absolute; inset: 0; background: var(--teal); transform: scale(0); transition: transform 0.4s; z-index: -1; }
.nav-btn:hover:not(:disabled) { color: #fff; box-shadow: 0 4px 12px var(--teal-glow); }
.nav-btn:hover:not(:disabled)::before { transform: scale(1); }
.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(1); }

.nav-info { font-family: 'Orbitron'; font-weight: 800; font-size: 0.8rem; color: var(--text-main); min-width: 65px; text-align: center; letter-spacing: 1px;display: none; }
.nav-info span#currIdx { color: var(--teal); }

/* --- MISSION CARDS (UNCHANGED CORE) --- */
.carousel-viewport { overflow: hidden; position: relative; padding: 10px 0; }
.mission-track { display: flex; gap: var(--mission-gap); will-change: transform; transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }

.mission-node {
    flex: 0 0 100%; min-width: 100%;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 24px;
    overflow: hidden; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

@media (min-width: 641px) { .mission-node { flex: 0 0 calc(50% - (var(--mission-gap) / 2)); min-width: calc(50% - (var(--mission-gap) / 2)); } }
@media (min-width: 1025px) { .mission-node { flex: 0 0 calc(33.333% - (var(--mission-gap) * 2 / 3)); min-width: calc(33.333% - (var(--mission-gap) * 2 / 3)); } }

.mission-node:hover {
    transform: translateY(-12px);
    border-color: var(--teal);
    box-shadow: 0 40px 80px rgba(13, 148, 136, 0.15);
    z-index: 10;
}

.node-id-tag {
    position: absolute; top: 20px; left: 20px; z-index: 15;
    font-family: var(--font-mono); font-size: 0.6rem; color: #fff;
    background: rgba(15, 23, 42, 0.8); padding: 5px 12px; border-radius: 4px;
    backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15);
}

.node-visual { position: relative; height: 260px; background: #000; overflow: hidden; }
.node-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1); }

.visual-noise { position: absolute; inset: 0; z-index: 2; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
.visual-grid { position: absolute; inset: 0; z-index: 3; opacity: 0.2; background-image: radial-gradient(var(--teal) 1px, transparent 1px); background-size: 20px 20px; }
.hud-scanner-bar { position: absolute; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal), transparent); z-index: 4; animation: scanVert 4s linear infinite; opacity: 0.4; }
@keyframes scanVert { 0% { top: 0; } 100% { top: 100%; } }

.hud-focus-box { position: absolute; inset: 40px; border: 1px solid rgba(255,255,255,0.1); z-index: 4; transition: 0.5s; }
.hud-focus-box::before, .hud-focus-box::after { content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid var(--teal); }
.hud-focus-box::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.hud-focus-box::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.visual-overlays { position: absolute; inset: 0; z-index: 5; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.overlay-data { font-family: var(--font-mono); font-size: 0.55rem; color: #fff; display: flex; flex-direction: column; gap: 4px; opacity: 0.8; }
.d-item { background: rgba(15, 23, 42, 0.4); width: fit-content; padding: 2px 8px; border-radius: 2px; }
.sector-label { position: absolute; bottom: 20px; left: 20px; font-family: 'Orbitron'; font-size: 0.55rem; color: var(--teal); font-weight: 900; background: #fff; padding: 6px 14px; border-radius: 30px; }

.node-body { padding: 30px; text-align: right; }
[dir="ltr"] .node-body { text-align: left; }
.node-meta-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.status-indicator { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; padding: 4px 12px; border-radius: 30px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.status-indicator .dot { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.status-indicator.secured { color: #059669; border-color: rgba(5, 150, 105, 0.2); }
.status-indicator.secured .dot { background: #059669; box-shadow: 0 0 8px #059669; }
.status-indicator.active { color: #0284c7; border-color: rgba(2, 132, 199, 0.2); }
.status-indicator.active .dot { background: #0284c7; box-shadow: 0 0 8px #0284c7; }
.serial-num { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); opacity: 0.6; }
.node-body h3 { font-size: 1.0rem;text-wrap: nowrap; font-weight: 900; color: var(--text-main); margin-bottom: 8px; }
.en-node-title { display: block; font-family: 'Orbitron'; font-size: 0.65rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; opacity: 0.6; }
.node-body p { font-size: 0.9rem; color: #64748b; line-height: 1.6; margin-bottom: 25px; }

.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 25px; padding: 15px; background: #f8fafc; border-radius: 12px; }
.spec-box { display: flex; flex-direction: column; gap: 4px; }
.spec-box label { font-family: var(--font-mono); font-size: 0.5rem; color: var(--text-muted); }
.spec-box span { font-family: 'Orbitron'; font-size: 0.7rem; font-weight: 700; color: var(--text-main); }

.security-progress-v2 { border-top: 1px solid #f1f5f9; padding-top: 20px; }
.prog-info { font-family: 'Orbitron'; font-size: 0.7rem; font-weight: 900; color: var(--teal); display: flex; justify-content: space-between; margin-bottom: 12px; }
.prog-info .percent { font-family: 'Orbitron'; font-size: 0.7rem; font-weight: 900; color: var(--teal); }
.segmented-bar { display: flex; gap: 4px; height: 6px; }
.segment { flex: 1; background: #f1f5f9; border-radius: 1px; }
.segment.active { background: var(--teal); box-shadow: 0 0 10px var(--teal-glow); }

/* --- DOTS REFINED --- */
.carousel-dots-v3 {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 12px 25px; background: #f8fafc;
    border-radius: 50px; width: fit-content;
    border: 1px solid rgba(13, 148, 136, 0.05);
}

.dot-v3 { width: 8px; height: 8px; background: #cbd5e1; cursor: pointer; transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); border-radius: 50%; }
.dot-v3.active { background: var(--teal); width: 28px; border-radius: 10px; box-shadow: 0 4px 10px var(--teal-glow); }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .mission-node { border-radius: 20px; }
    .node-visual { height: 210px; }
     .carousel-footer-v3 { gap: 15px; margin-top: 30px; }
}
