/* 
 * Styles for Unit Zero Core
 * Aesthetic: Cyberpunk / Dark Glassmorphism
 */

:root {
    --cyber-black: #050508; /* Deep Midnight Black */
    --cyber-bg: #0d0d0d;
    --cyber-cyan: #00f2ff;
    --cyber-magenta: #ff0055; /* More vibrant magenta */
    --cyber-yellow: #f0e600;
    --cyber-purple: #b400ff;
    --cyber-glass: rgba(0, 242, 255, 0.05);
    --cyber-border: rgba(0, 242, 255, 0.4);
    --cyber-green: #39FF14;
    --cyber-font: 'Orbitron', 'Inter', sans-serif;
    --neon-shadow: 0 0 10px var(--cyber-cyan), 0 0 20px rgba(0, 242, 255, 0.3);
    --magenta-shadow: 0 0 10px var(--cyber-magenta), 0 0 20px rgba(255, 0, 85, 0.3);
    --body-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Background structure without dots */
.uz-cyber-theme {
    background: #050508 url('../images/cyber-bg.webp') no-repeat center center fixed !important;
    background-size: cover !important;
    color: #f8f9fa !important;
    font-family: var(--body-font) !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* GLOBAL CYBERPUNK SCROLLBAR */
.uz-cyber-theme *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.uz-cyber-theme *::-webkit-scrollbar-track {
    background: rgba(0, 5, 10, 0.8);
    border-left: 1px solid rgba(0, 242, 255, 0.1);
}
.uz-cyber-theme *::-webkit-scrollbar-thumb {
    background: var(--cyber-cyan);
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}
.uz-cyber-theme *::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--cyber-cyan);
}
.uz-cyber-theme * {
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) rgba(0, 5, 10, 0.8);
}

/* Hexagon Grid Overlay */
.uz-cyber-theme::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSIzNCIgdmlld0JveD0iMCAwIDYwIDM0Ij48cGF0aCBkPSJNMzAgMEw2MCAxN0w2MCAzNE0zMCAzNEwwIDM0TDAgMTdaIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwyNDIsMjU1LDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=');
    background-size: 60px 34px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* Base background for all components inside theme */
.uz-cyber-theme * {
    box-sizing: border-box;
}

/* Scanline and Grain Effect - LIGHTER VERSION */
.uz-cyber-theme::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.02) 50%) !important;
    background-size: 100% 10px !important; /* Much larger spacing */
    pointer-events: none;
    z-index: 1000;
    opacity: 0.1; /* Minimal opacity */
}

/* Glitch Animation for header */
@keyframes glitch {
    0% { transform: translate(0); text-shadow: -2px 0 var(--cyber-magenta), 2px 0 var(--cyber-cyan); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -1px); }
    100% { transform: translate(0); text-shadow: 2px 0 var(--cyber-magenta), -2px 0 var(--cyber-cyan); }
}

