/* ARTBOARDS MASTER FORGE v15.0

   Architecture: Adaptive Grid + Hard-Pinned Sidebar

   Responsive Logic: Fixed Pinned (Desktop) -> Off-Canvas Overlay (Mobile)

*/



@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;600;700;800&family=Space+Mono:wght@400;700&display=swap');



:root {

    /* Color Tokens */

    --bg0: #07070C; --bg1: #0F0F18; --bg2: #16161F; --bg3: #1E1E2A; --bg4: #252533;

    --surface: rgba(255, 255, 255, 0.03);

    --border: rgba(255, 255, 255, 0.07);

    --border2: rgba(255, 255, 255, 0.14);

    

    /* Accents */

    --p: #C084FC; --cy: #22D3EE; --pk: #F472B6; --gr: #4ADE80; --or: #FB923C;

    --grad: linear-gradient(135deg, #C084FC, #F472B6);

    

    /* Typography */

    --t1: #FFFFFF; --t2: #A8A8B8; --t3: #5C5C70;

    

    /* Spacing & Radii */

    --r2: 12px; --r4: 24px;

    --sidebar-w: 280px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);

}



/* --- 1. GLOBAL RESET --- */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body { 

    background: var(--bg0); 

    color: var(--t1); 

    font-family: 'Plus Jakarta Sans', sans-serif; 

    overflow-x: hidden;

    min-height: 100vh;

}



.mono { font-family: 'Space Mono', monospace; text-transform: uppercase; letter-spacing: 1px; }

.text-grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }



/* --- 2. LAYOUT ENGINE (FIXED ARCHITECTURE) --- */

.app-layout {

    display: grid;

    /* Sidebar takes fixed width, content takes the rest */

    grid-template-columns: var(--sidebar-w) 1fr;

    min-height: 100vh;

}



/* MOBILE HEADER (Visible only on mobile) */

.mobile-header {

    display: none; 

    background: var(--bg1);

    border-bottom: 1px solid var(--border);

    padding: 16px 24px;

    position: sticky;

    top: 0;

    z-index: 1000;

    justify-content: space-between;

    align-items: center;

}



/* SIDEBAR - Hard Pinned for Desktop */

.sidebar {

    background: var(--bg1);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;
    
    transition: transform 0.4s var(--ease), visibility 0.4s;

    

    /* THE FIX: Use position: fixed to keep it pinned */

    position: fixed; 

    left: 0;

    top: 0;

    width: var(--sidebar-w);

    height: 100vh;

    z-index: 500;

    transition: transform 0.4s var(--ease), visibility 0.4s;

}



.sidebar-logo { padding: 32px; border-bottom: 1px solid var(--border); flex-shrink: 0; }

.sidebar-nav { 

    flex: 1; 

    overflow-y: auto; 

    padding: 24px; 

    display: flex; 

    flex-direction: column; 

}



.nav-group {

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-bottom: 32px;

}



.nav-label { font-size: 10px; color: var(--t3); margin-bottom: 8px; padding-left: 12px; font-weight: 700; }



.nav-item {

    padding: 12px 16px;

    border-radius: var(--r2);

    color: var(--t2);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: all 0.2s var(--ease);

}

.nav-item:hover { background: var(--surface); color: var(--t1); }

.nav-item.active { background: rgba(192, 132, 252, 0.1); color: var(--p); }



.sidebar-footer { padding: 24px; border-top: 1px solid var(--border); flex-shrink: 0; }



/* --- 3. MAIN CONTENT (OFFSET FIX) --- */

.main-content { 

    /* THE FIX: Explicitly place in second grid column to avoid hiding behind fixed sidebar */

    grid-column: 2;

    position: relative; 

    width: 100%; 

    min-width: 0; 

}

.content-wrapper {

    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 60px;

}



section { margin-bottom: 88px !important; display: flex; flex-direction: column; gap: 24px; }



.hero { margin-bottom: 56px; }

