/* ============================================================
   Bronze Squadron — Home Page CSS
   ACTIVE DEPLOYMENT build — Operation Crimson Veil
   Matches v14 personnel-file aesthetic + red "active op" accent
   ============================================================ */

/* ---- Intro Overlay ---- */
#bsIntroOverlay.bs-intro-overlay { position: fixed !important; inset: 0 !important; z-index: 999999 !important; background: #000 !important; display: flex; align-items: center; justify-content: center; }
#bsIntroOverlay.hidden { display: none !important; }
.bs-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-intro-video iframe, #bsIntroPlayer { width: 100% !important; height: 100% !important; border: 0; }
.bs-intro-controls { position: fixed; bottom: 28px; right: 28px; z-index: 1000001; display: flex; gap: 12px; }
.bs-intro-controls button { background: rgba(2,4,10,0.92); color: #dfe8f2; border: 1px solid rgba(201,145,58,0.50); padding: 10px 18px; border-radius: 2px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.bs-intro-controls button:hover { border-color: #e0b76c; color: #fff; }

/* ---- Page wrapper ---- */
.bs-home { max-width: 1180px; margin: 0 auto; padding: 22px 18px 70px; color: #dfe8f2; font-family: 'JetBrains Mono', monospace; }

/* ---- Classification strip ---- */
.bs-classbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    background: rgba(229,72,77,0.07);
    border: 1px solid rgba(229,72,77,0.32);
    border-radius: 3px;
    padding: 8px 14px; margin-bottom: 22px;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
    color: #d7b2b2;
}
.bs-classbar-text { color: #e5484d; }
.bs-classbar-sep { color: rgba(120,141,160,0.45); }
.bs-classbar-live { color: #e5484d; }
.bs-classbar-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229,72,77,0.6); animation: bsPulse 2s infinite; }
@keyframes bsPulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,0.5);} 70% { box-shadow: 0 0 0 7px rgba(229,72,77,0);} 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0);} }

