﻿:root {
    /* DEFAULT THEME (Archive Technical) */
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #9e9d9c;
    --header-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Archivo', sans-serif;
    --font-mono: 'Geist Mono', monospace;
    --panel-bg: rgba(255, 255, 255, 0.05);

    /* Effects Persistence */
    --parallax-factor: 1;
}

[data-theme="beige-moss"] {
    --bg-color: #E6E1C5;
    --text-color: #362C21;
    --accent-color: #5B6636;
    --header-color: #362C21;
    --border-color: rgba(54, 44, 33, 0.2);
    --panel-bg: rgba(91, 102, 54, 0.08);
}

[data-theme="rust-black"] {
    --bg-color: #8B3D1E;
    --text-color: #ffffff;
    --accent-color: #D69F7E;
    --header-color: #ffffff;
    --border-color: rgba(214, 159, 126, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.2);
}

[data-theme="sand-brown"] {
    --bg-color: #C8A864;
    --text-color: #1A1A1A;
    --accent-color: #362C21;
    --header-color: #1A1A1A;
    --border-color: rgba(54, 44, 33, 0.2);
    --panel-bg: rgba(54, 44, 33, 0.1);
}

[data-theme="slate-green"] {
    --bg-color: #6B9080;
    --text-color: #ffffff;
    --accent-color: #CCE3DE;
    --header-color: #ffffff;
    --border-color: rgba(204, 227, 222, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.2);
}

[data-theme="tan-beige"] {
    --bg-color: #BF8B5B;
    --text-color: #1A1A1A;
    --accent-color: #362C1D;
    --header-color: #1A1A1A;
    --border-color: rgba(54, 44, 29, 0.2);
    --panel-bg: rgba(54, 44, 29, 0.1);
}

[data-theme="charcoal-black"] {
    --bg-color: #35312C;
    --text-color: #ffffff;
    --accent-color: #9e9d9c;
    --header-color: #ffffff;
    --border-color: rgba(158, 157, 156, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.2);
}

[data-theme="olive-cream"] {
    --bg-color: #8D9965;
    --text-color: #F0EAD6;
    --accent-color: #F0EAD6;
    --header-color: #ffffff;
    --border-color: rgba(240, 234, 214, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.15);
}

[data-theme="deep-purple"] {
    --bg-color: #1A0A2E;
    --text-color: #ffffff;
    --accent-color: #8A4FBD;
    --header-color: #ffffff;
    --border-color: rgba(138, 79, 189, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.3);
}

[data-theme="cyber-cyan"] {
    --bg-color: #001A1A;
    --text-color: #00FFFF;
    --accent-color: #00CCCC;
    --header-color: #00FFFF;
    --border-color: rgba(0, 204, 204, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.4);
}

[data-theme="copper-gold"] {
    --bg-color: #2A1B0E;
    --text-color: #F5E6D3;
    --accent-color: #D4A373;
    --header-color: #F5E6D3;
    --border-color: rgba(212, 163, 115, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.3);
}

[data-theme="lime-toxic"] {
    --bg-color: #0A1405;
    --text-color: #CCFF00;
    --accent-color: #A3CC00;
    --header-color: #CCFF00;
    --border-color: rgba(204, 255, 0, 0.2);
    --panel-bg: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    /* WebGL is the background */
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    padding-left: 120px;
    /* Prevent text overlap with sidebar */
    line-height: 1.2;
    padding: 100px 80px 60px 120px;
    /* Combined padding */
    font-size: 11px;
    transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s;
}


canvas.webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: auto;
    display: block;
}

.archive-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.archive-section {
    padding-bottom: 2vh;
    opacity: 1;
    position: relative;
    will-change: transform;
}

#hover-info {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    width: 250px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#hover-info strong {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 8px;
}

.info-text {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: #ffffff;
    opacity: 0.1;
    margin: 30px 0;
}

/* =========================================
   NAVIGATION (Updated)
   ========================================= */

.main-menu {
    /* Center everything in the sidebar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: 20px;
    /* Robust vertical centering */
    /* Reduced width */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 1px 0 30px rgba(0, 0, 0, 0.2);
}


/* Sidebar grouping - flat stack for even spacing */
.menu-links,
.system-links {
    display: contents;
    /* Allows .main-menu's gap to apply to all children equally */
}

/* Nav Link Base - Folder Tab Style */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: center !important;
    /* Forces centering */
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    /* Stark white idle */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-radius: 0 !important;
    text-decoration: none;
    z-index: 10;
    margin: 0 !important;
    border: none !important;
}

/* Strip legacy glassy protrusions */
.nav-link::before,
.nav-link::after {
    display: none !important;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    /* Start at 40px */
    height: 100%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    pointer-events: none;
    border-radius: 0;
}

/* Standardize hover behavior for all sidebar buttons */
.nav-link:hover {
    background: #ffffff !important;
    color: #000000 !important;
    opacity: 1;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
    filter: none !important;
}

.nav-link .nav-icon {
    stroke: #ffffff !important;
    transition: stroke 0.3s ease;
}

.nav-link:hover .nav-icon {
    stroke: #000000 !important;
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
    position: relative;
    z-index: 2;
    /* Removed margin-left to allow flex centering */
}

