.simulation-hero {
    padding: calc(var(--header-height) + 4rem) 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.05), transparent);
}

.sim-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 900px) {
    .sim-grid {
        grid-template-columns: 1fr;
    }
}

/* Control Panel */
.control-panel .card {
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.matrix-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.matrix-cells {
    display: grid;
    grid-template-columns: repeat(2, 60px);
    gap: 10px;
}

.cell-input {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cell-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.matrix-bracket {
    width: 12px;
    height: 130px;
    border-top: 3px solid var(--text);
    border-bottom: 3px solid var(--text);
}

.matrix-bracket.left { border-left: 3px solid var(--text); }
.matrix-bracket.right { border-right: 3px solid var(--text); }

/* Formula Representation */
.matrix-formula {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.matrix-bracket-small {
    width: 6px;
    height: 40px;
    border-top: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
}

.matrix-bracket-small.left { border-left: 1.5px solid var(--text-muted); }
.matrix-bracket-small.right { border-right: 1.5px solid var(--text-muted); }

.vector-cells {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Presets */
.preset-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-preset {
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.btn-preset:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toggles */
.toggles {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.toggle-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.toggle-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Visual Panel */
.visual-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1 / 1;
    width: 100%;
}

#sim-canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.coord-info {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.determinant-info {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#det-value {
    color: var(--primary);
    font-size: 1.2rem;
}

.det-ok { color: #10b981; font-size: 0.85rem; font-weight: 400; }
.det-zero { color: #ef4444; font-size: 0.85rem; font-weight: 400; }

.object-selector {
    margin-bottom: 1.5rem;
}
