/* ----------------------------------------------------
   CYBER-PSYCHEDELIC PORTAL DESIGN SYSTEM & STYLES
   Domain: dreamers-shop.org
   Theme: Hyper-Accurate Cyberpunk (Neon Purple, Pink, Lime Green)
   ---------------------------------------------------- */

/* Core variables */
:root {
    --color-bg-dark: #090412;
    --color-bg-panel: #110822;
    --color-border-dark: #000000;
    --color-neon-green: #39FF14;
    --color-neon-pink: #FF007F;
    --color-neon-purple: #8F00FF;
    --color-neon-blue: #00F0FF;
    --color-text-white: #ffffff;
    --color-text-muted: #d0c0e0;
    
    --font-heading: 'Inter', sans-serif;
    --font-mono: 'Special Elite', monospace;
    --font-sans: 'Inter', sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--color-bg-dark);
    /* Cyberpunk Halftone Dot Background + Neon Aura Glows */
    background-image: 
        radial-gradient(circle at center, rgba(143, 0, 255, 0.25) 0%, rgba(9, 4, 18, 0.98) 80%),
        radial-gradient(rgba(57, 255, 20, 0.04) 15%, transparent 16%),
        radial-gradient(rgba(255, 0, 127, 0.04) 15%, transparent 16%),
        url('background.png');
    background-size: cover, 18px 18px, 18px 18px, cover;
    background-position: center, 0 0, 9px 9px, center;
    background-attachment: fixed;
    font-family: var(--font-sans);
    color: var(--color-text-white);
    overflow-x: hidden;
    position: relative;
}

/* Hide scrollbar */
::-webkit-scrollbar {
    display: none;
}

/* Ambient canvas for steam particles and falling leaves */
#steam-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

/* Grain/Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.85) 100%),
                url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.12;
    pointer-events: none;
}

/* Slime Dripper decoration in background */
.slime-dripper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1200,0 L1200,40 C1100,50 1050,10 950,50 C850,90 800,20 700,60 C600,100 550,30 450,70 C350,110 300,40 200,80 C100,120 50,50 0,90 Z' fill='%23FF007F'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

/* Layout Wrapper */
.app-layout {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 20px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 3;
    position: relative;
    min-height: 100vh;
}

/* Background gears decoration (glowing cyber rings) */
.background-gears {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0.1;
    color: var(--color-neon-purple);
    filter: drop-shadow(0 0 10px var(--color-neon-purple));
}

.gear {
    position: absolute;
    animation: rotateGear 60s linear infinite;
    transform-origin: center;
}

.gear path {
    fill: none;
}

.gear-large {
    width: 500px;
    height: 500px;
    left: -150px;
    bottom: -150px;
}

