/* ==========================================================================
   3D CYBERPUNK UNIVERSE EXPLORER - STYLESHEET
   ========================================================================== */

:root {
    --bg-dark: #030612;
    --cyber-cyan: #00f3ff;
    --cyber-magenta: #ff007f;
    --cyber-purple: #7928ca;
    --cyber-gold: #ffb700;
    --cyber-emerald: #10b981;
    --cyber-blue: #0070f3;
    
    --glass-bg: rgba(6, 12, 30, 0.75);
    --glass-border: rgba(0, 243, 255, 0.25);
    --glass-glow: rgba(0, 243, 255, 0.15);
    
    --font-sans: 'Outfit', -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-sans);
    color: var(--text-main);
}

/* 3D Canvas */
#galaxyCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    display: block;
    touch-action: none;
}

/* Cyberpunk Overlay (Scanlines & Grid Vignette) */
.cyber-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(circle at center, transparent 40%, rgba(3, 6, 18, 0.85) 100%),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 100%, 100% 4px, 6px 100%;
    opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Header Navigation HUD
   -------------------------------------------------------------------------- */
.galaxy-header {
    position: fixed;
    top: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 243, 255, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    color: var(--cyber-cyan);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-btn:hover {
    background: rgba(0, 243, 255, 0.25);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--cyber-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: #fff;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyber-cyan);
    letter-spacing: 0.5px;
}

.header-center {
    display: flex;
    align-items: center;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyber-emerald);
}

.status-dot.pulsing {
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.4; box-shadow: 0 0 2px var(--cyber-emerald); }
    100% { opacity: 1; box-shadow: 0 0 10px var(--cyber-emerald), 0 0 20px var(--cyber-emerald); }
}

.status-text {
    color: #fff;
    font-weight: 600;
}

.status-nodes {
    color: var(--cyber-gold);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hud-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hud-btn.highlight {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--cyber-magenta);
    color: var(--cyber-magenta);
}

.hud-btn.highlight:hover {
    background: rgba(255, 0, 127, 0.35);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

/* --------------------------------------------------------------------------
   Control Hints HUD Overlay
   -------------------------------------------------------------------------- */
.control-hints {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    pointer-events: none;
}

.hint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(3, 6, 18, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.hint-item i {
    color: var(--cyber-cyan);
}

/* --------------------------------------------------------------------------
   Galaxy Quick Dock (Bottom Navigation Bar)
   -------------------------------------------------------------------------- */
.galaxy-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 92vw;
}

.dock-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(3, 6, 18, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.dock-items {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) transparent;
}

.dock-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-chip img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.dock-chip:hover {
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--cyber-cyan);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.25);
}

.dock-chip.active {
    background: rgba(255, 0, 127, 0.2);
    border-color: var(--cyber-magenta);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
}

/* --------------------------------------------------------------------------
   Hover Tooltip Overlay
   -------------------------------------------------------------------------- */
.node-tooltip {
    position: fixed;
    z-index: 20;
    pointer-events: none;
    transform: translate(-50%, -120%);
    padding: 0.85rem 1.1rem;
    background: rgba(4, 9, 26, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cyber-cyan);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3), inset 0 0 10px rgba(0, 243, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    min-width: 200px;
}

.node-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -130%);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.tooltip-category {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--cyber-cyan);
    letter-spacing: 1px;
}

.tooltip-status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--cyber-emerald);
}

.tooltip-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.tooltip-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.tooltip-footer {
    margin-top: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--cyber-gold);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   Cyberpunk Detail Modal Panel
   -------------------------------------------------------------------------- */
.project-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
    background: rgba(2, 4, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.project-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal,
.core-diagnostics-modal {
    position: relative;
    width: 520px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 3rem);
    background: rgba(6, 14, 36, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--cyber-cyan);
    border-radius: 24px;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3), inset 0 0 20px rgba(0, 243, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
    transform: scale(0.92) translateY(15px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal-backdrop.active .project-modal,
.project-modal-backdrop.active .core-diagnostics-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 0, 127, 0.3);
    border-color: var(--cyber-magenta);
    color: var(--cyber-magenta);
    transform: rotate(90deg);
}

.modal-hologram-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-cyan), var(--cyber-magenta), transparent);
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    padding: 0;
}

.modal-header {
    flex-shrink: 0;
    padding: 1.2rem 3.4rem 0.8rem 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.15);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.2rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) rgba(255, 255, 255, 0.05);
}

.modal-badge-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.cyber-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(0, 243, 255, 0.15);
    color: var(--cyber-cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
    letter-spacing: 1px;
}

.cyber-id {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--cyber-gold);
    margin-top: 0.3rem;
}

.modal-image-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 16px;
    background: rgba(2, 6, 18, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.modal-logo-img {
    max-height: 90px;
    max-width: 80%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.4));
}

.logo-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.modal-section {
    margin-bottom: 1.2rem;
}

.modal-section h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cyber-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.modal-section p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
}

.tech-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.features-list li {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.features-list li::before {
    content: "➢";
    color: var(--cyber-magenta);
    font-weight: bold;
}

.modal-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(6, 14, 36, 0.98);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0;
}

.modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

.modal-btn.primary {
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
}

