/* AeroCraft 3D - VIP Aviation & Automotive Upholstery Studio Stylesheet */

:root {
    --bg-dark: #0c0f14;
    --bg-surface: #141821;
    --bg-surface-elevated: #1a202c;
    --bg-glass: rgba(18, 22, 31, 0.78);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(223, 184, 108, 0.35);

    --gold-primary: #dfb86c;
    --gold-hover: #f1cf8a;
    --gold-dim: #94773c;
    --gold-gradient: linear-gradient(135deg, #f5e4ba 0%, #dfb86c 50%, #af8537 100%);

    --accent-blue: #00d4ff;
    --text-main: #f0f3f8;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* App Layout */
#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: relative;
}

/* Header */
.top-header {
    height: 60px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 50;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--gold-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a160d;
    box-shadow: 0 4px 12px rgba(223, 184, 108, 0.25);
}

.brand-title-group h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title-group h1 span {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(223, 184, 108, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
}

.brand-title-group p {
    font-size: 11px;
    color: var(--text-muted);
}

.model-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--gold-primary);
}

.model-badge svg {
    color: var(--gold-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #181206;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(223, 184, 108, 0.3);
}

.btn-gold:hover {
    box-shadow: 0 4px 16px rgba(223, 184, 108, 0.45);
    transform: translateY(-1px);
}

/* Main Viewport Workspace */
.workspace-container {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

#canvas-container {
    flex: 1;
    height: 100%;
    position: relative;
    touch-action: none;
}

/* Floating Left Toolbox (Cameras & Atmosphere) */
.left-floating-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.grid-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 6px;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.grid-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.grid-btn.active {
    background: rgba(223, 184, 108, 0.12);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 600;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--gold-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Right Customization Dock */
.right-customizer-dock {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 370px;
    height: 100%;
    background: rgba(18, 22, 31, 0.94);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--border-gold);
    display: none;
    flex-direction: column;
    z-index: 40;
    overflow-y: auto;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.65);
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.right-customizer-dock.active {
    display: flex !important;
}

.dock-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.dock-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.dock-header p {
    font-size: 11px;
    color: var(--text-muted);
}

.part-indicator {
    margin-top: 10px;
    background: rgba(223, 184, 108, 0.08);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.part-indicator span:first-child {
    font-size: 11px;
    color: var(--text-dim);
}

.part-indicator span:last-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-primary);
}

/* Component Navigation Tabs */
.category-tabs {
    display: flex;
    padding: 10px 16px;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.component-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.component-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.component-tab-btn.active {
    background: rgba(223, 184, 108, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

/* Customizer Sections */
.dock-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-label span {
    font-size: 11px;
    color: var(--gold-primary);
    font-weight: 500;
}

/* Material Swatches Grid */
.material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.material-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.material-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.material-card.active {
    border-color: var(--gold-primary);
    background: rgba(223, 184, 108, 0.1);
}

.mat-preview {
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.material-card span {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
}

.material-card p {
    font-size: 9px;
    color: var(--text-muted);
}

/* Luxury Color Swatches */
.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.color-swatch-btn {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.color-swatch-btn:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.color-swatch-btn.active {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(223, 184, 108, 0.6);
}

.custom-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.custom-color-row input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
}

.custom-color-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.custom-color-row input[type="color"]::-webkit-color-swatch {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.custom-color-row span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Smart Element Focus Bar & Free Flight HUD */

/* Barra de Foco Rápido de Elementos (Topo do Viewport) */
.quick-focus-bar {
    position: absolute;
    top: 16px;
    left: 290px;
    right: 380px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    z-index: 25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.quick-focus-bar::-webkit-scrollbar {
    height: 3px;
}

.focus-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.focus-btn:hover {
    background: rgba(223, 184, 108, 0.15);
    border-color: var(--gold-primary);
    color: #fff;
    transform: translateY(-1px);
}

.focus-btn.active {
    background: var(--gold-gradient);
    border-color: var(--gold-primary);
    color: #1a150a;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(223, 184, 108, 0.35);
}

.fuselage-mode-btn {
    flex: 1;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 4px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.fuselage-mode-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.fuselage-mode-btn.active {
    background: rgba(223, 184, 108, 0.22);
    color: var(--gold-primary);
    border-color: var(--border-gold);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(223, 184, 108, 0.25);
}

/* Modo de Navegação Toggle (Órbita vs Voo Livre) */
.nav-mode-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
    margin-bottom: 10px;
}

.nav-mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.nav-mode-btn.active {
    background: rgba(223, 184, 108, 0.18);
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
}

/* HUD Virtual de Voo / Caminhada na Cabine */
.flight-hud {
    position: absolute;
    bottom: 20px;
    right: 380px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    z-index: 25;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 220px;
    transition: var(--transition);
}

.flight-hud.collapsed {
    opacity: 0.6;
    transform: scale(0.95);
}

.flight-hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    justify-items: center;
}

.hud-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.hud-btn:hover {
    background: rgba(223, 184, 108, 0.25);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.hud-btn:active {
    background: var(--gold-primary);
    color: #141822;
    transform: scale(0.92);
}

.hud-elevation-row {
    display: flex;
    gap: 6px;
}

.hud-elevation-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.hud-elevation-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--gold-primary);
}

.hud-speed-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-dim);
}

.hud-speed-control input[type="range"] {
    width: 100px;
    accent-color: var(--gold-primary);
    height: 3px;
}

/* Center Empty State / Upload Prompt */
.empty-state-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    pointer-events: all;
    background: radial-gradient(circle at center, rgba(20, 24, 34, 0.65) 0%, rgba(12, 15, 20, 0.95) 100%);
    transition: opacity 0.35s ease;
}

.empty-state-card {
    background: rgba(20, 24, 33, 0.92);
    backdrop-filter: blur(20px);
    border: 1.5px dashed var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 42px 48px;
    max-width: 540px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(223, 184, 108, 0.15);
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(223, 184, 108, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    box-shadow: 0 0 24px rgba(223, 184, 108, 0.25);
}

.empty-state-card h2 {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.empty-state-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.btn-lg {
    padding: 12px 28px !important;
    font-size: 13px !important;
}

.empty-state-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 4px 0;
}

.empty-state-divider::before,
.empty-state-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.empty-state-divider span {
    padding: 0 12px;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contextual Edit Tags (Aparecem somente quando o elemento está enquadrado) */
.contextual-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(14, 18, 26, 0.92);
    border: 1.5px solid var(--gold-primary);
    border-radius: 20px;
    padding: 6px 12px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px rgba(223, 184, 108, 0.4);
    z-index: 20;
    white-space: nowrap;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, box-shadow 0.2s;
    animation: tagFadeIn 0.35s ease-out;
}

.contextual-tag:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--gold-primary);
    color: #141822;
    box-shadow: 0 6px 20px rgba(223, 184, 108, 0.7);
}

