/* ===== 3D MODEL VIEWER ===== */
.ps-3d-viewer {
    background: #0a0a12;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
}
.ps-viewer-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 300px;
    background: #0a0a12;
}
.ps-viewer-canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.ps-viewer-loading,
.ps-viewer-error {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10,10,18,0.9);
    gap: 12px;
}
.ps-viewer-loading p,
.ps-viewer-error p {
    color: #8a8aa0;
    font-size: 0.85rem;
    margin: 0;
}
.ps-viewer-error p { color: #ef4444; }
.ps-viewer-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(139,92,246,0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: psSpin 0.8s linear infinite;
}

.ps-viewer-controls {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.ps-viewer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: #a0a0b0;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.ps-viewer-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #e0e0f0;
    border-color: rgba(139,92,246,0.3);
}
.ps-viewer-btn.active {
    background: rgba(139,92,246,0.15);
    border-color: rgba(139,92,246,0.4);
    color: #a78bfa;
}
.ps-viewer-btn svg {
    width: 14px;
    height: 14px;
}

.ps-viewer-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.75rem;
    color: #6b6b7b;
    background: rgba(255,255,255,0.01);
}

@media (max-width: 520px) {
    .ps-viewer-canvas-wrap { min-height: 200px; }
    .ps-viewer-controls { flex-wrap: wrap; }
    .ps-viewer-btn { flex: 1; justify-content: center; }
    .ps-viewer-info { flex-direction: column; gap: 4px; }
}