.uz-glitch-text {
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 5px var(--cyber-cyan), 0 0 10px rgba(0, 242, 255, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.uz-section-title {
    position: relative;
    color: var(--cyber-cyan);
    text-shadow: var(--neon-shadow);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: clamp(14px, 5vw, 1.6rem);
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.3;
}

.uz-section-title:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

/* Glassmorphism Panel */
.uz-glass-panel {
    background: rgba(0, 15, 25, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 242, 255, 0.3) !important;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 242, 255, 0.05);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

/* Dashbord Device Tabs */
.uz-device-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    padding-bottom: 15px;
}

.uz-device-tab {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid var(--cyber-border) !important;
    color: var(--cyber-cyan) !important;
    padding: 12px 30px !important;
    font-family: var(--cyber-font);
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.uz-device-tab.active {
    background: rgba(0, 242, 255, 0.2) !important;
    border-color: var(--cyber-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    color: #fff !important;
}

.uz-device-tab:hover {
    border-color: var(--cyber-cyan) !important;
    transform: translateY(-2px);
}

.uz-tab-glitch {
    position: relative;
    display: inline-block;
}

.uz-tab-glitch:hover::before {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 var(--cyber-magenta);
    background: #000;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

/* TĹ‚o dla blokĂłw tekstowych na twardym tle */
.uz-status-text-panel {
    background: rgba(0, 5, 10, 0.85) !important; /* Ciemne tĹ‚o */
    backdrop-filter: blur(8px); /* Rozmycie tĹ‚a pod spodem */
    border-left: 4px solid var(--cyber-magenta); /* Purpurowy akcent */
    border-right: 1px solid rgba(0, 242, 255, 0.2);
    padding: 20px;
    margin-top: 25px;
    color: #e0e0e0;
    font-size: 0.9em;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Modal Info Specifics - Moved to end of file */

#uz-modal-title {
    margin-bottom: 25px;
    letter-spacing: 4px;
}

/* Mobile specific for dashboard */
@media (max-width: 900px) {
    .uz-col-blueprint { display: none !important; }
    .uz-col-terminal { order: 3; }
    .uz-col-hologram { order: 1; }
    .uz-components-area { order: 2; }
    
    .uz-device-tabs {
        justify-content: space-between;
    }
    .uz-device-tab {
        flex: 1;
        padding: 10px 5px !important;
        font-size: 0.7em;
    }
}

/* Terminal Logs Styling - Matrix Style */
.uz-terminal-feed {
    background: #000 !important;
    border: 1px solid #330033;
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.uz-log-entry {
    color: #00ff00 !important; /* Matrix Green */
    margin-bottom: 5px;
    line-height: 1.4;
    text-shadow: 0 0 2px #00ff00;
}

.uz-log-ts {
    color: #00f0ff; /* Cyan Timestamp */
    margin-right: 5px;
}

.uz-log-user {
    color: #ff00ff; /* Magenta/Purple Username */
    font-weight: bold;
    text-shadow: 0 0 5px #ff00ff;
}

.uz-log-entry span { vertical-align: baseline; }

.uz-sub-text {
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}

/* Legal Group in Modal */
.uz-legal-group {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
}

.uz-legal-stmt {
    font-size: 0.7em;
    color: var(--cyber-yellow);
    line-height: 1.4;
    margin-top: 10px;
    opacity: 0.8;
}

.uz-checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.85em;
    color: var(--cyber-cyan);
    user-select: none;
}

.uz-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%; width: 100%;
    top: 0; left: 0;
    z-index: 2;
    margin: 0;
}

.uz-checkmark {
    position: absolute;
    top: 0; left: 0;
    height: 20px; width: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--cyber-cyan);
}

.uz-checkbox-container:hover input ~ .uz-checkmark {
    background-color: rgba(0, 242, 255, 0.1);
}

.uz-checkbox-container input:checked ~ .uz-checkmark {
    background-color: var(--cyber-cyan);
}

.uz-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.uz-checkbox-container input:checked ~ .uz-checkmark:after {
    display: block;
}

.uz-checkbox-container .uz-checkmark:after {
    left: 7px; top: 3px;
    width: 5px; height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.uz-scanlines {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 4px 100%;
    pointer-events: none;
    z-index: 5;
}

/* Dashboard Main Panels */
.uz-main-panels {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

.uz-blueprint-panel {
    flex: 2 1 600px !important;
    min-height: 450px !important;
}

.uz-terminal-panel {
    flex: 1 1 300px !important;
    min-height: 450px !important;
}

@media (max-width: 900px) {
    .uz-main-panels {
        grid-template-columns: 1fr !important;
    }
}

/* Component Grid */
.uz-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

@media (max-width: 1400px) {
    .uz-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1100px) {
    .uz-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 800px) {
    .uz-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 500px) {
    .uz-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Component Cards Interactivity */
.uz-comp-card {
    position: relative;
    overflow: hidden;
}

.uz-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
}

.uz-info-btn:hover {
    background: var(--cyber-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.uz-comp-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 15, 1);
    z-index: 9;
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.uz-comp-card.uz-info-active .uz-comp-info-overlay {
    opacity: 1;
    visibility: visible;
}

/* Blueprint Details */
.uz-blueprint-container {
    position: relative;
    height: 100%;
}

.uz-blueprint-details-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.uz-bp-img-wrap {
    width: 100%;
    height: 150px;
    border: 1px solid var(--cyber-border);
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.uz-bp-info {
    font-size: 0.85em;
    color: var(--cyber-cyan);
    line-height: 1.5;
    font-family: var(--cyber-font);
}

.uz-bp-placeholder {
    opacity: 0.5;
    font-style: italic;
}

/* .uz-info-img - Moved to end of file */

.uz-info-text {
    font-size: 0.8em;
    color: #ccc;
    line-height: 1.4;
}

.uz-node-icon svg {
    width: 30px !important; /* Smaller icons as requested */
    height: 30px !important;
    margin-bottom: 10px;
}

.uz-card h5 {
    color: var(--cyber-cyan);
    margin: 0 0 15px 0;
    font-size: 1.1em;
}

.uz-card-meta {
    font-size: 0.85em;
    color: #888;
    margin-top: 10px;
}

.uz-btn-small {
    background: transparent !important;
    border: 1px solid var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    padding: 10px 20px !important;
    cursor: pointer;
    font-family: var(--cyber-font);
    font-size: 0.8em;
    margin-top: 20px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.uz-btn-small:hover {
    background: var(--cyber-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--cyber-cyan);
}

/* Footer Notice Readability */
.uz-footer-notice, .uz-saga-footer, .uz-card-meta {
    color: #f8f9fa !important; /* Pure contrast white */
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85em !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    line-height: 1.6 !important;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
}

.uz-btn-micro {
    background: transparent !important;
    border: 1px solid var(--cyber-magenta) !important;
    color: var(--cyber-magenta) !important;
    padding: 3px 10px !important;
    font-size: 0.6em !important;
    cursor: pointer;
    font-family: var(--cyber-font);
    text-transform: uppercase;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.uz-btn-micro:hover {
    background: var(--cyber-magenta) !important;
    color: #fff !important;
    box-shadow: 0 0 10px var(--cyber-magenta);
}

.uz-blueprint-panel {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#uz-svg-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px var(--cyber-cyan));
}

.uz-terminal-panel {
    max-height: 450px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--cyber-border);
    padding: 15px;
}

.uz-panel-header {
    font-size: 0.8em;
    color: var(--cyber-cyan);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--cyber-border);
    padding-bottom: 5px;
    letter-spacing: 2px;
}

.uz-log-entry {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: var(--cyber-cyan) !important;
    margin: 5px 0;
    opacity: 1 !important;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.uz-blueprint-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px var(--cyber-cyan));
    transition: filter 0.3s ease;
}

.uz-blueprint-img:hover {
    filter: drop-shadow(0 0 15px var(--cyber-cyan));
}

/* Neon Progress Bar */
.uz-progress-bar {
    width: 100%;
    height: 10px;
    background: #222;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 5px;
}

.uz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    box-shadow: 0 0 10px var(--cyber-cyan);
    transition: width 1s ease-in-out;
}

/* Animations */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 5px var(--cyber-cyan); border-color: var(--cyber-cyan); }
    50% { box-shadow: 0 0 25px var(--cyber-cyan); border-color: #fff; }
    100% { box-shadow: 0 0 5px var(--cyber-cyan); border-color: var(--cyber-cyan); }
}

.highlight-pulse {
    animation: pulse-glow 1s infinite alternate;
    z-index: 100;
}

/* Loading Scanline */
@keyframes scanning {
    from { top: -100%; }
    to { top: 100%; }
}

.loading-scanline::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 10px;
    background: var(--cyber-cyan);
    box-shadow: 0 0 15px var(--cyber-cyan);
    opacity: 0.5;
    top: 0;
    animation: scanning 2s linear infinite;
}

/* Accordion System */
.uz-hiw-steps {
    margin-bottom: 10px !important; /* Redukcja odstÄ™pu pod listÄ… krokĂłw */
}

.uz-accordion-item {
    margin-bottom: 8px;
    border: 1px solid var(--cyber-border);
    background: rgba(0, 0, 0, 0.3);
}

.uz-accordion-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start; /* Zmieniono z space-between */
    align-items: center;
    gap: 15px; /* StaĹ‚y odstÄ™p miÄ™dzy numerem a tytuĹ‚em */
    transition: all 0.3s ease;
    font-family: var(--cyber-font);
    font-size: 0.9em;
    color: var(--cyber-cyan);
}

.uz-accordion-header:hover {
    background: rgba(0, 242, 255, 0.1);
}

.uz-accordion-content {
    padding: 20px;
    display: none;
    border-top: 1px solid var(--cyber-border);
    background: rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.uz-accordion-item.uz-active .uz-accordion-content {
    display: block;
}

.uz-accordion-item.uz-active .uz-accordion-header {
    background: rgba(0, 242, 255, 0.15);
    border-bottom: 1px solid var(--cyber-cyan);
}

.uz-acc-icon {
    margin-left: auto; /* Wypycha strzaĹ‚kÄ™ na prawÄ… stronÄ™ */
    transition: transform 0.3s ease;
}

.uz-accordion-item.uz-active .uz-acc-icon {
    transform: rotate(90deg);
}

.uz-cert-card {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--cyber-border);
    transition: 0.3s;
}

.uz-cert-card.locked {
    opacity: 0.5;
    filter: grayscale(1);
    border-style: dashed;
}

.uz-cert-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.uz-cert-name {
    display: block;
    font-size: 0.75em; /* Slightly larger */
    margin-bottom: 5px;
    font-weight: 700; /* Bolder */
    color: #fff;
}

.uz-cert-status {
    font-size: 0.6em;
    color: var(--cyber-magenta);
    text-transform: uppercase;
}

/* Author & About Styles */
.uz-author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.uz-avatar-frame-glitch {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px solid var(--cyber-cyan);
    padding: 5px;
    background: #000;
    overflow: hidden;
}

.uz-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.5) cyan(0.2);
}

.uz-mission-text {
    font-size: 0.95em;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
    margin: 20px auto;
}

.uz-author-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.8em;
    color: var(--cyber-magenta);
}

/* Glitch layer */
.uz-avatar-frame-glitch::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 240, 255, 0.1);
    mix-blend-mode: overlay;
}

/* User Profile Fixes (Re-appended) */
.uz-user-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 35px;
}

.uz-avatar-frame {
    width: 120px;
    height: 120px;
    border: 2px solid var(--cyber-cyan);
    box-shadow: 0 0 15px var(--cyber-cyan);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}