.nav-link span {
    position: absolute;
    left: 70px;
    /* Increased distance from icon and protruded tab */
    top: 50%;
    transform: translateY(-50%) translateX(-10px);

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 25px;
    border-radius: 50px;
    /* Full Rounded Pill */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.nav-link:hover span {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* SECTION HEADER HIGHLIGHT */
.section-label,
h2,
h3,
h1 {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* HOME HERO */
.home-hero {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 15px;
    /* Compact top space */
}

.signature-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1100;
    width: fit-content;
}

/* SIGNATURE LABEL (EXP.05 STYLE) */
.signature-label {
    display: flex;
    height: 60px;
    background: #ffffff;
    align-items: stretch;
    /* Ensure sidebars fill height */
}

.label-sidebar {
    width: 25px;
    background-color: #000000;
    /* Dot-Art Checkered Flag Pattern (Lo-Fi Technical) */
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='2' height='2' fill='white'/%3E%3Crect x='2' y='2' width='2' height='2' fill='white'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 4px 4px;
    height: 100%;
    flex-shrink: 0;
}

.label-main {
    padding: 0 25px;
    display: flex;
    align-items: center;
}

.signature {
    font-family: 'Geist', sans-serif;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    color: #000000 !important;
    line-height: 1;
    margin: 0;
}

/* ROLE LABEL (SPEC STYLE) */
.role-label {
    display: flex;
    height: 30px;
    background: #EEDD00;
    /* Technical yellow */
    align-items: stretch;
    width: fit-content;
    /* Trim to content width */
}

.role-sidebar {
    width: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    background: #EEDD00;
}

.role-sidebar svg {
    width: 14px;
    height: 14px;
    color: #000000;
    display: block;
}

.role-main {
    flex: 1;
    padding: 0 25px;
    /* Balanced padding for same visual spacing on right */
    display: flex;
    align-items: center;
}

.role-title {
    font-family: var(--font-mono) !important;
    /* Force mono font */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.1em;
    color: #000000 !important;
}

.role-icon-small {
    width: 12px;
    height: 12px;
}

/* SPA Transitions */
.page-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.page-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SLIDING DRAWER */
#detail-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 50vw;
    height: 100vh;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    overflow: hidden !important;
    /* Block any horizontal bleed */
}

#detail-drawer.open {
    transform: translateX(0);
}

.drawer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    /* Orthogonal layout (Recto) */
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: -1;
    pointer-events: auto;
}

#detail-drawer>button,
.drawer-content {
    pointer-events: auto;
}

.drawer-header {
    height: 90px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: transparent;
}

.drawer-content {
    padding: 40px 80px 100px 140px;
    /* Increased bottom padding for scroll freedom */
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.drawer-title {
    font-family: 'Geist', sans-serif;
    font-weight: 800;
    font-size: 42px;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.drawer-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.drawer-tag {
    background: #000000;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-banner {
    width: 100%;
    margin-left: 0;
    height: 18vh;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    /* Straight banner */
    background-size: cover;
    background-position: center;
}

/* Un-skew the image inside so it stays straight */
.drawer-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15%;
    width: 130%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    /* Un-skew removed */
}

.drawer-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.drawer-desc {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    max-width: 600px;
}

/* DRAWER TOGGLE / CLOSE BUTTON */
.drawer-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border: none !important;
    background: #EEDD00 !important;
    /* Signature Yellow */
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3100;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    padding: 0 !important;
}

.drawer-toggle:hover {
    background: #ffffff !important;
}


/* Glass Utility (if needed elsewhere) */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-header-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 1 !important;
    /* Force visible */
}

.section-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    text-transform: uppercase;
}

.dashed-line {
    flex-grow: 1;
    height: 1px;
    border-bottom: 1px dashed var(--border-color);
}

.archive-list {
    list-style: none;
    margin-bottom: 40px;
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 15px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 14px;
    position: relative;
    width: fit-content;
    /* Only cover text width */
    cursor: pointer;
}

.archive-item:hover {
    background-color: #ffffff;
    color: #000000;
    padding-left: 30px;
}

/* DIAGONAL HOVER ARROW (NORTHEAST) - HARDENED */
.archive-list .archive-item::after {
    content: '\2197' !important;
    /* Unicode for ↗ */
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) translate(-10px, 10px) !important;
    opacity: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    color: inherit !important;
}

/* DIAGONAL HOVER ARROW (NORTHEAST) - HARDENED & PERSISTENT */
.archive-list .archive-item:hover::after,
.archive-list .archive-item.active::after {
    opacity: 1 !important;
    transform: translateY(-50%) translate(0, 0) !important;
    color: inherit !important;
}

/* ACTIVE/SELECTED STATE (HARDENED & INVERTED) */
.industrial-container .archive-list .archive-item.active {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding-left: 20px !important;
    z-index: 5 !important;
}

.archive-list .archive-item.active::after {
    opacity: 1 !important;
    transform: translateY(-50%) translate(0, 0) !important;
    color: #ffffff !important;
    /* Force white arrow on black background */
}

.about-content {
    max-width: 600px;
    font-size: 13px;
    /* Increased for consistency */
    line-height: 1.6;
    margin-top: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.about-content p {
    margin-bottom: 20px;
}

#contact-content.active {
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 420px);
    /* 21 cells each */
    gap: 40px;
    /* 2 cells */
    margin-top: 0;
    /* Align with container's 40px padding for 2-cell gap */
    width: fit-content;
    justify-content: start;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 420px;
        padding: 0 20px;
        gap: 20px;
    }
}