.gear-medium {
    width: 320px;
    height: 320px;
    right: -80px;
    top: -80px;
    animation-direction: reverse;
    animation-duration: 40s;
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ----------------------------------------------------
   LEFT PANEL: Cyber-Psychedelic Holographic Sticker
   ---------------------------------------------------- */
.sticker-panel {
    flex: 0 1 480px;
    width: 100%;
    position: sticky;
    top: 70px;
}

.sticker-container {
    position: relative;
    border-radius: 24px;
    background-color: #000000;
    padding: 12px;
    /* Thick black offset outline and thick white outer sticker die-cut border */
    border: 8px solid #ffffff;
    box-shadow: 0 0 0 6px #000000,
                0 25px 60px rgba(0, 0, 0, 0.95),
                0 0 40px rgba(143, 0, 255, 0.4),
                0 0 15px rgba(57, 255, 20, 0.3);
    overflow: hidden;
    transform: rotate(-1.5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-container:hover {
    transform: scale(1.03) rotate(1.5deg);
}

/* Shimmer overlay for holographic effect */
.holographic-reflection {
    position: absolute;
    top: -150%;
    left: -150%;
    width: 400%;
    height: 400%;
    background: linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(0, 240, 255, 0.2) 35%,
        rgba(255, 0, 127, 0.2) 45%,
        rgba(255, 255, 0, 0.2) 55%,
        rgba(57, 255, 20, 0.2) 65%,
        rgba(255, 255, 255, 0.05) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 5;
    animation: holoShimmer 7s ease infinite;
    mix-blend-mode: color-dodge;
}

@keyframes holoShimmer {
    0% { top: -150%; left: -150%; }
    50% { top: 50%; left: 50%; }
    100% { top: -150%; left: -150%; }
}

.sticker-hero {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 4px solid #000000;
}

/* Melting Acid Smiley Badge */
.melting-smiley {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 0 12px rgba(57, 255, 20, 0.8)) drop-shadow(2px 2px 0px #000);
    animation: floatingSmiley 3.5s ease-in-out infinite alternate;
    z-index: 6;
}

@keyframes floatingSmiley {
    0% { transform: translateY(0) rotate(-6deg); }
    100% { transform: translateY(-10px) rotate(10deg); }
}

/* Text Badges styled like miniature stickers on top */
.sticker-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    position: relative;
    z-index: 6;
}

.badge {
    align-self: flex-start;
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: 3px solid #ffffff;
    box-shadow: 3px 3px 0px #000000, 3px 6px 12px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-brand {
    background: linear-gradient(90deg, var(--color-neon-purple), var(--color-neon-pink));
    color: #ffffff;
    transform: rotate(-2deg) translateX(4px);
    text-transform: lowercase;
}

.badge-duration {
    background-color: #ffffff;
    color: #000000;
    border-color: #000000;
    transform: rotate(1.5deg) translateX(12px);
}

.badge-status {
    background: #000000;
    color: var(--color-neon-green);
    border-color: var(--color-neon-green);
    transform: rotate(-1deg) translateX(2px);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.4), 3px 3px 0px #000000;
}

.badge-salary {
    background: var(--color-neon-green);
    color: #000000;
    border-color: #000000;
    transform: rotate(2.5deg) translateX(8px);
    font-size: 0.95rem;
    animation: pulseSalary 1.5s infinite alternate;
}

@keyframes pulseSalary {
    0% { transform: rotate(2.5deg) scale(1) translateX(8px); }
    100% { transform: rotate(2.5deg) scale(1.05) translateX(8px); filter: drop-shadow(0 0 8px var(--color-neon-green)); }
}

.badge-payout {
    background: var(--color-neon-blue);
    color: #000000;
    border-color: #ffffff;
    transform: rotate(-1.8deg) translateX(14px);
    font-size: 0.85rem;
    box-shadow: 3px 3px 0px #000000, 0 0 10px rgba(0, 240, 255, 0.4);
    animation: pulsePayout 1.8s infinite alternate;
}

@keyframes pulsePayout {
    0% { transform: rotate(-1.8deg) scale(1) translateX(14px); }
    100% { transform: rotate(-1.8deg) scale(1.03) translateX(14px); filter: drop-shadow(0 0 8px var(--color-neon-blue)); }
}


/* ----------------------------------------------------
   RIGHT PANEL: Cyberpunk-Steampunk Fused Card
   ---------------------------------------------------- */
.machine-card {
    flex: 1;
    max-width: 620px;
    background-color: var(--color-bg-panel);
    border: 5px solid var(--color-border-dark);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9),
                0 0 35px rgba(143, 0, 255, 0.3),
                inset 0 0 30px rgba(0, 0, 0, 0.95);
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

/* Glowing Neon LEDs in corners */
.led-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #000;
    box-shadow: 0 0 8px currentColor;
    z-index: 10;
}
.led-tl { top: 16px; left: 16px; background-color: var(--color-neon-green); color: var(--color-neon-green); }
.led-tr { top: 16px; right: 16px; background-color: var(--color-neon-pink); color: var(--color-neon-pink); }
.led-bl { bottom: 16px; left: 16px; background-color: var(--color-neon-pink); color: var(--color-neon-pink); }
.led-br { bottom: 16px; right: 16px; background-color: var(--color-neon-green); color: var(--color-neon-green); }