.hero-title { font-size: clamp(36px, 8vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -3px; }



/* --- 4. COMPONENTS --- */

.card {

    background: var(--bg2);

    border: 1px solid var(--border);

    border-radius: var(--r4);

    padding: 32px;

}



.matrix-grid { 

    display: grid; 

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 

    gap: 24px; 

}

.is-card { border-left: 4px solid var(--p) !important; }

.reject-card { border-left: 4px solid var(--or) !important; }



/* --- 5. COLOR TOKEN LAB --- */

.token-matrix { 

    display: grid; 

    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 

    gap: 24px; 

}



.token-card { cursor: pointer; transition: all 0.3s var(--ease); }

.token-card:hover { border-color: var(--p); background: var(--bg3); transform: translateY(-4px); }



.swatch {

    height: 100px; border-radius: var(--r2); border: 1px solid var(--border2);

    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;

}



.copy-indicator {

    opacity: 0; background: rgba(0,0,0,0.85); padding: 8px 16px; border-radius: 20px;

    font-size: 10px; font-weight: 800; transform: translateY(10px); transition: 0.3s var(--ease);

}

.token-card:hover .copy-indicator { opacity: 1; transform: translateY(0); }



/* --- 6. BACKGROUND GRID --- */

.bg-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.bg-grid {

    position: absolute; inset: 0;

    background-image: 

        linear-gradient(rgba(192, 132, 252, 0.03) 1px, transparent 1px),

        linear-gradient(90deg, rgba(192, 132, 252, 0.03) 1px, transparent 1px);

    background-size: 40px 40px;

}



/* --- 7. RESPONSIVE ENGINE (THE DEFINITIVE FIX) --- */

@media (max-width: 1024px) {

    .app-layout { grid-template-columns: 1fr; }

    

    .mobile-header { display: flex; }

    

    .sidebar {

        /* On mobile, sidebar remains fixed but covers full screen */

        width: 100%; 

        transform: translateX(-100%); 

        visibility: hidden;

        z-index: 2000;

        background: var(--bg0); 

    }

    

    .sidebar.mobile-active { 

        transform: translateX(0); 

        visibility: visible;

    }



    /* Reset content column to take full width on mobile */

    .main-content {

        grid-column: 1;

    }



    .content-wrapper { padding: 40px 20px; }

    .matrix-grid, .token-matrix { grid-template-columns: 1fr !important; }

    section { margin-bottom: 64px !important; }

}



/* --- 8. TOAST --- */

#toast {

    position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 150px);

    background: var(--bg4); border: 1px solid var(--p); padding: 16px 24px;

    border-radius: var(--r2); font-weight: 700; transition: 0.4s var(--ease); z-index: 3000;

    white-space: nowrap;

}

#toast.show { transform: translate(-50%, 0); }



/* --- TYPOGRAPHY CORE ENGINE --- */



/* Root Typography Settings */

body {

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;

}



/* Fluid Heading 01 */

.hero-title {

    font-size: clamp(40px, 8vw, 72px);

    font-weight: 800;

    letter-spacing: -0.04em; /* Optical compression for large text */

    line-height: 1.05;

    margin-bottom: 24px;

}



/* Section Heading 02 */

.section-block h2 {

    font-size: 36px;

    font-weight: 700;

    letter-spacing: -0.02em;

    line-height: 1.2;

    margin-bottom: 32px;

}



/* Base Body Text - Optimized for Eye Strain */

p {

    font-size: 15px;

    font-weight: 400;

    color: var(--t2); /* Muted contrast for long-form reading */

    line-height: 1.75;

    margin-bottom: 1.5rem;

}



/* Technical Monospaced Accents */

.mono {

    font-family: 'Space Mono', monospace;

    text-transform: uppercase;

    font-weight: 700;

    letter-spacing: 0.15em; /* Expanded tracking for monospaced legibility */

}



/* Link Aesthetics */

a {

    color: var(--p);

    text-decoration: none;

    transition: color 0.3s var(--ease);

}