/* TECHNICAL STICKER CONTACT SYSTEM (HARDENED) */
#contact-content .contact-card.sticker {
    display: flex !important;
    flex-direction: column !important;
    height: 300px !important;
    /* 15 cells */
    width: 420px !important;
    /* 21 cells */
    text-decoration: none !important;
    border-radius: 0 !important;
    /* Sharp corners to match grid */
    overflow: hidden !important;
    position: relative !important;
    padding: 20px !important;
    /* 1 cell */
    transition: all 0.3s ease !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

#contact-content .contact-card.sticker::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

#contact-content .contact-card.sticker:hover::before {
    opacity: 1 !important;
}

.contact-card.sticker:hover {
    transform: none !important;
    /* Removed bump */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Flat shadow */
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* Platform Hover Colors & Gradients */
#contact-content .contact-card.sticker.mail {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#contact-content .contact-card.sticker.mail::before {
    background: #ffffff !important;
    opacity: 0 !important;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#contact-content .contact-card.sticker.mail:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

#contact-content .contact-card.sticker.mail:hover .sticker-main {
    color: #ea4335 !important;
    /* Classic Gmail Red */
    border-bottom-color: #000000 !important;
}

#contact-content .contact-card.sticker.mail:hover .sticker-header,
#contact-content .contact-card.sticker.mail:hover .info-row .label,
#contact-content .contact-card.sticker.mail:hover .info-row .value {
    color: #000000 !important;
}

#contact-content .contact-card.sticker.mail:hover .qr-container {
    border-color: #000000 !important;
    filter: invert(1) !important;
    /* Flip QR to be black on white */
}

/* Decorative "Cut" Gmail Logo */
#contact-content .contact-card.sticker.mail::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    right: -40px !important;
    width: 200px !important;
    height: 200px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ea4335' d='M24 4.5v15c0 .85-.65 1.5-1.5 1.5H21V7.38l-9 5.65-9-5.65V21H1.5c-.85 0-1.5-.65-1.5-1.5v-15c0-.4.15-.75.4-1.05l.3-.25c.2-.15.45-.2.7-.2H4.4l7.6 4.75L19.6 3h2.5c.25 0 .5.05.7.2l.3.25c.25.3.4.65.4 1.05z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: rotate(-15deg) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

#contact-content .contact-card.sticker.mail:hover::after {
    opacity: 0.1 !important;
    bottom: -20px !important;
    right: -20px !important;
}

#contact-content .contact-card.sticker.mail:hover::before {
    opacity: 1 !important;
}

#contact-content .contact-card.sticker.linkedin::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    right: -40px !important;
    width: 200px !important;
    height: 200px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300bfff' d='M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: rotate(-15deg) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

#contact-content .contact-card.sticker.linkedin:hover::after {
    opacity: 0.1 !important;
    bottom: -20px !important;
    right: -20px !important;
}

#contact-content .contact-card.sticker.linkedin:hover::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            #00a0dc 0%, #0077b5 60%, #014182 100%) !important;
}

#contact-content .contact-card.sticker.twitter:hover {
    backdrop-filter: grayscale(100%) blur(20px) brightness(0.8) !important;
    -webkit-backdrop-filter: grayscale(100%) blur(20px) brightness(0.8) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

#contact-content .contact-card.sticker.twitter:hover::before {
    background-image:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 0, 0, 0.8) 80%),
        linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%) !important;
    background-size: 100% 100%, 100% 4px !important;
    background-position: center, 0 0 !important;
    animation: scanMove 1s linear infinite !important;
}

#contact-content .contact-card.sticker.twitter::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    right: -40px !important;
    width: 200px !important;
    height: 200px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.25 2.25h6.663l4.715 6.235 5.616-6.235zm-1.161 17.52h1.833L7.081 4.126H5.117L17.083 19.77z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: rotate(-15deg) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

#contact-content .contact-card.sticker.twitter:hover::after {
    opacity: 1 !important;
    bottom: -20px !important;
    right: -20px !important;
}

@keyframes scanMove {
    from {
        background-position: center, 0 0;
    }

    to {
        background-position: center, 0 40px;
    }
}

/* Instagram Brand Gradient (Interactive Cursor Tracking) */
#contact-content .contact-card.sticker.instagram::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    right: -40px !important;
    width: 200px !important;
    height: 200px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6249f' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform: rotate(-15deg) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

#contact-content .contact-card.sticker.instagram:hover::after {
    opacity: 0.1 !important;
    /* Subtle Presence */
    bottom: -20px !important;
    right: -20px !important;
}

#contact-content .contact-card.sticker.instagram:hover::before {
    background: radial-gradient(circle at var(--mouse-x, 30%) var(--mouse-y, 107%),
            #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

#contact-content .contact-card.sticker * {
    color: inherit !important;
    text-decoration: none !important;
}

.sticker-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 5px !important;
    position: relative !important;
    z-index: 1 !important;
}

.sticker-icons {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.8;
}

.sticker-id {
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.6;
}

.sticker-category {
    font-family: var(--font-mono) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    opacity: 0.8 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* STICKER MAIN TEXT */
.sticker-main {
    font-family: 'Archivo', sans-serif;
    font-size: 34px;
    /* Slightly smaller for domains */
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    line-height: 1;
    border-bottom: 2px solid currentColor;
    padding-bottom: 4px;
    text-transform: lowercase;
    /* Force lowercase */
    position: relative;
    z-index: 1;
}

.sticker-divider {
    height: 1px;
    background: currentColor;
    opacity: 0.15;
    margin: 4px 0;
}

/* STICKER INFO ROWS */
.sticker-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.2px;
}

