:root {
    --bg-dark: #07090e;
    --panel-bg: rgba(13, 17, 26, 0.75);
    --panel-border: rgba(56, 189, 248, 0.2);
    --panel-border-hover: rgba(56, 189, 248, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #38bdf8;
    --accent-cyan: #22d3ee;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --accent-rose: #f43f5e;
    
    --glow-blue: rgba(56, 189, 248, 0.3);
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
}

/* 3D App Fullscreen Viewport Wrapper (Preserves 100% existing Cesium & HUD UI) */
.simulator-app-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg-dark);
}

/* Cesium Container */
#cesiumContainer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Customize / Hide Cesium default UI components */
/* Position Cesium Standard Toolbar lower to prevent overlap */
.cesium-viewer-toolbar {
    top: 140px !important;
    right: 24px !important;
    z-index: 99 !important;
}

.cesium-navigation-help {
    top: 185px !important;
    right: 24px !important;
}

/* Completely hide default Cesium clock animation widget in bottom-left */
.cesium-viewer-bottom,
.cesium-viewer-animationContainer,
.cesium-animation-theme-default,
.cesium-viewer-timelineContainer,
.cesium-viewer-fullscreenContainer {
    display: none !important;
}

.cesium-credit-logoContainer, .cesium-credit-textContainer {
    opacity: 0.6;
    font-size: 11px;
}

/* HUD Overlay Layer */
.hud-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Glassmorphism Panel Component */
.glass-panel {
    pointer-events: auto;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--panel-border-hover);
}

/* Top Split Floating Islands (Keeps Center View 100% Unobstructed!) */
.hud-top-split {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 1050;
}

.header-left-island {
    padding: 10px 18px;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.header-right-island {
    padding: 10px 18px;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pulse-icon {
    position: relative;
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    animation: pulseGlow 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.app-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 24px rgba(0, 243, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
}

.app-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.stats-pills {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-header-menu-btn {
    display: none;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.header-action-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.header-lang-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    gap: 6px !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    background: rgba(56, 189, 248, 0.08) !important;
    padding: 4px 10px !important;
    border-radius: var(--radius-sm);
}

.header-lang-pill select,
#langSelect {
    width: auto !important;
    max-width: none !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    border: none !important;
    background: transparent !important;
    color: #38bdf8 !important;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.mono-text {
    font-family: var(--font-mono);
}

/* Sidebar Floating Panel (Default: Bottom-Left, Freely Draggable) */
aside#sidebarPanel.hud-sidebar {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 360px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 10px 14px;
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    margin: 0;
    z-index: 100;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.75);
    background: rgba(11, 19, 41, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Dropdown Select */
.select-box {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    background: rgba(13, 27, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--accent-cyan);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C22d3ee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
    transition: all var(--transition-fast);
}

.custom-select:hover, .custom-select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px var(--glow-blue);
}

.custom-select option {
    background: #0f172a;
    color: var(--text-primary);
    padding: 10px;
}

/* Search Input Box */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--glow-blue);
}

.search-results-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.search-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.search-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
}

/* Toggles & Controls */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.toggle-switch input {
    display: none;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.slider {
    position: relative;
    width: 44px !important;
    min-width: 44px !important;
    height: 24px !important;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    top: 3px !important;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.toggle-switch input:checked + .purple-slider {
    background-color: #c084fc !important;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.6) !important;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px) !important;
}

.source-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover, .btn-secondary.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.4);
}

.btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.btn-close:hover {
    color: var(--text-primary);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 6px;
}

/* Detail Card Panel (Default: Right Side, Freely Draggable) */
.hud-card {
    position: absolute;
    top: 90px;
    right: 16px;
    width: 360px;
    min-width: 300px;
    max-width: 520px;
    max-height: calc(100vh - 160px);
    z-index: 950;
    overflow-y: auto;
    resize: both;
    box-sizing: border-box;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 105;
    animation: fadeInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.3);
}

.hud-card::-webkit-scrollbar {
    width: 6px;
}

.hud-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.hud-card::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
}

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

