.page-tryon3d {
    animation: fadeIn 0.28s ease;
}

.tryon3d-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
}

.tryon3d-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tryon3d-head h3 {
    font-size: 18px;
    font-weight: 600;
}

.tryon3d-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tryon3d-tip {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.tryon3d-stage {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 80% 14%, rgba(115, 173, 255, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(23, 28, 38, 0.95), rgba(14, 17, 24, 0.98));
}

.tryon3d-mount {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 520px;
    position: relative;
}

.tryon3d-mount model-viewer {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.tryon3d-loading,
.tryon3d-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.tryon3d-loading {
    color: #d6deee;
}

.tryon3d-error {
    color: #ff9a9a;
}

.tryon3d-status {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.tryon3d-status.ok {
    color: #6edb95;
}

.tryon3d-status.error {
    color: #ff8f8f;
}

@media (max-width: 900px) {
    .tryon3d-mount {
        height: min(62vh, 520px);
        min-height: 380px;
    }
}