a:hover {

    color: var(--pk);

}



/* Responsive Overrides */

@media (max-width: 768px) {

    .section-block h2 {

        font-size: 28px;

    }

    

    p {

        font-size: 14px;

        line-height: 1.6;

    }

}



/* --- TYPOGRAPHY SPECIFICATIONS --- */



/* H1: Display Level */

h1, .hero-title {

    font-size: clamp(40px, 8vw, 72px);

    font-weight: 800;

    letter-spacing: -0.04em; /* Tightened for impact */

    line-height: 1.05;

    color: var(--t1);

}



/* H2: Section Level */

h2 {

    font-size: 36px;

    font-weight: 700;

    letter-spacing: -0.02em;

    line-height: 1.2;

    color: var(--t1);

}



/* H3: Component Level */

h3 {

    font-size: 24px;

    font-weight: 700;

    letter-spacing: -0.01em;

    line-height: 1.3;

    color: var(--t1);

}



/* H4: Sub-Header Level */

h4 {

    font-size: 18px;

    font-weight: 600;

    letter-spacing: 0.05em; /* Increased for caps-readability */

    line-height: 1.4;

    text-transform: uppercase;

    color: var(--t1);

}



/* P: Body Copy */

p {

    font-size: 15px;

    font-weight: 400;

    color: var(--t2); /* Muted contrast to prevent eye-fatigue */

    line-height: 1.8;

    margin-bottom: 1.5rem;

}



/* Small / Captions */

small, .caption {

    font-size: 12px;

    color: var(--t3);

    font-weight: 500;

}



/* --- ENHANCED TOKEN CARDS --- */

.token-card {

    background: var(--bg1);

    border: 1px solid var(--border);

    border-radius: var(--r4);

    padding: 12px; /* Inner frame look */

    transition: all 0.4s var(--ease);

    cursor: pointer;

}



.token-card:hover {

    border-color: var(--p);

    background: var(--bg2);

    transform: translateY(-8px);

}



.swatch-wrapper {

    padding: 8px;

    background: var(--bg0);

    border-radius: var(--r2);

    margin-bottom: 20px;

}



.swatch-main {

    height: 140px;

    border-radius: 8px;

    border: 1px solid var(--border2);

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    overflow: hidden;

}



.copy-overlay {

    background: rgba(0,0,0,0.8);

    color: #fff;

    padding: 8px 16px;

    border-radius: 4px;

    font-size: 10px;

    opacity: 0;

    transform: scale(0.9);

    transition: 0.3s var(--ease);

    border: 1px solid var(--p);

}



.token-card:hover .copy-overlay {

    opacity: 1;

    transform: scale(1);

}



/* Metadata Styling */

.token-meta { padding: 0 12px 12px 12px; }



.token-top-row {

    display: flex;

    justify-content: space-between;

    margin-bottom: 12px;

}



.token-id { color: var(--p); font-weight: 800; font-size: 16px; }

.token-hex { color: var(--cy); font-size: 11px; opacity: 0.7; }

.token-role { font-size: 10px; color: var(--t3); margin-bottom: 8px; display: block; }

.token-usage { font-size: 13px; color: var(--t2); line-height: 1.5; margin: 0; }

@media (max-width: 768px) {
    /* Stack the specimen label and the text vertically on mobile */
    #typography .card > div > div {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .specimen-label {
        padding-top: 0 !important;
        color: var(--p); /* Highlight the label in purple for focus */
    }
}

/* --- PILL BUTTONS --- */
.pill-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: var(--t2);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s var(--ease);
}
.pill-btn.active { background: var(--p); color: var(--bg0); }

/* --- SIMULATOR WIDTHS --- */
.preview-desktop { width: 100%; }
.preview-tablet { width: 768px; border-left: 1px solid var(--border2); border-right: 1px solid var(--border2); }
.preview-mobile { width: 340px; border-left: 1px solid var(--border2); border-right: 1px solid var(--border2); }

