/* ============================================
   DOSSIERS SECTION - FOLDER TAB LAYOUT
   ============================================ */

.dossiers-container {
    display: flex;
    height: calc(100vh - 140px);
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ============================================
   LEFT SIDEBAR - CHARACTER FOLDER TABS
   ============================================ */

.dossier-sidebar {
    width: 20%; /* 1/5 of screen */
    min-width: 220px;
    background: rgba(5, 8, 17, 0.95);
    border-right: 2px solid var(--neon-blue);
    overflow-y: auto;
    overflow-x: hidden;
    position: sticky;
    top: 0;
    height: calc(100vh - 140px);
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--neon-blue);
    background: rgba(10, 14, 39, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.3);
}

.sidebar-title {
    font-size: 1rem;
    color: var(--neon-blue);
    letter-spacing: 0.2rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    animation: subtle-flicker 3s infinite;
}

@keyframes subtle-flicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
    51% {
        opacity: 1;
    }
}

.folder-tabs {
    padding: 1rem 0.5rem;
}

.folder-tab {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.folder-tab:hover {
    background: rgba(0, 217, 255, 0.15);
    border-left-color: var(--neon-blue);
    border-color: rgba(0, 217, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.folder-tab.active {
    background: rgba(0, 217, 255, 0.25);
    border-left-color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 20px rgba(0, 217, 255, 0.3),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.folder-tab.active::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--neon-blue);
    filter: drop-shadow(-2px 0 3px rgba(0, 217, 255, 0.5));
}

.tab-corner {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.folder-tab:hover .tab-corner,
.folder-tab.active .tab-corner {
    opacity: 0.6;
}

.folder-tab.active .tab-corner {
    opacity: 1;
    box-shadow: 0 0 5px var(--neon-blue);
}

.tab-emoji {
    font-size: 1.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(0, 217, 255, 0.5));
}

.tab-name {
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 0.08rem;
    line-height: 1.4;
    word-break: break-word;
    font-weight: 500;
}

.folder-tab:hover .tab-name {
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
}

.folder-tab.active .tab-name {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.7);
}

.folder-tab.classified {
    cursor: not-allowed;
    opacity: 0.4;
    background: rgba(255, 0, 85, 0.05);
    border-color: rgba(255, 0, 85, 0.2);
}

.folder-tab.classified:hover {
    background: rgba(255, 0, 85, 0.08);
    border-left-color: var(--warning-red);
    border-color: rgba(255, 0, 85, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.2);
}

.folder-tab.classified .tab-name {
    color: var(--warning-red);
    font-size: 0.75rem;
}

.folder-tab.classified .tab-emoji {
    filter: drop-shadow(0 0 3px rgba(255, 0, 85, 0.5));
}

/* Vibraline Clearance Special Styling */
.folder-tab[data-clearance="vibraline"]:not(.classified) {
    border-color: rgba(0, 255, 136, 0.2);
}

.folder-tab[data-clearance="vibraline"]:not(.classified):hover {
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.folder-tab[data-clearance="vibraline"]:not(.classified).active {
    border-color: var(--success-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.folder-tab[data-clearance="vibraline"]:not(.classified).active::after {
    border-right-color: var(--success-green);
    filter: drop-shadow(-2px 0 3px rgba(0, 255, 136, 0.5));
}

.folder-tab[data-clearance="vibraline"]:not(.classified):hover .tab-name,
.folder-tab[data-clearance="vibraline"]:not(.classified).active .tab-name {
    color: var(--success-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
}

.folder-tab[data-clearance="vibraline"]:not(.classified) .tab-corner {
    border-color: var(--success-green);
}

.folder-tab[data-clearance="vibraline"]:not(.classified).active .tab-corner {
    box-shadow: 0 0 5px var(--success-green);
}

/* Toggle button — hidden on desktop */
.sidebar-toggle {
    display: none;
}

/* Desktop/mobile visibility helpers */
.dossier-display .mobile-only { display: none; }
.dossier-display .desktop-only { display: block; }

/* ============================================
   RIGHT CONTENT AREA - DOSSIER DISPLAY
   ============================================ */

.dossier-display {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: 
        linear-gradient(135deg, rgba(10, 14, 39, 0.4) 0%, rgba(5, 8, 17, 0.6) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 217, 255, 0.03) 2px,
            rgba(0, 217, 255, 0.03) 4px
        );
    position: relative;
}

.dossier-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 217, 255, 0.05) 100%
    );
    pointer-events: none;
}

/* Empty State */
.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.background-logo {
    width: 350px;
    height: auto;
    opacity: 0.08;
    position: absolute;
    animation: logo-float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.3));
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.08;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.12;
    }
}

