/* ==========================================================================
   RECOVEC 3D - Stylesheet
   Design System: Premium Dark Cyber / Glassmorphic Minimalist
   Fonts: Headings: Syne, Body: Outfit
   ========================================================================== */

:root {
    --bg-dark: #0a0a0b;
    --card-bg-glass: rgba(18, 18, 20, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Harmonized Curated Colors (No generic red/blue/green) */
    --accent-primary: #cca353; /* Warm Elegant Gold */
    --accent-primary-glow: rgba(204, 163, 83, 0.3);
    --accent-secondary: #6366f1; /* Deep Indigo */
    --accent-success: #10b981; /* Premium Emerald */
    --accent-danger: #ef4444; /* Vivid Coral/Red */
    --accent-warn: #f59e0b; /* Golden Amber */
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* Base resets and overrides */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 1.5rem 0;
}

/* Splash Screen customization overrides if any */
.splash-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.splash-logo span {
    color: var(--accent-primary);
}

/* Header & navigation specific tweaks */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}
.navbar.glass {
    background: rgba(10, 10, 11, 0.65);
    backdrop-filter: blur(16px) saturate(120%);
    border-bottom: 1px solid var(--border-glass);
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo span {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}
.logo span span {
    color: var(--accent-primary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary-glow);
}

/* SECTION 1: BENTO GLASSMORPHIC CATALOG */
.menu-container {
    padding-top: 140px;
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
}
.menu-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}
.menu-header h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.menu-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Bento Grid System - Vanguard 3D */
.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: 260px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Card Glassmorphism */
.tile {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(18, 18, 20, 0.4);
    border: 1px solid var(--border-glass);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(16px);
}

/* Tile Layout Variations */
.tile-large {
    grid-column: span 2;
    grid-row: span 1;
}
.tile-tall {
    grid-row: span 2;
}

/* Featured / Olympus Gold Special Glow */
.tile-gold {
    background: linear-gradient(135deg, rgba(204, 163, 83, 0.12) 0%, rgba(18, 18, 20, 0.3) 100%);
    border: 1.5px solid rgba(204, 163, 83, 0.4);
    box-shadow: 0 10px 40px rgba(204, 163, 83, 0.08), 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Hover Mechanics */
.tile:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}
.tile-gold:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 45px rgba(204, 163, 83, 0.25), 0 0 20px var(--accent-primary-glow);
}

.tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0) 40%, rgba(10, 10, 11, 0.95) 100%);
    z-index: 1;
    transition: var(--transition-smooth);
}
.tile:hover::before {
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.1) 20%, rgba(10, 10, 11, 0.98) 100%);
}

.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tile:hover .tile-bg {
    transform: scale(1.06);
}

.tile-content {
    position: relative;
    z-index: 2;
    transform: translateZ(25px);
    transition: var(--transition-smooth);
}
.tile-title {
    font-size: 1.45rem;
    margin: 0 0 6px 0;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.01em;
}
.tile-gold .tile-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(204, 163, 83, 0.3);
}
.tile-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 0 18px 0;
    line-height: 1.45;
}
.tile-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.tile-meta span {
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}
.tile-gold .tile-meta span {
    border-color: rgba(204, 163, 83, 0.2);
    color: var(--accent-primary);
    background: rgba(204, 163, 83, 0.05);
}

/* Action Hover Buttons */
.tile-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
}
.tile:hover .tile-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Add Project Card Style */
.tile-new {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.01);
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 24px;
}
.tile-new:hover {
    border-style: solid;
    border-color: var(--accent-primary);
    background: rgba(204, 163, 83, 0.02);
}
.tile-new-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
}
.tile-new:hover .tile-new-icon {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-primary-glow);
    border-color: var(--accent-primary);
    transform: scale(1.1) rotate(90deg);
}