.card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.badge {
    align-self: start;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background: rgba(34, 211, 238, 0.2);
    color: var(--accent-cyan);
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.data-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.data-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.data-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Off-Screen Edge Pointer HUD */
.edge-pointer-hud {
    position: fixed;
    z-index: 99999;
    pointer-events: auto;
    cursor: pointer;
    background: rgba(13, 17, 26, 0.94);
    border: 1.5px solid var(--accent-rose);
    border-radius: 30px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.5), inset 0 0 10px rgba(244, 63, 94, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
    animation: pointerGlow 1.5s infinite alternate ease-in-out;
    max-width: calc(100vw - 24px);
}

.edge-pointer-hud:hover {
    background: rgba(244, 63, 94, 0.25);
    transform: scale(1.05);
}

.pointer-arrow {
    font-size: 1.4rem;
    line-height: 1;
    display: inline-block;
    animation: bounceArrow 1s infinite alternate ease-in-out;
}

@keyframes bounceArrow {
    from { transform: translateX(0); }
    to { transform: translateX(4px); }
}

@keyframes pointerGlow {
    from { box-shadow: 0 0 12px rgba(244, 63, 94, 0.4); }
    to { box-shadow: 0 0 24px rgba(244, 63, 94, 0.8); }
}

.pointer-content {
    display: flex;
    flex-direction: column;
}

.pointer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.pointer-hint {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* HTML DOM Spatial Overlay Container for 100% Crisp Sharp Text */
.labels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.sat-dom-label {
    position: absolute;
    transform: translate(-50%, -100%);
    margin-top: -12px;
    background: rgba(7, 10, 18, 0.88);
    border: 1px solid rgba(34, 211, 238, 0.4);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--accent-cyan);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    user-select: none;
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sat-dom-label:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--accent-cyan);
    color: #ffffff;
}

.sat-dom-label.selected {
    background: rgba(244, 63, 94, 0.9);
    border-color: #ffffff;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.8);
    z-index: 10;
}

.loading-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Satellite Visual Image Frame in Detail Card */
.sat-image-wrapper {
    margin-top: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 15, 28, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.1);
    position: relative;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.sat-image-wrapper:hover {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.3);
}

.sat-image-wrapper::after {
    content: "🔍 クリックで全画面拡大";
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #38bdf8;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sat-image-wrapper:hover::after {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(15, 23, 42, 0.95);
    border-color: #38bdf8;
}

.sat-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: radial-gradient(circle at center, #131b2e 0%, #07090e 100%);
    padding: 4px;
}

.sat-image:hover {
    transform: scale(1.03);
}

.sat-image-caption {
    padding: 5px 10px;
    font-size: 0.68rem;
    color: #94a3b8;
    background: rgba(8, 12, 24, 0.92);
    backdrop-filter: blur(6px);
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Fullscreen Satellite & Planet Image Lightbox Modal */
.image-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
}

.image-lightbox-modal.hidden {
    display: none !important;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 15, 0.88);
    cursor: pointer;
}

.image-lightbox-content {
    position: relative;
    z-index: 10;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25);
    display: flex;
    flex-direction: column;
    animation: lightboxPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxPopIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.image-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 100;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9);
    border: 2px solid rgba(244, 63, 94, 0.7);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}

.image-lightbox-close:hover {
    background: #f43f5e;
    color: #ffffff;
    border-color: #f43f5e;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.8);
}

.image-lightbox-img {
    max-width: 86vw;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    padding: 8px;
}