/* --- SPECIMEN LABELS --- */
.spec-label {
    font-size: 9px;
    color: var(--t3);
    margin-top: 16px;
    opacity: 0.6;
}

/* --- THE MOBILE "BREAK" FIX --- */
@media (max-width: 1024px) {
    #type-preview-canvas { 
        width: 100% !important; 
        padding: 30px 20px !important;
        border: none !important;
    }
}

/* --- ADVANCED CARD ENGINE --- */

.elevation-low {
    background: var(--bg1) !important;
    border: 1px solid var(--border) !important;
}

.elevation-mid {
    background: var(--bg2) !important;
    border: 1px solid var(--border2) !important;
    /* Subtle inner glow for depth */
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.05); 
}

.elevation-high {
    background: var(--bg3) !important;
    border: 1px solid var(--p) !important;
    /* Deep shadow + accent glow */
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 1px 1px rgba(255,255,255,0.1);
}

/* Hover Physics for Modules */
.card {
    transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    background: var(--bg3);
    border-color: var(--cy);
}

/* --- ENHANCED CARD PHYSICS --- */

.section-block .card {
    transition: 
        transform 0.4s var(--ease), 
        background-color 0.4s var(--ease), 
        border-color 0.4s var(--ease),
        box-shadow 0.4s var(--ease);
}

/* Glassmorphism Surface Layer */
.glass-card {
    background: rgba(22, 22, 31, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Technical Inner Glow */
.elevation-high {
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Blueprint Utility Lines */
.blueprint-line {
    position: absolute;
    background: var(--p);
    opacity: 0.2;
}

/* --- BUTTON CORE ENGINE --- */

.btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 8px; /* Fixed r1 weight */
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Primary: Bold Accent */
.btn-primary {
    background: var(--p);
    color: var(--bg0);
    border-color: var(--p);
}
.btn-primary:hover {
    background: transparent;
    color: var(--p);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

/* Secondary: Technical Outline */
.btn-secondary {
    background: transparent;
    color: var(--cy);
    border-color: var(--cy);
}
.btn-secondary:hover {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

/* Ghost: Surface Neutral */
.btn-ghost {
    background: transparent;
    color: var(--t2);
    border-color: var(--border2);
}
.btn-ghost:hover {
    background: var(--bg3);
    color: var(--t1);
    border-color: var(--t3);
}

/* Global Button Active State (Click) */
.btn:active {
    transform: scale(0.96);
}


/* --- SELECT & CONTROL CORE ENGINE --- */

/* 1. Trigger State */
.select-trigger {
    height: 48px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s var(--ease);
    color: var(--t1);
    font-size: 14px;
}

.select-trigger:hover {
    border-color: var(--cy);
    background: var(--bg3);
}

/* 2. Floating Options List */
.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 8px;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    display: none; /* Hide by default */
    overflow: hidden;
}

.select-options.open {
    display: block; /* Show only when triggered */
}
.option {
    padding: 12px 20px;
    font-size: 13px;
    color: var(--t2);
    cursor: pointer;
    transition: 0.2s var(--ease);
    border-bottom: 1px solid var(--border);
}

.option:last-child { border-bottom: none; }

.option:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--cy);
}

.option.active {
    background: var(--bg4);
    color: var(--p);
    font-weight: 700;
}

/* 3. Toggle Switch Physics */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: var(--bg3);
    border: 1px solid var(--border2);
    transition: .4s var(--ease); border-radius: 34px;
}

.slider:before {
    position: absolute; content: ""; height: 14px; width: 14px;
    left: 4px; bottom: 3px; background-color: var(--t3);
    transition: .4s var(--ease); border-radius: 50%;
}

input:checked + .slider { background-color: rgba(34, 211, 238, 0.15); border-color: var(--cy); }
input:checked + .slider:before { transform: translateX(20px); background-color: var(--cy); }

/* 4. Segmented Control Pills */
.pill-group {
    display: flex; background: var(--bg2); padding: 4px; 
    border-radius: 40px; border: 1px solid var(--border2);
    width: fit-content;
}

.pill {
    padding: 8px 20px; border: none; background: transparent;
    color: var(--t3); font-family: 'Space Mono'; font-size: 10px;
    cursor: pointer; transition: 0.3s var(--ease); border-radius: 30px;
}

.pill.active { background: var(--p); color: var(--bg0); font-weight: 800; }

/* --- TOOLTIP CONTENT ENGINE --- */

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-box {
    position: absolute;
    background: var(--bg4);
    border: 1px solid var(--p); /* InStudio Signature Stroke */
    padding: 8px 16px;
    border-radius: 6px;
    z-index: 3000;
    white-space: nowrap;
    pointer-events: none; /* Critical: Prevents mouse flicker */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.tooltip-wrapper:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
}

/* THE SPRING PHYSICS */
.t-top { bottom: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(10px); }
.tooltip-wrapper:hover .t-top { transform: translateX(-50%) translateY(0); }

.t-bottom { top: calc(100% + 15px); left: 50%; transform: translateX(-50%) translateY(-10px); }
.tooltip-wrapper:hover .t-bottom { transform: translateX(-50%) translateY(0); }

.t-right { left: calc(100% + 15px); top: 50%; transform: translateY(-50%) translateX(-10px); }
.tooltip-wrapper:hover .t-right { transform: translateY(-50%) translateX(0); }

.t-left { right: calc(100% + 15px); top: 50%; transform: translateY(-50%) translateX(10px); }
.tooltip-wrapper:hover .t-left { transform: translateY(-50%) translateX(0); }


/* --- FORM ENGINE CORE --- */

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 1px;
}