.uz-user-stats-bar {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.uz-stat-node .uz-label {
    font-size: 0.6em;
    color: #888;
}

.uz-stat-node .uz-value {
    color: var(--cyber-yellow);
    font-size: 1.1em;
}

.uz-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

/* Gender Selector */
.uz-gender-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.uz-gender-btn {
    flex: 1;
    cursor: pointer;
    text-align: center;
}

.uz-gender-btn input {
    display: none;
}

.uz-gender-btn span {
    display: block;
    padding: 10px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid var(--cyber-border);
    transition: all 0.3s ease;
    font-family: var(--cyber-font);
    font-size: 0.7em;
    text-transform: uppercase;
}

.uz-gender-btn input:checked + span {
    background: rgba(0, 242, 255, 0.2);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    color: #fff;
}

/* Actions & Buttons */
.uz-btn-small {
    background: var(--cyber-cyan) !important;
    border: none;
    color: #000 !important;
    padding: 10px 20px;
    font-family: var(--cyber-font);
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 10px var(--cyber-cyan);
    transition: 0.3s;
    width: 100%;
}

.uz-btn-small:hover {
    background: #fff !important;
    box-shadow: 0 0 20px #fff;
}

.uz-top-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.uz-btn-neon {
    background: rgba(0, 240, 255, 0.1) !important;
    border: 1px solid var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    padding: 12px 28px !important;
    font-family: var(--cyber-font);
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.uz-btn-neon:hover {
    background: var(--cyber-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--cyber-cyan);
    transform: translateY(-2px);
}

/* Modals - All modal styles moved to end of file for consistency */

.uz-form-group {
    margin-bottom: 25px;
}

.uz-form-group label {
    display: block;
    font-size: 0.7em;
    color: var(--cyber-cyan);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.uz-input {
    width: 100%;
    background: #1a1a1a !important;
    border: 1px solid var(--cyber-border) !important;
    color: #fff !important;
    padding: 15px !important;
    font-family: var(--cyber-font) !important;
    font-size: 1em;
}

.uz-input:focus {
    border-color: var(--cyber-cyan) !important;
    outline: none;
    box-shadow: 0 0 5px var(--cyber-cyan);
}

.uz-class-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.uz-class-card {
    cursor: pointer;
}

.uz-class-card input {
    display: none;
}

.uz-class-inner {
    border: 1px solid var(--cyber-border);
    padding: 15px 5px;
    text-align: center;
    transition: all 0.3s;
    background: rgba(0,0,0,0.3);
}

.uz-class-card input:checked + .uz-class-inner {
    border-color: var(--cyber-magenta);
    background: rgba(255, 0, 85, 0.1);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

.uz-class-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 8px;
}

.uz-class-name {
    display: block;
    font-size: 1.1em;
    color: var(--cyber-cyan);
    font-weight: bold;
    margin-bottom: 5px;
}

.uz-class-inner small {
    font-size: 0.85em;
    color: #ccc;
    line-height: 1.2;
    display: block;
}
/* --- DASHBOARD V2 --- */
.uz-dashboard-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
}

.uz-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px;
    border-left: 4px solid var(--cyber-cyan);
}

.uz-bar-item {
    font-size: 0.8em;
    letter-spacing: 1px;
}

.uz-label { color: #888; margin-right: 10px; }
.uz-value { color: var(--cyber-cyan); font-weight: bold; }

.uz-main-grid-v2 {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    min-height: 400px;
}

/* Blueprint Column */
.uz-col-blueprint {
    position: relative;
    overflow: hidden;
}

.uz-blueprint-svg {
    width: 100%;
    opacity: 0.6;
    filter: drop-shadow(0 0 5px var(--cyber-cyan));
}

/* Hologram Column (Center) */
.uz-col-hologram {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.uz-holo-core {
    width: 320px;
    height: 320px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.2) 0%, transparent 70%);
}

.uz-holo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.8;
    animation: uzHoloSpin 20s linear infinite;
    border: 2px solid var(--cyber-cyan);
    box-shadow: 0 0 30px var(--cyber-cyan);
}

.uz-holo-glow {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    background: radial-gradient(circle, rgba(0,240,255,0.1) 0%, transparent 80%);
    animation: uzPulseHolo 3s ease-in-out infinite;
}

@keyframes uzHoloSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes uzPulseHolo { 0%, 100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.1); opacity: 0.6; } }

/* Terminal Column */
.uz-col-terminal {
    min-height: 450px;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.uz-terminal-feed {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0,0,0,0.6);
}

/* Components Area */
.uz-area-title {
    font-size: 0.9em;
    color: var(--cyber-cyan);
    margin: 20px 0;
    border-bottom: 1px solid var(--cyber-border);
    padding-bottom: 10px;
}

.uz-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.uz-comp-card {
    padding: 15px;
    transition: 0.3s;
    border: 1px solid var(--cyber-border);
    position: relative;
    overflow: hidden; /* For overlays */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.uz-comp-card:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0,240,255,0.2);
    transform: translateY(-3px);
}

.uz-comp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Add margin to separate header from content */
}

.uz-node-name {
    display: block;
    font-size: 0.85em;
    font-weight: bold;
    margin: 0;
    letter-spacing: 1px;
}

.uz-btn-contribute {
    width: 100%;
    background: transparent;
    border: 1px solid var(--cyber-cyan);
    color: var(--cyber-cyan);
    padding: 8px;
    font-family: var(--cyber-font);
    font-size: 0.7em;
    cursor: pointer;
    transition: 0.3s;
}

.uz-btn-contribute:hover:not(:disabled) {
    background: var(--cyber-cyan);
    color: #000;
}

.uz-comp-card.uz-complete {
    border-color: var(--cyber-magenta);
}

/* Info Button & Overlay */
.uz-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--cyber-cyan);
    border-radius: 50%;
    color: var(--cyber-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    z-index: 30;
    transition: 0.3s;
}

.uz-info-btn:hover {
    background: var(--cyber-cyan);
    color: #000;
    transform: scale(1.1);
}

.uz-comp-info-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 5, 10, 0.95);
    z-index: 20;
    padding: 15px;
    display: none; /* Controlled by jQuery fadeIn/fadeOut or .uz-active */
    flex-direction: column;
    border: 1px solid var(--cyber-cyan);
}

.uz-comp-card.uz-info-active .uz-comp-info-overlay,
.uz-comp-info-overlay.uz-active {
    display: flex !important;
}

.uz-info-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.uz-info-text {
    font-size: 0.75em;
    color: #ccc;
    line-height: 1.4;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .uz-main-grid-v2 {
        grid-template-columns: 1fr;
    }
    .uz-col-blueprint, .uz-col-terminal { display: none; }
}

@media (max-width: 600px) {
    .uz-comp-grid { grid-template-columns: 1fr; }
    .uz-status-bar { flex-direction: column; gap: 10px; }
}

/* --- HOW IT WORKS --- */
.uz-how-it-works {
    padding: 60px 20px;
    width: 100%;
    position: relative;
    /* Wymuszamy tĹ‚o blueprintu jeĹ›li jest obecne w panelu szklanym */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-top: 1px solid var(--cyber-cyan);
    border-bottom: 1px solid var(--cyber-cyan);
}

.uz-how-it-works::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 10, 20, 0.85); /* Przyciemnienie dla czytelnoĹ›ci */
    z-index: -1;
}

