:root {
    color-scheme: dark;
    /* Signature Vixenlicious Palette */
    --neon-pink: #ff00aa;
    --neon-pink-glow: rgba(255, 0, 170, 0.6);
    --neon-cyan: #00e5ff;
    --neon-cyan-glow: rgba(0, 229, 255, 0.6);
    --dark-void: #06020a;
    --glass-bg: rgba(15, 8, 25, 0.65);
    --glass-border: rgba(255, 0, 170, 0.4);
    /* Fluent UI Base Variable Overrides */
    --neutral-foreground-rest: #e0d5eb;
    --fill-color: #06020a;
    --base-layer-luminance: 0.15;
}

* {
    box-sizing: border-box;
}

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-pink);
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--neon-cyan);
    }

body {
    padding: 0;
    margin: 0;
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--neutral-foreground-rest);
    background-color: var(--dark-void);
}

.background-art {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: -1;
}

/* Layout Utilities */
.hidden {
    display: none !important;
}

.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-end {
    justify-content: flex-end;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

/* Main Glassmorphism Container */
.content {
    max-width: 1000px;
    width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 0, 170, 0.15);
}

/* Fix Fluent Cards (but leave Dialogs alone!) */
fluent-card {
    --neutral-layer-card-container: transparent;
    --neutral-fill-layer-rest: transparent;
    background-color: transparent !important;
}

.glass-panel {
    background: rgba(10, 5, 20, 0.7) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 229, 255, 0.05);
}

/* Typography */
h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 15px var(--neon-pink-glow), 0 0 30px var(--neon-pink-glow);
}

h3, h5 {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
}

.text-glow-pink {
    text-shadow: 0 0 10px var(--neon-pink-glow);
}

.text-glow-cyan {
    text-shadow: 0 0 10px var(--neon-cyan-glow);
}

.caption1 {
    font-size: 1rem;
    color: #bfa8d2;
}

.caption2 {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    color: #8c73a6;
}

.neon-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .neon-link:hover {
        color: #fff;
        text-shadow: 0 0 10px var(--neon-cyan);
    }

/* Badges */
.badge {
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 229, 255, 0.15);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.id-badge {
    font-family: 'Consolas', monospace;
    background: rgba(0,0,0,0.4);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.type-badge {
    background: linear-gradient(45deg, rgba(255,0,170,0.2), rgba(0,229,255,0.2));
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
}

/* Fluent Text Fields */
fluent-text-field {
    width: 100%;
    --neutral-fill-input-rest: rgba(0,0,0,0.6);
}

    fluent-text-field::part(root) {
        background: rgba(0, 0, 0, 0.6) !important;
        border: 1px solid rgba(0, 229, 255, 0.3);
        border-radius: 6px;
    }

    fluent-text-field::part(control) {
        color: var(--neon-cyan) !important;
        font-family: 'Consolas', monospace;
    }

.vccUrlField {
    min-width: 400px;
    max-width: 70%;
    flex-grow: 1;
}

/* Fluent Buttons */
fluent-button.custom-accent-btn::part(control) {
    background: var(--neon-pink);
    color: #fff;
    border: 1px solid #ff33bb;
    box-shadow: 0 0 15px var(--neon-pink-glow);
    transition: all 0.2s ease;
    border-radius: 6px;
}

fluent-button.custom-accent-btn:hover::part(control) {
    background: #d900ff;
    box-shadow: 0 0 25px var(--neon-pink);
}

fluent-button.custom-stealth-btn::part(control) {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.4);
    transition: all 0.2s ease;
    border-radius: 6px;
}

fluent-button.custom-stealth-btn:hover::part(control) {
    background: rgba(0, 229, 255, 0.25);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

fluent-button.close-btn::part(control) {
    background: transparent;
    border: none;
    color: var(--neon-pink);
}

fluent-button.close-btn:hover::part(control) {
    background: rgba(255, 0, 170, 0.15);
    color: #fff;
}

.small-btn::part(control) {
    min-width: 32px !important;
    padding: 0 12px !important;
}

/* Packages Grid */
.packages {
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem;
    display: flex;
    flex: 1;
}

#packageGrid {
    overflow-y: auto;
    width: 100%;
    max-height: 40rem;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.packages .packageName {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.25rem 0;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 170, 0.4);
}

fluent-data-grid-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
}

    fluent-data-grid-row:hover {
        background: rgba(255, 0, 170, 0.1) !important;
    }

fluent-data-grid-cell {
    color: var(--neutral-foreground-rest) !important;
    padding: 12px 16px !important;
}

fluent-data-grid-row.grid-header fluent-data-grid-cell {
    color: var(--neon-cyan) !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Block */
.searchBlock {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 100%;
}

    .searchBlock fluent-text-field::part(root) {
        border-color: var(--neon-pink);
    }

    .searchBlock fluent-text-field::part(control) {
        color: #fff !important;
        font-family: inherit;
    }

/* Modals & Menus */
fluent-dialog {
    --dialog-width: 600px;
    --dialog-height: auto;
}

    fluent-dialog::part(overlay) {
        background: rgba(0, 0, 0, 0.7);
    }

    fluent-dialog::part(control) {
        background: rgba(20, 10, 30, 0.95) !important;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid var(--neon-cyan);
        box-shadow: 0 0 40px rgba(0, 229, 255, 0.3);
        border-radius: 16px;
        color: #fff;
        padding: 1.5rem;
        width: 600px;
        max-width: 90vw;
        max-height: 80vh;
        overflow-y: auto;
    }

#addListingToVccHelp, #packageInfoModal, #toolsBreakdownModal {
    z-index: 11;
}

#rowMoreMenu {
    top: 0;
    left: 0;
    position: absolute;
    z-index: 10;
}

fluent-menu {
    background: rgba(10, 5, 20, 0.95) !important;
    border: 1px solid var(--neon-pink) !important;
    box-shadow: 0 4px 20px rgba(255, 0, 170, 0.3) !important;
    border-radius: 8px !important;
}

fluent-menu-item {
    color: #e0d5eb !important;
    transition: background 0.2s ease;
}

    fluent-menu-item:hover {
        background: rgba(255, 0, 170, 0.2) !important;
        color: #fff !important;
    }

/* Lists & Spacing */
ul.custom-list li {
    color: #bfa8d2;
    position: relative;
}

    ul.custom-list li::marker {
        color: var(--neon-cyan);
    }

.m-0 {
    margin: 0;
}

.m-1 {
    margin: 0.25rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-4 {
    margin: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.ps-4 {
    padding-left: 1rem;
}

.pe-4 {
    padding-right: 1rem;
}

.ps-5 {
    padding-left: 2rem;
}

/* Architecture Modal Trigger Button Custom Scaling */
#openToolsBreakdownBtn::part(control) {
    padding: 12px 28px !important;
    font-size: 1.1rem;
    height: auto;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}