.input-field {
    height: 48px;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 8px;
    padding: 0 16px;
    color: var(--t1);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s var(--ease);
}

.input-field::placeholder { color: var(--t3); }

/* States */
.input-field:focus, .input-field.focused {
    outline: none;
    background: var(--bg3);
    border-color: var(--cy);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.input-field.error {
    border-color: var(--or);
    background: rgba(251, 146, 60, 0.05);
}

.field-hint {
    font-size: 11px;
    color: var(--t3);
}

/* Icon Wrapper Logic */
.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.prefix-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t3);
    pointer-events: none;
}

.input-field.icon-pad { padding-left: 48px; }

/* Range Slider */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--bg3);
    border-radius: 2px;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--p);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg0);
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}


/* --- DATA TABLE CORE ENGINE --- */

.table-container {
    width: 100%;
    overflow-x: auto; /* Horizontal scroll for desktop overflow */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table thead tr {
    background: var(--bg1);
    border-bottom: 1px solid var(--border2);
}

.data-table th {
    padding: 16px 24px;
    font-size: 10px;
    color: var(--t3);
    letter-spacing: 1px;
}

.data-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--t1);
    transition: background 0.3s var(--ease);
}

.data-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Space Mono';
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-success { background: rgba(74, 222, 128, 0.1); color: var(--gr); border-color: var(--gr); }
.badge-warning { background: rgba(251, 146, 60, 0.1); color: var(--or); border-color: var(--or); }

/* --- RESPONSIVE REFLOW LOGIC --- */
@media (max-width: 768px) {
    .data-table thead { display: none; } /* Hide headers on mobile */
    
    .data-table tbody tr {
        display: block;
        margin-bottom: 24px;
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 12px;
        padding: 16px;
    }
    
    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .data-table td:last-child { border-bottom: none; }
    
    /* Show labels on mobile */
    .data-table td::before {
        content: attr(data-label);
        font-family: 'Space Mono';
        font-size: 10px;
        color: var(--t3);
    }
}


/* --- NOTIFICATION & ALERT ENGINE --- */