.modal-btn.primary:hover {
    background: var(--cyber-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Holographic Core Diagnostics Modal Specifics
   -------------------------------------------------------------------------- */
.core-diagnostics-modal {
    border-color: var(--cyber-gold);
    box-shadow: 0 0 50px rgba(255, 183, 0, 0.35), inset 0 0 25px rgba(255, 183, 0, 0.1);
}

.core-badge {
    background: rgba(255, 183, 0, 0.18) !important;
    color: var(--cyber-gold) !important;
    border-color: rgba(255, 183, 0, 0.4) !important;
}

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

.stat-card {
    background: rgba(3, 8, 24, 0.75);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 14px;
    padding: 0.9rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    border-color: var(--cyber-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 243, 255, 0.25);
}

.stat-icon {
    font-size: 1.3rem;
    color: var(--cyber-cyan);
    margin-bottom: 0.2rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.4);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.highlight-chip {
    background: rgba(0, 243, 255, 0.1) !important;
    border-color: rgba(0, 243, 255, 0.3) !important;
    color: #fff !important;
    transition: all 0.25s ease;
}

.highlight-chip:hover {
    background: rgba(0, 243, 255, 0.25) !important;
    border-color: var(--cyber-cyan) !important;
    transform: translateY(-2px);
}

.core-summary-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
    padding: 0.85rem;
    border-radius: 12px;
    border-left: 3px solid var(--cyber-gold);
}

.core-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.core-btn {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.bottom-sheet-handle {
    display: none;
}

/* --------------------------------------------------------------------------
   Responsive Design Adjustments (<768px Mobile Optimization)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .galaxy-header {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.35rem 0.5rem;
        gap: 0.35rem;
        max-width: calc(100vw - 1rem);
        flex-wrap: nowrap;
    }

    .header-left {
        gap: 0.4rem;
        flex-shrink: 0;
    }

    .back-btn {
        padding: 0.45rem;
        min-width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .back-btn span {
        display: none;
    }

    .brand-badge {
        gap: 0.35rem;
    }

    .header-logo {
        width: 24px;
        height: 24px;
    }

    .brand-name {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .brand-sub, .header-center, .control-hints {
        display: none;
    }

    .header-right {
        gap: 0.3rem;
        flex-shrink: 0;
    }

    .hud-btn {
        padding: 0.45rem;
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
    }

    .hud-btn span {
        display: none;
    }

    /* Centered Cyberpunk Hologram Glass Card Modals */
    .project-modal-backdrop {
        padding: 0.5rem !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .project-modal,
    .core-diagnostics-modal {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: calc(100vw - 1rem) !important;
        height: auto !important;
        max-height: calc(100dvh - 1.5rem) !important;
        margin: auto !important;
        border-radius: 20px !important;
        border: 1px solid var(--cyber-cyan) !important;
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.35), inset 0 0 15px rgba(0, 243, 255, 0.08) !important;
        transform: scale(0.92) translateY(10px) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: rgba(6, 12, 30, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
    }

    .project-modal-backdrop.active .project-modal,
    .project-modal-backdrop.active .core-diagnostics-modal {
        transform: scale(1) translateY(0) !important;
    }

    .bottom-sheet-handle {
        display: block;
        width: 42px;
        height: 5px;
        background: rgba(0, 243, 255, 0.5);
        box-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
        border-radius: 3px;
        margin: 8px auto 4px auto;
        flex-shrink: 0;
    }

    .modal-close-btn {
        position: absolute !important;
        top: 0.6rem !important;
        right: 0.8rem !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 1.2rem !important;
        z-index: 50 !important;
        background: rgba(255, 255, 255, 0.12) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
    }

    .modal-content {
        padding: 0 !important;
        height: calc(100% - 17px) !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .modal-header {
        padding: 0.4rem 3.4rem 0.6rem 1.2rem !important;
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(0, 243, 255, 0.15) !important;
        flex-shrink: 0 !important;
    }

    .modal-title {
        font-size: 1.3rem !important;
    }

    .modal-subtitle {
        font-size: 0.78rem !important;
    }

    .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0.8rem 1.2rem 1.2rem 1.2rem !important;
    }

    .modal-image-wrapper {
        height: 90px !important;
        margin-bottom: 0.8rem !important;
    }

    .modal-logo-img {
        max-height: 60px !important;
    }

    .modal-footer {
        flex-shrink: 0 !important;
        padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom, 10px)) 0.8rem !important;
        background: #060c1e !important;
        border-top: 1px solid rgba(0, 243, 255, 0.25) !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.35rem !important;
        z-index: 100 !important;
    }

    .core-footer {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.7rem;
        padding: 0.55rem 0.2rem;
        white-space: nowrap;
    }

    .core-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    /* Mobile Touch Navigation Dock Carousel */
    .galaxy-dock {
        bottom: 0.5rem;
        left: 0;
        transform: none;
        width: 100vw;
        max-width: 100vw;
        padding: 0 0.5rem;
    }

    .dock-title {
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }

    .dock-items {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .dock-items::-webkit-scrollbar {
        display: none;
    }

    .dock-chip {
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 0.7rem;
    }

    .hud-btn {
        width: 32px;
        height: 32px;
        padding: 0.35rem;
    }

    .core-stats-grid {
        grid-template-columns: 1fr;
    }
}
