.model3d-container {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--media-bg, rgba(15,23,42,0.85));
    -webkit-backdrop-filter: var(--media-bg-blur, none);
    backdrop-filter: var(--media-bg-blur, none);
}
.model3d-stage {
    position: relative;
    width: 100%;
    height: 460px;
}
.model3d-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    outline: none;
}
.model3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 14px;
    background: rgba(15,23,42,0.45);
    z-index: 3;
    text-align: center;
    padding: 16px;
}
.model3d-loading .fa-cube {
    font-size: 34px;
    animation: model3dSpin 3s linear infinite;
}
@keyframes model3dSpin {
    to { transform: rotateY(360deg); }
}
.model3d-loading.model3d-error {
    color: #f87171;
    font-weight: 600;
}
.model3d-error {
    color: #f87171;
    padding: 20px;
    text-align: center;
    font-size: 13px;
}
.model3d-error-link {
    display: inline-block;
    margin-top: 8px;
    color: #f59e0b;
    font-weight: 700;
    text-decoration: underline;
}
.model3d-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 4;
}
.model3d-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    font-size: 14px;
    transition: all 0.2s ease;
}
.model3d-btn:hover,
.model3d-btn.active {
    background: #f59e0b;
    color: #fff;
}
.model3d-hint {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.35);
    padding: 4px 8px;
    z-index: 4;
    display: none;
    pointer-events: none;
}
.model3d-layers-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    width: 220px;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(255,255,255,0.96);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    padding: 8px;
}
.model3d-layers-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.model3d-layer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    padding: 4px 2px;
    cursor: pointer;
}
.model3d-layer input {
    accent-color: #f59e0b;
    cursor: pointer;
}
@media (max-width: 600px) {
    .model3d-stage { height: 320px; }
    .model3d-toolbar { top: 6px; right: 6px; }
    .model3d-layers-panel { top: 6px; left: 6px; width: 180px; }
    .model3d-hint { font-size: 10px; }
}