/* 1. Global Banners */
.banner {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-critical {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid var(--or);
}

/* 2. Inline Alert Boxes */
.alert-box {
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid transparent;
}

.alert-success {
    background: var(--bg2);
    border-left-color: var(--gr);
    color: var(--gr);
}

.alert-info {
    background: var(--bg2);
    border-left-color: var(--cy);
    color: var(--cy);
}

/* 3. Ephemeral Toasts */
.toast-preview {
    background: var(--bg4);
    border: 1px solid var(--p);
    padding: 16px 24px;
    border-radius: var(--r2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: all 0.4s var(--ease);
}

.toast-preview.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- THE FINALE: CTA ENGINE --- */

.forge-cta-card {
    position: relative;
    padding: 100px 40px !important;
    text-align: center;
    background: var(--bg1) !important;
    border: 1px solid var(--border2) !important;
    overflow: hidden !important;
}

/* Hyper-Glow Effect */
.forge-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.cta-content { position: relative; z-index: 2; }

/* Status Pulse Animation */
.mono-label-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: var(--gr);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gr);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* Ultra Button */
.forge-btn-xl {
    height: 64px !important;
    padding: 0 48px !important;
    font-size: 14px !important;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(192, 132, 252, 0.2);
}

.forge-btn-xl:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(192, 132, 252, 0.4);
}

/* Corner Blueprint Specs */
.corner-spec {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--p);
    opacity: 0.3;
}
.top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; }

.blueprint-footer { margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--border); }

/* --- CUSTOM SCROLLBAR ARCHITECTURE --- */

/* 1. Global & Sidebar Scrollbar */
::-webkit-scrollbar {
    width: 6px; /* Ultra-slim profile */
    height: 6px;
}

/* 2. The Track (The background of the scroller) */
::-webkit-scrollbar-track {
    background: var(--bg0);
    border-radius: 10px;
}

/* 3. The Thumb (The draggable part) */
::-webkit-scrollbar-thumb {
    background: var(--border2); /* Subtle resting state */
    border-radius: 10px;
    transition: background 0.3s var(--ease);
}

/* 4. Hover State: Highlighting the thumb */
::-webkit-scrollbar-thumb:hover {
    background: var(--p); /* Glow purple on hover */
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

/* 5. Specific Sidebar Fix */
.sidebar-nav::-webkit-scrollbar {
    width: 4px; /* Even slimmer for the sidebar navigation */
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border2) var(--bg0);
}

.mobile-only { display: none; }

@media (max-width: 1024px) {
    .mobile-only { display: block; }
}

/* ==========================================
   SECTION 12: SEO ARCHITECTURE ENGINE
   ========================================== */

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

/* Beautiful Link Matrix */
.seo-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seo-link-list a {
    color: var(--t2);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
}

.seo-link-list a::before {
    content: "→";
    color: var(--p);
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s var(--ease);
}

.seo-link-list a:hover { color: var(--t1); }
.seo-link-list a:hover::before { opacity: 1; transform: translateX(0); }