.image-lightbox-info {
    padding: 10px 18px;
    background: rgba(10, 15, 30, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.image-lightbox-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-lightbox-caption {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Satellite Description Banner in Detail Card */
.sat-description-text {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(34, 211, 238, 0.08);
    border-left: 3px solid var(--accent-cyan);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-primary);
    line-height: 1.55;
    letter-spacing: 0.2px;
    white-space: pre-line;
}

/* Source Status Badge UI */
.source-status-badge {
    margin-top: 10px;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10b981;
    line-height: 1.4;
    transition: all 0.2s ease;
}

/* Time Control & Speed Multiplier UI */
.speed-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.speed-btn {
    flex: 1;
    min-width: 52px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.speed-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.speed-btn.active {
    background: rgba(34, 211, 238, 0.2);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

.time-adjust-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Drag & Drop UI Handles & Cursor Styles */
.panel-drag-bar {
    width: 100%;
    padding: 6px 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 6px 6px 0 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: grab !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.panel-drag-bar:hover {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
}

.panel-drag-bar:active {
    cursor: grabbing !important;
    background: rgba(56, 189, 248, 0.2);
}

.drag-dots {
    font-size: 1rem;
    line-height: 1;
    color: var(--accent-blue);
}

.is-dragging {
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.35), 0 0 20px rgba(34, 211, 238, 0.2) !important;
    border-color: var(--accent-cyan) !important;
    z-index: 10000 !important;
}

/* 3D Camera Direction D-Pad Control HUD */
.camera-dpad-hud {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 48px);
    grid-template-rows: repeat(3, 48px);
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.dpad-btn {
    width: 48px;
    height: 48px;
    background: rgba(13, 27, 42, 0.85);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: var(--radius-sm);
    color: #38bdf8;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.dpad-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
    transform: scale(1.08);
}

.dpad-btn:active {
    background: rgba(34, 211, 238, 0.4);
    transform: scale(0.95);
}

.dpad-reset {
    font-size: 1rem;
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
}

/* Purple Debris Toggle Slider & Hazard Animation */
input:checked + .slider.purple-slider {
    background-color: #a855f7;
}
input:focus + .slider.purple-slider {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

@keyframes hazardPulse {
    0% { opacity: 0.8; filter: drop-shadow(0 0 4px #c084fc); }
    50% { opacity: 1; filter: drop-shadow(0 0 14px #a855f7); }
    100% { opacity: 0.8; filter: drop-shadow(0 0 4px #c084fc); }
}

.hazard-alert-text {
    animation: hazardPulse 1s infinite ease-in-out;
}

/* Help, Guide, Terms & Privacy Policy Modal CSS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 85vh;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    background: rgba(11, 19, 41, 0.96);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(168, 85, 247, 0.25);
    overflow: hidden;
}

.modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f3e8ff;
    margin: 0;
}

.modal-tabs {
    flex-shrink: 0;
    display: flex;
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    scrollbar-width: none;
}
.modal-tabs::-webkit-scrollbar {
    display: none;
}

.modal-tab {
    flex: 1 0 auto;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-align: center;
}

.modal-tab:hover {
    color: #e9d5ff;
    background: rgba(255, 255, 255, 0.05);
}

.modal-tab.active {
    color: #c084fc;
    border-bottom-color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
}

.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.tab-content {
    display: none;
    animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    font-size: 1.08rem;
    color: #38bdf8;
    margin-bottom: 16px;
    display: block;
    line-height: 1.4;
}

.guide-list {
    padding-left: 20px;
    margin: 0;
}

.guide-list li {
    margin-bottom: 12px;
}

.hidden {
    display: none !important;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

/* Hide Cesium default bottom credits to fix UI overlap in bottom-left */
.cesium-viewer-bottom,
.cesium-widget-credits,
.cesium-credit-logoContainer,
.cesium-credit-expand-link {
    display: none !important;
}

/* Mobile Responsive Optimization (Android & iOS) */
@media (max-width: 768px) {
    .hud-top-split {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        max-width: 96vw;
    }

    .header-left-island,
    .header-right-island {
        padding: 8px 12px;
        width: 100%;
        max-width: 100%;
    }

    .sidebar-panel {
        width: calc(100vw - 20px) !important;
        max-width: 380px;
        font-size: 0.85rem;
    }

    .detail-card {
        width: calc(100vw - 20px) !important;
        max-width: 380px;
    }

    .app-title {
        font-size: 1.15rem;
    }

    .app-subtitle {
        font-size: 0.65rem;
    }

    .modal-content {
        width: 95vw;
        max-height: 85vh;
        padding: 16px;
    }
}

/* Camera D-Pad Mobile & Tablet Touch Boost (58px Huge Buttons) */
@media (max-width: 1024px) {
    .camera-dpad-hud {
        padding: 14px !important;
        bottom: 16px !important;
        right: 16px !important;
    }

    .camera-dpad-hud .dpad-grid {
        grid-template-columns: repeat(3, 58px) !important;
        grid-template-rows: repeat(3, 58px) !important;
        gap: 8px !important;
    }

    .camera-dpad-hud .dpad-btn {
        width: 58px !important;
        height: 58px !important;
        font-size: 1.8rem !important;
        border-width: 2px !important;
        background: rgba(13, 27, 42, 0.95) !important;
        border-color: rgba(56, 189, 248, 0.6) !important;
        color: #38bdf8 !important;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
    }

    .camera-dpad-hud .dpad-btn:active {
        background: rgba(56, 189, 248, 0.6) !important;
        transform: scale(0.90) !important;
    }
}

/* Minimize Toggle Button & Animation */
.panel-min-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.panel-min-btn:hover {
    background: rgba(56, 189, 248, 0.3);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.sidebar-collapsible-content {
    transition: max-height 0.3s ease, opacity 0.25s ease;
    overflow-y: auto;
    max-height: 800px;
    height: fit-content;
    opacity: 1;
}

.card-collapsible-content {
    transition: max-height 0.3s ease, opacity 0.25s ease;
    overflow-y: auto;
    max-height: 800px;
    height: fit-content;
    opacity: 1;
}

.is-minimized .sidebar-collapsible-content,
.is-minimized .card-collapsible-content {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.is-minimized {
    padding-bottom: 6px !important;
}

/* Mobile Optimization: Big Touch Switches, Larger Text, and Bottom Panel Layout */
@media (max-width: 1024px) {
    /* Larger Switch Toggles for Easy Finger Tapping */


    /* Larger Readable Text Labels & Form Controls */
    .checkbox-item label,
    .toggle-label,
    .filter-item label,
    .control-label {
        font-size: 0.98rem !important;
        font-weight: 600 !important;
    }

    .checkbox-item {
        padding: 8px 6px !important;
        gap: 12px !important;
    }

    .custom-select,
    .search-input,
    .btn {
        font-size: 0.95rem !important;
        padding: 10px 14px !important;
    }

    /* Layout: Earth Fullscreen View, Floating Bottom-Left Compact Panel */
    #cesiumContainer {
        height: 100vh !important;
    }

/* Cleaned for Mobile Bottom Sheet */

    .sidebar-collapsible-content {
        max-height: calc(48vh - 36px) !important;
        height: auto !important;
    }

    /* Floating Islands Mobile Fit */
    .header-left-island,
    .header-right-island {
        max-width: 96vw !important;
        font-size: 0.9rem !important;
    }
}

/* ==========================================================================
   Flatpickr Multilingual Dark Neon Glass Calendar Theme
   ========================================================================== */
.flatpickr-calendar {
    background: rgba(11, 19, 41, 0.96) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.25) !important;
    border-radius: 14px !important;
    font-family: var(--font-main) !important;
    color: var(--text-primary) !important;
    z-index: 999999 !important;
}

.flatpickr-calendar .flatpickr-months {
    background: rgba(15, 23, 42, 0.7) !important;
    border-top-left-radius: 14px !important;
    border-top-right-radius: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.flatpickr-calendar .flatpickr-current-month,
.flatpickr-calendar .flatpickr-monthDropdown-months {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

.flatpickr-calendar span.flatpickr-weekday {
    color: var(--accent-cyan) !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
}

.flatpickr-calendar .flatpickr-day {
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.88rem !important;
    transition: all 0.15s ease !important;
}

.flatpickr-calendar .flatpickr-day:hover {
    background: rgba(56, 189, 248, 0.2) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

.flatpickr-calendar .flatpickr-day.selected {
    background: #0284c7 !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.flatpickr-calendar .flatpickr-time {
    background: rgba(15, 23, 42, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom-left-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.flatpickr-calendar .flatpickr-time input {
    color: var(--accent-cyan) !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   RTL (Right-to-Left) Support for Arabic Language
   ========================================================================== */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .hud-layer {
    direction: ltr !important;
}

html[dir="rtl"] .hud-sidebar,
html[dir="rtl"] .hud-card,
html[dir="rtl"] .header-left-island,
html[dir="rtl"] .header-right-island,
html[dir="rtl"] .modal-content {
    direction: rtl !important;
    text-align: right;
}

html[dir="rtl"] .card-body.grid-2col {
    direction: rtl !important;
}

html[dir="rtl"] .data-item {
    text-align: right;
}

html[dir="rtl"] .modal-tabs {
    direction: rtl !important;
}

html[dir="rtl"] .toggle-switch {
    flex-direction: row-reverse;
}




/* Smart Guide Popup Tooltip above/near Satellite Select */
.sat-guide-tooltip {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.6);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: tooltipPulse 2.5s infinite ease-in-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.sat-guide-tooltip.fade-out {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

@keyframes tooltipPulse {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.5);
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.9);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    }
}

.tooltip-pulse-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    margin-top: 5px;
    box-shadow: 0 0 8px #38bdf8;
    flex-shrink: 0;
    animation: dotBlink 1.2s infinite;
}

@keyframes dotBlink {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.tooltip-content {
    flex: 1;
}

.tooltip-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tooltip-desc {
    font-size: 0.73rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.tooltip-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
    transition: color 0.2s;
}

.tooltip-close-btn:hover {
    color: #f87171;
}


/* Floating Zoom Navigation Hint Toast (Auto-Dismiss) */
.zoom-hint-toast {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.92), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    pointer-events: none;
    animation: zoomHintSlideUp 0.6s ease-out forwards;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-hint-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}

@keyframes zoomHintSlideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.zoom-hint-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mouseWheelScroll 1.8s infinite ease-in-out;
}

@keyframes mouseWheelScroll {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.zoom-hint-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.zoom-hint-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 0.3px;
}

.zoom-hint-sub {
    font-size: 0.70rem;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .zoom-hint-toast {
        bottom: 120px;
        padding: 6px 14px;
        border-radius: 20px;
    }
    .zoom-hint-title {
        font-size: 0.76rem;
    }
    .zoom-hint-sub {
        font-size: 0.65rem;
    }
}





/* ==========================================================================
   CSS-Guaranteed Auto-Dismiss Zoom Hint (Zero JS Lag!)
   ========================================================================== */
@keyframes zoomHintAutoFade {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
        visibility: visible;
    }
    12% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        visibility: visible;
    }
    75% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
        visibility: hidden;
        pointer-events: none;
    }
}

.zoom-hint-toast {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.94), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.55);
    border-radius: 30px;
    padding: 8px 18px;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    pointer-events: none;
    animation: zoomHintAutoFade 4.2s ease-in-out forwards !important;
}

.zoom-hint-toast.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-50%) translateY(15px) !important;
    pointer-events: none !important;
}

.zoom-hint-pc-content {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.zoom-hint-touch-content {
    display: none !important;
}

@media (max-width: 768px) {
    .zoom-hint-toast {
        bottom: 75px !important;
        padding: 6px 14px !important;
    }
    .zoom-hint-pc-content {
        display: none !important;
    }
    .zoom-hint-touch-content {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
    .zoom-hint-title {
        font-size: 0.78rem !important;
    }
    .zoom-hint-sub {
        font-size: 0.68rem !important;
    }
}

/* Medium Screen Header Layout Optimization (769px - 1250px) */
@media (max-width: 1250px) and (min-width: 769px) {
    .header-left-island .app-subtitle {
        display: none !important;
    }
    .header-right-island {
        padding: 6px 10px !important;
    }
    .header-right-island .stat-label {
        display: none !important;
    }
    .header-right-island .stat-pill {
        padding: 4px 8px !important;
    }
    .header-action-btn,
    .header-lang-pill {
        padding: 4px 6px !important;
        font-size: 0.74rem !important;
    }
}

/* ==========================================================================
   Mobile Modern UI Overhaul (Max Width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Header Top Strip: Slim single-row minimal HUD */
    .hud-top-split {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 6px 8px !important;
        height: 42px !important;
        max-height: 42px !important;
        background: transparent !important;
        pointer-events: none !important;
    }

    .header-left-island {
        pointer-events: auto !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        max-width: fit-content !important;
        margin: 0 !important;
        background: rgba(11, 19, 43, 0.85) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
    }

    .header-left-island .panel-drag-bar,
    .header-left-island .app-subtitle {
        display: none !important;
    }

    .header-left-island .app-title {
        font-size: 0.95rem !important;
        line-height: 1 !important;
    }

    .header-left-island .pulse-icon {
        width: 18px !important;
        height: 18px !important;
    }
    .header-left-island .pulse-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .header-right-island {
        pointer-events: auto !important;
        position: relative !important;
        padding: 3px 6px !important;
        border-radius: 20px !important;
        max-width: fit-content !important;
        margin: 0 !important;
        background: rgba(11, 19, 43, 0.85) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
    }

    .header-right-island .stats-pills {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .header-right-island .panel-drag-bar,
    .header-right-island #statCountLabel,
    .header-right-island #statCount,
    .header-right-island #statTimeLabel {
        display: none !important;
    }

    .header-right-island .stat-pill {
        padding: 2px 4px !important;
        border: none !important;
        background: transparent !important;
    }

    .header-right-island .stat-value.mono-text {
        font-size: 0.74rem !important;
        color: #38bdf8 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        line-height: 1.15 !important;
    }

    .mobile-header-menu-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 4px;
        background: linear-gradient(135deg, rgba(2, 132, 199, 0.45), rgba(99, 102, 241, 0.35)) !important;
        border: 1px solid rgba(56, 189, 248, 0.55) !important;
        border-radius: 16px !important;
        padding: 3px 8px !important;
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        color: #38bdf8 !important;
        cursor: pointer !important;
        user-select: none;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
        transition: all 0.2s ease;
    }

    .mobile-header-menu-btn:active,
    .mobile-header-menu-btn.active {
        background: linear-gradient(135deg, rgba(2, 132, 199, 0.8), rgba(99, 102, 241, 0.8)) !important;
        color: #ffffff !important;
        border-color: #38bdf8 !important;
        box-shadow: 0 0 14px rgba(56, 189, 248, 0.6) !important;
    }

    .mobile-header-menu-btn .menu-arrow {
        font-size: 0.62rem;
        transition: transform 0.2s ease;
    }

    .mobile-header-menu-btn.active .menu-arrow {
        transform: rotate(180deg);
    }

    .header-actions-group {
        display: none !important;
    }

    .header-actions-group.open {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 0 !important;
        min-width: 215px !important;
        background: rgba(10, 16, 32, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border: 1px solid rgba(56, 189, 248, 0.45) !important;
        border-radius: 14px !important;
        padding: 10px !important;
        gap: 8px !important;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.25) !important;
        z-index: 1000010 !important;
        animation: headerDropdownAnim 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes headerDropdownAnim {
        from { opacity: 0; transform: translateY(-8px) scale(0.96); }
        to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .header-actions-group.open .header-action-btn,
    .header-actions-group.open .header-lang-pill {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        font-size: 0.84rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-align: left !important;
        margin: 0 !important;
        transition: all 0.15s ease !important;
    }

    .header-actions-group.open .header-action-btn:active,
    .header-actions-group.open .header-action-btn:hover {
        background: rgba(56, 189, 248, 0.25) !important;
        border-color: #38bdf8 !important;
        transform: translateX(3px);
    }

    .header-actions-group.open .header-lang-pill {
        background: rgba(56, 189, 248, 0.12) !important;
        border: 1px solid rgba(56, 189, 248, 0.35) !important;
        gap: 8px !important;
    }

    .header-actions-group.open .header-lang-pill select {
        width: 100% !important;
        font-size: 0.84rem !important;
        font-weight: 700 !important;
        color: #38bdf8 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* 2. Bottom Dock Action Buttons: [🛰️ 衛星選択] and [📊 衛星詳細] */
    .mobile-bottom-dock {
        position: fixed !important;
        bottom: 14px !important;
        left: 12px !important;
        display: flex !important;
        gap: 8px !important;
        z-index: 1000002 !important;
        pointer-events: auto !important;
    }

    .mobile-menu-btn,
    .mobile-detail-btn {
        display: flex !important;
        align-items: center;
        gap: 5px;
        background: linear-gradient(135deg, #0284c7, #6366f1) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 24px !important;
        padding: 8px 14px !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        box-shadow: 0 4px 20px rgba(2, 132, 199, 0.6), 0 0 14px rgba(0, 243, 255, 0.4) !important;
        cursor: pointer !important;
        backdrop-filter: blur(8px) !important;
    }

    .mobile-detail-btn {
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(79, 70, 229, 0.95)) !important;
        box-shadow: 0 4px 20px rgba(168, 85, 247, 0.6), 0 0 14px rgba(192, 132, 252, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }

    .mobile-menu-btn:active,
    .mobile-detail-btn:active {
        transform: scale(0.92) !important;
    }

    /* 3. Sidebar Bottom Sheet Drawer (Hidden by default until clicked!) */
    aside#sidebarPanel.hud-sidebar {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 78vh !important;
        border-radius: 22px 22px 0 0 !important;
        background: rgba(11, 19, 43, 0.98) !important;
        border: 1px solid rgba(56, 189, 248, 0.5) !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
        z-index: 1000000 !important;
        padding: 14px 16px 70px 16px !important;
        margin: 0 !important;
        display: none !important; /* DEFAULT 100% STORED IN BUTTON */
        overflow-y: auto !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    aside#sidebarPanel.hud-sidebar.mobile-open,
    aside#sidebarPanel.mobile-open,
    #sidebarPanel.mobile-open {
        display: flex !important;
        flex-direction: column !important;
        animation: mobileSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    aside#sidebarPanel.mobile-open .sidebar-collapsible-content,
    aside#sidebarPanel.hud-sidebar.mobile-open .sidebar-collapsible-content,
    #sidebarPanel.mobile-open .sidebar-collapsible-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }

    aside#sidebarPanel .panel-drag-bar,
    #sidebarPanel .panel-drag-bar {
        display: none !important;
    }

    .sidebar-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-mobile-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #38bdf8;
    }

    .sidebar-mobile-close-btn {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #ffffff;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 4. Detail Card Bottom Sheet Drawer (Hidden by default, 100% opens on .mobile-open!) */
    #detailCard.hud-card,
    #detailCard,
    .hud-detail-card {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 78vh !important;
        border-radius: 22px 22px 0 0 !important;
        background: rgba(11, 19, 43, 0.98) !important;
        border: 1px solid rgba(168, 85, 247, 0.5) !important;
        border-bottom: none !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9) !important;
        z-index: 1000000 !important;
        padding: 14px 16px 70px 16px !important;
        margin: 0 !important;
        display: none !important; /* DEFAULT 100% STORED IN BUTTON */
        overflow-y: auto !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    #detailCard.mobile-open,
    #detailCard.hud-card.mobile-open,
    .hud-detail-card.mobile-open {
        display: flex !important;
        flex-direction: column !important;
        animation: mobileSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    #detailCard.mobile-open .card-collapsible-content,
    .hud-detail-card.mobile-open .card-collapsible-content {
        max-height: none !important;
        opacity: 1 !important;
        display: block !important;
    }

    #detailCard .panel-drag-bar,
    .hud-detail-card .panel-drag-bar {
        display: none !important;
    }

    .detail-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .detail-mobile-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: #c084fc;
    }

    .detail-mobile-close-btn {
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: #ffffff;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 5. Pure Frameless Floating Camera Controller on Bottom-Right */
    .camera-dpad-hud {
        position: fixed !important;
        bottom: 12px !important;
        right: 10px !important;
        top: auto !important;
        left: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        z-index: 99999 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .camera-dpad-hud .panel-drag-bar,
    .camera-dpad-hud .dpad-title-bar,
    .camera-dpad-hud .panel-min-btn {
        display: none !important;
    }

    .camera-dpad-hud .card-collapsible-content {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        max-height: none !important;
        opacity: 1 !important;
    }

    .camera-dpad-hud .dpad-grid {
        grid-template-columns: repeat(3, 26px) !important;
        grid-template-rows: repeat(3, 26px) !important;
        gap: 2px !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .camera-dpad-hud .dpad-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        border: 1px solid rgba(56, 189, 248, 0.45) !important;
        background: rgba(11, 19, 43, 0.85) !important;
        color: #38bdf8 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    
    /* 6. Edge Pointer HUD Mobile In-Screen Guard */
    .edge-pointer-hud {
        padding: 4px 10px !important;
        border-radius: 18px !important;
        max-width: 220px !important;
        transform: translate(-50%, -50%) !important;
    }
    .edge-pointer-hud .pointer-arrow {
        font-size: 1.1rem !important;
    }
    .edge-pointer-hud .pointer-name {
        font-size: 0.74rem !important;
        max-width: 140px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .edge-pointer-hud .pointer-hint {
        font-size: 0.62rem !important;
        white-space: nowrap !important;
    }

    @keyframes mobileSheetSlideUp {
        from { transform: translateY(100%); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* Hide Mobile Elements on PC / Desktop */
@media (min-width: 769px) {
    .mobile-bottom-dock {
        display: none !important;
    }
    .sidebar-mobile-header,
    .detail-mobile-header {
        display: none !important;
    }
}

/* ==========================================================================
   ISS Cupola View & Astronaut POV Styles
   ========================================================================== */
body.cupola-mode-active .hud-top-split,
body.cupola-mode-active #sidebarPanel,
body.cupola-mode-active #sidebarPanel.mobile-open,
body.cupola-mode-active aside#sidebarPanel.mobile-open,
body.cupola-mode-active #detailCard,
body.cupola-mode-active #detailCard.mobile-open,
body.cupola-mode-active #detailCard.hud-card,
body.cupola-mode-active #detailCard.hud-card.mobile-open,
body.cupola-mode-active .hud-detail-card,
body.cupola-mode-active .hud-detail-card.mobile-open,
body.cupola-mode-active #cameraDPad,
body.cupola-mode-active #edgePointer,
body.cupola-mode-active .mobile-bottom-dock,
body.cupola-mode-active .cesium-viewer-bottom,
body.cupola-mode-active .cesium-widget-credits {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

.cupola-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: cupolaFadeIn 0.8s ease-out forwards;
}

@keyframes cupolaFadeIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1.0); }
}

.cupola-overlay.hidden {
    display: none !important;
}

.cupola-header {
    position: relative;
    z-index: 10;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.95), rgba(7, 9, 14, 0.4) 70%, transparent);
}

.cupola-badge {
    background: rgba(2, 132, 199, 0.28);
    border: 1.5px solid #38bdf8;
    border-radius: 8px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.92rem;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.cupola-telemetry {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    color: #e2e8f0;
    display: flex;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.cupola-exit-btn {
    pointer-events: auto;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.22);
    border: 1.5px solid #ef4444;
    color: #fca5a5;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
}

.cupola-exit-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}

.cupola-footer {
    position: relative;
    z-index: 10;
    padding: 12px 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #cbd5e1;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.95), rgba(7, 9, 14, 0.4) 70%, transparent);
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 768px) {
    body.cupola-mode-active #detailCard,
    body.cupola-mode-active #detailCard.mobile-open,
    body.cupola-mode-active #detailCard.hud-card.mobile-open,
    body.cupola-mode-active #sidebarPanel,
    body.cupola-mode-active #sidebarPanel.mobile-open,
    body.cupola-mode-active .mobile-bottom-dock {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .cupola-header {
        flex-direction: column;
        gap: 6px;
        padding: 6px 10px;
    }
    .cupola-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }
    .cupola-telemetry {
        font-size: 0.68rem;
        gap: 6px 10px;
        flex-wrap: wrap;
        padding: 4px 8px;
        justify-content: center;
    }
    .cupola-exit-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .cupola-footer {
        font-size: 0.68rem;
        padding: 6px 10px;
        flex-direction: column;
        gap: 2px;
    }
}

/* ==========================================================================
   Historical Time Travel Presets & Notification Toast Styles
   ========================================================================== */
.time-travel-box {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.historical-btn {
    border-color: rgba(251, 191, 36, 0.35) !important;
    background: rgba(251, 191, 36, 0.06) !important;
    color: #fde68a !important;
    transition: all 0.2s ease;
}

.historical-btn:hover {
    background: rgba(251, 191, 36, 0.2) !important;
    border-color: #fbbf24 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.35);
    transform: translateY(-1px);
}


/* Universal Glass Toast Notification */
.app-glass-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(11, 19, 43, 0.95));
    border: 1.5px solid rgba(56, 189, 248, 0.6);
    border-radius: 12px;
    padding: 10px 20px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.35), 0 8px 25px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
    pointer-events: auto;
    animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.app-glass-toast.fade-out {
    animation: toastFadeOut 0.4s ease forwards;
}

@keyframes toastSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Capture Preview & Save Modal */
.capture-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 19, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10000005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.capture-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.capture-modal-container {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(11, 19, 43, 0.98));
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.3), 0 20px 45px rgba(0, 0, 0, 0.85);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.capture-modal-overlay.active .capture-modal-container {
    transform: scale(1);
}

.capture-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.capture-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capture-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.capture-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.capture-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.capture-modal-preview-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.capture-modal-preview-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -webkit-touch-callout: default !important;
    cursor: pointer;
}

.capture-guide-box {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.55;
}

.capture-guide-title {
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.capture-guide-step {
    margin: 7px 0;
    line-height: 1.55;
}

.capture-guide-note {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 6px;
    line-height: 1.4;
}

.capture-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 19, 43, 0.5);
}

.capture-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.capture-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.capture-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
    transform: translateY(-1px);
}

.capture-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

.capture-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Scroll-Down Hint Banner (Floating on Simulator Viewport Bottom)
   ============================================================ */
.scroll-down-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 9999px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
    cursor: pointer;
    transition: all 0.25s ease;
    animation: hintBounce 2.5s infinite ease-in-out;
}

.scroll-down-hint:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
    transform: translateX(-50%) translateY(-2px);
}

.scroll-down-hint:active {
    transform: translateX(-50%) translateY(1px);
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.4);
}

.scroll-hint-arrow,
.scroll-hint-text {
    pointer-events: auto;
}

.scroll-hint-arrow {
    display: inline-block;
    font-size: 0.75rem;
    color: #38bdf8;
    animation: hintArrowMove 1.5s infinite;
}

@keyframes hintBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-6px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes hintArrowMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@media (max-width: 768px) {
    .scroll-down-hint {
        bottom: 64px; /* Space above mobile bottom dock */
        padding: 6px 14px;
        font-size: 0.76rem;
    }
}

/* ============================================================
   SEO & Educational Guide Content Section (Scroll-down Area)
   ============================================================ */
.site-guide-section {
    position: relative;
    z-index: 20;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.88) 0%, rgba(11, 19, 41, 0.98) 160px, #07090e 320px);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    line-height: 1.8;
}

.guide-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 70px 24px 90px;
}

.guide-hero {
    text-align: center;
    margin-bottom: 56px;
}

.guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.guide-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-hero-desc {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.8;
}

.guide-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
}