.empty-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-align: center;
    z-index: 2;
    padding: 1rem 2rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.05);
}

/* Dossier Content Wrapper */
.dossier-content-wrapper {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   FULL DOSSIER STYLING
   ============================================ */

.dossier-full {
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid var(--neon-blue);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Dossier Header */
.dossier-full-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neon-blue);
}

.dossier-portrait-large {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to bottom, transparent, var(--neon-blue), transparent);
    animation: portrait-scan 3s linear infinite;
}

@keyframes portrait-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.portrait-status {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    z-index: 2;
}

.dossier-header-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dossier-title-block {
    margin-bottom: 1.5rem;
}

.dossier-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dossier-callsign {
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1rem;
    text-shadow: 0 0 10px var(--neon-blue);
}

.dossier-designation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.dossier-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.meta-field {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid var(--neon-blue);
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.meta-value {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Dossier Body */
.dossier-body {
    display: grid;
    gap: 2rem;
}

.dossier-section {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neon-blue);
}

.section-icon {
    font-size: 1.5rem;
}

.section-title-small {
    font-size: 1.1rem;
    color: var(--neon-blue);
    letter-spacing: 0.1rem;
}

.section-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content ul {
    list-style: none;
    padding: 0;
}

.section-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.section-content li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--neon-blue);
}

/* Catchphrases */
.catchphrase-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catchphrase-item {
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--neon-blue);
    font-style: italic;
    color: var(--text-primary);
    position: relative;
}

.catchphrase-item::before {
    content: '"';
    color: var(--neon-blue);
    font-size: 3rem;
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    line-height: 1;
    opacity: 0.3;
}

/* Relationships */
.relationship-grid {
    display: grid;
    gap: 1rem;
}