.info-row span:first-child {
    font-weight: 700;
    opacity: 0.8;
}

.info-row span:last-child {
    opacity: 0.6;
    text-transform: none;
    /* Keep handle case as provided */
}

/* ADVANCED BARCODE SYSTEM */
.sticker-barcode {
    margin-top: auto;
    height: 60px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    opacity: 0.6;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* STICKER QR CODE SYSTEM (REAL FIDELITY) */
.sticker-qr {
    margin-top: auto;
    width: 65px;
    height: 65px;
    position: relative;
    opacity: 0.7;
    transition: all 0.44s cubic-bezier(0.23, 1, 0.32, 1);
    align-self: flex-start;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Mounting border */
    background: rgba(255, 255, 255, 0.03);
    /* Subtle mounting floor */
    border-radius: 2px;
}

.sticker-qr img {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: auto;
    /* Smoother for QR API images */
    mix-blend-mode: screen;
    /* Inverts black background to reveal white modules */
    filter: brightness(1.5) contrast(1.2);
}

.contact-card.sticker:hover .sticker-qr {
    opacity: 1;
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* GLOBAL SITE SYSTEM LABEL */
/* GLOBAL SITE SYSTEM LABEL (HARDENED & SPACED) */
.central-controls-box {
    position: fixed !important;
    left: 50% !important;
    bottom: 30px !important;
    transform: translateX(-50%) !important;
    z-index: 2000 !important;
    pointer-events: auto !important;
}

.credits-box {
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    z-index: 2000 !important;
    pointer-events: auto !important;
    display: block !important;
}

.system-controls {
    display: flex !important;
    flex-direction: row !important;
    /* Forces side-by-side */
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Sidebar System Controls */
.system-links {
    display: contents;
}

.hover-dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dropdown-trigger {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    color: #ffffff !important;
    opacity: 1 !important;
    /* Stark white idle */
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.dropdown-trigger svg {
    stroke: #ffffff !important;
    transition: stroke 0.3s ease;
}

.dropdown-trigger:hover {
    background: #ffffff !important;
    color: #000000 !important;
    opacity: 1;
}

.dropdown-trigger:hover svg {
    stroke: #000000 !important;
}

/* IDs were empty, remove them to keep clean */

.dropdown-content {
    position: absolute;
    left: 45px;
    /* Offset to the right of sidebar */
    bottom: 50%;
    transform: translateY(50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    background: transparent !important;
    /* Fully transparent background */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 10px !important;
    box-shadow: none !important;
    z-index: 2500;

    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.hover-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(50%) translateX(5px);
}

/* Specific lists */
.theme-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Synchronized with dropdown gap */
    padding: 0;
}

.lang-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Synchronized */
    padding: 0;
}

/* Re-using existing button styles with minor overrides */
.dropdown-content .theme-btn {
    width: 40px !important;
    height: 24px !important;
    margin: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.4;
    /* Base visibility same as languages */
}

.dropdown-content .theme-btn:hover,
.dropdown-content .theme-btn.active {
    opacity: 1 !important;
}

.dropdown-content .theme-btn.active {
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
    background: transparent !important;
}

.dropdown-content .lang-btn {
    opacity: 0.4;
    padding: 0 !important;
    background: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 24px !important;
    border: none !important;
}

.dropdown-content .lang-btn:hover,
.dropdown-content .lang-btn.active {
    opacity: 1;
    background: none !important;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.central-controls-box *,
.credits-box * {
    pointer-events: auto !important;
}

.site-system-label {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    color: white !important;
    font-family: var(--font-mono) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: center !important;
    opacity: 0.6 !important;
    width: auto !important;
}

.site-system-label .sys-row {
    justify-content: center !important;
}

.site-system-label.lang-block {
    padding: 10px 16px !important;
    /* Slightly tighter but matching height feel */
}

.site-system-label:hover {
    background: transparent !important;
    border-color: transparent !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.sys-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sys-row.credits {
    gap: 15px;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s ease;
}

.brand-item svg {
    transition: fill 0.3s ease;
}

/* Specific Brand Hover Colors */
.brand-item[href*="cloudflare"]:hover {
    color: #F38020 !important;
}

.brand-item[href*="cloudflare"]:hover svg {
    fill: #F38020 !important;
}

.brand-item[href*="vercel"]:hover {
    color: #0070f3 !important;
    /* Vercel Blue */
}

.brand-item[href*="vercel"]:hover svg {
    fill: #0070f3 !important;
}


.sys-sep {
    opacity: 0.3;
}

.sys-id {
    opacity: 0.5;
}

.credits-label {
    font-size: 8px;
    opacity: 0.4;
    white-space: nowrap;
}

.brand-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 9px !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: white !important;
}

.brand-item span {
    text-decoration: none !important;
    color: inherit !important;
}

.brand-item:hover {
    opacity: 1;
}

.brand-item svg {
    opacity: 0.6;
}

.sys-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* STICKER MAIN TEXT */
.sticker-main {
    font-family: 'Archivo', sans-serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    line-height: 1;
    border-bottom: 2px solid currentColor;
    padding-bottom: 4px;
    text-transform: lowercase;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   1:1 METALLIC HORIZONTAL OVERHAUL
   ========================================= */

.tech-island {
    position: fixed;
    top: 30px;
    left: 50%;
    /* Center properly */
    transform: translateX(-50%) translateY(-40px);
    z-index: 3000;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    height: 100px;
    width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-island.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.island-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 6-SCREW LAYOUT */
.screw {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 35%, #f0f0f0, #999);
    border-radius: 50%;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #333;
    transform: translateY(-50%) rotate(45deg);
}

.screw.top-left {
    top: 12px;
    left: 12px;
}

.screw.bottom-left {
    bottom: 12px;
    left: 12px;
}

.screw.top-mid {
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.screw.bottom-mid {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.screw.top-right {
    top: 12px;
    right: 12px;
}

.screw.bottom-right {
    bottom: 12px;
    right: 12px;
}

/* ============================================================
   GLASS RECORDING APP OVERHAUL (iOS STYLE)
   ============================================================ */

.hardware-chassis.glass-app-overhaul {
    position: relative;
    z-index: 10;
    width: 360px;
    height: 180px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: white;
    user-select: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-island.active .island-glass {
    opacity: 0;
}

/* Hide legacy hardware components */
.hw-layout-main,
.hw-buttons-left,
.hw-btn,
.hw-side-fader-left,
.hw-display-area,
.oled-frame,
.oled-screen,
.fader-track,
.fader-handle,
.fader-led,
.screw {
    display: none !important;
}

.glass-app-display {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

/* TOP: HEADER & METADATA (Left Aligned with Visualizer) */
.glass-metadata-tier {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 25px;
    padding: 0 5px;
    margin-bottom: 8px;
}

.file-name {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    color: white;
    opacity: 0.9;
}

/* MIDDLE: CYBER-OSCILLOSCOPE (WebGL Optimized) */
.advanced-visualizer-area {
    position: relative;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
    /* Pure black OLED base */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}


.oscilloscope-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0;
    /* Removed padding for perfect fit */
    position: relative;
    overflow: hidden;
    /* Prevent any bleed */
}

#viz-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Pause state for WebGL */
.drawer-visualizer-mini canvas {
    filter: none;
    /* Always clean in drawer */
}

/* BOTTOM: ADVANCED VOLUME SYSTEM */
.glass-controls-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.advanced-volume-system {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    max-width: 180px;
}

.speaker-btn {
    background: none;
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.speaker-btn:hover {
    transform: scale(1.1);
}

.speaker-btn svg {
    width: 100%;
    height: 100%;
}

.spk-wave {
    transition: opacity 0.2s;
    opacity: 1;
}

.speaker-btn.muted .spk-wave {
    opacity: 0;
}

.speaker-btn.low .spk-w2,
.speaker-btn.low .spk-w3 {
    opacity: 0;
}

.speaker-btn.mid .spk-w3 {
    opacity: 0;
}

.custom-vol-pill {
    flex: 1;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    position: relative;
    cursor: ew-resize;
    padding: 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vol-ticks-container {
    position: absolute;
    left: 6px;
    /* Extended to show about 3 more lines per side */
    right: 6px;
    height: calc(100% - 6px);
    top: 3px;
    background-image: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.5) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
}

.vol-handle {
    position: absolute;
    left: 0;
    width: 14px;
    height: 26px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
    transform: translateX(0);
}

.vol-percentage {
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    min-width: 35px;
    opacity: 0.8;
}

.main-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.glass-btn {
    flex: 1;
    height: 32px;
    max-width: 80px;
    border: 1.2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.glass-btn svg {
    width: 14px;
    height: 14px;
}

/* Play/Pause Icon Toggle Fix */
.pause-btn .play-icon {
    display: none;
}

.pause-btn.is-paused .pause-icon {
    display: none;
}

.pause-btn.is-paused .play-icon {
    display: block;
}

/* Obsolete / Simplified Styles */
.player-tag,
.file-meta,
.glass-info-tier,
.glass-waveform-area,
.volume-control-box,
.secondary-info,
.vol-slider-hitbox,
.glass-btn-text,
.osc-svg,
.credits-box {
    display: none !important;
}

/* NEW PERMANENT FOOTER */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 40px;
    /* Start after sidebar icons */
    width: calc(100% - 40px);
    height: 44px;
    /* Increased height for two rows */
    background: #000000;
    z-index: 10000;
    display: grid;
    /* Switched to grid for perfect centering */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-system-links {
    display: flex;
    height: 100%;
}

.footer-dropdown {
    position: relative;
    /* Base para el posicionamiento absoluto */
    height: 100%;
}

.footer-tab {
    background: #EEDD00 !important;
    border: none;
    border-right: 1px solid #000000;
    color: #000000 !important;
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0;
    /* Sin padding */
    width: 60px;
    /* Tamaño fijo */
    height: 100%;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Texto centrado */
}

.footer-tab:hover,
.hover-dropdown:hover .footer-tab {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Upwards Dropdown Logic for Footer - Fixed Hover */
.dropdown-content.up {
    position: absolute;
    bottom: 100%;
    /* Pegado arriba del footer */
    left: 0;
    top: auto;
    transform: none !important;
    /* RESET INHERITED TRANSFORMS */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;

    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid #EEDD00;
    /* Bridge to button */
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    /* Lista vertical apilada */
    gap: 10px;
    z-index: 10001;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6);
    margin-bottom: 0px;
}

.footer-dropdown:hover .dropdown-content.up {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Hover Bridge: Invisible element to fill gap between button and menu */
.dropdown-content.up::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

.footer-license {
    display: flex;
    flex-direction: column;
    /* Vertical stack for license + disclaimer */
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 7.5px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-divider-2px {
    width: 100%;
    height: 2px;
    background: #ffffff;
    opacity: 0.8;
}

.legal-disclaimer {
    font-size: 6.5px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.2;
    text-align: center;
    max-width: 500px;
}

.footer-license a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-license a:hover {
    color: #EEDD00 !important;
}

.cc-icons {
    display: flex;
    gap: 3px;
    align-items: center;
}

.cc-icons img {
    height: 10px;
    width: auto;
    filter: invert(1) opacity(0.5);
    transition: opacity 0.2s ease;
}

.footer-license:hover .cc-icons img {
    opacity: 0.8;
}

.site-footer .footer-credits {
    padding-right: 20px;
    justify-self: end;
    /* Push to right in grid */
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Geist Mono', monospace;
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.footer-credits .brand-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    /* Increased visibility */
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 700;
}

.footer-credits .brand-item:hover {
    color: #EEDD00;
    /* Signature Yellow on hover */
}

.footer-credits svg {
    margin-right: 2px;
}

/* TECH ISLAND SYNC */
/* Legacy Tech Island hidden */
.tech-island,
.glass-app-overhaul {
    display: none !important;
}


/* DRAWER PLAY BUTTON */
.drawer-header-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    /* Moved closer to the content/video */
}

.drawer-title {
    margin-bottom: 0;
    font-size: 24px;
    flex: 1;
}

.drawer-audio-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-visualizer-mini {
    width: 0;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.drawer-visualizer-mini::after {
    content: 'DECODING_SIGNAL';
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-family: 'Geist Mono', monospace;
    font-size: 6px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.drawer-visualizer-mini.active {
    width: 160px;
    /* Expands next to play button */
    opacity: 1;
    margin-left: 5px;
}

.drawer-visualizer-mini canvas {
    width: 100% !important;
    height: 100% !important;
}

.drawer-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    margin: 5px 0 25px 0;
    /* Tighter to title, more space to description */
    display: none;
    /* Managed by JS */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.drawer-play-btn {
    background: #EEDD00 !important;
    /* Signature Yellow */
    border: none !important;
    width: 40px;
    height: 40px;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.drawer-play-btn:hover {
    background: #ffffff !important;
}

.drawer-play-btn svg {
    display: none;
    /* Replaced by dot-art */
}

/* OLD PLAY BUTTON STYLES REMOVED */
.archive-item:hover .play-btn {
    display: none;
}

/* =========================================
   CONFIG PANEL STYLES
   ========================================= */

#config-drawer {
    position: fixed;
    right: 30px;
    /* Aligned with system-controls-box */
    bottom: 85px;
    /* Above the footer */
    width: 250px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 1200;
    /* Above everything else */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    color: white;
    transform: translateY(20px);
}

#config-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.config-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.config-header h3 {
    font-size: 11px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.config-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.config-section {
    margin-bottom: 20px;
}

.config-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

/* THEME GRID */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.theme-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: 200% 200%;
}

.theme-btn:hover {
    transform: none !important;
}

.theme-btn.active {
    outline: none !important;
    box-shadow: none !important;
}

/* SWITCH TOGGLE */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(255, 255, 255, 0.3);
}

input:checked+.slider:before {
    transform: translateX(16px);
}

/* =========================================
   LANGUAGE SWITCHER & PIXEL FLAGS (CMR 2.0)
   ========================================= */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.lang-btn {
    background: none !important;
    border: none !important;
    padding: 6px !important;
    cursor: pointer !important;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.lang-btn:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.05) !important;
}

.lang-btn.active,
#config-toggle-btn.active {
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
}

#config-toggle-btn {
    opacity: 0.4;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

#config-toggle-btn:hover {
    opacity: 1;
    background: transparent !important;
}

.signature-controls {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    width: 100%;
}

.role-label {
    display: flex;
    height: 30px;
    background: #EEDD00;
    align-items: stretch;
    flex: 0 0 auto;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}


#config-toggle-btn .nav-icon {
    margin-left: 0;
    /* Override sidebar centering */
    width: 16px;
    height: 16px;
}

.dot-flag {
    width: 39px;
    height: 23px;
    display: flex;
    gap: 1px;
    pointer-events: none;
}

.flag-column {
    display: flex;
    flex-direction: column;
    gap: 1px;
    pointer-events: none;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 0 !important;
    pointer-events: none;
    display: block;
}

/* =========================================
   ULTIMATE MINIMALIST OVERRIDES (FORCED)
   ========================================= */
.central-controls-box,
.system-controls,
.site-system-label.system-controls,
.hover-dropdown {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.system-controls {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
}


/* Legacy overrides removed to fix sidebar symmetry */

/* =========================================
   DOT-ART BACK BUTTONS
   ========================================= */
.back-link-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-start;
}

.back-link-btn {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.back-link-btn:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
}

.back-link-btn:hover .chevron-dot.active {
    background: #000000 !important;
}

.back-link-btn span {
    font-family: var(--font-mono) !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    color: white !important;
    transition: color 0.3s ease;
}

.back-link-btn:hover span {
    color: #000000 !important;
}

.back-art {
    width: auto;
    height: auto;
    display: flex;
    gap: 1.5px;
}

.drawer-toggle:hover .chevron-dot.active {
    background: #000000 !important;
}

/* --- DOT ART SYSTEM (Chevrons, Back, Close) --- */
.dot-art-icon {
    display: flex;
    gap: 1.5px;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.chevron-column {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.chevron-dot {
    width: 3px;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.chevron-dot.active {
    background: #ffffff;
    /* Default active color */
}

/* Hover interaction: Invert dots when parent is hovered */
.back-link-btn:hover .chevron-dot.active,
.drawer-toggle .chevron-dot.active,
.drawer-play-btn .chevron-dot.active,
.industrial-container .back-link-btn .chevron-dot.active {
    background: #000000 !important;
}

.drawer-play-btn .chevron-dot.active {
    background: #000000;
    /* Dot color for yellow bg */
}

.close-art {
    display: flex;
    gap: 1.5px;
}

.back-art {
    display: flex;
    gap: 1.5px;
}

.play-art {
    display: flex;
    gap: 1.5px;
}

/* =========================================
   PHASE 61: INDUSTRIAL CONTAINERS (v2)
   ========================================= */

.industrial-container {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    position: relative;
    margin-top: 40px;
    /* Space for the header above */
    margin-bottom: 20px;
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
    /* Prevent clipping of headers above */
    box-sizing: border-box;
}

.industrial-container.sub-tab {
    margin-top: -21px;
}

/* Specific sizing for contact to snap to 2-square padding */
#contact-content .industrial-container {
    max-width: 960px;
    /* 40px padding * 2 + 880px grid width */
    margin-left: auto;
    margin-right: auto;
}

/* --- NEW INDUSTRIAL TABS STYLES --- */
.industrial-tabs {
    display: flex;
    gap: 0;
    /* Snap together */
    margin-bottom: 40px;
    /* 2 cells gap */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.ind-tab-btn {
    background: #EEDD00 !important;
    /* Signature Yellow Base */
    border: none !important;
    color: #000000 !important;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    height: 40px;
    /* 2 cells */
    min-width: 120px;
    /* 6 cells */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Technical separator */
}

.ind-tab-btn:hover,
.ind-tab-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
}

.ind-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ind-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes indTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industrial-container .back-link-wrapper {
    position: absolute;
    top: -40px;
    /* Sits exactly above the top border */
    left: -1px;
    /* Align with left border */
    display: flex;
    align-items: flex-start;
    gap: 0;
    z-index: 100;
}

.industrial-container .back-link-btn {
    background: #EEDD00 !important;
    /* Signature Yellow */
    color: #000000 !important;
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Separator line */
    padding: 0 !important;
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    z-index: 10;
}

.industrial-container .back-link-btn:hover {
    background: #ffffff !important;
}

.industrial-container .back-link-btn:hover .chevron-dot.active {
    background: #000000 !important;
}

.industrial-container .back-link-btn:hover .chevron-dot.active {
    background: #000000 !important;
}

.industrial-container .back-link-btn .dot-art-icon.back-art {
    background: transparent !important;
    display: flex !important;
}

.industrial-container .container-id {
    height: 40px;
    width: 220px;
    border: none !important;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #000000 !important;
    /* High contrast black */
    opacity: 1 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-sizing: border-box;
    background: #EEDD00 !important;
    /* Signature Yellow */
}

.industrial-container .section-label {
    font-family: 'Geist', 'Helvetica', sans-serif !important;
    font-weight: 800 !important;
    font-size: 38px !important;
    letter-spacing: -1px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    color: #ffffff;
}

.dot-col {
    display: flex;
    flex-direction: column;
    gap: 1.5px;
}

.back-art,
.play-art,
.close-art {
    display: flex;
    gap: 1.5px;
}

/* =========================================
   PHASE 61: INDUSTRIAL CONTAINERS (v2)
   ========================================= */

.industrial-container {
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    position: relative;
    margin-top: 40px;
    /* Space for the header above */
    margin-bottom: 20px;
    /* Grid Pattern */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
    /* Prevent clipping of headers above */
    box-sizing: border-box;
}

.industrial-container.sub-tab {
    margin-top: -21px;
}

/* Specific sizing for contact to snap to 2-square padding */
#contact-content .industrial-container {
    max-width: 960px;
    /* 40px padding * 2 + 880px grid width */
    margin-left: auto;
    margin-right: auto;
}

/* --- NEW INDUSTRIAL TABS STYLES --- */
.industrial-tabs {
    display: flex;
    gap: 0;
    /* Snap together */
    margin-bottom: 40px;
    /* 2 cells gap */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.ind-tab-btn {
    background: #EEDD00 !important;
    /* Signature Yellow Base */
    border: none !important;
    color: #000000 !important;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    height: 40px;
    /* 2 cells */
    min-width: 120px;
    /* 6 cells */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Technical separator */
}

.ind-tab-btn:hover,
.ind-tab-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
}

.ind-tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ind-tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes indTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.industrial-container .back-link-wrapper {
    position: absolute;
    top: -40px;
    /* Sits exactly above the top border */
    left: -1px;
    /* Align with left border */
    display: flex;
    align-items: flex-start;
    gap: 0;
    z-index: 100;
}

.industrial-container .back-link-btn {
    background: #EEDD00 !important;
    /* Signature Yellow */
    color: #000000 !important;
    border: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    /* Separator line */
    padding: 0 !important;
    height: 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0 !important;
    z-index: 10;
}

.industrial-container .back-link-btn:hover {
    background: #ffffff !important;
}

.industrial-container .back-link-btn:hover .chevron-dot.active {
    background: #000000 !important;
}

.industrial-container .back-link-btn:hover .chevron-dot.active {
    background: #000000 !important;
}

.industrial-container .back-link-btn .dot-art-icon.back-art {
    background: transparent !important;
    display: flex !important;
}

.industrial-container .container-id {
    height: 40px;
    width: 220px;
    border: none !important;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #000000 !important;
    /* High contrast black */
    opacity: 1 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-sizing: border-box;
    background: #EEDD00 !important;
    /* Signature Yellow */
}

.industrial-container .section-label {
    font-family: 'Geist', 'Helvetica', sans-serif !important;
    font-weight: 800 !important;
    font-size: 38px !important;
    letter-spacing: -1px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    color: #ffffff;
}

/* Redefining back-link-wrapper for normal sections (if any left) */
.page-content:not(.industrial-container) .back-link-wrapper {
    margin-bottom: 30px;
}



/* =========================================
   INDUSTRIAL DASHBOARD (K10K / 04.JP STYLE)
   ========================================= */

/* Old Dashboard Rules Removed for Conflict Resolution */

/* Industrial Component Styles (Compact) */
.dash-block {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.dash-title {
    font-family: 'Helvetica', 'Inter', sans-serif;
    font-size: 16px;
    /* Slightly smaller to fit better */
    font-weight: 700;
    color: #ffffff;
    text-transform: lowercase;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    padding-left: 2px;
}

.dash-accent-bar {
    height: 3px;
    background: #EEDD00;
    width: 100%;
}

.dash-item-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.dash-item-wrapper:last-child {
    margin-bottom: 0;
}

.dash-content {
    padding: 15px;
}

/* Editorial Entries */
.editorial-entry {
    display: flex;
    gap: 15px;
}

.editorial-line {
    width: 2px;
    background: #EEDD00;
    flex-shrink: 0;
    margin: 4px 0;
    /* Slight offset to align with text cap-height */
}

.editorial-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(238, 221, 0, 0.6);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.editorial-body h3 {
    font-size: 13px;
    color: #EEDD00;
    margin: 0 0 5px 0;
}

.editorial-body p {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

/* Showcase (Image Only) */
.art-showcase,
.album-showcase {
    display: flex;
    justify-content: flex-start;
    /* Pegado a la izquierda */
    padding: 0;
    /* Sin padding */
}

.pixel-art-frame,
.album-art-frame {
    width: 315px;
    height: 315px;
    background: #111;
    flex-shrink: 0;
    overflow: hidden;
    /* Eliminados bordes y sombras */
}

.pixel-art-frame img,
.album-art-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.showcase-meta b {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: #EEDD00;
    margin-bottom: 4px;
    text-transform: none;
    /* Keep original casing for Filenames */
}

.showcase-meta span {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.scrollable-links,
.scrollable-log {
    height: 315px;
    /* Matched to album height */
    overflow-y: auto;
    padding-right: 5px;
}

/* Specific padding for log and links */
.scrollable-log {
    padding: 15px;
}

.scrollable-links {
    padding: 15px 5px;
    /* Less horizontal padding to give more room to links */
}

/* Industrial Scrollbar */
.scrollable-links::-webkit-scrollbar {
    width: 4px;
}

.scrollable-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.scrollable-links::-webkit-scrollbar-thumb,
.scrollable-log::-webkit-scrollbar-thumb {
    background: #EEDD00;
}

.useful-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.useful-link-item a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.link-info-row {
    padding: 6px 12px 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.link-description {
    font-family: var(--font-main);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    /* Reverted to slightly more subtle */
    margin: 0;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0px;
}

.pixel-cube {
    position: absolute;
    left: 8px;
    /* Inside the a padding */
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.useful-link-item a:hover {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle hint */
    color: #EEDD00;
    padding-left: 30px;
    /* Make room for cube */
}

.useful-link-item a:hover .pixel-cube {
    opacity: 1;
    transform: translateX(0);
    color: #EEDD00;
}

.dash-tabs {
    display: flex;
    gap: 0;
    /* Unida */
    justify-content: flex-start;
    /* Pegados a la pared IZQUIERDA */
    padding: 0;
    /* Flush con la barra amarilla y la pared izquierda */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-tab {
    background: #EEDD00;
    /* Idle: Amarillo */
    border: none;
    border-right: 1px solid #000000;
    /* Línea separadora */
    color: #000000;
    /* Idle: Texto Negro */
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 2px 8px;
    /* Significantly reduced padding for tight look */
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 0;
    /* Cuadradas */
}

.dash-tab:last-child {
    border-right: none;
}

.dash-tab:hover,
.dash-tab.active {
    background: #ffffff;
    /* Hover/Selected: Blanco */
    color: #000000;
    /* Texto Negro */
}

.links-grid .dash-content {
    padding: 0;
    /* Managed by scrollable area now */
}

#home-content.active {
    display: flex !important;
    flex-direction: column;
    height: calc(100vh - 160px);
    /* Precise fit for body padding 100+60 */
    justify-content: center;
    padding-top: 0;
    overflow: hidden;
    align-items: flex-start;
}

.home-dashboard {
    display: flex;
    gap: 30px;
    width: 98%;
    max-width: 1500px;
    margin-left: 0;
    margin-right: auto;
    align-items: stretch;
    flex-wrap: nowrap;
}

.dash-col {
    display: flex;
    flex-direction: column;
}

.dash-main {
    flex: 2;
}

.dash-side {
    flex: 0.9;
    /* Now narrower on the right */
}

.dash-links {
    flex: 1.2;
    /* Now wider in the middle */
}

.signature-row {
    margin-left: 0 !important;
    margin-bottom: 25px !important;
}

@media (max-width: 1200px) {
    .home-dashboard {
        flex-direction: column;
    }

    .dash-col {
        width: 100% !important;
    }
}