:root {
    --console-bg: #050507;
    --lcd-amber: #ff9d00;
    --lcd-amber-glow: rgba(255, 157, 0, 0.5);
    --lcd-dim: #2a1c00;
    --key-bg: #1e1e24;
    --key-active: #2a2a35;
    --border-pro: #1a1a20;
    --scanline: rgba(255, 157, 0, 0.03);
}

.tc-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

/* Pro Rackmount Display */
.pro-rackmount {
    background: var(--console-bg) !important;
    border: 4px solid #1a1a1f !important;
    border-radius: 12px !important;
    padding: 35px !important;
    position: relative;
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.9),
        inset 0 0 40px rgba(0,0,0,1) !important;
}

.display-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,157,0,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.display-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 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.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.readout-container {
    text-align: center;
    padding: 20px 0;
    position: relative;
}

.main-readout {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: clamp(3.5rem, 9vw, 6.5rem) !important;
    color: var(--lcd-amber) !important;
    text-shadow: 0 0 25px var(--lcd-amber-glow) !important;
    letter-spacing: 6px !important;
    margin: 10px 0 !important;
    font-weight: 700 !important;
}

.secondary-preview {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,157,0,0.1);
    display: inline-flex;
    flex-direction: column;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.preview-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.preview-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: #ffcc00;
    opacity: 0.8;
}

/* Pro Keypad */
.keypad-container {
    background: #0f0f14;
    border: 1px solid var(--border-pro);
    padding: 25px;
    border-radius: 16px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.key {
    background: var(--key-bg);
    border: 1px solid #2a2a35;
    border-bottom: 4px solid #000;
    border-radius: 8px;
    padding: 22px 0;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.1s ease;
}

.key:active {
    transform: translateY(2px);
    border-bottom: 1px solid #000;
}

.op-key { color: var(--lcd-amber); background: #1a140a; }
.func-key { color: #ff5555; background: #1a0a0a; }
.action-key { background: var(--lcd-amber); color: #000; border-bottom-color: #996600; font-weight: 900; }

.zero { grid-column: span 1; }

/* The Tape Sidebar */
.history-block {
    background: #050507 !important;
    border-color: var(--border-pro) !important;
}

.history-list {
    max-height: 400px !important;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.2) 0px,
        rgba(0,0,0,0.2) 1px,
        transparent 1px,
        transparent 35px
    );
}

.history-item {
    border-left: 2px solid var(--lcd-amber) !important;
    background: rgba(255,157,0,0.03) !important;
    margin-bottom: 8px !important;
    padding: 12px !important;
}

.btn-copy-history {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
}

.btn-copy-history:hover {
    background: var(--lcd-amber);
    color: #000;
}

/* Sidebar Specifics */
.fps-btn {
    font-size: 0.75rem !important;
    padding: 8px 4px !important;
}

.fps-btn.active {
    background: var(--lcd-amber) !important;
    color: #000 !important;
    box-shadow: 0 0 15px var(--lcd-amber-glow);
}

/* Status Labels */
.op-mode {
    background: #002200 !important;
    color: #00ff00 !important;
    border-color: #004400 !important;
}

@media (max-width: 1050px) {
    .calc-interface { grid-template-columns: 1fr; }
}