/* ---- Hero ---- */
.bs-hero { text-align: center; margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px dashed rgba(201,145,58,0.25); }
.bs-logo { max-width: 320px; width: 78%; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 0 14px rgba(201,145,58,0.22)); }
.bs-motto { letter-spacing: 0.22em; color: #708090; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.bs-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 720px; margin: 0 auto; }
.bs-btn { display: flex; justify-content: center; align-items: center; padding: 11px 14px; border-radius: 2px; text-decoration: none !important; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.18s, color 0.18s, background 0.18s; background: rgba(2,4,10,0.82); border: 1px solid rgba(120,141,160,0.30); color: #b8c4cf !important; }
.bs-btn:hover { border-color: rgba(201,145,58,0.60); color: #e0b76c !important; background: rgba(2,4,10,0.92); }
.bs-btn.discord { background: rgba(88,101,242,0.20); border-color: rgba(88,101,242,0.50); color: #b8bcff !important; }
.bs-btn.discord:hover { border-color: rgba(141,149,255,0.75); color: #fff !important; }
.bs-btn.red { border-color: rgba(227,107,107,0.40); color: #e36b6b !important; }
.bs-btn.red:hover { border-color: rgba(227,107,107,0.75); color: #ffaaaa !important; }

/* ---- Deployment banner ---- */
.bs-deploy {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
    background: linear-gradient(120deg, rgba(40,8,10,0.55) 0%, rgba(2,4,10,0.90) 55%);
    border: 1px solid rgba(229,72,77,0.30);
    border-left: 3px solid #e5484d;
    border-radius: 5px; padding: 20px 22px; margin-bottom: 16px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.bs-deploy::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.014) 0, rgba(255,255,255,0.014) 1px, transparent 1px, transparent 7px); pointer-events: none; }
.bs-deploy-crest img { width: 116px; height: 116px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(229,72,77,0.35)); }
.bs-deploy-body { position: relative; z-index: 2; min-width: 0; }
.bs-deploy-eyebrow { color: #708090; font-size: 0.58rem; letter-spacing: 0.20em; text-transform: uppercase; font-weight: 700; }
.bs-deploy-title { margin: 4px 0 6px; font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.06em; color: #f4f7fb; font-weight: 700; text-transform: uppercase; }
.bs-deploy-status { display: inline-flex; align-items: center; gap: 8px; color: #ff8f8f; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.bs-deploy-pulse { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 0 rgba(229,72,77,0.6); animation: bsPulse 2s infinite; }
.bs-deploy-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.bs-deploy-meta div { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid rgba(120,141,160,0.18); padding-left: 10px; }
.bs-deploy-meta span { color: #708090; font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.bs-deploy-meta strong { color: #dfe8f2; font-size: 0.72rem; letter-spacing: 0.03em; }

/* ---- 3-panel panorama ---- */
.bs-panorama { position: relative; margin-bottom: 16px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(120,141,160,0.18); box-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.bs-panorama img { width: 100%; height: auto; display: block; }
.bs-panorama-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: linear-gradient(transparent, rgba(2,4,10,0.85)); color: #b8c4cf; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.bs-panorama-cap span:last-child { color: #c9913a; }

/* ---- Operation board section ---- */
.bs-op { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 16px; margin-bottom: 16px; }
.bs-board { position: relative; display: block; border-radius: 4px; overflow: hidden; border: 1px solid rgba(201,145,58,0.30); box-shadow: 0 2px 18px rgba(0,0,0,0.55); text-decoration: none !important; min-height: 220px; }
.bs-board img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bs-board:hover img { transform: scale(1.03); }
.bs-board-scrim { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(2,4,10,0.15) 30%, rgba(2,4,10,0.88) 100%); }
.bs-board-overlay { position: absolute; right: 16px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.bs-board-live { color: #e5484d; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bs-board-title { color: #f4f7fb; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.bs-board-cue { color: #e0b76c; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---- Base panel ---- */
.bs-panel { background: rgba(2,4,10,0.88); border: 1px solid rgba(120,141,160,0.15); border-left: 3px solid rgba(201,145,58,0.50); border-radius: 4px; padding: 16px 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.bs-panel-title { color: #c9913a; font-size: 0.60rem; letter-spacing: 0.20em; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(201,145,58,0.22); }

/* ---- Objective / status list ---- */
.bs-op-status { display: flex; flex-direction: column; }
.bs-obj-list { display: flex; flex-direction: column; }
.bs-obj { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(120,141,160,0.12); }
.bs-obj:last-child { border-bottom: none; }
.bs-obj-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bs-obj-main strong { color: #f4f7fb; font-size: 0.72rem; letter-spacing: 0.04em; }
.bs-obj-main span { color: #708090; font-size: 0.58rem; letter-spacing: 0.04em; }
.bs-obj-badge { flex-shrink: 0; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; border: 1px solid; }
.obj-captured { color: #57d487; border-color: rgba(87,212,135,0.4); background: rgba(87,212,135,0.08); }
.obj-custody  { color: #9fd8ef; border-color: rgba(159,216,239,0.4); background: rgba(159,216,239,0.08); }
.obj-atlarge  { color: #ff8f8f; border-color: rgba(229,72,77,0.45); background: rgba(229,72,77,0.10); }

/* ---- Panel grid ---- */
.bs-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; margin-bottom: 16px; }

/* ---- Force Status panel ---- */
.bs-status-main { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.bs-status-main h2 { margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #b8c4cf; font-weight: 700; }
.bs-status-main p { margin: 5px 0 0; color: #708090; font-size: 0.68rem; letter-spacing: 0.06em; }
.bs-phase { margin-top: 12px; color: #708090; font-size: 0.62rem; letter-spacing: 0.10em; text-transform: uppercase; }
.bs-phase strong { display: block; color: #e0b76c; font-size: 1.4rem; letter-spacing: 0.08em; font-weight: 700; margin-top: 2px; }

/* ---- Total Active panel ---- */
.bs-total-active { position: relative; overflow: hidden; background: rgba(2,4,10,0.92); border: 1px solid rgba(201,145,58,0.35) !important; border-left: 3px solid #c9913a !important; }
.bs-total-active::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 6px); opacity: 0.4; pointer-events: none; }
.bs-total-active-inner { position: relative; z-index: 2; padding: 20px 14px; text-align: center; }
.bs-total-active-number { font-size: 64px; line-height: 1; font-weight: 700; color: #e0b76c; letter-spacing: 0.04em; text-shadow: 0 0 20px rgba(201,145,58,0.35); }
.bs-total-active-sub { margin-top: 8px; color: #708090; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }

/* ---- List panels ---- */
.bs-list { display: grid; gap: 0; }
.bs-list div { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(120,141,160,0.12); padding: 8px 0; font-size: 0.70rem; letter-spacing: 0.06em; color: #708090; }
.bs-list div:last-child { border-bottom: none; }
.bs-list span { text-transform: uppercase; letter-spacing: 0.10em; font-size: 0.62rem; }
.bs-list strong { color: #f4f7fb; font-size: 0.72rem; letter-spacing: 0.04em; }
.bs-list strong.hot { color: #ff8f8f; }

/* ---- Pipeline panel ---- */
.bs-pipeline-count { display: flex; justify-content: space-between; align-items: center; background: rgba(2,4,10,0.60); border: 1px solid rgba(120,141,160,0.15); border-radius: 2px; padding: 12px 14px; margin: 10px 0 12px; }
.bs-pipeline-count span { color: #708090; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.60rem; font-weight: 700; }
.bs-pipeline-count strong { font-size: 2.2rem; line-height: 1; color: #e0b76c; letter-spacing: 0.04em; font-weight: 700; text-shadow: 0 0 16px rgba(201,145,58,0.30); }

/* ---- Events panel ---- */
.bs-event-list { display: grid; gap: 8px; margin-top: 10px; }
.bs-event { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; background: rgba(2,4,10,0.60); border: 1px solid rgba(120,141,160,0.12); border-left: 2px solid rgba(201,145,58,0.35); border-radius: 2px; padding: 10px; transition: border-color 0.15s; }
.bs-event:hover { border-left-color: rgba(201,145,58,0.70); }
.bs-event-date { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 2px; background: rgba(201,145,58,0.10); border: 1px solid rgba(201,145,58,0.25); color: #c9913a; font-weight: 700; font-size: 0.60rem; letter-spacing: 0.14em; text-transform: uppercase; }
.bs-event strong { color: #f4f7fb; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; display: block; }
.bs-event p { margin: 3px 0 0; color: #708090; font-size: 0.62rem; letter-spacing: 0.04em; }
.bs-mini-link { display: block; margin-top: 12px; padding: 9px 12px; text-align: center; border-radius: 2px; border: 1px solid rgba(120,141,160,0.20); background: rgba(2,4,10,0.60); color: #9fd8ef !important; text-decoration: none !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.60rem; transition: border-color 0.15s, color 0.15s; }
.bs-mini-link:hover { border-color: rgba(159,216,239,0.50); color: #fff !important; }

/* ---- Footer strip ---- */
.bs-footer-strip { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bs-footer-strip span { background: rgba(2,4,10,0.70); border: 1px solid rgba(120,141,160,0.15); border-radius: 2px; padding: 9px 10px; text-align: center; color: #708090; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.bs-footer-strip span:first-child { color: #ff8f8f; border-color: rgba(229,72,77,0.30); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .bs-op { grid-template-columns: 1fr; }
    .bs-board { min-height: 200px; }
}
@media (max-width: 850px) {
    .bs-actions, .bs-grid, .bs-footer-strip { grid-template-columns: 1fr; }
    .bs-deploy { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .bs-deploy-meta { grid-template-columns: repeat(2, 1fr); text-align: left; }
    .bs-status-main { flex-direction: column; align-items: flex-start; }
    .bs-phase { text-align: left; }
    .bs-logo { max-width: 240px; }
}
@media (max-width: 480px) {
    .bs-deploy-meta { grid-template-columns: 1fr; }
}