/* Kontener treĹ›ci wewnÄ…trz sekcji Jak to dziaĹ‚a */
.uz-how-it-works .uz-hiw-header,
.uz-how-it-works .uz-hiw-steps,
.uz-how-it-works .uz-how-it-works-extra {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.uz-step {
    border-left: 2px solid var(--cyber-cyan);
    padding-left: 20px;
    margin-bottom: 30px;
}

.uz-step h3 { font-size: 1.1em; color: var(--cyber-cyan); }
.uz-step p { font-size: 0.9em; line-height: 1.6; color: #ccc; }

.uz-hidden { display: none !important; }

/* --- SAGA ACCORDION --- */
.uz-chapter-header {
    padding: 20px;
    background: rgba(0, 240, 255, 0.05);
    border-bottom: 1px solid var(--cyber-border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--cyber-cyan);
    transition: 0.3s;
}

.uz-chapter-header:hover {
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
}

.uz-chapter-body {
    padding: 25px;
    display: none;
    border-bottom: 1px solid var(--cyber-border);
    background: rgba(0,0,0,0.4);
}

.uz-saga-item.uz-active .uz-chapter-body {
    display: block;
}

.uz-saga-item.uz-active .uz-acc-icon {
    transform: rotate(90deg);
}

.uz-acc-icon {
    transition: 0.3s;
    font-size: 0.8em;
}

/* Glitch Effect */
.uz-glitch-text {
    position: relative;
    display: inline-block;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

@media (max-width: 480px) {
    .uz-glitch-text {
        display: block;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

.uz-glitch-text::before,
.uz-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--cyber-blue);
}

.uz-glitch-text:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(89px, 9999px, 14px, 0); }
    100% { clip: rect(10px, 9999px, 88px, 0); }
}

/* Saga Blur Teaser */
.uz-locked-chapter .uz-chapter-header { opacity: 0.7; border-left: 2px solid var(--cyber-magenta); }
.uz-blur-teaser { text-align: center; padding: 10px; }
.uz-blurred-text { filter: blur(5px); opacity: 0.3; user-select: none; pointer-events: none; }

/* --- USER PANEL V2 --- */
.uz-user-panel-v2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.uz-panel-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--cyber-cyan);
    padding-bottom: 10px;
}

.uz-nav-left {
    font-size: 1.4em;
    font-weight: 900;
    color: var(--cyber-cyan);
    letter-spacing: 2px;
}

.uz-nav-right {
    text-align: right;
    font-size: 0.8em;
    color: #888;
}

.uz-premium-tag {
    color: var(--cyber-cyan);
    font-weight: bold;
    letter-spacing: 1px;
}

.uz-class-label {
    color: var(--cyber-magenta);
}

.uz-user-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Profile Card */
.uz-profile-card {
    position: relative;
    padding: 25px !important;
}

.uz-profile-timestamp {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 0.7em;
    color: #666;
}

.uz-profile-body {
    display: flex;
    align-items: center;
    gap: 30px;
}

.uz-avatar-hex {
    width: 140px;
    height: 140px;
    position: relative;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--cyber-magenta), var(--cyber-cyan));
    padding: 3px;
}

.uz-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: #000;
}

.uz-avatar-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,0,85,0.2), transparent);
    pointer-events: none;
}

.uz-profile-nick {
    font-size: 2.2em;
    margin: 0;
    color: var(--cyber-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.uz-profile-sub {
    color: #aaa;
    letter-spacing: 2px;
    font-size: 0.9em;
}

/* Status Card */
.uz-status-card {
    padding: 20px !important;
}

.uz-energy-label { font-size: 0.8em; color: #888; margin: 0; }
.uz-energy-value { font-size: 1.8em; font-weight: bold; color: var(--cyber-cyan); margin: 5px 0 15px 0; }

.uz-status-progress-wrap { margin-top: 15px; }

.uz-status-bar-outer {
    height: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(0,240,255,0.2);
    border-radius: 5px;
    overflow: hidden;
}

.uz-status-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    box-shadow: 0 0 10px var(--cyber-cyan);
}

.uz-status-meta {
    display: flex;
    justify-content: space-between;
    display: block;
}

.uz-hud-nav li.active > a,
.uz-hud-nav li a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--cyber-cyan);
    border-bottom: 2px solid var(--cyber-cyan);
    background: rgba(0, 242, 255, 0.1);
}

/* --- HUD NAVIGATION FIXES --- */
.uz-hud-nav {
    position: relative;
    z-index: 1000;
}

.uz-hud-nav > ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 20px !important;
    flex-wrap: nowrap;
    align-items: center;
}

.uz-hud-nav li {
    position: relative; 
}

.uz-hud-nav li a {
    color: var(--cyber-cyan);
    text-decoration: none;
    font-family: var(--cyber-font);
    font-size: 0.85em;
    letter-spacing: 1px;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.uz-hiw-content-inner { 
    padding: 15px; 
    border-left: 1px solid var(--cyber-cyan); 
    background: rgba(0, 242, 255, 0.05); 
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .uz-how-it-works { padding: 40px 15px; }
    .uz-hiw-header { padding-left: 15px; margin-bottom: 25px; }
    .uz-section-title { font-size: 1.4em; letter-spacing: 2px; }
    .uz-hiw-subtitle { font-size: 0.7em; }
    .uz-accordion-header { padding: 12px 15px; font-size: 0.8em; }
}

/* Dropdown Support */
/* CYBERPUNK DROPDOWN */
.uz-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 5, 8, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--cyber-cyan) !important;
    border-top: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 220px;
    z-index: 9999;
    display: none !important; /* DomyĹ›lnie schowane */
    flex-direction: column !important; /* Wymuszony pion */
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.uz-dropdown li {
    width: 100%;
}

.uz-dropdown li a {
    border: none !important;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1) !important;
    padding: 12px 20px !important;
    font-size: 0.8em !important;
    transition: all 0.3s ease;
}

.uz-dropdown li a:hover {
    background: rgba(0, 242, 255, 0.2) !important;
    padding-left: 25px !important;
    border-left: 3px solid var(--cyber-magenta) !important;
}




/* Mobile HUD Menu Toggle */
/* --- UPTIME & HUD HEADER FIXES --- */
.uz-hud-header {
    /* 1. Przyklejenie do gĂłry */
    position: sticky;
    top: 0;
    z-index: 9990; /* PoniĹĽej dropdownĂłw (ktĂłre majÄ… 9999), ale nad caĹ‚Ä… resztÄ… strony */
    
    /* 2. WyglÄ…d i efekt szkĹ‚a */
    background: rgba(0, 5, 10, 0.85); /* PĂłĹ‚przezroczysta gĹ‚Ä™boka czerĹ„ */
    backdrop-filter: blur(12px); /* Rozmycie tego, co pod spodem */
    -webkit-backdrop-filter: blur(12px); /* Wsparcie dla Safari */
    
    /* 3. Twoje dotychczasowe style */
    border-bottom: 2px solid var(--cyber-cyan);
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 255, 0.1);
}

.uz-system-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.uz-serial {
    color: #888;
    font-size: 0.8em;
    letter-spacing: 2px;
}

.uz-status-timer, .uz-uptime {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--cyber-cyan);
    text-shadow: 0 0 5px var(--cyber-cyan);
}

/* --- MOBILE RESPONSIVENESS (SMARTPHONE VIEW) --- */
.uz-mobile-only { 
    display: none !important; 
}