/* Loading status card */
.tile-loader {
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* SECTION 2: HYBRID EDITOR VIEW */
.editor-container {
    padding-top: 80px;
    height: calc(100vh - 80px);
    box-sizing: border-box;
    background-color: #08080a;
}
.editor-layout {
    display: grid;
    grid-template-columns: 290px 1fr 340px;
    height: 100%;
    width: 100%;
}

/* Glassmorphic Side Panels */
.editor-panel {
    background: rgba(13, 13, 15, 0.7);
    backdrop-filter: blur(20px) saturate(120%);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    z-index: 5;
}
.panel-left {
    border-right: 1px solid var(--border-glass);
}
.panel-right {
    border-left: 1px solid var(--border-glass);
    border-right: none;
    background: rgba(14, 14, 17, 0.75);
}
.panel-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}
.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Tabs System inside Room Details Panel */
.editor-tabs {
    display: flex;
    background: rgba(10, 10, 11, 0.5);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 6px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid transparent;
    text-align: center;
}
.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}
.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(204, 163, 83, 0.05);
}
.tab-panes-container {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.tab-pane {
    display: none;
    flex-direction: column;
    gap: 20px;
    animation: tabFadeIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tab-pane.active {
    display: flex;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-glass);
    background: rgba(10, 10, 11, 0.5);
}

/* Form Styling within Editor Panels - Vanguard Modern */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    font-weight: 600;
    font-family: 'Syne', sans-serif;
}
.form-group input[type="text"],
.form-group select,
.form-group textarea,
.form-group input[type="number"] {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.88rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary-glow), inset 0 2px 4px rgba(0, 0, 0, 0.15);
    background: rgba(10, 10, 12, 0.8);
}
.form-group input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 100%;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    background: none;
}
.form-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.form-group input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Dimensions Input Layout */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Floor Selectors */
.floor-selector-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.floor-selector-wrapper label {
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}
.floor-controls {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    gap: 10px;
}

/* Room list item in editor panel */
.rooms-list-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-glass);
    background: rgba(10, 10, 12, 0.3);
    border-radius: 14px;
    margin-bottom: 12px;
}
.empty-list-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 1.8rem;
    margin: 0;
}
.room-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-fast);
}
.room-item-row:last-child {
    border-bottom: none;
}
.room-item-row:hover {
    background: rgba(255, 255, 255, 0.02);
}
.room-item-row.active {
    background: rgba(204, 163, 83, 0.06);
    border-left: 4px solid var(--accent-primary);
    padding-left: 14px;
}
.room-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.room-item-dims {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Selected Room Textures Box */
.texture-section {
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 18px;
    background: rgba(10, 10, 12, 0.25);
    margin-bottom: 16px;
}
.texture-section:last-child {
    margin-bottom: 0;
}
.texture-section h4 {
    margin: 0 0 12px 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-weight: 600;
}
.texture-upload-box {
    position: relative;
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: rgba(10, 10, 12, 0.4);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}
.texture-upload-box:hover {
    border-color: var(--accent-primary);
    background: rgba(204, 163, 83, 0.02);
    border-style: solid;
}
.preview-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.9;
    transition: var(--transition-smooth);
}
.texture-upload-box:hover .preview-thumbnail {
    transform: scale(1.05);
}
.upload-label {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    color: var(--text-secondary);
    pointer-events: none;
    text-align: center;
    padding: 0 8px;
}
.texture-upload-box:hover .upload-label {
    color: var(--text-primary);
}
.slider-group {
    margin-top: 10px;
}
.slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.slider-group label span {
    color: var(--accent-primary);
    font-weight: 600;
}
.slider-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    margin-top: 8px;
    transition: var(--transition-fast);
}
.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-primary);
    border: 2px solid #08080a;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.slider-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 0 15px var(--accent-primary), 0 0 25px var(--accent-primary-glow);
}

/* Center Workspace / Grid Canvas */
.editor-workspace {
    display: flex;
    flex-direction: column;
    background: #060608;
    position: relative;
}
.workspace-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 15, 0.6);
    backdrop-filter: blur(14px);
    z-index: 2;
}
.workspace-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.workspace-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.workspace-actions .separator {
    color: var(--border-glass);
    margin: 0 6px;
}
.workspace-canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
}
.workspace-canvas-container:active {
    cursor: grabbing;
}
#grid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.canvas-instructions {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid var(--border-glass);
    padding: 12px 18px;
    border-radius: 12px;
    max-width: 320px;
    pointer-events: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.canvas-instructions p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* SECTION 3: 3D FIRST PERSON RECORRIDO */
