/* ========== BASE STYLES ========== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== GRID BACKGROUND ========== */
.grid-bg {
    --grid-color: rgba(148, 163, 184, 0.15);
    background-size: 40px 40px;
    background-image:
        radial-gradient(circle, var(--grid-color) 1px, transparent 1px);
}

.dark .grid-bg {
    --grid-color: rgba(148, 163, 184, 0.09);
}

.grid-lines {
    --line-color: rgba(148, 163, 184, 0.12);
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, var(--line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line-color) 1px, transparent 1px);
}

.dark .grid-lines {
    --line-color: rgba(148, 163, 184, 0.08);
}

/* ========== GRADIENTS ========== */
.gradient-text {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6, #06B6D4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
}

.gradient-border {
    position: relative;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6, #06B6D4);
    padding: 2px;
    border-radius: 22px;
    overflow: hidden;
}

.gradient-border-inner {
    border-radius: 22px;
}

.gradient-btn {
    --primary: #8B5CF6;
    --primary50: #8B5CF688;
    --primary80: #8B5CF6cc;
    --primary-light: #dbcbff;
    --primary-variable: #6236e4;
    --card-bg-top: #ffffff88;
    --b: 3px;
    display: flex;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    padding: .8rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: .75rem;
    transition: color .2s cubic-bezier(0.35, 0.07, 0.2, 1), transform .2s cubic-bezier(0.35, 0.07, 0.2, 1), margin .2s cubic-bezier(0.35, 0.07, 0.2, 1), border .2s cubic-bezier(0.35, 0.07, 0.2, 1), --rg-current-size-y .2s cubic-bezier(0.35, 0.07, 0.2, 1), box-shadow .2s cubic-bezier(0.35, 0.07, 0.2, 1), background .2s cubic-bezier(0.35, 0.07, 0.2, 1), outline .2s cubic-bezier(0.35, 0.07, 0.2, 1);
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: var(--b) solid var(--primary-variable);
    box-shadow: 0px 1px 18px 0px var(--primary50), inset 0 0 28px -4px var(--card-bg-top);
    z-index: 5;
    margin-top: 0;

    --el-gradient-pos-x: 50%;
    --el-gradient-pos-y: 115%;
    --el-gradient-color-1: var(--primary-light);
    --el-gradient-color-2: var(--primary);

    --rg-current-size-x: 100%;
    --rg-current-size-y: 50%;

    background-image: radial-gradient(var(--rg-current-size-x) var(--rg-current-size-y) at var(--el-gradient-pos-x) var(--el-gradient-pos-y),
            var(--el-gradient-color-1),
            var(--el-gradient-color-2));
}

[data-theme='dark'] .gradient-btn {
    --el-gradient-pos-y: 100%;
    --rg-current-size-y: 50%;
    border-bottom: var(--b) solid #0057e8;
    box-shadow: 0px 1px 16px 0px var(--primary80), inset 0 0 32px -8px var(--primary-accent);
}

.gradient-btn:not(.disabled):hover,
.gradient-btn:not(.disabled):focus {
    --rg-current-size-y: 120%;
    color: var(--text-light);
    border-color: var(--primary-hover);
    border-bottom-width: calc(var(--b)/3);
    margin-top: calc((var(--b)/3));
}

[data-theme='dark'] .gradient-btn:not(.disabled):hover,
[data-theme='dark'] .gradient-btn:not(.disabled):focus {
    border-bottom: calc(var(--b)/3) solid #0057e8;
}

.gradient-glow {
    position: relative;
}

.gradient-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #8B5CF6, #3B82F6, #06B6D4);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s ease;
}

.gradient-glow:hover::before,
.gradient-glow:focus-within::before {
    opacity: 0.5;
}

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for light mode */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== SHADOWS ========== */
.shadow-soft {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 20px -5px rgba(0, 0, 0, 0.1),
        0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.dark .shadow-soft {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.2),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.shadow-glow {
    box-shadow: 0 0 60px 10px rgba(139, 92, 246, 0.15);
}

.dark .shadow-glow {
    box-shadow: 0 0 80px 20px rgba(139, 92, 246, 0.1);
}

/* ========== CYTOSCAPE ========== */
#cy {
    width: 100%;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#cy.active {
    opacity: 1;
}