@media (max-width: 900px) {
    /* Pokazujemy przycisk MENU i spychamy go do prawej krawÄ™dzi */
    .uz-mobile-only { 
        display: block !important; 
        margin-left: auto; /* Wypycha przycisk na sam koniec wiersza */
    }

    /* Ukrywamy domyĹ›lne menu na mobile */
    .uz-hud-nav {
        display: none; 
        width: 100%;
    }

    /* Pokazujemy menu, gdy main.js doda klasÄ™ po klikniÄ™ciu */
    .uz-hud-nav.uz-hud-nav-open {
        display: block !important;
        animation: uzFadeIn 0.3s forwards;
    }
    
    /* Wymuszamy ukĹ‚ad pionowy z przerwami */
    .uz-hud-nav > ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 8px;
    }

    /* Stylizujemy przyciski menu mobilnego na peĹ‚nÄ… szerokoĹ›Ä‡ */
    .uz-hud-nav li {
        width: 100%;
    }

    .uz-hud-nav li a {
        padding: 12px 15px;
        font-size: 0.85em;
        background: rgba(0, 242, 255, 0.05);
        border: 1px solid rgba(0, 242, 255, 0.2);
        display: block; /* WaĹĽne dla klikalnoĹ›ci caĹ‚ego pola */
    }

    /* Naprawa rozwijanego dropdown (np. jÄ™zyki) na mobile */
    .uz-dropdown {
        position: static !important; /* Menu nie najeĹĽdĹĽa na inne, tylko je rozpycha do doĹ‚u */
        width: 100%;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--cyber-magenta) !important; /* Akcent z lewej strony */
        background: rgba(0, 0, 0, 0.3) !important;
        clip-path: none !important;
        padding-left: 10px !important;
        margin-top: 5px;
    }
    
    .uz-app-hub .uz-panel-top-nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@keyframes uzFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Certificates Grid */
.uz-certs-section { margin-bottom: 40px; }
.uz-section-label { color: #888; font-size: 0.8em; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }

.uz-certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.uz-cert-slot {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px !important;
    position: relative;
    transition: 0.3s;
}

.uz-cert-slot.locked { opacity: 0.5; filter: grayscale(1); border-style: dashed !important; }
.uz-cert-slot.unlocked { 
    border: 1px solid var(--cyber-cyan) !important; 
    background: linear-gradient(135deg, rgba(0,240,255,0.1), transparent) !important;
}

.uz-slot-icon { font-size: 2em; }
.uz-slot-name { font-size: 0.85em; margin: 0; color: #fff; line-height: 1.2; }
.uz-slot-meta { font-size: 0.7em; color: #666; margin: 5px 0 0 0; }

.uz-slot-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 0.6em;
    background: var(--cyber-cyan);
    color: #000;
    width: 15px; height: 15px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
}

/* Personal Saga Terminal */
.uz-personal-saga { padding: 0 !important; overflow: hidden; }
.uz-personal-saga .uz-panel-header { padding: 15px 20px; background: rgba(0,0,0,0.5); border-bottom: 1px solid #333; margin: 0; display: flex; justify-content: space-between; }
.uz-term-controls { font-size: 0.8em; opacity: 0.5; }
.uz-terminal-feed-small { height: 200px; padding: 20px; overflow-y: auto; background: rgba(0,0,0,0.3); font-family: 'Courier New', monospace; font-size: 0.85em; color: #a0ff00; }

@media (max-width: 800px) {
    .uz-user-top-row { grid-template-columns: 1fr; }
    .uz-certs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .uz-certs-grid { grid-template-columns: 1fr; }
    .uz-profile-body { flex-direction: column; text-align: center; }
}

/* --- PANEL TEASER MODE --- */
.uz-panel-teaser-mode {
    position: relative;
    overflow: hidden;
}

.uz-blurred-container {
    filter: blur(8px);
    opacity: 0.4;
    user-select: none;
    pointer-events: none;
    transition: 0.5s;
}

.uz-teaser-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 90%;
    max-width: 500px;
}

.uz-teaser-box {
    text-align: center;
    padding: 40px !important;
    border: 1px solid var(--cyber-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2) !important;
}

.uz-teaser-box h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--cyber-magenta);
}

.uz-teaser-box p {
    font-size: 1em;
    margin-bottom: 30px;
    color: #ccc;
}

.uz-btn-premium {
    display: inline-block;
    background: var(--cyber-cyan);
    color: #000;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: 0.3s;
}

.uz-btn-premium:hover {
    background: #fff;
    box-shadow: 0 0 20px #fff;
    transform: scale(1.05);
}
/* --- SYSTEM LOGS --- */
.uz-log-entry {
    color: var(--cyber-green) !important;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
    margin: 4px 0;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.2);
}

.uz-log-ts {
    color: var(--cyber-cyan);
    margin-right: 5px;
    opacity: 0.8;
}

.uz-log-user {
    color: var(--cyber-magenta);
    font-weight: bold;
}

.uz-node-serial {
    color: var(--cyber-yellow);
    font-size: 0.8em;
    margin-top: 5px;
    display: block;
    opacity: 0.7;
}

/* New UI Refinements */
/* Etykieta "SYNCHRONIZATION:" */
.uz-sync-label {
    display: block;
    color: #888;
    font-size: 0.8em;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* GĹ‚Ăłwna Kwota ($225 / $5,000) */
.uz-sync-amount {
    display: inline-block;
    font-size: 2.5em; /* Znacznie powiÄ™kszone */
    font-weight: 900;
    color: var(--cyber-cyan); /* Jasny neonowy niebieski */
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.6), 0 0 40px rgba(0, 242, 255, 0.2);
    font-family: var(--cyber-font);
    background: rgba(0, 0, 0, 0.6); /* Lekkie przyciemnienie pod samÄ… kwotÄ… */
    padding: 10px 20px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 20px;
}

.uz-blueprint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--cyber-cyan);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    overflow-y: auto; /* To pozwala na przewijanie CAĹEJ zawartoĹ›ci okna, jeĹ›li jest jej duĹĽo */
}

#uz-main-blueprint {
    position: relative;
    transition: opacity 0.3s ease;
}

/* Kiedy gĹ‚Ăłwny Blueprint lub kontener otrzymuje klasÄ™ */
#uz-main-blueprint.uz-info-active .uz-blueprint-overlay,
.uz-info-active .uz-blueprint-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Wygaszanie SVG gdy overlay jest aktywny */
#uz-main-blueprint.uz-info-active .uz-blueprint-svg {
    opacity: 0.1 !important;
}

#uz-modal-info .uz-info-img {
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background: #000;
}

/* Klasa aktywujÄ…ca, nadawana przez JS z pliku PHP */
.uz-has-dropdown.uz-dropdown-open > .uz-dropdown {
    display: flex !important;
    animation: uzSlideDown 0.3s ease-out forwards;
}

/* Przeniesione style widoku 3D dla porzÄ…dku */
.uz-3d-wrapper { width:100%; height:75vh; position:relative; overflow:hidden; border:1px solid var(--cyber-cyan); background: #000; }
.uz-3d-overlay { position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); color:var(--cyber-cyan); font-family:'Courier New', monospace; pointer-events:none; z-index: 10; width: 100%; text-align: center; }
spline-viewer { width:100%; height:100%; position: relative; z-index: 5; }
.uz-scanner-line { pointer-events: none; z-index: 15; }

/* --- STYLIZACJA ZAWARTOSCI OVERLAY W BLUEPRINCIE --- */
/* --- STYLIZACJA ZAWARTOSCI OVERLAY W BLUEPRINCIE --- */
#uz-bp-detail-img {
    width: 100%;
    height: auto;
    max-height: 180px; /* Zabezpieczenie, by bardzo wysokie zdjÄ™cia nie wypchnÄ™Ĺ‚y tekstu na dĂłĹ‚ */
    /* Zmieniamy z 'cover' na 'contain', aby zdjÄ™cie pokazaĹ‚o siÄ™ W CAĹOĹšCI, bez ucinania */
    object-fit: contain; 
    border: 1px solid var(--cyber-cyan);
    background: rgba(0, 0, 0, 0.5); /* LĹĽejsze tĹ‚o pod zdjÄ™ciem */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 2px;
    display: block;
}
#uz-bp-detail-text {
    font-family: var(--body-font);
    color: #e0e0e0;
    font-size: 0.9em;
    line-height: 1.5;
    overflow-y: visible; 
    width: 100%;
    padding: 0 !important; /* CzyĹ›cimy resztki marginesĂłw */
}