.contextual-tag span.tag-icon {
    font-size: 14px;
}

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Floating Element Action Card (Positioned at TOP as requested) */
.element-action-card {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-60px);
    background: rgba(18, 22, 31, 0.94);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(223, 184, 108, 0.2);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.element-action-card.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.btn-close-action-bar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    margin-left: 4px;
}

.btn-close-action-bar:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.4);
}

.btn-close-dock {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-close-dock:hover {
    background: rgba(223, 184, 108, 0.2);
    color: var(--gold-primary);
    border-color: var(--border-gold);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.element-action-title {
    display: flex;
    flex-direction: column;
}

.element-action-title span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.element-action-title small {
    font-size: 10px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.element-quick-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 11px !important;
}

/* 3D Interactive Hotspot Markers */
.hotspot-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(20, 24, 34, 0.85);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 14px rgba(223, 184, 108, 0.5);
    transition: transform 0.15s ease, background 0.15s ease;
    z-index: 10;
    pointer-events: all;
}

.hotspot-pin:hover {
    transform: translate(-50%, -50%) scale(1.25);
    background: var(--gold-primary);
    color: #141822;
    box-shadow: 0 0 20px rgba(223, 184, 108, 0.85);
}

.hotspot-pin .hotspot-label {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 18, 25, 0.9);
    border: 1px solid var(--border-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.hotspot-pin:hover .hotspot-label {
    opacity: 1;
}

/* Ocultar elementos em modo apresentação */
body.presentation-mode .quick-focus-bar,
body.presentation-mode .flight-hud,
body.presentation-mode .hotspot-pin {
    display: none !important;
}
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.slider-item input[type="range"] {
    accent-color: var(--gold-primary);
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    cursor: pointer;
}

/* Embroidery & Logo Section */
.embroidery-preset-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.embroidery-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.embroidery-btn:hover {
    border-color: var(--gold-primary);
}

.embroidery-btn span {
    font-size: 10px;
    color: var(--text-muted);
}

/* Bottom Hint Bar */
.bottom-hint-bar {
    position: absolute;
    bottom: 16px;
    left: 20px;
    background: rgba(14, 18, 25, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
    z-index: 20;
}

.bottom-hint-bar b {
    color: var(--gold-primary);
}

/* Presentation Mode (Showroom) */
body.presentation-mode .top-header,
body.presentation-mode .left-floating-panel,
body.presentation-mode .right-customizer-dock,
body.presentation-mode .bottom-hint-bar {
    display: none !important;
}

.exit-presentation-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

body.presentation-mode .exit-presentation-btn {
    display: inline-flex !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spec-modal-card {
    width: 820px;
    max-width: 92vw;
    max-height: 90vh;
    background: #141822;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.spec-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.spec-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spec-render-preview {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec-grid-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-detail-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.spec-detail-box small {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gold-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.spec-detail-box p {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}

.spec-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

/* Notifications Toast */
.notification-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1e2533;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    opacity: 0;
    z-index: 300;
    pointer-events: none;
}

.notification-toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-toast.success {
    border-color: #2ec4b6;
    color: #cbf3f0;
}

.notification-toast.warning {
    border-color: #ff9f1c;
    color: #ffe5b4;
}

.notification-toast.error {
    border-color: #e71d36;
    color: #ffcdd2;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 15, 20, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(223, 184, 108, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Panel Toggle & Header (Hidden on Desktop) */
.mobile-panel-toggle-btn {
    display: none;
}

.mobile-panel-header {
    display: none;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0.4; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (Otimização para Telas de Celular)
   ========================================================================== */
@media (max-width: 768px) {
    .top-header {
        height: 52px;
        padding: 0 10px;
        gap: 8px;
    }

    .brand-logo-icon {
        width: 28px;
        height: 28px;
    }

    .brand-title-group h1 {
        font-size: 13px;
        gap: 5px;
    }

    .brand-title-group h1 span {
        font-size: 9px;
        padding: 1px 4px;
    }

    .brand-title-group p,
    .model-badge {
        display: none !important;
    }

    .header-actions {
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-actions::-webkit-scrollbar {
        display: none;
    }

    .header-actions .btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        gap: 5px;
    }

    /* Botão flutuante para abrir Câmeras & Luz no celular */
    .mobile-panel-toggle-btn {
        position: absolute;
        bottom: 14px;
        left: 12px;
        z-index: 32;
        background: var(--bg-glass);
        backdrop-filter: blur(14px);
        color: var(--gold-primary);
        border: 1px solid var(--border-gold);
        border-radius: 24px;
        padding: 9px 14px;
        font-size: 12px;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        cursor: pointer;
        align-items: center;
        gap: 6px;
    }

    /* Painel esquerdo vira gaveta compacta no celular */
    .left-floating-panel {
        top: 10px;
        left: 10px;
        width: min(270px, calc(100vw - 20px));
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        padding: 12px;
        gap: 12px;
        z-index: 45;
        transform: translateX(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
    }

    .left-floating-panel.mobile-open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border-color);
        font-size: 12px;
        font-weight: 700;
        color: var(--gold-primary);
    }

    /* Barra de ação rápida no topo mais compacta e rolável */
    .element-action-card {
        top: 8px;
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 8px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 12px;
    }

    .element-action-title {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .element-action-title span {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .element-action-title small {
        font-size: 9px;
        flex-shrink: 0;
    }

    .element-quick-actions {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .element-quick-actions::-webkit-scrollbar {
        display: none;
    }

    .element-quick-actions .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Dock de customização vira Bottom Sheet no celular (deixa o 3D visível em cima!) */
    .right-customizer-dock {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 46dvh;
        max-height: 46dvh;
        border-left: none;
        border-top: 1px solid var(--border-gold);
        border-radius: 18px 18px 0 0;
        animation: slideInUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dock-header {
        padding: 12px 14px;
    }

    .dock-header h2 {
        font-size: 13px;
    }

    .dock-header p {
        display: none;
    }

    .category-tabs {
        padding: 8px 12px;
    }

    .dock-section {
        padding: 12px 14px;
    }

    .material-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .color-palette {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    /* Oculta dicas de teclado desktop no celular */
    .bottom-hint-bar {
        display: none !important;
    }

    .empty-state-card {
        width: 92vw;
        padding: 24px 18px;
    }

    .empty-state-card h2 {
        font-size: 18px;
    }

    .spec-modal-card {
        width: 94vw;
        max-height: 90dvh;
        overflow-y: auto;
    }

    .spec-details-grid {
        grid-template-columns: 1fr;
    }

    .notification-toast {
        bottom: auto;
        top: 62px;
        max-width: 90vw;
        text-align: center;
        font-size: 12px;
        padding: 8px 14px;
    }
}

/* Impressão / Print Spec Sheet */
@media print {
    body * {
        visibility: hidden;
    }
    #spec-sheet-modal, #spec-sheet-modal * {
        visibility: visible;
    }
    #spec-sheet-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: #fff !important;
        color: #000 !important;
    }
    .spec-modal-card {
        border: none !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .spec-modal-footer, .spec-modal-header button {
        display: none !important;
    }
    .spec-detail-box {
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
    }
    .spec-detail-box p {
        color: #0f172a !important;
    }
}
