/* SentianOrbit: Premium Vertical Dashboard UI */
:root {
    --sidebar-width: 280px;
    --sidebar-bg: #0d1117;
    --bg-dark: #07090d;
    --primary: #2ecc71;
    --secondary: #3498db;
    --text-main: #e6edf3;
    --text-dim: #8b949e;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.dashboard-body {
    overflow: hidden;
    height: 100vh;
}

/* Background Stars Effect */
.stars-bg {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #0d1117 0%, #07090d 100%);
    z-index: -1;
}

.stars-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 10vw 20vh 1px #fff, 50vw 80vh 2px #fff, 80vw 30vh 1px #fff, 30vw 90vh 1px #fff;
    opacity: 0.15;
}

.platform-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

/* Sidebar: Strict Columnar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 30px 10px;
    flex-shrink: 0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}

.status-badge {
    font-size: 0.6rem;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--glass);
    color: #fff;
}

.nav-item.active {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    font-weight: 700;
}

/* Sidebar Context Search Tools */
.sidebar-extra {
    padding: 0 30px 20px;
    animation: fadeIn 0.4s ease;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.label-tiny {
    font-size: 0.6rem;
    font-weight: 800;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

/* Form Inputs */
.form-mini-input {
    width: 100%;
    height: 38px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.search-box-mini {
    display: flex;
    gap: 5px;
}

.btn-icon-tiny {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    cursor: pointer;
}

/* Sidebar Footer & User Profile */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.user-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(46, 204, 113, 0.3);
}

.avatar-mini {
    width: 38px;
    height: 38px;
    background: #1a1f26;
    border: 2px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.15);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.user-display-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

.btn-logout-mini {
    width: 100%;
    padding: 12px;
    background: rgba(231, 76, 60, 0.05);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Inter', sans-serif;
}

.btn-logout-mini:hover {
    background: rgba(231, 76, 60, 0.15);
    border-color: #ff6b6b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* Vertical Adaptability: Condense sidebar on small screens */
@media (max-height: 800px) {
    .sidebar-header { padding: 20px 25px 5px; }
    .logo { font-size: 1.3rem; }
    .sidebar-nav { padding: 10px 10px; gap: 4px; }
    .nav-item { padding: 10px 15px; font-size: 0.85rem; }
    .sidebar-extra { padding: 0 20px 15px; }
    .sidebar-divider { margin: 10px 0; }
    .sidebar-footer { padding: 15px; }
    .user-chip { padding: 8px; margin-bottom: 10px; }
}

/* Main Viewport */
.main-viewport {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.view-container {
    flex: 1;
    position: relative;
}

.view-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    padding: 50px;
    overflow-y: auto;
}

.view-section.active {
    display: block;
}

.view-section.full-viewport {
    padding: 0;
    overflow: hidden;
}

/* Dashboard Welcome Screen */
.welcome-hero {
    margin-bottom: 60px;
    max-width: 800px;
}

.welcome-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
}

.dashboard-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 20px;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.card-icon {
    font-size: 2rem;
}

.card-data h2 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
}

.card-data span {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intel-mini-card {
    grid-column: span 2;
    display: block;
}

.card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mini-scroll-list {
    height: 150px;
    overflow-y: auto;
}

/* Map View */
.map-primary {
    width: 100%;
    height: 100%;
    background: #000;
}

.hud-top-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
}

.hud-bubble {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.results-dock {
    position: absolute;
    bottom: -100%;
    left: 10px;
    right: 10px;
    height: auto;
    max-height: 480px;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border);
    z-index: 2001;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.results-dock.active {
    bottom: 10px;
}

.dock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 800;
    font-family: 'Outfit';
}

.dock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    overflow-y: auto;
    padding-bottom: 20px;
}