/* Neon Piping Framing */
.pipe {
    position: absolute;
    background: var(--color-border-dark);
    z-index: 5;
}
.pipe-left {
    left: 24px; top: 25px; bottom: 25px; width: 4px;
    background: linear-gradient(to bottom, var(--color-neon-purple), var(--color-neon-pink));
    box-shadow: 0 0 8px var(--color-neon-purple);
}
.pipe-right {
    right: 24px; top: 25px; bottom: 25px; width: 4px;
    background: linear-gradient(to bottom, var(--color-neon-pink), var(--color-neon-purple));
    box-shadow: 0 0 8px var(--color-neon-pink);
}
.pipe-top {
    top: 24px; left: 25px; right: 25px; height: 4px;
    background: linear-gradient(to right, var(--color-neon-purple), var(--color-neon-green), var(--color-neon-pink));
    box-shadow: 0 0 10px var(--color-neon-green);
    display: flex;
    justify-content: center;
    align-items: center;
}
.pipe-joint {
    width: 14px;
    height: 14px;
    background: var(--color-neon-green);
    border: 2.5px solid #000;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-neon-green);
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--color-neon-purple);
    text-shadow: 0 0 5px rgba(186, 12, 248, 0.4);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-wrap: break-word;
    width: 100%;
}

/* Cyber Header Plate */
.brass-plate {
    position: relative;
    background: linear-gradient(135deg, var(--color-neon-purple) 0%, var(--color-neon-pink) 100%);
    border: 4px solid #000000;
    box-shadow: 4px 4px 0px #000000, 0 8px 20px rgba(0,0,0,0.5);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: #ffffff;
}

.plate-screws {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 96%;
    left: 2%;
    top: 6px;
}
.plate-screws span {
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
    display: inline-block;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 950;
    letter-spacing: 5px;
    line-height: 1;
    margin-bottom: 2px;
    color: #ffffff;
    text-shadow: 3px 3px 0px #000, 0 0 15px var(--color-neon-green);
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--color-neon-green);
    text-shadow: 1.5px 1.5px 0px #000;
    margin-bottom: 4px;
}

.brand-payout {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-neon-blue);
    text-shadow: 1px 1px 0px #000, 0 0 8px var(--color-neon-blue);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #000000;
    padding: 4px 14px;
    border-radius: 8px;
    border: 2px solid var(--color-neon-green);
}

.status-bulb {
    width: 10px;
    height: 10px;
    background-color: var(--color-neon-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-neon-green);
    animation: pulseBulb 1.5s infinite alternate;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--color-neon-green);
}

/* ----------------------------------------------------
   VACANCIES GRIDS & CARTRIDGES
   ---------------------------------------------------- */
.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

/* Cyber Cartridge buttons */
.vacancy-cartridge {
    background: #000000;
    border: 3px solid var(--color-neon-pink);
    border-radius: 8px;
    padding: 14px 6px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 3px 3px 0px #000000;
    transition: all 0.25s ease;
}

.cartridge-light {
    width: 24px;
    height: 6px;
    background-color: #220011;
    border-radius: 1px;
    position: relative;
}

.cartridge-light::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-neon-pink);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.cartridge-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.cartridge-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #220011;
    transition: all 0.3s ease;
}

/* Hover Cartridge */
.vacancy-cartridge:hover {
    border-color: var(--color-neon-green);
    background: #05020c;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3), 3px 3px 0px #000000;
    transform: translate(-1px, -1px);
}

.vacancy-cartridge:hover .cartridge-label {
    color: var(--color-neon-green);
}

/* Active Cartridge State */
.vacancy-cartridge.active {
    border-color: var(--color-neon-green);
    background: #061c05;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4), inset 0 0 10px rgba(57, 255, 20, 0.2);
}

.vacancy-cartridge.active .cartridge-light::after {
    background-color: var(--color-neon-green);
    opacity: 1;
    box-shadow: 0 0 10px var(--color-neon-green);
}

.vacancy-cartridge.active .cartridge-label {
    color: #ffffff;
    text-shadow: 0 0 8px var(--color-neon-green);
}

.vacancy-cartridge.active .cartridge-led {
    background-color: var(--color-neon-green);
    box-shadow: 0 0 10px var(--color-neon-green);
}