/* --- NATIVE SEO ACCORDION (Zero JS) --- */
.seo-accordion {
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.seo-accordion:hover { border-color: var(--border2); background: var(--bg2); }

/* The clickable question */
.seo-accordion summary {
    padding: 24px;
    font-size: 12px;
    color: var(--t1);
    cursor: pointer;
    list-style: none; /* Hides default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom animated cross/arrow */
.seo-accordion summary::after {
    content: "+";
    color: var(--p);
    font-size: 18px;
    font-weight: 400;
    transition: transform 0.3s var(--ease);
}

.seo-accordion[open] summary::after {
    transform: rotate(45deg);
    color: var(--cy);
}

/* Hide default webkit arrows */
.seo-accordion summary::-webkit-details-marker { display: none; }

/* The hidden answer */
.accordion-content {
    padding: 0 24px 24px 24px;
    color: var(--t2);
    font-size: 14px;
    line-height: 1.8;
    border-top: 1px dashed transparent;
}

.seo-accordion[open] .accordion-content {
    border-top-color: var(--border);
    animation: fadeIn Down 0.4s var(--ease);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .seo-grid { grid-template-columns: 1fr; gap: 40px; }
    .seo-col[style] { grid-column: span 1 !important; }
}

/* ==============================
   SYSTEM CURSOR: AERO-PRECISION v2
   ============================== */

/* 1. Default State: The "Interceptor"
   - Sharp, angular geometry (Speed)
   - Solid Black fill + 2px White Stroke (Maximum Visibility on Dark UI)
   - Cyan 'Engine' Core
*/
body {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='glow'%3E%3CfeGaussianBlur stdDeviation='1.5' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3Cpath d='M2 2L10.5 27.5L14.5 16.5L25.5 12.5L2 2Z' fill='%230A0A0F' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%2322D3EE'/%3E%3C/svg%3E") 2 2, auto;
}

/* 2. Active State (Hover): The "Lock-On" Reticle
   - Snaps to a precision circle when hovering links
   - Indicates 'Capture' status
*/
a, button, .btn, .nav-item, .token-card, summary, input[type="range"], label.switch, .select-trigger, .mobile-close-btn {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='16' cy='16' r='4' fill='%23C084FC'/%3E%3Cpath d='M16 2V6M16 26V30M30 16H26M6 16H2' stroke='%23C084FC' stroke-width='2'/%3E%3C/svg%3E") 16 16, pointer !important;
}

/* 3. Text State: The "Data Bar"
   - A Cyan vertical beam for selecting code/text
*/
p, h1, h2, h3, h4, span, div, input[type="text"], .mono {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='11' y='4' width='2' height='16' rx='1' fill='%2322D3EE'/%3E%3C/svg%3E") 12 12, text;
}



/* ==============================
   COMMAND DECK FOOTER ENGINE
   ============================== */

.command-deck {
    background: var(--bg0);
    border-top: 1px solid var(--border);
    padding: 80px 60px 40px;
    margin-top: 120px;
    position: relative;
    overflow: hidden;
}

/* Background Tech Grid Overlay */
.command-deck::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.deck-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* First col is wider for branding */
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

/* --- COLUMN 1: BRAND & NETWORK --- */
.deck-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.deck-desc {
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 32px;
    max-width: 300px;
    line-height: 1.6;
}

.mono-tag {
    font-size: 10px;
    color: var(--cy);
    display: block;
    margin-bottom: 12px;
}

/* Network Cards (The Mini-Buttons) */
.network-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.net-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg1);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.net-card:hover {
    border-color: var(--p);
    background: var(--bg2);
    transform: translateX(5px);
}

.net-icon { font-size: 18px; }
.net-name { display: block; font-size: 12px; font-weight: 700; color: var(--t1); font-family: 'Space Mono'; }
.net-status { display: block; font-size: 10px; color: var(--t3); }

.net-card.active-hub { border-color: var(--cy); background: rgba(34, 211, 238, 0.05); }

/* --- COLUMNS 2-4: TOOL LISTS --- */
.col-header {
    font-size: 11px;
    color: var(--p);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    display: inline-block;
}

.link-matrix {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-matrix a {
    color: var(--t2);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    display: block;
}

.link-matrix a:hover {
    color: var(--cy);
    padding-left: 6px; /* Physical shift interaction */
}

/* Logical Separator line in lists */
.separator {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
    width: 40px;
}

/* --- SYSTEM FOOTER (BOTTOM BAR) --- */
.deck-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.deck-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--gr);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gr);
    animation: pulse 2s infinite;
}

.deck-legal {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--t3);
}

.deck-legal a { color: var(--t3); text-decoration: none; transition: 0.3s; }
.deck-legal a:hover { color: var(--t1); }

/* --- RESPONSIVE REFLOW --- */
@media (max-width: 1024px) {
    .command-deck { padding: 60px 24px 30px; }
    .deck-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .link-matrix {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Split long lists into 2 cols on mobile */
        gap: 12px 24px;
    }
    
    .deck-footer { flex-direction: column; gap: 24px; align-items: flex-start; }
}