/* Zabezpieczenie przed ucinaniem wyrazĂłw (np. "Grafic-zna") dla kontenera i wszystkiego w Ĺ›rodku */
/* Zabezpieczenie przed ucinaniem wyrazĂłw */
#uz-bp-detail-text, 
#uz-bp-detail-text * {
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

#uz-bp-detail-text p {
    margin-bottom: 10px;
}

/* WĹ‚asny suwak (scrollbar) dla tekstu w Blueprint */
#uz-bp-detail-text::-webkit-scrollbar {
    width: 4px;
}
#uz-bp-detail-text::-webkit-scrollbar-thumb {
    background: var(--cyber-cyan);
    border-radius: 2px;
}

/* =========================================
   OSTATECZNE POPRAWKI (RESPONSYWNOĹšÄ† I MENU)
   ========================================= */

/* 1. NAPRAWA POZIOMEGO MENU JÄZYKĂ“W W UZ_APP_HUB */
.uz-hud-nav .uz-dropdown {
    flex-direction: column !important; /* Wymuszenie ukĹ‚adu pionowego */
    min-width: 200px !important;
}

.uz-hud-nav .uz-dropdown li {
    display: block !important;
    width: 100% !important;
}

.uz-hud-nav .uz-dropdown-open > .uz-dropdown {
    display: flex !important; /* Uruchamia pionowy flexbox po otwarciu */
}


/* 2. ZMNIEJSZENIE ELEMENTĂ“W NA TABLETACH I SMARTFONACH */
@media (max-width: 800px) {
    
    /* Pomniejszenie gĹ‚Ăłwnej kwoty zbiĂłrki */
    .uz-sync-amount {
        font-size: 1.5em !important; /* Znacznie mniejsza czcionka */
        padding: 8px 15px !important;
        letter-spacing: 1px !important;
        white-space: nowrap !important; /* Zapobiega Ĺ‚amaniu na dwie linie */
    }
    
    /* Pomniejszenie panelu tekstowego na samym dole */
    .uz-status-text-panel {
        font-size: 0.75em !important; /* Drobniejszy tekst */
        padding: 15px !important; /* Mniejsze marginesy wewnÄ™trzne */
        margin-top: 15px !important;
        line-height: 1.5 !important;
    }
}

/* --- MISSION BRIEFING BAR (WÄ…ski pasek powitalny) --- */
.uz-mission-briefing {
    display: flex;
    align-items: center;
    padding: 12px 25px !important; /* WÄ…ski padding, jak w pasku statusu */
    margin-bottom: 25px;
    border-left: 4px solid var(--cyber-magenta) !important; /* WyrĂłĹĽnienie innym kolorem */
}

.uz-briefing-label {
    color: var(--cyber-magenta);
    font-weight: bold;
    margin-right: 15px;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.5);
}

.uz-briefing-text {
    color: #e0e0e0;
    font-size: 0.85em;
    line-height: 1.5;
}

/* Styl dla dopisku z instrukcjÄ… przy podzespoĹ‚ach */
.uz-human-translation {
    color: #888;
    font-size: 0.7em;
    letter-spacing: 1px;
    margin-left: 10px;
    font-weight: normal;
}

/* --- CYBERPUNK SCROLLBAR DLA TERMINALA --- */
.uz-terminal-feed {
    /* Firefox support */
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) rgba(0, 5, 10, 0.8);
}
.uz-terminal-feed::-webkit-scrollbar {
    width: 6px;
}
.uz-terminal-feed::-webkit-scrollbar-track {
    background: rgba(0, 5, 10, 0.8);
    border-left: 1px solid rgba(0, 242, 255, 0.2);
}
.uz-terminal-feed::-webkit-scrollbar-thumb {
    background: var(--cyber-cyan);
    border-radius: 3px;
}
.uz-terminal-feed::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--cyber-cyan);
}
/* ResponsywnoĹ›Ä‡ dla nowego paska na telefonach */
@media (max-width: 900px) {
    .uz-mission-briefing {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* --- COMPACT LEGAL FOOTER (Wersja o wysokiej widocznoĹ›ci - WymĂłg Prawny) --- */
.uz-legal-footer {
    padding: 20px 25px !important; 
    border-left: 4px solid #ffaa00 !important; /* Ostrzegawczy, terminalowy pomaraĹ„cz */
    background: rgba(20, 10, 0, 0.85) !important; /* Przyciemnione, ciepĹ‚e tĹ‚o odcinajÄ…ce siÄ™ od reszty */
    box-shadow: 0 5px 15px rgba(255, 170, 0, 0.15); /* Subtelna pomaraĹ„czowa poĹ›wiata */
    display: flex;
    flex-direction: column;
    gap: 8px; 
}

.uz-legal-header {
    color: #ffaa00; /* Kolor nagĹ‚Ăłwka dopasowany do ramki */
    font-size: 0.9em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.uz-legal-text {
    color: #ffffff; /* Czysta biel dla maksymalnej czytelnoĹ›ci na ciemnym tle */
    font-size: 0.95em; /* WyraĹşniejsza, wiÄ™ksza czcionka */
    line-height: 1.6;
    margin: 0 !important;
}

.uz-highlight {
    color: #ffaa00;
    font-weight: bold;
}

/* MODERNIZACJA PODZESPOĹĂ“W */
.uz-complete-green {
    color: #00ff41 !important;
    text-shadow: 0 0 5px #00ff41;
    font-weight: bold;
}

/* 3D Slideshow in Blueprint */
.uz-3d-slideshow {
    position: relative;
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--cyber-cyan-dim);
}
.uz-slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.uz-slideshow-img.active {
    opacity: 1;
}
.uz-slideshow-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--cyber-cyan);
    z-index: 10;
}
.uz-slideshow-controls button {
    background: none !important;
    border: none !important;
    color: var(--cyber-cyan) !important;
    cursor: pointer;
    font-size: 1.2em;
    font-family: var(--cyber-font);
}
.uz-slide-counter {
    color: var(--cyber-cyan);
    font-size: 0.8em;
    min-width: 40px;
    text-align: center;
}

/* Modal Spec Expansion - Final Polish */
.uz-modal-spec {
    display: flex;
    flex-direction: column;
}

.uz-modal-spec .uz-spec-subtitle {
    color: var(--cyber-magenta);
    margin: -10px 0 20px 0;
    font-style: italic;
    font-size: 0.95em;
    letter-spacing: 1px;
}

.uz-spec-visual {
    margin-bottom: 10px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 3px;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
}

.uz-spec-visual img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

.uz-spec-details {
    font-size: 0.85em;
    line-height: 1.5;
    color: #eee;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--cyber-cyan);
}

.uz-spec-review-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    text-align: right;
}

.uz-link-highlight {
    color: var(--cyber-cyan);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--cyber-font);
    font-size: 0.75em;
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid var(--cyber-cyan);
    transition: 0.3s;
}

.uz-link-highlight:hover {
    background: var(--cyber-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--cyber-cyan);
}

.uz-modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.uz-btn-close-modal {
    background: transparent;
    border: 1px solid #888;
    color: #888;
    padding: 6px 18px;
    cursor: pointer;
    font-family: var(--cyber-font);
    font-size: 0.7em;
    letter-spacing: 2px;
    transition: 0.3s;
}

.uz-btn-close-modal:hover {
    border-color: #fff;
    color: #fff;
}