/* ----------------------------------------------------
   CRT Cyber Screen for detail view
   ---------------------------------------------------- */
.crt-screen-container {
    position: relative;
    width: 100%;
    background-color: #06020c;
    border: 4px solid #000000;
    box-shadow: 0 0 0 3px var(--color-neon-purple),
                inset 0 0 25px rgba(143, 0, 255, 0.2),
                0 6px 15px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 20px 22px;
    min-height: 180px;
    overflow: hidden;
}

.crt-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 4;
}

.crt-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;
    z-index: 3;
}

.crt-screen {
    font-family: var(--font-sans);
    color: var(--color-neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.8);
    font-size: 0.85rem;
    line-height: 1.45;
    animation: crtFlicker 0.12s infinite;
}

.screen-idle-text {
    text-align: center;
    color: var(--color-neon-pink);
    text-shadow: 0 0 6px rgba(255, 0, 127, 0.6);
    margin-top: 45px;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    animation: screenPulse 2s infinite alternate;
}

/* Detail fields inside the CRT Screen */
.vacancy-detail-title {
    font-size: 1.25rem;
    font-weight: 900;
    border-bottom: 2px dashed var(--color-neon-green);
    padding-bottom: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vacancy-detail-salary {
    background-color: var(--color-neon-green);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    text-shadow: none;
    box-shadow: 0 0 8px var(--color-neon-green);
}

.vacancy-detail-section {
    margin-top: 10px;
}

.vacancy-detail-label {
    color: var(--color-neon-pink);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.vacancy-detail-list {
    margin-left: 16px;
    list-style-type: square;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* ----------------------------------------------------
   GAUGE & VACUUM TUBE PANEL
   ---------------------------------------------------- */
.gauge-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    border: 3px solid var(--color-neon-purple);
    padding: 20px;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(143,0,255,0.2);
    gap: 15px;
}

/* Cyber Manometer */
.manometer-container {
    flex: 0 0 115px;
}

.manometer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #000000;
    border: 4px solid var(--color-neon-purple);
    box-shadow: 0 0 15px rgba(143,0,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.manometer-face {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background-color: #05020a;
    border: 2px solid var(--color-neon-purple);
    position: relative;
}

.manometer-scale {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-conic-gradient(from -120deg, var(--color-neon-pink) 0deg 1deg, transparent 1deg 10deg);
    mask: radial-gradient(circle, transparent 28px, black 29px);
    -webkit-mask: radial-gradient(circle, transparent 28px, black 29px);
    opacity: 0.85;
}

.manometer-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    color: var(--color-neon-pink);
    font-weight: 900;
}
.manometer-labels span { position: absolute; }
.manometer-labels span:nth-child(1) { bottom: 15px; left: 14px; }
.manometer-labels span:nth-child(2) { top: 6px; left: 30px; }
.manometer-labels span:nth-child(3) { bottom: 15px; right: 14px; }

.manometer-needle {
    position: absolute;
    width: 2.5px;
    height: 36px;
    background-color: var(--color-neon-green);
    left: 50%;
    bottom: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-120deg);
    box-shadow: 0 0 6px var(--color-neon-green);
}
.manometer-needle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -2px;
    width: 6px;
    height: 6px;
    background-color: var(--color-neon-green);
    border-radius: 50%;
}

.manometer-cap {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-neon-purple);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 5px var(--color-neon-purple);
}

