@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@900&display=swap');

:root {
    --mutiny-red: #D50A0A;
    --mutiny-orange: #FF7900;
    --mutiny-black: #0A0A08;
    --mutiny-grey: #b1babf;
    --mutiny-pewter: #34302B;
    --mutiny-void: #000000;
}

/* Base Terminal Style */
body { 
    font-family: 'JetBrains Mono', monospace; 
    color: var(--mutiny-grey);
    margin: 0;
    background-color: var(--mutiny-black);
    /* Unified Watermark Background */
    background-image: 
        linear-gradient(rgba(10, 10, 8, 0.94), rgba(10, 10, 8, 0.94)), 
        url('treasury-bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-color 0.4s ease; /* Supports the Red Flash */
}

/* Header/Branding Typography */
h1, h2, h3, .brand-font {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}


/* Glass UI Elements */
.glass-panel {
    background: rgba(10, 10, 8, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(177, 186, 191, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
}

.nav-link:hover {
    color: var(--mutiny-red);
    border-bottom: 2px solid var(--mutiny-red);
    text-shadow: 0 0 8px rgba(213, 10, 10, 0.5);
}

/* Scrollbar Branding */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--mutiny-black); }
::-webkit-scrollbar-thumb { background: var(--mutiny-pewter); }
::-webkit-scrollbar-thumb:hover { background: var(--mutiny-red); }

/* Buttons & Controls */
.mutiny-btn {
    background-color: var(--mutiny-red);
    color: var(--mutiny-black);
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0% 30%);
}

.mutiny-btn:hover {
    background-color: var(--mutiny-orange);
    transform: scale(1.05);
}

.mutiny-btn-outline {
    border: 1px solid var(--mutiny-grey);
    color: var(--mutiny-grey);
    background: transparent;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mutiny-btn-outline:hover {
    border-color: var(--mutiny-red);
    color: white;
    background: rgba(213, 10, 10, 0.1);
}

/* Animations & Special Effects */
.flash-red { 
    background-color: rgba(213, 10, 10, 0.4) !important; 
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(213, 10, 10, 0.1);
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(213, 10, 10, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(213, 10, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(213, 10, 10, 0); }
}
.node-active-pulse { animation: pulse-red 2s infinite; }

/* Status Indicators */
.status-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--mutiny-pewter);
    color: white;
}
.status-online { color: var(--mutiny-red); border: 1px solid var(--mutiny-red); }

/* Inputs */
.mutiny-input { 
    background: #121210; 
    border: 1px solid var(--mutiny-pewter); 
    padding: 12px; 
    color: white; 
    width: 100%; 
    font-family: 'JetBrains Mono', monospace;
    box-sizing: border-box;
}
.mutiny-input:focus { 
    outline: none; 
    border-color: var(--mutiny-red); 
    box-shadow: 0 0 10px rgba(213, 10, 10, 0.2);
}

/* Shop Cards */
.shop-card {
    background: linear-gradient(145deg, #161614, #0A0A08);
    border: 1px solid var(--mutiny-pewter);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.shop-card:hover {
    transform: translateY(-8px);
    border-color: var(--mutiny-red);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Layout Utilities */
.container-branded {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