/* ResponsywnoĹ›Ä‡ Modala */
@media (max-width: 768px) {
    .uz-modal-content {
        width: 95% !important;
        padding: 20px !important;
        margin: 10% auto !important;
    }
    
    .uz-panel-header {
        font-size: 1.2em !important;
    }
    
    .uz-spec-visual img {
        max-height: 250px;
    }
}

/* --- COMPONENT PROGRESS BARS --- */
.uz-node-progress {
    margin-top: auto; /* Push bottom section to bottom of card */
    margin-bottom: 20px;
}
.uz-node-bar {
    height: 6px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-bottom: 5px;
}
.uz-node-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    box-shadow: 0 0 10px var(--cyber-cyan);
    transition: width 1s ease-in-out;
}

/* Mini Progress Bar (Small one on tiles) */
.uz-comp-mini-progress {
    height: 3px;
    background: rgba(0, 255, 255, 0.1);
    margin: 0 15px 15px 15px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(0,255,255,0.1);
}
.uz-comp-mini-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta));
    transition: width 1s ease-in-out;
}

/* Progress Percentage Green color */
.uz-complete-green {
    color: #00ff88 !important;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5) !important;
}

.uz-bar-complete-green {
    background: #00ff88 !important;
    box-shadow: 0 0 10px #00ff88 !important;
}

/* --- MODALS REFINEMENT --- */
.uz-modal {
    display: none;
    position: fixed;
    z-index: 10001; /* Above header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 6, 10, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 160px; /* Increased to avoid hiding under header */
    overflow-y: auto;
}
.uz-modal.uz-active {
    display: flex;
}

.uz-modal-content {
    background: #0a0a0f;
    margin: 0 auto 50px auto;
    padding: 30px;
    border: 1px solid var(--cyber-cyan);
    width: 90%;
    max-width: 650px; 
    position: relative;
    border-right: 5px solid var(--cyber-cyan); 
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    max-height: calc(100vh - 120px); 
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--cyber-cyan) rgba(0, 5, 10, 0.8);
}

@media (max-width: 768px) {
    .uz-modal-content {
        margin: 100px auto 20px; /* Push down below unit-zero-header */
        padding: 20px;
        width: 95%;
        max-height: calc(100vh - 150px);
    }
}

.uz-modal-spec {
    max-width: 600px !important; /* Szerszy modal */
    max-height: 70vh !important; /* NiĹĽszy modal */
    min-height: auto !important; 
}
.uz-modal-spec .uz-modal-body {
    padding-bottom: 0;
}
.uz-modal-spec .uz-modal-footer {
    padding-top: 10px;
    margin-top: 5px;
}
.uz-label-red {
    color: #ff0055 !important;
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.4);
}
.uz-btn-review {
    display: inline-block;
    padding: 8px 15px;
    background: linear-gradient(90deg, var(--cyber-magenta), transparent);
    border: 1px solid var(--cyber-magenta);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8em;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.uz-btn-review:hover {
    background: var(--cyber-magenta);
    box-shadow: 0 0 15px var(--cyber-magenta);
    transform: translateY(-2px);
}
.uz-modal-content::-webkit-scrollbar {
    width: 6px;
}
.uz-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 5, 10, 0.8);
    border-left: 1px solid rgba(0, 242, 255, 0.2);
}
.uz-modal-content::-webkit-scrollbar-thumb {
    background: var(--cyber-cyan);
    border-radius: 3px;
}
.uz-modal-content::-webkit-scrollbar-thumb:hover {
    background: #fff;
    box-shadow: 0 0 10px var(--cyber-cyan);
}

/* Node Icons in Cards */
.uz-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.uz-node-icon {
    width: 24px;
    height: 24px;
    color: var(--cyber-cyan);
    opacity: 0.9;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uz-node-icon svg {
    width: 20px;
    height: 20px;
}

#uz-modal-info .uz-panel-header {
    font-size: 0.75em;
    margin-bottom: 5px;
    padding-right: 45px;
}

#uz-modal-info .uz-spec-subtitle {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    padding-right: 45px;
    color: #ff0000; /* Pure Red as per screen request */
    text-transform: uppercase;
    font-style: italic;
}
#uz-modal-info .uz-spec-subtitle span {
    color: #fff;
    font-style: normal;
    margin-left: 5px;
}

.uz-section-title {
    padding-right: 45px;
}

.uz-info-img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: #000;
    margin-bottom: 10px;
}

.uz-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 22px;
    background: none;
    cursor: pointer;
    color: #fff;
    z-index: 1001;
    background: rgba(255, 0, 85, 0.6);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cyber-magenta);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    transition: all 0.3s ease;
}
.uz-modal-close:hover {
    background: var(--cyber-magenta);
    color: #fff;
    box-shadow: 0 0 20px var(--cyber-magenta);
}

@media (max-width: 768px) {
    .uz-modal {
        padding-top: 120px;
    }
    .uz-modal-content {
        margin-top: 0;
    }
    .uz-modal-close {
        width: 40px;
        height: 40px;
        font-size: 26px;
        background: rgba(255, 0, 85, 0.8);
        box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
    }
}

/* Bio Author Quote Style */
.uz-quote {
    border-left: 4px solid var(--cyber-magenta) !important;
    padding: 15px 25px !important;
    background: rgba(255, 0, 85, 0.08) !important;
    margin: 30px 0 !important;
    font-style: italic;
    color: #fff !important;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    font-size: 1.1em;
    position: relative;
    box-shadow: inset 5px 0 15px rgba(255, 0, 85, 0.1);
}
.uz-quote::before {
    content: '"';
    position: absolute;
    left: 8px;
    top: -10px;
    font-size: 3em;
    opacity: 0.2;
    color: var(--cyber-magenta);
}

.uz-how-it-works-extra {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(0, 242, 255, 0.2);
    font-size: 0.9em;
    color: var(--cyber-cyan);
    background: rgba(0, 242, 255, 0.05);
}
.uz-how-it-works-extra p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* Operator Chronicle Shortcode */
.uz-operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.uz-operator-item {
    background: rgba(0, 242, 255, 0.05);
    border-left: 3px solid var(--cyber-cyan);
    padding: 15px;
    position: relative;
}
.uz-op-class {
    color: var(--cyber-cyan);
    font-size: 0.7em;
    display: block;
    margin-bottom: 5px;
}
.uz-op-nick {
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 1px;
    display: block;
}
.uz-op-status {
    font-size: 0.6em;
    opacity: 0.6;
    margin-top: 5px;
}
.uz-chronicle-intro {
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.uz-no-data {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    opacity: 0.5;
    font-size: 0.8em;
}

/* Legal Stmt Styling for Contribute Modal */
.uz-legal-stmt {
    font-size: 0.75em;
    color: #00f2ff; /* Cyan as primary */
    margin: 10px 0;
    line-height: 1.4;
    border-left: 2px solid var(--cyber-cyan);
    padding-left: 10px;
}
.uz-legal-stmt:nth-child(even) {
    color: #ff9d00 !important; /* Yellow for specific legal parts */
}
.uz-legal-stmt-wrapper {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}
.uz-label-text {
    color: var(--cyber-cyan);
    font-size: 0.9em;
}
/* Real Hardware color fix */
.uz-label-red {
    color: #ff0000 !important;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    font-weight: bold;
}

/* Review Button Styling */
.uz-btn-review {
    display: inline-block;
    background: rgba(0, 242, 255, 0.1) !important;
    border: 1px solid var(--cyber-cyan) !important;
    color: var(--cyber-cyan) !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
    font-family: var(--cyber-font);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    margin-top: 10px;
}

.uz-btn-review:hover {
    background: var(--cyber-cyan) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--cyber-cyan);
    transform: scale(1.05);
}