.manometer-subtext {
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 22px;
    font-family: var(--font-mono);
    font-size: 0.45rem;
    color: var(--color-neon-purple);
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Vacuum glow tubes */
.vacuum-tubes-container {
    flex: 1;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 90px;
    border-bottom: 3px solid var(--color-neon-purple);
    padding-bottom: 2px;
}

.vacuum-tube {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 44px;
}

.tube-glass {
    position: relative;
    width: 32px;
    height: 56px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(143, 0, 255, 0.3);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: inset 0 0 10px rgba(143, 0, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.tube-filament {
    position: absolute;
    width: 2.5px;
    height: 34px;
    background-color: #220f3a;
    border-radius: 2px;
    bottom: 4px;
    transition: all 0.3s ease;
}
.tube-filament::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -3px;
    width: 8px;
    height: 12px;
    border: 1.5px solid #220f3a;
    border-bottom: none;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.tube-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-neon-pink);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.tube-base {
    width: 36px;
    height: 14px;
    background: #000000;
    border: 2px solid var(--color-neon-purple);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    color: var(--color-neon-pink);
    text-align: center;
    line-height: 10px;
    font-weight: 900;
}

/* Glowing tube active state */
.vacuum-tube.active .tube-filament {
    background-color: var(--color-neon-pink);
    box-shadow: 0 0 8px var(--color-neon-pink), 0 0 15px var(--color-neon-purple);
}
.vacuum-tube.active .tube-filament::after {
    border-color: var(--color-neon-pink);
}
.vacuum-tube.active .tube-glow {
    opacity: 0.45;
}

/* ----------------------------------------------------
   CONTROL LEVERS (Contact links)
   ---------------------------------------------------- */
.lever-item {
    display: flex;
    align-items: center;
    background-color: #000000;
    border: 3px solid var(--color-neon-pink);
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-text-white);
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 3px 3px 0px #000000;
}

.lever-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-neon-pink);
    transition: background-color 0.3s ease;
}

.lever-mechanism {
    position: relative;
    width: 58px;
    height: 30px;
    background-color: #0c0515;
    border: 2px solid var(--color-neon-purple);
    border-radius: 15px;
    margin-right: 18px;
    overflow: hidden;
}

.lever-handle {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: rotate(0deg);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.15);
    transform-origin: 15px 15px;
}

.lever-shaft {
    position: absolute;
    width: 24px;
    height: 4px;
    background: #ffffff;
    left: 15px;
    top: 13px;
    box-shadow: 0 0 6px rgba(255,255,255,0.8);
}

.lever-knob {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    left: 32px;
    top: 8px;
    border: 2px solid #000000;
}

.knob-green { background: var(--color-neon-green); box-shadow: 0 0 8px var(--color-neon-green); }
.knob-pink { background: var(--color-neon-pink); box-shadow: 0 0 8px var(--color-neon-pink); }
.knob-purple { background: var(--color-neon-purple); box-shadow: 0 0 8px var(--color-neon-purple); }

/* Lever label plate */
.lever-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: var(--color-neon-green);
    text-shadow: 1px 1px 0px #000;
    transition: color 0.3s ease;
}

.lever-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* Hover effects */
.lever-item:hover {
    background-color: #06020b;
    border-color: var(--color-neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3), 3px 3px 0px #000000;
    transform: translate(-1px, -1px);
}

.lever-item:hover::before {
    background-color: var(--color-neon-green);
}

.lever-item:hover .lever-handle {
    transform: rotate(32deg); /* Lever clicks down */
}

.lever-item:hover .lever-title {
    color: #ffffff;
    text-shadow: 0 0 8px var(--color-neon-green);
}

/* Dropdown Sub-menu for Forums */
.lever-item-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#lever-bot {
    cursor: pointer;
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--color-neon-purple);
    transition: transform 0.35s ease;
    filter: drop-shadow(0 0 5px var(--color-neon-purple));
}

.lever-item.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-neon-green);
    filter: drop-shadow(0 0 5px var(--color-neon-green));
}

/* Force lever to stay rotated down if active */
.lever-item.active .lever-handle {
    transform: rotate(32deg) !important;
}

.lever-item.active {
    border-color: var(--color-neon-green);
    background-color: #071705;
}

.forums-dropdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.3s ease;
    padding: 0 16px;
    background-color: rgba(9, 4, 18, 0.8);
    border-radius: 0 0 8px 8px;
}

.forums-dropdown.show {
    max-height: 250px;
    padding: 12px 16px;
    border: 3px solid var(--color-neon-purple);
    border-top: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.link-bullet {
    width: 6px;
    height: 6px;
    background-color: var(--color-neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--color-neon-pink);
    transition: background-color 0.3s ease;
}

.dropdown-link:hover {
    background-color: #0c0515;
    border-color: var(--color-neon-green);
    color: var(--color-neon-green);
    text-shadow: 0 0 8px var(--color-neon-green);
    padding-left: 16px;
}

.dropdown-link:hover .link-bullet {
    background-color: var(--color-neon-green);
    box-shadow: 0 0 6px var(--color-neon-green);
}


/* ----------------------------------------------------
   CYBER FOOTER & CONSOLE
   ---------------------------------------------------- */
.brass-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 3px solid var(--color-neon-purple);
    padding-top: 18px;
    text-align: center;
}