.result-mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thumb-frame {
    width: 100%;
    height: 130px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.thumb-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.result-mini-card:hover img {
    transform: scale(1.1);
}

.scene-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scene-date {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Field Analysis */
.field-analysis-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    height: 100%;
}

.display-inference {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Terminal */
.terminal-footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    height: 180px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #4cd137;
    overflow-y: auto;
    z-index: 3000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* New Buttons */
.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.btn-full-mini {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

.btn-close-dock {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-close-dock:hover {
    color: #fff;
}

/* Team Management Specific Styles */
.team-management-layout {
    padding: 30px;
    background: rgba(13, 17, 23, 0.8) !important;
    backdrop-filter: blur(20px);
}

.team-header {
    margin-bottom: 30px;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.team-table {
    width: 100%;
    border-collapse: collapse;
}

.team-table th {
    text-align: left;
    padding: 15px;
    font-size: 0.7rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    font-size: 1.2rem;
}

.user-name-cell {
    font-weight: 700;
    font-size: 0.9rem;
}

.user-email-cell {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.role-badge {
    padding: 4px 8px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.status-approved {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-pending {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.status-rejected {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.action-btns-cell {
    display: flex;
    gap: 10px;
}

.btn-approve-small, .btn-reject-small {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-approve-small {
    background: var(--primary);
    color: #000;
}

.btn-approve-small:hover {
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.btn-reject-small {
    background: transparent;
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.3);
}

.btn-reject-small:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #ff6b6b;
}

/* ── Lockdown Mode ─────────────────────────────────────────────────────────── */
.btn-lockdown {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: monospace;
    white-space: nowrap;
}

.btn-lockdown-inactive {
    background: transparent;
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.45);
}

.btn-lockdown-inactive:hover {
    background: rgba(255, 68, 68, 0.12);
    border-color: #ff4444;
    box-shadow: 0 0 14px rgba(255, 68, 68, 0.3);
}

.btn-lockdown-active {
    background: rgba(255, 68, 68, 0.15);
    color: #ff4444;
    border: 1px solid #ff4444;
    animation: lockdown-pulse 2s infinite;
}

.btn-lockdown-active:hover {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border-color: #2ecc71;
    animation: none;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

@keyframes lockdown-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 68, 68, 0.4); }
    50%       { box-shadow: 0 0 18px rgba(255, 68, 68, 0.7); }
}

.lockdown-banner {
    display: none;
    margin: 12px 0;
    padding: 10px 16px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.4);
    border-radius: 8px;
    color: #ff4444;
    font-size: 0.82rem;
    font-family: monospace;
    letter-spacing: 0.5px;
    font-weight: 700;
    animation: lockdown-pulse 2s infinite;
}

/* Quota Display & Editor */
.quota-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quota-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.quota-value.quota-full {
    color: #f1c40f;
}

.quota-editor-card {
    background: rgba(46, 204, 113, 0.04);
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.quota-editor-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.quota-editor-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Table utility cells */
.loading-cell, .error-cell {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}

.error-cell {
    color: #e74c3c;
}

/* ── Admin Control Center: Tab Navigation ────────────────────────── */
.admin-tab-bar {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
}

.admin-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.admin-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.admin-tab.active {
    background: rgba(46,204,113,0.12);
    color: var(--primary);
    font-weight: 800;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e74c3c;
    color: #fff;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 5px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Pending Team Cards ───────────────────────────────────────────── */
.pending-team-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: rgba(241,196,15,0.04);
    border: 1px solid rgba(241,196,15,0.2);
    border-radius: 10px;
    margin-bottom: 12px;
}

.pending-team-domain {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pending-team-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dim-text {
    color: var(--text-dim);
}

/* Settings View Redesign */
#settings-view {
    width: 100%;
    padding: 2rem;
}

.settings-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 255, 128, 0.1);
    padding-bottom: 1rem;
}

.settings-header h2 {
    font-size: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* News Feed Redesign */
#news-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.news-item {
    background: rgba(10, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 128, 0.1);
    border-left: 3px solid var(--primary);
    padding: 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.news-item:hover {
    background: rgba(10, 20, 30, 0.9);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 128, 0.1);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.news-source {
    background: rgba(0, 255, 128, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.news-title {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

.news-item a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.news-item:hover a {
    color: var(--primary);
}

.news-excerpt {
    font-size: 0.85rem;
    color: #99a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.settings-card {
    background: rgba(10, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 128, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.settings-card:hover {
    border-color: rgba(0, 255, 128, 0.4);
    transform: translateY(-2px);
}

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

.card-header .icon {
    font-size: 1.25rem;
}

.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
}

/* Avatar Section */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.2);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover .avatar-edit-overlay {
    opacity: 1;
}

.profile-basic-info {
    flex: 1;
}

/* Form Styles inside Cards */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 255, 128, 0.2);
}

.settings-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

/* Danger Zone Enhancements */
.danger-card {
    border-color: rgba(255, 50, 50, 0.2);
}

.danger-card:hover {
    border-color: rgba(255, 50, 50, 0.5);
}

.danger-card .card-header h3 {
    color: #ff4444;
}

.danger-note {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.4;
}

.btn-glow {
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.2);
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
}

@media (max-width: 600px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Tactical Dashboard Overhaul */
.dashboard-header {
    margin-bottom: 2rem;
}

#greetingText {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-status-brief {
    color: #8a9aaa;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-card.glow-primary {
    border-color: rgba(0, 255, 128, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.05);
}

.stat-card.glow-secondary {
    border-color: rgba(0, 150, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.05);
}

.stat-card.glow-info {
    border-color: rgba(255, 180, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 180, 0, 0.05);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.65rem;
    color: #8a9aaa;
    letter-spacing: 2px;
}

.stat-value {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.2;
}

/* Stat Progress & Pulse */
.stat-progress {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.5rem;
}

.stat-progress .bar {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 1s ease-out;
}

.stat-pulse {
    width: 8px;
    height: 8px;
    background: #0096ff;
    border-radius: 50%;
    margin-top: 0.5rem;
    box-shadow: 0 0 10px #0096ff;
    animation: tacticalPulse 2s infinite;
}

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

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main Dashboard Grid */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.analytics-charts {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 300px;
}

.chart-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.side-widgets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-card {
    padding: 1.25rem;
}

/* Recent Intelligence Operations Styles */
.recent-intelligence-card {
    padding: 1.5rem;
    background: rgba(10, 20, 30, 0.4) !important;
}

.recent-missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.mission-history-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 128, 0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mission-history-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 128, 0.1);
}

.mission-thumb {
    height: 80px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-info {
    padding: 10px;
}

.m-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m-date {
    font-size: 0.6rem;
    color: var(--text-dim);
}

.m-stats {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.m-badge {
    font-size: 0.55rem;
    font-weight: 800;
    color: var(--primary);
    background: rgba(0, 255, 128, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .recent-missions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .recent-missions-grid {
        grid-template-columns: 1fr;
    }
}

/* Tactical Buttons */
.btn-tactical {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 128, 0.2);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-transform: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-tactical:hover {
    background: rgba(0, 255, 128, 0.1);
    border-color: var(--primary);
    transform: translateX(5px);
}

.btn-tactical .btn-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.btn-tactical .btn-desc {
    font-size: 0.7rem;
    color: #8a9aaa;
}

.btn-tactical .btn-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.btn-tactical:hover .btn-icon {
    opacity: 0.5;
}

.btn-alt-color {
    border-color: rgba(0, 150, 255, 0.2);
}

.btn-alt-color .btn-text {
    color: #0096ff;
}

.btn-alt-color:hover {
    background: rgba(0, 150, 255, 0.1);
    border-color: #0096ff;
}

.btn-full {
    width: 100%;
    margin-bottom: 0.75rem;
}

.deployment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 1100px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .analytics-charts {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chart-container {
        height: 250px;
    }
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #c0392b;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* --- SentianAutonomous Dual-Sensor UI --- */
.dual-evidence-container {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    width: 100%;
}

.evidence-pane {
    flex: 1;
    position: relative;
    border: 1px solid rgba(46, 204, 113, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.evidence-pane:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.1);
}

.scanner-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 10;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.evidence-image {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

.sentian-score-report {
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.9) 0%, rgba(46, 204, 113, 0.05) 100%);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.score-meta h3 {
    font-family: 'Outfit';
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.score-radial {
    width: 100px;
    height: 100px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.2);
}

.score-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
}

.mission-status-indicator {
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-confirmed {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary);
    border-color: rgba(46, 204, 113, 0.3);
}

/* Animations */
@keyframes dash-pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.hud-pulse {
    animation: dash-pulse 2s infinite;
}
/* Imagery Strategy Alerts */
.strategy-alert {
    background: rgba(231, 76, 60, 0.4);
    border: 1px solid rgba(231, 76, 60, 0.6);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: sidePulse 2s infinite;
    display: inline-block;
}

.strategy-tactical {
    background: rgba(46, 204, 113, 0.3) !important;
    border-color: rgba(46, 204, 113, 0.5) !important;
    animation: none !important;
}

@keyframes sidePulse {
    0% { transform: scale(1); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Admin Resource Monitoring */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.quota-card {
    background: rgba(46, 204, 113, 0.03);
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.quota-item {
    margin-bottom: 20px;
}

.quota-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.progress-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.warning { background: #f1c40f; box-shadow: 0 0 10px #f1c40f; }
.progress-fill.danger { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

.security-alert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    animation: slideIn 0.3s ease;
}

.alert-type {
    padding: 2px 6px;
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.6rem;
    text-transform: uppercase;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.admin-map-card {
    margin-top: 25px;
    padding: 0;
    overflow: hidden;
}

.admin-heatmap-container {
    height: 400px;
    width: 100%;
    background: #000;
    position: relative;
    border-top: 1px solid var(--border);
}

.map-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.leaflet-container {
    background: #07090d !important;
}

/* Legal Evidence Styles */
.badge-legal {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border: 1px solid #9b59b6;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0% { opacity: 0.7; box-shadow: 0 0 5px rgba(155, 89, 182, 0.2); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(155, 89, 182, 0.5); }
    100% { opacity: 0.7; box-shadow: 0 0 5px rgba(155, 89, 182, 0.2); }
}
.health-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.health-status-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    box-shadow: 0 0 5px #000;
}

.status-led.NOMINAL { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.status-led.DEGRADED { background: #f1c40f; box-shadow: 0 0 10px #f1c40f; }
.status-led.OFFLINE { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }

.error-log-list {
    margin-top: 15px;
    font-size: 0.75rem;
}

/* ── TACTICAL DIRECTIVES INBOX ─────────────────────────────────────────── */
#directives-inbox {
    background: rgba(231, 76, 60, 0.06);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    animation: fadeIn 0.4s ease;
}

.directives-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #e74c3c;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.directive-count-badge {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.directives-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.directive-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 14px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.directive-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.directive-priority-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.directive-note {
    font-size: 0.82rem;
    color: #ddd;
    margin: 0;
    line-height: 1.4;
}

.directive-aoi-coords {
    font-size: 0.72rem;
    color: #8a9aaa;
    font-family: monospace;
}

.directive-execute-btn {
    align-self: flex-start;
    font-size: 0.78rem !important;
    padding: 5px 14px !important;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ── END DIRECTIVES ─────────────────────────────────────────────────────── */

/* ── COMPUTE USAGE MONITOR ──────────────────────────────────────────────── */
.compute-usage-card {
    padding: 20px 22px;
    border: 1px solid rgba(0, 242, 254, 0.18);
}

.compute-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compute-main-layout {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.compute-donut-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.compute-donut-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.compute-center-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.compute-stats-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compute-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.compute-breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.compute-op-name {
    width: 110px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ccc;
}

.compute-bar-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.compute-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 4px;
}

.compute-credits-num {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    width: 46px;
    text-align: right;
}
/* ── END COMPUTE USAGE ──────────────────────────────────────────────────── */

/* ── FLEET ACTIVITY HEATMAP ─────────────────────────────────────────────── */
.team-heatmap-card {
    padding: 18px 20px;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.heatmap-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 8px;
}

.heat-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.heat-filter-btn {
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #666;
    cursor: pointer;
    letter-spacing: 0.5px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.heat-filter-btn:hover {
    border-color: rgba(0, 242, 254, 0.3);
    color: #ccc;
}

.heat-filter-btn.heat-filter-active {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.5);
    color: #00f2fe;
}

.heatmap-legend {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.heatmap-legend-item {
    font-size: 0.68rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.heatmap-legend-item::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lc, #aaa);
    box-shadow: 0 0 5px var(--lc, #aaa);
    flex-shrink: 0;
}

.activity-feed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 1px;
}

.activity-feed-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
/* ── END FLEET HEATMAP ──────────────────────────────────────────────────── */

.error-item {
    padding: 8px;
    background: rgba(231, 76, 60, 0.05);
    border-left: 2px solid #e74c3c;
    margin-bottom: 5px;
}

/* ── Error Toast Notification ───────────────────────────────────────────── */
.sentian-error-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    max-width: 420px;
    min-width: 280px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    background: rgba(10, 13, 20, 0.97);
    border: 1px solid rgba(231, 76, 60, 0.35);
    border-left: 3px solid #e74c3c;
    border-radius: 10px;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.18), 0 2px 10px rgba(0,0,0,0.5);
    animation: setSlideIn 0.28s cubic-bezier(0.22,1,0.36,1);
}
@keyframes setSlideIn {
    from { opacity: 0; transform: translateX(48px); }
    to   { opacity: 1; transform: translateX(0); }
}
.set-icon { font-size: 1.25rem; flex-shrink: 0; padding-top: 2px; }
.set-body  { flex: 1; min-width: 0; }
.set-title {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.set-suggestion {
    color: #9aa3b2;
    font-size: 0.82rem;
    line-height: 1.55;
}
.set-detail {
    margin-top: 6px;
    color: #556070;
    font-size: 0.72rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.set-close {
    background: none;
    border: none;
    color: #445;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 2px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s;
}
.set-close:hover { color: #e74c3c; }
/* ── END Error Toast ────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════════════════════════
   TEMPORAL SERIES ANALYSIS
   ══════════════════════════════════════════════════════════════════════════ */

.temporal-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    align-items: start;
}

/* ── Controls Panel ─────────────────────────────────────────────────────── */
.temporal-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    position: sticky;
    top: 0;
}

.temporal-map-wrap { display: flex; flex-direction: column; gap: 6px; }

.temporal-minimap {
    height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(0,242,254,0.15);
    background: #0a0d14;
}

.temporal-aoi-status {
    font-size: 0.75rem;
    color: #556070;
    padding: 4px 2px;
}

.temporal-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-label-mini {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: #556070;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

/* ── Error + Progress ───────────────────────────────────────────────────── */
.temporal-error {
    background: rgba(231,76,60,0.12);
    border-left: 3px solid #e74c3c;
    color: #e74c3c;
    font-size: 0.8rem;
    padding: 10px 12px;
    border-radius: 6px;
    line-height: 1.5;
}

.temporal-progress { display: flex; flex-direction: column; gap: 6px; }

.prog-track {
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe, #2ecc71);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}
.prog-text { font-size: 0.75rem; color: #556070; }

/* ── Stats Grid ─────────────────────────────────────────────────────────── */
.temporal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ts-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ts-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em; color: #556070; }
.ts-value { font-size: 1.1rem; font-weight: 700; color: #e0e6f0; }
.ts-value.cyan   { color: #00f2fe; }
.ts-value.orange { color: #e67e22; }
.ts-value.ts-small { font-size: 0.78rem; }

/* ── Main Right Panel ───────────────────────────────────────────────────── */
.temporal-main { display: flex; flex-direction: column; gap: 0; }

/* ── Player Card ────────────────────────────────────────────────────────── */
.temporal-player-card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.temporal-canvas-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 340px;
    color: #445;
    font-size: 0.9rem;
    gap: 12px;
}
.temporal-canvas-hint div { font-size: 2.5rem; }

.temporal-canvas-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.temporal-canvas {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    background: #0a0d14;
    display: block;
    align-self: center;
}

/* ── Playback Controls ──────────────────────────────────────────────────── */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.player-btn {
    background: rgba(0,242,254,0.08);
    border: 1px solid rgba(0,242,254,0.2);
    color: #00f2fe;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s;
    white-space: nowrap;
}
.player-btn:hover { background: rgba(0,242,254,0.18); }
.player-btn-main  { font-size: 1rem; padding: 6px 16px; }

.temporal-scrubber {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(0,242,254,0.15);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.temporal-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #00f2fe;
    cursor: pointer;
}

.speed-select {
    background: #0d1117;
    border: 1px solid rgba(0,242,254,0.2);
    color: #9aa3b2;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.temporal-frame-label {
    font-size: 0.75rem;
    color: #556070;
    text-align: center;
}

/* ── Thumbnail Strip ────────────────────────────────────────────────────── */
.temporal-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.temporal-strip::-webkit-scrollbar { height: 4px; }
.temporal-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
.temporal-strip::-webkit-scrollbar-thumb { background: rgba(0,242,254,0.25); border-radius: 4px; }

.temporal-thumb {
    flex-shrink: 0;
    width: 90px;
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    overflow: hidden;
    scroll-snap-align: start;
    transition: border-color 0.15s, transform 0.15s;
    background: #0a0d14;
    display: flex;
    flex-direction: column;
}
.temporal-thumb:hover { border-color: rgba(0,242,254,0.4); transform: translateY(-2px); }
.temporal-thumb.active { border-color: #00f2fe; }
.temporal-thumb img { width: 100%; height: 64px; object-fit: cover; display: block; }
.thumb-date {
    font-size: 0.6rem;
    color: #9aa3b2;
    padding: 3px 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.thumb-badges {
    display: flex;
    gap: 3px;
    padding: 2px 4px 4px;
    flex-wrap: wrap;
}
.tb-ship { font-size: 0.6rem; color: #00f2fe; }
.tb-oil  { font-size: 0.6rem; color: #e67e22; }

/* ── Chart Card ─────────────────────────────────────────────────────────── */
.temporal-chart-card { padding: 16px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .temporal-layout {
        grid-template-columns: 1fr;
    }
    .temporal-controls { position: static; }
}
/* ── END Temporal Analysis ────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════════════════
   DRIFT SIMULATION VIEW
   ══════════════════════════════════════════════════════════════════════════ */

#simulation-view { position: relative; }
#sim-map { position: absolute; inset: 0; z-index: 0; background: #0a0d14; }
.sim-control-panel {
    position: absolute;
    top: 60px;
    left: 16px;
    width: 295px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 500;
    background: rgba(10,13,20,0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,242,254,0.15);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: width 0.2s ease;
}
.sim-control-panel::-webkit-scrollbar { width: 4px; }
.sim-control-panel::-webkit-scrollbar-thumb { background: rgba(0,242,254,0.2); border-radius: 2px; }

.sim-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,242,254,0.12);
}
.sim-panel-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 0.85rem; color: var(--primary); letter-spacing: 0.06em; }
.sim-engine-badge { font-size: 0.6rem; color: #556070; background: rgba(255,255,255,0.05); border-radius: 4px; padding: 2px 6px; border: 1px solid rgba(255,255,255,0.07); }

.sim-section { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sim-section:last-child { border-bottom: none; }

/* ── Tab rows (origin mode / duration) ─────────────────────────────────── */
.sim-tab-row { display: flex; gap: 4px; margin-top: 6px; }
.sim-tab, .sim-dur {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #9aa3b2;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.sim-tab.active, .sim-dur.active { background: rgba(0,242,254,0.12); border-color: var(--primary); color: var(--primary); }
.sim-tab:hover:not(.active), .sim-dur:hover:not(.active) { border-color: rgba(0,242,254,0.3); color: #cdd5e0; }

/* ── AOI chip ───────────────────────────────────────────────────────────── */
.sim-aoi-chip {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #556070;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 5px 8px;
    text-align: center;
}

/* ── Toggle switch ──────────────────────────────────────────────────────── */
.sim-toggle-row { display: flex; justify-content: space-between; align-items: center; }
.sim-toggle { position: relative; display: inline-block; width: 32px; height: 18px; flex-shrink: 0; }
.sim-toggle input { opacity: 0; width: 0; height: 0; }
.sim-toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    cursor: pointer;
    transition: 0.2s;
}
.sim-toggle-slider::before {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    left: 3px; top: 3px;
    background: #9aa3b2;
    border-radius: 50%;
    transition: 0.2s;
}
.sim-toggle input:checked + .sim-toggle-slider { background: rgba(0,242,254,0.25); }
.sim-toggle input:checked + .sim-toggle-slider::before { transform: translateX(14px); background: var(--primary); }

.sim-coord-row { display: flex; gap: 6px; }
.sim-range-label { display: flex; justify-content: space-between; font-size: 0.7rem; color: #556070; margin-top: 2px; }
.sim-hud-stats {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.sim-hud-chip {
    font-size: 0.7rem;
    font-family: monospace;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #9aa3b2;
}
.sim-chip-active   { border-color: rgba(231,76,60,0.5);  color: #e74c3c; }
.sim-chip-stranded { border-color: rgba(241,196,15,0.5); color: #f1c40f; }
.sim-chip-dispersed{ border-color: rgba(149,165,166,0.4);color: #95a5a6; }
.sim-chip-area     { border-color: rgba(46,204,113,0.4); color: #2ecc71; }
.sim-chip-active  { border-color: rgba(231,76,60,0.5); color: #e74c3c; }
.sim-chip-dispersed { border-color: rgba(149,165,166,0.4); color: #95a5a6; }
.sim-chip-area { border-color: rgba(46,204,113,0.4); color: #2ecc71; }
.sim-timeline-hud {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    z-index: 500;
    background: rgba(10,13,20,0.9);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,242,254,0.12);
    padding: 10px 20px;
}
.sim-timeline-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.sim-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}
.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,242,254,0.5);
}
.sim-t-label { font-size: 0.72rem; font-family: monospace; color: #9aa3b2; white-space: nowrap; min-width: 56px; }

/* Timeline satellite overpass pins */
.sim-timeline-pin {
    position: absolute;
    bottom: 24px;
    width: 3px;
    height: 10px;
    border-radius: 2px;
    transform: translateX(-50%);
    cursor: pointer;
    transition: height 0.15s;
    z-index: 10;
}
.sim-timeline-pin:hover { height: 16px; }

.sim-overpass-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sim-est-badge { font-size: 0.6rem; color: #f39c12; background: rgba(243,156,18,0.1); border: 1px solid rgba(243,156,18,0.25); border-radius: 4px; padding: 1px 5px; }
.sim-overpass-list { display: flex; flex-direction: column; gap: 8px; }

.sim-overpass-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sim-overpass-card.op-active {
    border-color: rgba(0,242,254,0.4) !important;
    box-shadow: 0 0 12px rgba(0,242,254,0.08);
}
.sim-op-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.sim-op-name  { font-size: 0.78rem; font-weight: 700; }
.sim-op-conf  { font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.conf-high    { background: rgba(46,204,113,0.15);  color: #2ecc71; }
.conf-med     { background: rgba(241,196,15,0.12);  color: #f1c40f; }
.conf-low     { background: rgba(149,165,166,0.1);  color: #95a5a6; }
.sim-op-meta  { display: flex; gap: 8px; margin-bottom: 3px; }
.sim-op-type, .sim-op-dir { font-size: 0.68rem; color: #556070; }
.sim-op-time  { font-size: 0.72rem; font-family: monospace; color: #9aa3b2; margin-bottom: 1px; }
.sim-op-rel   { font-size: 0.68rem; color: #00f2fe; margin-bottom: 3px; }
.sim-op-caps  { font-size: 0.66rem; color: #556070; margin-bottom: 6px; }
.sim-op-name { font-size: 0.78rem; font-weight: 700; }
.sim-op-conf { font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.conf-high   { background: rgba(46,204,113,0.15); color: #2ecc71; }
.conf-med    { background: rgba(241,196,15,0.12); color: #f1c40f; }
.conf-low    { background: rgba(149,165,166,0.1); color: #95a5a6; }
.sim-op-meta { display: flex; gap: 8px; margin-bottom: 3px; }
.sim-op-time { font-size: 0.72rem; font-family: monospace; color: #9aa3b2; margin-bottom: 1px; }
.sim-op-rel  { font-size: 0.68rem; color: #00f2fe; margin-bottom: 3px; }
.sim-op-caps { font-size: 0.66rem; color: #556070; margin-bottom: 6px; }
.sim-op-btn {
    width: 100%;
    padding: 4px 0;
    font-size: 0.72rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.02em;
}
.sim-op-btn:hover:not(:disabled) { opacity: 0.8; }
.sim-op-btn:hover { opacity: 0.8; }
.sim-collapse-btn {
    background: transparent;
    border: 1px solid rgba(0,242,254,0.2);
    color: #00f2fe;
    border-radius: 6px;
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.sim-collapse-btn:hover { background: rgba(0,242,254,0.1); }

/* ── Engine mode badge ──────────────────────────────────────────────────── */
.sim-engine-mode {
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 6px;
    border: 1px solid;
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.mode-live { color: #2ecc71; border-color: rgba(46,204,113,0.4); background: rgba(46,204,113,0.08); }
.mode-demo { color: #f39c12; border-color: rgba(243,156,18,0.4);  background: rgba(243,156,18,0.08); }
.mode-conn { color: #556070; border-color: rgba(85,96,112,0.3);   background: rgba(85,96,112,0.05); }

/* ── Map layer switcher (floating, used on copernicus + simulation maps) ── */
.map-layer-switcher {
    position: absolute;
    top: 14px;
    right: 60px;
    z-index: 600;
    display: flex;
    gap: 4px;
    background: rgba(10,13,20,0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 4px;
}
.map-layer-switcher-sim {
    right: 14px;
    top: 14px;
}
.map-layer-btn {
    padding: 5px 11px;
    font-size: 0.72rem;
    font-weight: 700;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #556070;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.map-layer-btn:hover { color: #cdd5e0; }
.map-layer-btn.active {
    background: rgba(0,242,254,0.12);
    border-color: rgba(0,242,254,0.3);
    color: #00f2fe;
}

/* ── Satellite image thumbnail in overpass cards ────────────────────────── */
.sim-op-thumb-wrap {
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
}
.sim-op-thumb-canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: auto;
}
.sim-op-thumb-controls {
    padding: 6px 8px;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.sim-op-overlay-btn {
    width: 100%;
    padding: 5px 0;
    font-size: 0.71rem;
    font-weight: 700;
    background: rgba(0,0,0,0.3);
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    letter-spacing: 0.03em;
}
.sim-op-overlay-btn:hover { background: rgba(255,255,255,0.06); }
.sim-op-opacity-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    color: #556070;
}
.sim-opacity-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.sim-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0,242,254,0.5);
}

/* Leaflet image overlay styling */
.sim-sat-overlay { cursor: pointer; }
.sim-overlay-tip {
    font-family: monospace;
    font-size: 0.72rem;
    background: rgba(10,13,20,0.9);
    border: 1px solid rgba(0,242,254,0.25);
    color: #9aa3b2;
    border-radius: 4px;
}

/* ── Simulation mode toggle (Forward / Retro) ─────────────────────────────── */
.sim-mode-btn {
    flex: 1;
    padding: 5px 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    color: #6b7a8f;
    font-size: 0.72rem;
    font-family: 'Inter', monospace;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    text-align: center;
    line-height: 1.35;
}
.sim-mode-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #9aa3b2;
}
.sim-mode-btn.active[data-simmode="forward"] {
    background: rgba(0,242,254,0.10);
    border-color: rgba(0,242,254,0.45);
    color: #00f2fe;
}
.sim-mode-btn.active[data-simmode="backward"] {
    background: rgba(231,76,60,0.10);
    border-color: rgba(231,76,60,0.50);
    color: #ff6b6b;
}

/* ── Source attribution panel ────────────────────────────────────────────── */
.sim-source-panel {
    border: 1px solid rgba(231,76,60,0.35) !important;
    background: rgba(231,76,60,0.07) !important;
    border-radius: 7px;
    padding: 10px 12px !important;
    margin-top: 4px;
}
.sim-source-header {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff6b6b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.sim-source-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.72rem;
    color: #6b7a8f;
    margin-bottom: 4px;
}
.sim-source-row strong {
    color: #c0cad5;
    font-family: monospace;
    font-size: 0.74rem;
}
.sim-source-ais-btn {
    display: block;
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(231,76,60,0.12);
    border: 1px solid rgba(231,76,60,0.40);
    border-radius: 5px;
    color: #ff8a7a;
    font-size: 0.74rem;
    text-decoration: none;
    text-align: center;
    transition: background 0.18s;
}
.sim-source-ais-btn:hover {
    background: rgba(231,76,60,0.22);
    color: #ffb3aa;
}
.sim-source-note {
    margin-top: 8px;
    font-size: 0.68rem;
    color: #4a5568;
    line-height: 1.45;
}

/* ── Coastal Impact Risk Panel ───────────────────────────────────────────── */
.sim-coastal-panel {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px !important;
    margin-top: 4px;
}
.cr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cr-toggle-btn {
    font-size: 0.68rem;
    padding: 3px 7px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: #6b7a8f;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.cr-toggle-btn:hover { border-color: rgba(0,242,254,0.35); color: #00f2fe; }

.cr-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.cr-stat {
    font-size: 0.68rem;
    color: #556070;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    padding: 2px 6px;
}
.cr-stat strong { color: #9aa3b2; }
.cr-stat.cr-stat-alert strong { color: #e74c3c; }
.cr-stat.cr-stat-mpa strong   { color: #ff6b6b; }

/* MPA legal alert banner */
.cr-mpa-alert {
    background: rgba(231,76,60,0.10);
    border: 1px solid rgba(231,76,60,0.40);
    border-radius: 5px;
    padding: 7px 9px;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ff6b6b;
    letter-spacing: 0.03em;
}
.cr-contam-area {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.7rem;
    color: #ff8a7a;
    font-weight: 400;
}
.cr-mpa-legal {
    margin-top: 4px;
    font-size: 0.65rem;
    font-weight: 400;
    color: #c0392b;
    letter-spacing: 0;
    line-height: 1.4;
}

/* Feature list */
.cr-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.cr-item {
    border-left: 2px solid transparent;
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    padding: 6px 8px;
    transition: background 0.15s;
}
.cr-item.cr-at-risk {
    background: rgba(255,255,255,0.055);
}
.cr-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}
.cr-item-name {
    font-size: 0.73rem;
    color: #c0cad5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.cr-mpa-badge {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(231,76,60,0.18);
    border: 1px solid rgba(231,76,60,0.45);
    color: #ff6b6b;
    flex-shrink: 0;
}
.cr-item-meta {
    margin-top: 2px;
}
.cr-esi {
    font-size: 0.67rem;
    color: #556070;
    font-family: monospace;
}
.cr-dist {
    font-size: 0.67rem;
    color: #4a5568;
    font-family: monospace;
}
.cr-eta {
    font-size: 0.70rem;
    color: #3d4a5c;
    margin-top: 3px;
    font-family: monospace;
}
.cr-contam {
    font-size: 0.66rem;
    color: #e74c3c;
    margin-top: 2px;
    font-family: monospace;
}
.cr-loading {
    font-size: 0.72rem;
    color: #556070;
    padding: 6px 0;
    text-align: center;
    animation: pulse 1.8s ease-in-out infinite;
}
.cr-overflow {
    font-size: 0.67rem;
    color: #3d4a5c;
    text-align: center;
    padding: 4px 0;
}

/* ── Shallow-water HUD chip ──────────────────────────────────────────────── */
.sim-chip-shallow {
    color: #3498db;
    border-color: rgba(52,152,219,0.30);
}
.sim-chip-shallow.hud-alert {
    color: #e74c3c;
    border-color: rgba(231,76,60,0.45);
    background: rgba(231,76,60,0.10);
    animation: pulse 2s ease-in-out infinite;
}

/* ── Bathymetric profile panel ───────────────────────────────────────────── */
.sim-bathy-panel {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px !important;
    margin-top: 4px;
}
.bathy-source-badge {
    font-size: 0.60rem;
    color: #3d4a5c;
    letter-spacing: 0.04em;
    font-family: monospace;
}
.sim-bathy-chart-wrap {
    width: 100%;
    height: 140px;
    margin-top: 8px;
    position: relative;
}
.sim-bathy-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Depth summary stats */
.bathy-stat-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}
.bathy-stat {
    font-size: 0.70rem;
    color: #556070;
    background: rgba(52,152,219,0.07);
    border: 1px solid rgba(52,152,219,0.15);
    border-radius: 4px;
    padding: 2px 7px;
    flex: 1;
    text-align: center;
}
.bathy-stat strong {
    color: #5dade2;
    font-family: monospace;
}
.bathy-alert {
    font-size: 0.71rem;
    color: #e74c3c;
    background: rgba(231,76,60,0.08);
    border: 1px solid rgba(231,76,60,0.30);
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 4px;
}
.bathy-note {
    font-size: 0.69rem;
    color: #e67e22;
    padding: 3px 8px;
    margin-top: 3px;
    border-left: 2px solid rgba(230,126,34,0.40);
}

/* Bathymetry toggle button active state (shared with layer-btn) */
.map-layer-btn[data-bathymap].active {
    background: rgba(52,152,219,0.18);
    border-color: rgba(52,152,219,0.55);
    color: #5dade2;
}
/* ═══════════════════════════════════════════════════════════════════════════
   END Drift Simulation
   ══════════════════════════════════════════════════════════════════════════ */

/* Tactical Validation Progress Bar */
.validation-progress-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.proc-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.proc-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.proc-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    box-shadow: 0 0 10px var(--secondary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.proc-step-done {
    color: var(--primary);
}
.marine-conditions-panel {
    background: rgba(0,150,200,0.04);
    border: 1px solid rgba(0,150,200,0.15);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 14px;
}
.marine-loading {
    font-size: 0.65rem;
    color: #556070;
    font-family: monospace;
}
.marine-panel-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.marine-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #556070;
}
.marine-rec-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: 1px solid;
    border-radius: 4px;
    padding: 2px 7px;
}
.marine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
@media (max-width: 700px) {
    .marine-grid { grid-template-columns: repeat(2, 1fr); }
}
.marine-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.marine-lbl {
    font-size: 0.54rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #404859;
}
.marine-val {
    font-size: 0.68rem;
    color: #9aa3b2;
    font-family: monospace;
}
.marine-recommendation {
    font-size: 0.65rem;
    color: #9aa3b2;
    border-left: 2px solid;
    padding-left: 8px;
    line-height: 1.5;
}
.sst-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 5px;
    padding: 4px 10px;
    margin-top: 8px;
    border: 1px solid;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.sst-confirmed { color: #2ecc71; border-color: rgba(46,204,113,0.35);  background: rgba(46,204,113,0.07); }
.sst-weak      { color: #f1c40f; border-color: rgba(241,196,15,0.3);   background: rgba(241,196,15,0.06); }
.sst-absent    { color: #e67e22; border-color: rgba(230,126,34,0.35);  background: rgba(230,126,34,0.07); }
.sst-neutral   { color: #9aa3b2; border-color: rgba(154,163,178,0.2);  background: rgba(154,163,178,0.04); }
.s3-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    align-items: start;
}
@media (max-width: 900px) {
    .s3-layout { grid-template-columns: 1fr; }
}
.s3-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 20px;
}
.s3-panel-hdr {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s3-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #00f2fe;
}
.s3-subtitle {
    display: block;
    font-size: 0.64rem;
    color: #556070;
    margin-top: 2px;
}
.s3-form {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
}
.s3-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #e8eaf0;
    font-size: 0.78rem;
    padding: 7px 10px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-top: 4px;
}
.s3-input:focus { border-color: rgba(0,242,254,0.4); }
select.s3-input { cursor: pointer; }
.s3-mini-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 6px;
    overflow: hidden;
}
.s3-bbox-status {
    font-size: 0.65rem;
    color: #556070;
    margin-top: 5px;
    min-height: 16px;
}
.s3-threshold-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}
.s3-range {
    flex: 1;
    accent-color: #00f2fe;
}
.s3-thr-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00f2fe;
    min-width: 32px;
    text-align: right;
}
.s3-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #9aa3b2;
    margin-top: 4px;
    cursor: pointer;
}
.s3-toggle-label { flex: 1; }
.btn-full-mini {
    width: 100%;
    margin-top: 14px;
    padding: 9px 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.s3-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.s3-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 8px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #556070;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}
.s3-check-all-btn {
    background: transparent;
    border: 1px solid rgba(0,242,254,0.25);
    color: #00f2fe;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 5px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.s3-check-all-btn:hover { background: rgba(0,242,254,0.08); }
.s3-badge {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    border-radius: 10px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 7px;
}
.s3-zones-list, .s3-alerts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.s3-empty {
    font-size: 0.72rem;
    color: #556070;
    text-align: center;
    padding: 24px 0;
    border: 1px dashed rgba(255,255,255,0.07);
    border-radius: 8px;
}
.s3-zone-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.s3-zone-card.active  { border-color: rgba(0,242,254,0.15); }
.s3-zone-card.paused  { border-color: rgba(85,96,112,0.2); opacity: 0.7; }
.s3-zone-card.expired { border-color: rgba(231,76,60,0.2); opacity: 0.55; }
.s3-zone-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.s3-zone-info { display: flex; flex-direction: column; gap: 3px; }
.s3-zone-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e8eaf0;
}
.s3-zone-status {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    padding: 1px 6px;
    border: 1px solid;
    display: inline-block;
}
.s3-status-active  { color: #2ecc71; border-color: rgba(46,204,113,0.35);  background: rgba(46,204,113,0.07); }
.s3-status-paused  { color: #95a5a6; border-color: rgba(149,165,166,0.25); background: rgba(149,165,166,0.05); }
.s3-status-expired { color: #e74c3c; border-color: rgba(231,76,60,0.3);    background: rgba(231,76,60,0.05); }
.s3-zone-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}
.s3-btn-sm {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: #9aa3b2;
    font-size: 0.62rem;
    font-weight: 600;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.s3-btn-sm:hover          { border-color: rgba(0,242,254,0.3); color: #00f2fe; }
.s3-btn-sm:disabled       { opacity: 0.4; cursor: not-allowed; }
.s3-btn-toggle:hover      { border-color: rgba(243,156,18,0.4); color: #f39c12; }
.s3-btn-del               { border-color: rgba(231,76,60,0.2); color: rgba(231,76,60,0.6); }
.s3-btn-del:hover         { border-color: rgba(231,76,60,0.5); color: #e74c3c; background: rgba(231,76,60,0.06); }
.s3-zone-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.65rem;
    color: #556070;
}
.s3-zone-meta strong { color: #9aa3b2; }
.s3-zone-log {
    margin-top: 8px;
    font-size: 0.65rem;
    font-family: monospace;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(0,0,0,0.2);
    color: #9aa3b2;
}
.s3-log-ok    { color: #2ecc71; background: rgba(46,204,113,0.06); }
.s3-log-alert { color: #e74c3c; background: rgba(231,76,60,0.08); font-weight: 700; }
.s3-marine-badge {
    margin-top: 8px;
    font-size: 0.62rem;
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 5px;
    border: 1px solid;
    background: rgba(0,0,0,0.15);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.s3-alert-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px 14px;
    transition: border-color 0.2s;
}
.s3-alert-confirmed   { border-color: rgba(231,76,60,0.25); }
.s3-alert-unconfirmed { border-color: rgba(241,196,15,0.15); }
.s3-alert-dismissed   { opacity: 0.4; }
.s3-alert-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.s3-alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.s3-alert-body { flex: 1; min-width: 0; }
.s3-alert-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e8eaf0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.s3-alert-zone {
    font-size: 0.65rem;
    font-weight: 400;
    color: #556070;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 1px 6px;
}
.s3-alert-meta {
    font-size: 0.65rem;
    color: #556070;
    margin-top: 4px;
}
.s3-alert-meta strong { color: #9aa3b2; }
.s3-alert-scenes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}
.s3-scene-chip {
    font-size: 0.58rem;
    font-family: monospace;
    background: rgba(0,242,254,0.05);
    border: 1px solid rgba(0,242,254,0.15);
    color: #00f2fe;
    border-radius: 4px;
    padding: 1px 6px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 220px;
    text-overflow: ellipsis;
}
.s3-alert-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}
.s3-alert-thumb {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    display: block;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MAIN SIDEBAR — section labels (DOMAINS / TOOLS / ACCOUNT)
══════════════════════════════════════════════════════════════════════════════ */

.nav-section-label {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #3a4a5c;
    text-transform: uppercase;
    padding: 14px 20px 6px;
    user-select: none;
}
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 8px 16px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SECONDARY PANEL — slides in from main sidebar when a sector is clicked
══════════════════════════════════════════════════════════════════════════════ */

#secondary-panel {
    width: 0;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0a0e14;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    height: 100vh;
    z-index: 999;
    position: relative;
}
#secondary-panel.is-open {
    width: 260px;
}

/* Re-open handle — small tab on the left edge of main viewport when panel is collapsed */
#secondary-reopen {
    position: fixed;
    top: 50%;
    left: 280px;
    transform: translateY(-50%);
    width: 22px;
    height: 56px;
    background: #0d1117;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #6b7a8d;
    font-size: 1.1rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
#secondary-reopen.is-visible {
    display: flex;
}
#secondary-reopen:hover {
    color: var(--primary);
    background: rgba(0,242,254,0.08);
    border-color: rgba(0,242,254,0.3);
}

/* Close button on each sec-header — left chevron */
.sec-close {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    color: #6b7a8d;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0 2px 0;
    transition: background 0.15s, color 0.15s;
}
.sec-close:hover {
    background: rgba(0,242,254,0.08);
    color: var(--primary);
    border-color: rgba(0,242,254,0.3);
}

/* Each sector content panel */
.sec-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 260px;
}
.sec-content:not(.sec-hidden) {
    display: flex;
    animation: secSlideIn 0.22s ease both;
}
@keyframes secSlideIn {
    from { opacity: 0; transform: translateX(10px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Header strip */
.sec-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 14px 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.sec-hicon {
    font-size: 1.65rem;
    line-height: 1;
    flex-shrink: 0;
}
.sec-htext { flex: 1; min-width: 0; }
.sec-htitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sec-color, #00f2fe);
    line-height: 1.1;
}
.sec-hsub {
    font-size: 0.66rem;
    color: #4a5568;
    margin-top: 3px;
    letter-spacing: 0.02em;
}
/* Nav list */
.sec-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sec-nav::-webkit-scrollbar { width: 4px; }
.sec-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.sec-item {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 9px 18px;
    color: #6b7a8d;
    text-decoration: none !important;
    font-size: 0.83rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color 0.15s, background 0.15s;
    cursor: pointer;
}
.sec-item:hover {
    color: #b0bec5;
    background: rgba(255,255,255,0.03);
    text-decoration: none !important;
}
.sec-item.active {
    color: var(--sec-color, #00f2fe) !important;
    background: rgba(0, 242, 254, 0.07);
    border-left-color: var(--sec-color, #00f2fe);
    font-weight: 600;
}
.sec-iico {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.sec-sep {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 6px 0;
}

/* Coming-soon body */
.sec-coming {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 18px;
    overflow-y: auto;
}
.sec-cs-badge {
    display: inline-block;
    background: rgba(0,242,254,0.1);
    border: 1px solid rgba(0,242,254,0.25);
    color: var(--sec-color, #00f2fe);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sec-cs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #c8d6e5;
    line-height: 1.25;
}
.sec-cs-desc {
    font-size: 0.78rem;
    color: #506070;
    line-height: 1.55;
}
.sec-cs-btn {
    margin-top: 4px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,242,254,0.3);
    background: rgba(0,242,254,0.07);
    color: var(--sec-color, #00f2fe);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.sec-cs-btn:hover { background: rgba(0,242,254,0.14); }

/* ══════════════════════════════════════════════════════════════════════════════
   SECTOR OVERVIEW — main viewport cards for non-maritime sectors
══════════════════════════════════════════════════════════════════════════════ */

.sector-ov-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sector-ov-icon { font-size: 3.5rem; line-height: 1; flex-shrink: 0; }
.sector-ov-title { font-family: 'Outfit', sans-serif; font-size: 2rem; font-weight: 800; color: var(--sb-color, #00f2fe); line-height: 1.1; margin-bottom: 6px; }
.sector-ov-tagline { font-size: 0.9rem; color: #6b7a8d; line-height: 1.4; max-width: 560px; }
.sector-ov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}
.sector-ov-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s, background 0.2s;
}
.sector-ov-card:hover { background: rgba(255,255,255,0.04); }
.sector-ov-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.sector-ov-card-title { font-weight: 700; color: #c8d6e5; font-size: 0.9rem; margin-bottom: 6px; }
.sector-ov-card-desc { font-size: 0.78rem; color: #506070; line-height: 1.45; }
.sector-ov-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,242,254,0.08);
    border: 1px solid rgba(0,242,254,0.2);
    color: var(--sb-color, #00f2fe);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