.guide-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-card-title-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guide-card p {
    color: #cbd5e1;
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.guide-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0 12px;
}

.guide-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0 12px;
}

.guide-feature-box {
    background: rgba(11, 19, 41, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.guide-feature-box:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
}

.guide-feature-box h4 {
    color: #38bdf8;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-feature-box p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ Accordion / Item list */
.faq-item {
    background: rgba(11, 19, 41, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

.faq-question {
    color: #38bdf8;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-q-mark {
    background: #38bdf8;
    color: #07090e;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 2px;
}

.faq-answer {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.75;
    padding-left: 28px;
}

/* Featured Articles Grid */
.articles-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.article-preview-card {
    background: rgba(11, 19, 41, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.25s ease;
}

.article-preview-card:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: #38bdf8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

.article-preview-card .tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.article-preview-card h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-preview-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
    flex-grow: 1;
}

.article-preview-card .read-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Back to Top Floating / Inline Button */
.back-to-simulator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 40px auto 0;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(14, 165, 233, 0.3) 100%);
    border: 1px solid #38bdf8;
    border-radius: 9999px;
    color: #38bdf8;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
    transition: all 0.25s ease;
}

.back-to-simulator-btn:hover {
    background: #38bdf8;
    color: #07090e;
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

/* ============================================================
   Permanent Site Footer (E-E-A-T Compliance)
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 20;
    background: #05070a;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding: 50px 24px 36px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.65;
    max-width: 380px;
}

.footer-nav-col h4 {
    color: #e2e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 16px;
    border-left: 3px solid #38bdf8;
    padding-left: 8px;
}

.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-col li {
    margin-bottom: 10px;
}

.footer-nav-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s ease;
}

.footer-nav-col a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-credits {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .guide-grid-2, .guide-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .guide-container {
        padding: 50px 16px 70px;
    }
    .guide-card {
        padding: 24px 20px;
    }
    .guide-hero-title {
        font-size: 1.65rem;
    }
}