.viewer-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: #020202;
    overflow: hidden;
}
#threejs-canvas-container {
    width: 100%;
    height: 100%;
    display: block;
}

/* HUD Overlay */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
}
.hud-overlay > * {
    pointer-events: auto;
}

.hud-header {
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 20px 28px;
    backdrop-filter: blur(20px);
    max-width: 360px;
    align-self: flex-start;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    animation: slideDown 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hud-header h2 {
    margin: 0 0 6px 0;
    font-size: 1.3rem;
    color: #ffffff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}
#hud-floor-indicator {
    font-size: 0.82rem;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hud-controls-hint {
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid var(--border-glass);
    border-radius: 35px;
    padding: 14px 28px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}
.control-key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.control-mouse {
    width: 16px;
    height: 24px;
    border: 2px solid var(--text-secondary);
    border-radius: 10px;
    position: relative;
}
.control-mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 1px;
}
.hud-controls-hint .separator {
    color: var(--border-glass);
    margin: 0 10px;
}

/* Round minimap styled ultra premium */
.hud-minimap-container {
    position: absolute;
    bottom: 40px;
    left: 40px;
    padding: 12px;
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 50% !important; /* Make it circular */
    border: 1.5px solid rgba(204, 163, 83, 0.3) !important;
}
#minimap-canvas {
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: block;
}
.minimap-title {
    position: absolute;
    bottom: 12px;
    font-size: 0.65rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(10, 10, 12, 0.9);
    padding: 3px 8px;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid var(--border-glass);
}

/* HUD Actions & Exit */
.hud-actions {
    display: flex;
    gap: 20px;
    align-self: flex-end;
    align-items: center;
    margin-left: auto;
}
.floor-nav-3d {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.75);
    border: 1px solid var(--border-glass);
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.btn-circle:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-primary-glow);
    border-color: var(--accent-primary);
}
.btn-circle:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    background: rgba(10, 10, 12, 0.4);
}

/* Premium utility classes (Reused from script.css / updated) */
.glass-card {
    background: rgba(18, 18, 22, 0.6);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 28px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
    border-radius: 10px;
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-glow {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px var(--accent-primary-glow);
}
.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-primary-glow);
    background: #dcb363;
}
.btn-outline-glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}
.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}
.btn-danger {
    color: #ff5555;
    border-color: rgba(255, 85, 85, 0.2);
}
.btn-danger:hover {
    background: rgba(255, 85, 85, 0.1);
    border-color: rgba(255, 85, 85, 0.4);
}
.btn-danger-solid {
    background: var(--accent-danger);
    color: white;
}
.btn-danger-solid:hover {
    background: #d32f2f;
}

/* Utilities */
.hidden {
    display: none !important;
}

.loader-ring {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
}
.btn-loader {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

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

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(10, 10, 11, 0.3);
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Recent Textures Gallery */
.recent-textures-container {
    background: rgba(10, 10, 12, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 10px 12px;
}
.recent-textures-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.recent-texture-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1.5px solid var(--border-glass);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.recent-texture-thumb:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: var(--accent-primary);
    box-shadow: 0 6px 15px var(--accent-primary-glow);
}
.recent-texture-thumb.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}
/* Scrollbar para la tira de texturas */
.recent-textures-grid::-webkit-scrollbar {
    height: 4px;
}
.recent-textures-grid::-webkit-scrollbar-track {
    background: transparent;
}
.recent-textures-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

/* Ghost floors toggle button states */
.ghost-btn-active {
    border-color: rgba(96, 165, 250, 0.5) !important;
    color: rgba(96, 165, 250, 0.9) !important;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.15), inset 0 0 8px rgba(96, 165, 250, 0.04) !important;
    transition: all 0.25s ease !important;
}
.ghost-btn-active svg { opacity: 1; }
.ghost-btn-active:hover {
    border-color: rgba(96, 165, 250, 0.8) !important;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.3) !important;
}
.ghost-btn-inactive {
    border-color: var(--border-glass) !important;
    color: var(--text-muted) !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}
.ghost-btn-inactive svg { opacity: 0.35; }
.ghost-btn-inactive:hover { opacity: 0.75 !important; }