.relationship-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.relationship-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.relationship-avatar {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--neon-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.relationship-info {
    flex: 1;
}

.relationship-name {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.relationship-type {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Related Content */
.content-subsection {
    margin-bottom: 2rem;
}

.content-subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    color: var(--neon-blue);
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.content-item {
    display: flex;
    flex-direction: column;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-item:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.content-thumbnail {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.thumbnail-placeholder {
    font-size: 2rem;
    opacity: 0.5;
}

.content-title {
    color: var(--text-primary);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

.content-item:hover .content-title {
    color: var(--neon-blue);
}

/* Classified Dossier Overlay */
.classified-dossier {
    position: relative;
}

.dossier-blur-content {
    filter: blur(8px);
    opacity: 0.3;
    pointer-events: none;
}

.clearance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 2rem;
}

.clearance-content {
    max-width: 500px;
    text-align: center;
    background: rgba(10, 14, 39, 0.95);
    padding: 3rem;
    border: 2px solid var(--warning-red);
    box-shadow: 
        0 0 30px rgba(255, 0, 85, 0.4),
        inset 0 0 30px rgba(255, 0, 85, 0.1);
}

.clearance-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--warning-red));
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.clearance-title {
    font-size: 1.8rem;
    color: var(--warning-red);
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
    text-shadow: 0 0 10px var(--warning-red);
}

.clearance-level {
    color: var(--neon-blue);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
}

.clearance-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.upgrade-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upgrade-btn:hover {
    background: var(--neon-blue);
    color: var(--darker-bg);
    box-shadow: 0 0 20px var(--neon-blue);
    transform: scale(1.05);
}

.btn-icon {
    font-size: 1.2rem;
}

.clearance-note {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .dossier-sidebar {
        width: 20%;
        min-width: 150px;
    }
    
    .dossier-full-header {
        grid-template-columns: 1fr;
    }
    
    .dossier-portrait-large {
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* Switch to full-width stacked layout with collapsible sidebar */
    .dossiers-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 60px);
    }

    /* Sidebar becomes a collapsible drawer */
    .dossier-sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        max-height: none;
        position: relative;
        border-right: none;
        border-bottom: 2px solid var(--neon-blue);
    }

    /* When collapsed, only show header + toggle */
    .dossier-sidebar.collapsed .folder-tabs {
        display: none;
    }

    .sidebar-header {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: 1px solid rgba(0, 217, 255, 0.3);
        color: var(--neon-blue);
        font-family: 'Courier New', monospace;
        font-size: 0.65rem;
        letter-spacing: 0.08rem;
        padding: 0.4rem 0.75rem;
        cursor: pointer;
    }

    .sidebar-toggle-arrow {
        transition: transform 0.3s ease;
    }

    .dossier-sidebar.collapsed .sidebar-toggle-arrow {
        transform: rotate(180deg);
    }

    /* When expanded, show as a scrollable list */
    .folder-tabs {
        padding: 0.5rem;
        max-height: 35vh;
        overflow-y: auto;
    }

    .folder-tab {
        padding: 0.7rem 0.75rem;
        gap: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .tab-emoji {
        font-size: 1.1rem;
    }

    .tab-name {
        font-size: 0.75rem;
        letter-spacing: 0.03rem;
    }

    /* Active tab arrow points down into content */
    .folder-tab.active::after {
        display: none;
    }

    .tab-corner {
        width: 8px;
        height: 8px;
    }

    /* Content area gets full width */
    .dossier-display {
        flex: 1;
        height: auto;
        min-height: 60vh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 1rem;
    }

    /* Fix content squishing */
    .dossier-full {
        padding: 1rem;
        border-width: 1px;
    }

    .dossier-full-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .dossier-portrait-large {
        height: 200px;
    }

    .dossier-callsign {
        font-size: 1.5rem;
        letter-spacing: 0.05rem;
        word-break: break-word;
    }

    .dossier-designation {
        font-size: 0.85rem;
    }

    .dossier-emoji {
        font-size: 1.5rem;
    }

    .dossier-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .meta-field {
        padding: 0.5rem 0.75rem;
    }

    .meta-label {
        font-size: 0.6rem;
    }

    .meta-value {
        font-size: 0.8rem;
    }

    /* Sections */
    .dossier-section {
        padding: 1rem;
    }

    .section-header {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .section-icon {
        font-size: 1.1rem;
    }

    .section-title-small {
        font-size: 0.9rem;
    }

    .section-content {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    /* Catchphrases */
    .catchphrase-item {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .catchphrase-item::before {
        font-size: 2rem;
        left: 0.25rem;
    }

    /* Empty state */
    .dossier-display .mobile-only { display: block; }
    .dossier-display .desktop-only { display: none; }

    .empty-state {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .empty-state .empty-text {
        font-size: 0.75rem;
        padding: 0.75rem 1rem;
        letter-spacing: 0.1rem;
    }

    .background-logo {
        width: 200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ============================================
   RESONANCE RESPONSE PROFILE
   ============================================ */

.rrp-intro {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    border-left: 2px solid var(--neon-pink);
    padding-left: 1rem;
}

.rrp-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rrp-card {
    background: rgba(255, 0, 85, 0.05);
    border: 1px solid rgba(255, 0, 85, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.rrp-card:hover {
    border-color: rgba(255, 0, 85, 0.5);
}

.rrp-card-header {
    background: rgba(255, 0, 85, 0.1);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 0, 85, 0.15);
}

.rrp-icon {
    font-size: 1.2rem;
}

.rrp-name {
    color: var(--neon-pink);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
}

.rrp-card-body {
    padding: 1rem;
}

.rrp-field {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.rrp-label {
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.05rem;
    display: block;
    margin-bottom: 0.2rem;
}

.rrp-treatment {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.15);
    padding: 0.75rem;
    border-radius: 3px;
    margin-top: 0.5rem;
}

.rrp-treatment .rrp-label {
    color: var(--neon-green);
}

/* ============================================
   UNIVERSAL LAWS
   ============================================ */

.laws-intro {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.laws-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.law-card {
    background: rgba(0, 217, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.15);
    padding: 1.25rem;
    border-radius: 4px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.law-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(0, 217, 255, 0.06);
}

.law-name {
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0.1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.law-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ============================================
   AGENT RANKING SYSTEM
   ============================================ */

.ranking-intro {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.ranking-ladder {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-tier {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 136, calc(0.02 + var(--tier-index) * 0.015));
    border: 1px solid rgba(0, 255, 136, calc(0.1 + var(--tier-index) * 0.05));
    border-radius: 3px;
    align-items: center;
    transition: background 0.3s ease;
}

.ranking-tier:hover {
    background: rgba(0, 255, 136, calc(0.05 + var(--tier-index) * 0.02));
}

.tier-rank {
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.8rem;
}

.tier-activation {
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.tier-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* ============================================
   IDENTITY SYSTEM TABLE
   ============================================ */

.identity-table {
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.identity-row {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.identity-row:last-child {
    border-bottom: none;
}

.identity-header-row {
    background: rgba(0, 217, 255, 0.1);
}

.identity-header-row .identity-cell {
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
}

.identity-cell {
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.identity-layer {
    color: var(--neon-green);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.identity-example {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ============================================
   QUANTUM CHEMISTRY FUSION CHART
   ============================================ */

.fusion-chart {
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    overflow-x: auto;
}

.fusion-chart-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1.5fr;
    background: rgba(0, 255, 136, 0.08);
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
}

.fusion-col-header {
    padding: 0.75rem 0.5rem;
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.7rem;
    letter-spacing: 0.05rem;
    text-align: center;
}

.csh-col { color: #C87533; }
.tqb-col { color: #C0C0C0; }
.fusion-col { color: var(--neon-green); }

.fusion-chart-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1.5fr;
    border-bottom: 1px solid rgba(0, 255, 136, 0.08);
    transition: background 0.3s ease;
}

.fusion-chart-row:hover {
    background: rgba(0, 255, 136, 0.03);
}

.fusion-chart-row:last-child {
    border-bottom: none;
}

.fusion-cell {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.fusion-aspect {
    color: var(--neon-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.7rem;
}

.csh-cell {
    border-left: 2px solid rgba(200, 117, 51, 0.3);
}

.tqb-cell {
    border-left: 2px solid rgba(192, 192, 192, 0.3);
}

.fusion-result {
    border-left: 2px solid rgba(0, 255, 136, 0.3);
    color: var(--neon-green);
    font-weight: 500;
}

/* Fusion Warning Quote */
.fusion-warning {
    color: var(--neon-pink);
    font-style: italic;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 0, 85, 0.2);
    background: rgba(255, 0, 85, 0.05);
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ============================================ */

@media (max-width: 768px) {
    .ranking-tier {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .identity-row {
        grid-template-columns: 1fr;
    }
    
    .identity-header-row {
        display: none;
    }
    
    .fusion-chart-header,
    .fusion-chart-row {
        grid-template-columns: 1fr;
    }
    
    .fusion-col-header:first-child,
    .fusion-aspect {
        display: none;
    }
    
    .fusion-cell {
        border-left: none !important;
    }
    
    .csh-cell::before { content: 'CSH: '; color: #C87533; font-weight: bold; }
    .tqb-cell::before { content: 'TQB: '; color: #C0C0C0; font-weight: bold; }
    .fusion-result::before { content: 'FUSION: '; color: var(--neon-green); }
}