/* Modal Info Height Adjustments */
#uz-modal-info .uz-modal-content {
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: 20px;
}

#uz-modal-info .uz-modal-footer {
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding-top: 15px;
    margin-top: 20px;
}

/* Fix for icons overlapping text */
.uz-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 30px; /* Space for info button */
}

.uz-node-icon {
    flex-shrink: 0;
}

.uz-node-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
}

/* Support buttons alignment fix */
.uz-comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.uz-comp-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.uz-btn-contribute {
    margin-top: auto;
}

/* --- SAGA & LOGS ADDITIONS --- */
.uz-new-badge {
    background: var(--cyber-magenta);
    color: #fff;
    font-size: 0.65em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-family: var(--cyber-font);
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--cyber-magenta);
    animation: uz-pulse-red 2s infinite ease-in-out;
    vertical-align: middle;
}

@keyframes uz-pulse-red {
    0% { opacity: 0.6; box-shadow: 0 0 5px var(--cyber-magenta); }
    50% { opacity: 1; box-shadow: 0 0 15px var(--cyber-magenta); }
    100% { opacity: 0.6; box-shadow: 0 0 5px var(--cyber-magenta); }
}

.uz-log-alert {
    color: var(--cyber-yellow) !important;
    font-weight: bold;
    text-shadow: 0 0 10px var(--cyber-yellow);
}

.uz-log-success {
    color: var(--cyber-cyan) !important;
    text-shadow: 0 0 10px var(--cyber-cyan);
}

/* --- OPERATOR CHRONICLE REFINEMENTS --- */
.uz-chronicle-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 20px;
}

.uz-legal-thanks {
    background: rgba(0, 0, 0, 0.4);
    border-left: 3px solid var(--cyber-yellow);
    padding: 15px;
    margin-top: 15px;
    font-size: 0.85em;
    line-height: 1.6;
    color: #aaa;
    font-style: italic;
}

.uz-op-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.uz-op-date {
    font-size: 0.75em;
    color: var(--cyber-yellow);
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

/* --- UI FIXES & ENHANCEMENTS --- */
.uz-log-date {
    color: var(--cyber-cyan) !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.4);
}

.uz-status-bar-outer {
    height: 16px !important;
    background: rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(0,242,255,0.4) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 0 8px #000 !important;
}

.uz-status-bar-inner {
    height: 100% !important;
    background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-magenta)) !important;
    box-shadow: 0 0 15px var(--cyber-cyan) !important;
}

/* 100% Milestone Glow */
.uz-comp-card.uz-complete {
    border: 1px solid var(--cyber-cyan) !important;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5), inset 0 0 15px rgba(0, 242, 255, 0.1) !important;
    background: rgba(0, 242, 255, 0.08) !important;
}

.uz-comp-card.uz-complete {
    position: relative;
    overflow: hidden;
}
.uz-comp-card.uz-complete::after { 
    content: "COMPLETE"; 
    position: absolute; 
    top: 10px; 
    right: -25px; 
    transform: rotate(45deg);
    background: #00ffaa; 
    color: #000; 
    font-size: 9px; 
    font-weight: bold; 
    padding: 4px 30px; 
    z-index: 5;
    box-shadow: 0 0 10px rgba(0,255,170,0.5);
    font-family: 'Orbitron', sans-serif;
    text-align: center;
}
.uz-bar-complete-green { background: linear-gradient(90deg, #00ff88, #00ffaa) !important; box-shadow: 0 0 20px rgba(0,255,170,0.8) !important; }

/* Certificate Section Desktop Optimization */
@media (min-width: 1024px) {
    .uz-verified-cert-section {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .uz-cert-img {
        max-width: 700px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.uz-cert-legal-wrap {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0,20,40,0.6);
    border-left: 3px solid var(--cyber-cyan);
    font-size: 13px;
    line-height: 1.6;
}
.uz-cert-symbolic-tag {
    display: block;
    color: var(--cyber-yellow);
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1px;
}
.uz-cert-legal-text {
    color: #a0b0c0;
    margin: 0;
}

/* Chronicle Table & Grid Unification */
.uz-chronicle-table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    padding: 12px 20px;
    background: rgba(0, 242, 255, 0.05);
    border-bottom: 2px solid var(--cyber-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    color: var(--cyber-cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.uz-op-info {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
}

.uz-op-nick { 
    color: #ffffff !important; 
    font-weight: bold; 
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0, 242, 255, 0.3);
}

.uz-op-class { 
    color: var(--cyber-yellow) !important; 
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
}

.uz-op-date { 
    color: #00f2ff !important; 
    font-size: 11px; 
    text-align: right;
    font-family: 'Courier New', monospace;
}

.uz-op-card {
    background: rgba(0, 10, 20, 0.7) !important;
    border-left: 3px solid var(--cyber-cyan) !important;
    margin-bottom: 5px;
    transition: transform 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
}
.uz-op-card:hover {
    transform: translateX(5px);
    background: rgba(0, 20, 40, 0.9) !important;
}

.uz-operators-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}

/* --- EMERGENCY FIX: MODAL HEADER & PRIVACY INDENT --- */
.uzd-sub-consent { margin-left: 30px !important; }
.uzd-visual-disabled { opacity: 0.35 !important; filter: grayscale(1) !important; cursor: not-allowed !important; }
@media (max-width: 600px) { .uz-modal-content h3.uz-section-title { font-size: 18px !important; letter-spacing: 1px !important; word-break: break-all !important; line-height: 1.3 !important; } }

/* --- USER AUTH & INCOGNITO STYLES --- */
.uz-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 10, 20, 0.85);
}

.uz-terminal-error {
    background: rgba(255, 0, 85, 0.1);
    border-left: 3px solid var(--cyber-magenta);
    padding: 10px;
    margin-bottom: 20px;
}

.uz-class-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.uz-class-card input:checked + .uz-class-inner {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.uz-class-card[data-gender-neutral="true"] input:checked + .uz-class-inner {
    border-color: var(--cyber-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.uz-login-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8em;
    color: var(--cyber-cyan);
    font-family: 'Orbitron', sans-serif;
}

.uz-login-form .uz-input {
    width: 100%;
    background: rgba(0, 40, 60, 0.3);
    border: 1px solid var(--cyber-cyan);
    color: #fff;
    padding: 10px;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
}

.uz-login-form .uz-input:focus {
    outline: none;
    border-color: var(--cyber-yellow);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.3);
}

@media (max-width: 480px) {
    .uz-incognito-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* --- AUTO HEIGHT & CYBER SCROLLBAR --- */
.uz-auto-height, .uz-auto-height .uz-cyber-theme { min-height: auto !important; }

.uz-cyber-theme *::-webkit-scrollbar { width: 4px; height: 4px; }
.uz-cyber-theme *::-webkit-scrollbar-track { background: rgba(0, 5, 10, 0.9); }
.uz-cyber-theme *::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, var(--cyber-cyan), var(--cyber-magenta)); box-shadow: 0 0 10px rgba(0, 242, 255, 0.5); }
.uz-cyber-theme *::-webkit-scrollbar-thumb:hover { background: #fff; }
/* --- CERT PLACEHOLDER — fix word wrap on mobile --- */
.uz-cert-placeholder {
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    overflow: hidden;
}

.uz-cert-placeholder .uz-glitch-text {
    display: block;
    width: 100%;
    font-size: clamp(0.7rem, 3.5vw, 1rem);
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    letter-spacing: 1px;
}