.cog-decor {
    font-size: 1.4rem;
    color: var(--color-neon-green);
    filter: drop-shadow(0 0 8px var(--color-neon-green));
    animation: rotateGear 12s linear infinite;
    display: inline-block;
}

/* Terminal text display */
.terminal-display {
    width: 100%;
    background-color: #000000;
    border: 2px solid var(--color-neon-purple);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-neon-pink);
    text-shadow: 0 0 3px var(--color-neon-pink);
    display: flex;
    align-items: center;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.95);
    min-height: 36px;
}

.terminal-text {
    flex: 1;
    letter-spacing: 0.5px;
}

.terminal-cursor {
    width: 6px;
    height: 10px;
    background-color: var(--color-neon-pink);
    animation: blinkCursor 0.8s steps(2) infinite;
    margin-left: 4px;
    box-shadow: 0 0 4px var(--color-neon-pink);
}

@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.copyright-info {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    font-weight: bold;
}

/* ----------------------------------------------------
   RESPONSIVE DESIGN (Media queries)
   ---------------------------------------------------- */
@media (max-width: 960px) {
    .app-layout {
        flex-direction: column;
        align-items: center;
        padding: 30px 12px;
        gap: 24px;
    }
    
    .sticker-panel {
        position: relative;
        top: 0;
        max-width: 480px;
    }
    
    .machine-card {
        width: 100%;
    }
}

@media (max-width: 500px) {
    /* Set padding to 24px so content doesn't touch the pipes */
    .machine-card {
        padding: 24px 24px;
        gap: 16px;
    }
    
    /* Reposition pipes closer to the edges on mobile to maximize content area */
    .pipe-left {
        left: 10px;
        top: 12px;
        bottom: 12px;
    }
    .pipe-right {
        right: 10px;
        top: 12px;
        bottom: 12px;
    }
    .pipe-top {
        top: 10px;
        left: 11px;
        right: 11px;
    }
    
    /* Move corner LEDs to avoid overlapping the pipes */
    .led-tl { top: 6px; left: 6px; }
    .led-tr { top: 6px; right: 6px; }
    .led-bl { bottom: 6px; left: 6px; }
    .led-br { bottom: 6px; right: 6px; }
    
    /* Responsive typography for the section title */
    .section-title {
        font-size: 0.92rem;
        letter-spacing: 0.5px;
        margin-bottom: 14px;
        line-height: 1.35;
    }
    
    .brand-title {
        font-size: 2.1rem;
        letter-spacing: 3px;
    }
    
    .brand-payout {
        font-size: 0.65rem;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }
    
    .vacancies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .vacancy-cartridge {
        padding: 10px 4px;
    }
    
    .cartridge-label {
        font-size: 0.78rem;
    }
    
    .gauge-panel {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .vacuum-tubes-container {
        width: 100%;
        height: 80px;
    }
    
    .lever-item {
        padding: 8px 10px;
    }
    
    .lever-mechanism {
        margin-right: 8px;
    }
    
    .lever-title {
        font-size: 0.82rem;
    }
    
    .lever-desc {
        font-size: 0.68rem;
    }
    
    /* Scale down sticker container on narrow viewports */
    .sticker-container {
        border-width: 5px;
        padding: 8px;
        transform: rotate(-1deg);
        box-shadow: 0 0 0 4px #000000, 0 15px 30px rgba(0, 0, 0, 0.95);
    }
    
    .sticker-badges {
        gap: 6px;
        margin-top: 12px;
    }
    
    .badge {
        font-size: 0.72rem;
        padding: 5px 10px;
        border-width: 2px;
    }
    
    /* Adjust dropdown links for mobile */
    .dropdown-link {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}