/* ========== LIST VIEW ========== */
#listView {
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#listView.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========== NODE STYLES ========== */
.node-domain {
    width: 220px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.dark .node-domain {
    color: #c4b5fd;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.1));
}

.light .node-domain {
    color: #6d28d9;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 249, 255, 0.9));
    border-color: rgba(139, 92, 246, 0.2);
}

.node-folder {
    width: 180px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark .node-folder {
    background: rgba(31, 41, 55, 0.9);
    border: 1px dashed rgba(107, 114, 128, 0.5);
    color: #9ca3af;
}

.light .node-folder {
    background: #ffffff;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: #475569;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* GENERIC NODE CARD */
.node-card {
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

/* FIX: Strict sizing for Graph Nodes to prevent overlap.
           The class .graph-node is applied via JS for Cytoscape elements.
        */
.node-card.graph-node {
    width: 280px !important;
}

/* FIX: Full width for List view cards.
        */
.node-card.list-node {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.dark .node-card {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(75, 85, 99, 0.5);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.light .node-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 10px 20px rgba(0, 0, 0, 0.06);
}

.node-card:hover {
    transform: scale(1.02) translateY(-4px);
    z-index: 10;
}

.dark .node-card:hover {
    border-color: rgba(139, 92, 246, 0.6);
}

.light .node-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    position: relative;
    height: fit-content;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dark .card-img {
    background-color: #111827;
}

.light .card-img {
    background-color: #f1f5f9;
}

.node-card:hover .card-img {
    transform: scale(1.05);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

.card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: auto;
    /* FIX: Ensure text wraps properly and doesn't break layout */
    white-space: normal;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .card-title {
    color: #f3f4f6;
}

.light .card-title {
    color: #1e293b;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 11px;
}

.dark .card-meta {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    color: #9ca3af;
}

.light .card-meta {
    border-top: 1px solid rgba(226, 232, 240, 1);
    color: #64748b;
}

.lang-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .lang-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.light .lang-badge {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-pending {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.status-done {
    background: #10b981;
}

.status-error {
    background: #ef4444;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ========== FLOATING CONTROLS ========== */
.controls-bar {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls-bar.visible {
    top: 20px;
}

.controls-secondary {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.controls-secondary.visible {
    bottom: 20px;
}

/* ========== INSPECTOR PANEL ========== */
.inspector {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inspector.open {
    transform: translateX(0);
}

.inspector-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.inspector-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ========== INPUTS & BUTTONS ========== */
.input-modern {
    transition: all 0.3s ease;
}

.dark .input-modern {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    color: #f3f4f6;
}

.dark .input-modern:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.light .input-modern {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
    color: #1f2937;
}

.light .input-modern:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.input-modern::placeholder {
    color: #9ca3af;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.dark .btn-icon {
    background: rgba(31, 41, 55, 0.8);
    color: #9ca3af;
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.dark .btn-icon:hover {
    background: rgba(55, 65, 81, 0.9);
    color: #f3f4f6;
    border-color: rgba(107, 114, 128, 0.5);
}

.light .btn-icon {
    background: #ffffff;
    color: #64748b;
    border: 1px solid rgba(226, 232, 240, 1);
}

.light .btn-icon:hover {
    background: #f8fafc;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ========== PROGRESS BAR ========== */
.progress-container {
    position: relative;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.dark .progress-container {
    background: rgba(55, 65, 81, 0.5);
}

.light .progress-container {
    background: rgba(226, 232, 240, 0.8);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
    background-size: 200% 100%;
    animation: gradient 3s ease infinite;
    transition: width 0.3s ease;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .theme-toggle {
    background: linear-gradient(135deg, #1f2937, #374151);
}

.light .theme-toggle {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.theme-toggle-knob {
    position: absolute;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .theme-toggle-knob {
    left: 2px;
    background: linear-gradient(135deg, #374151, #4b5563);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.light .theme-toggle-knob {
    left: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ========== FEATURE CARDS ========== */
.feature-card {
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.dark .feature-card {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark .feature-card:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
}

.light .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 1);
}

.light .feature-card:hover {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* ========== STATS BADGE ========== */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 16px;
    border-radius: 12px;
    min-width: 80px;
}

.dark .stat-badge {
    background: rgba(31, 41, 55, 0.6);
}

.light .stat-badge {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-badge span.font-bold {
    line-height: 0.8;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.dark ::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ========== UTILITY ========== */
.filtered {
    opacity: 0.15 !important;
    filter: grayscale(100%);
}

.list-card-wrapper {
    transition: opacity 0.3s ease;
}

.list-card-wrapper.filtered-list {
    display: none;
}

/* ========== GLASSMORPHISM ========== */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== LAYOUT ELEMENTS ========== */
.shadow-soft {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 60px 10px rgba(139, 92, 246, 0.15);
}

#cy {
    width: 100%;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#cy.active {
    opacity: 1;
}

#listView {
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#listView.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========== NODE STYLING (GRAPH) ========== */
.node-domain {
    width: 220px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    text-align: center;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    color: #7c3aed;
}

.dark .node-domain {
    color: #c4b5fd;
}

.node-folder {
    width: 180px;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    cursor: pointer;
    /* Clickable */
}

.dark .node-folder {
    background: rgba(31, 41, 55, 0.9);
    border: 1px dashed rgba(107, 114, 128, 0.5);
    color: #9ca3af;
}

.light .node-folder {
    background: #ffffff;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: #475569;
}

.node-card {
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Graph Node Specifics */
.node-card.graph-node {
    width: 280px !important;
    height: 100%;
}

.node-card.lang-variant {
    border: 2px solid #10b981;
    transform: scale(0.9);
}

.dark .node-card {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(75, 85, 99, 0.5);
}

.light .node-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 1);
}

.card-img-wrapper {
    height: 140px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.dark .card-title {
    color: #f3f4f6;
}

.light .card-title {
    color: #1e293b;
}

/* ========== LIST VIEW (NEW TABLE LAYOUT) ========== */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.dark .list-row {
    background: rgba(31, 41, 55, 0.4);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark .list-row:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: #8b5cf6;
}

.light .list-row {
    background: white;
    border: 1px solid rgba(226, 232, 240, 1);
}

.light .list-row:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-img {
    width: fit-content;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-content {
    flex: 1;
    min-width: 0;
}

.list-meta {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    flex-shrink: 0;
}

.list-score {
    width: 40px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== ISSUE BADGES ========== */
.issue-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.issue-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

.bg-red-soft {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bg-orange-soft {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ========== UTILS ========== */
.hero-section {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 30;
    transition: all 0.5s;
}

.hero-section.collapsed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.controls-bar,
.controls-secondary {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    transition: all 0.5s;
}

.controls-bar {
    top: -100px;
}

.controls-bar.visible {
    top: 20px;
}

.controls-secondary {
    bottom: -100px;
}

.controls-secondary.visible {
    bottom: 20px;
}

.inspector {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 420px;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.4s;
}

.inspector.open {
    transform: translateX(0);
}

.inspector-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.inspector-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.hidden {
    display: none;
}