/* ==========================================================================
   Dino 3D AI Engine - Single Stage Centered VIP Studio (2026 Edition)
   ========================================================================== */

:root {
    --bg-dark: #080c14;
    --bg-surface: #0c101c;
    --bg-card: rgba(14, 19, 32, 0.85);
    --bg-card-hover: rgba(20, 27, 44, 0.95);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --border-glow-primary: rgba(16, 185, 129, 0.45);
    --border-glow-cyan: rgba(6, 182, 212, 0.45);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #059669; /* Emerald Green */
    --secondary: #06b6d4; /* Neon Cyan */
    --accent-violet: #8b5cf6; /* Electric Violet */
    --accent-amber: #f59e0b; /* Bright Amber */
    
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --cyan-glow: rgba(6, 182, 212, 0.3);
    --violet-glow: rgba(139, 92, 246, 0.3);

    --font-sans: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* Strict SVG locking for icon utilities only (excluding brand logo) */
svg.icon, .icon, button > svg, .sample-chip > svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle;
}

/* Ambient Background Orbs - Disabled for pure clean matte look */
.ambient-orb {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #060910;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body.ferah-layout {
    background-color: #080c14 !important;
    background-image: none !important;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4, .brand-name {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Full Width App Layout */
.app-container-full {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Top VIP Navbar Across Screen */
.top-vip-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    background: rgba(11, 15, 25, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(16, 185, 129, 0.15);
}

.nav-brand-area {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-brand-area:hover {
    transform: scale(1.02);
}

.logo-icon.dino-logo.titanium-faceted-logo {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 12px rgba(16, 185, 129, 0.55)) drop-shadow(0 4px 18px rgba(0, 0, 0, 0.8)) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.nav-brand-area:hover .logo-icon.dino-logo.titanium-faceted-logo {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 4px 20px rgba(16, 185, 129, 0.85)) drop-shadow(0 4px 22px rgba(0, 0, 0, 0.9)) !important;
}

.brand-logo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
}

.logo-text h1.brand-name.titanium-brand-text {
    font-size: 1.95rem !important;
    font-weight: 950 !important;
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 55%, #94a3b8 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: 2.5px !important;
    line-height: 1 !important;
    margin: 0 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    display: inline-block;
}

/* Center DINO STORE 2026 Modern Pill */
.btn-dino-store-nav.modern-store-capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(17, 24, 39, 0.80) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 16px 0 14px !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    height: 42px !important;
    box-sizing: border-box;
}

.btn-dino-store-nav.modern-store-capsule:hover {
    transform: scale(1.03) translateY(-1px) !important;
    border-color: rgba(16, 185, 129, 0.55) !important;
    background: rgba(17, 24, 39, 0.95) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

.store-tag.modern-emerald-tag {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    background: #10b981 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4) !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Compact Credit Vault Pill - Unified 36px Stepper Tab Style */
.nav-credit-pill.modern-credit-vault-compact {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    height: 36px !important;
    box-sizing: border-box !important;
    position: relative;
    user-select: none;
}

.nav-credit-pill.modern-credit-vault-compact:hover {
    border-color: rgba(16, 185, 129, 0.65) !important;
    background: rgba(16, 185, 129, 0.16) !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.credit-add-pill {
    color: #34d399 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.32) !important;
    padding: 2px 7px !important;
    border-radius: 5px !important;
    margin-left: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    letter-spacing: 0.2px !important;
    transition: all 0.2s ease !important;
}

.nav-credit-pill.modern-credit-vault-compact:hover .credit-add-pill {
    background: rgba(16, 185, 129, 0.3) !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    color: #ffffff !important;
}

/* Minimalist Profile Badge - Unified 36px Stepper Tab Style */
.user-profile-badge-minimal {
    height: 36px !important;
    padding: 0 8px 0 6px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer;
    box-sizing: border-box !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.user-profile-badge-minimal:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
    transform: translateY(-1px);
}

.avatar-wrap-minimal {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar-minimal {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(16, 185, 129, 0.6) !important;
    object-fit: cover !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.35) !important;
}

.online-indicator-glow {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0b0f19;
    box-shadow: 0 0 4px #10b981;
}

.profile-dropdown-arrow {
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.user-profile-badge-minimal:hover .profile-dropdown-arrow {
    color: #ffffff;
    transform: translateY(1px);
}

.credit-icon.emerald-diamond { 
    font-size: 0.88rem !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    line-height: 1 !important;
    margin: 0 !important;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6)) !important;
}

.btn-buy-credit-mini.modern-emerald-btn {
    background: #10b981 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    padding: 0 14px !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    line-height: 1 !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
    letter-spacing: 0.4px;
}

.btn-buy-credit-mini.modern-emerald-btn:hover { 
    transform: scale(1.05) !important; 
    background: #059669 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6) !important; 
}

.user-profile-badge.modern-profile-capsule { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 12px; 
    background: rgba(17, 24, 39, 0.80) !important; 
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important; 
    padding: 0 16px 0 6px !important; 
    border-radius: 30px !important; 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 42px !important;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
}

.user-profile-badge.modern-profile-capsule:hover { 
    background: rgba(17, 24, 39, 0.95) !important; 
    border-color: rgba(16, 185, 129, 0.4) !important; 
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.2);
}

.user-avatar.modern-avatar { 
    width: 30px !important; 
    height: 30px !important; 
    border-radius: 50% !important; 
    border: 2px solid #10b981 !important; 
    object-fit: cover !important; 
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important; 
}

.user-role.modern-role-pill { 
    background: rgba(16, 185, 129, 0.15) !important; 
    color: #34d399 !important; 
    border: 1px solid rgba(16, 185, 129, 0.3) !important; 
    font-weight: 800 !important; 
    font-size: 0.60rem !important; 
    padding: 2px 6px !important; 
    border-radius: 6px !important;
    letter-spacing: 0.4px !important;
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
}

.profile-dropdown.modern-profile-dropdown,
.profile-dropdown { 
    position: absolute; 
    top: 46px; 
    right: 0; 
    background: rgba(11, 15, 25, 0.98); 
    border: 1px solid rgba(255, 255, 255, 0.12); 
    border-radius: 12px; 
    width: auto; 
    min-width: 275px; 
    max-width: 350px; 
    padding: 6px 0; 
    z-index: 1000; 
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 15px rgba(16, 185, 129, 0.15); 
    backdrop-filter: blur(24px); 
    overflow: hidden;
}

.dropdown-header { 
    padding: 10px 18px 8px 18px; 
    display: flex; 
    flex-direction: column; 
    gap: 3px; 
    min-width: 0;
}

.dropdown-header strong,
#dropdownName {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dropdown-header span,
#dropdownEmail {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.dropdown-divider { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 6px 0; }
.dropdown-item { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 9px 18px; 
    color: #cbd5e1; 
    font-size: 0.78rem; 
    text-decoration: none; 
    transition: all 0.15s ease; 
    white-space: nowrap;
}
.dropdown-item:hover { 
    background: rgba(16, 185, 129, 0.12); 
    color: #ffffff; 
    padding-left: 22px; 
}

.bg-3d-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    opacity: 0.65 !important;
}

.logo-icon.dino-logo {
    width: 68px !important;
    height: 52px !important;
    min-width: 68px !important;
    min-height: 52px !important;
    background: transparent !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon.dino-logo svg, .brand-logo-svg {
    width: 68px !important;
    height: 50px !important;
    min-width: 68px !important;
    min-height: 50px !important;
    filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.45)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

/* --- TITANIUM T-REX 3D BRAND ENGINE --- */
.titanium-trex-group {
    transform-origin: 50% 80%;
    animation: trexMajesticStance 4s ease-in-out infinite;
}

@keyframes trexMajesticStance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2px) rotate(1deg);
    }
}

.nav-brand-area:hover .titanium-trex-group {
    animation-duration: 1.5s;
    transform: scale(1.05) translateY(-2px);
}
.nav-brand-area:hover .brand-name {
    animation-duration: 0.55s !important;
}


.brand-sub {
    font-size: 0.60rem;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #38bdf8;
    display: block;
    margin-top: 1px;
    opacity: 0.9;
}

/* Header Right Actions */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
}

.nav-credit-pill {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    height: 36px !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-credit-pill[style*="display: none"],
.nav-credit-pill.auth-hidden {
    display: none !important;
}

.nav-credit-pill:hover {
    border-color: rgba(16, 185, 129, 0.65) !important;
    background: rgba(16, 185, 129, 0.16) !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

.credit-info-left {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    height: 38px !important;
}

.credit-icon { 
    font-size: 1.0rem !important; 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    line-height: 1 !important;
    margin: 0 !important;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6)) !important;
}

.credit-amount { 
    font-size: 0.84rem !important; 
    font-weight: 800 !important; 
    color: #ffffff !important; 
    font-family: var(--font-display); 
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    line-height: 1 !important;
    letter-spacing: 0.3px;
    margin: 0 !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-buy-credit-mini {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    padding: 0 12px !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    line-height: 1 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    margin: 0 !important;
    letter-spacing: 0.3px;
}

.btn-buy-credit-mini:hover { 
    transform: scale(1.06); 
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.5); 
}

.user-profile-container { position: relative; user-select: none; }

.user-profile-badge { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); 
    border: 1.5px solid rgba(255, 255, 255, 0.12); 
    padding: 0 14px 0 5px; 
    border-radius: 30px; 
    cursor: pointer; 
    transition: all 0.25s ease;
    height: 38px;
    box-sizing: border-box;
}

.user-profile-badge:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }

.avatar-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #10b981; object-fit: cover; }
.online-indicator { position: absolute; bottom: -1px; right: -1px; width: 7px; height: 7px; border-radius: 50%; background: #10b981; border: 1.5px solid #090d18; }

.user-details { display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.user-name { font-size: 0.75rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.user-role { font-size: 0.6rem; color: #34d399; font-weight: 600; }
.dropdown-chevron { font-size: 0.55rem; color: var(--text-muted); }

/* Profile dropdown styles consolidated above in Modern Profile Dropdown section */

/* =================================================================
   HEADER AUTHENTICATION & LOGIN/SIGNUP BUTTONS (VIP 2026 DESIGN)
   ================================================================= */
.user-auth-buttons {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 36px;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9px;
    color: #e2e8f0;
    font-family: var(--font-display, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-nav-login svg {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.2);
    transform: translateY(-1px);
}

.btn-nav-login:hover svg {
    color: #38bdf8;
    transform: translateX(1px);
}

.btn-nav-login:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-nav-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 9px;
    color: #ffffff;
    font-family: var(--font-display, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.btn-nav-signup .btn-sparkle {
    font-size: 0.88rem;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
    animation: sparklePulse 2.5s infinite ease-in-out;
}

@keyframes sparklePulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    50% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

.btn-nav-signup::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-nav-signup:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
    border-color: rgba(110, 231, 183, 0.7);
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-1.5px) scale(1.02);
}

.btn-nav-signup:hover::after {
    left: 140%;
}

.btn-nav-signup:active {
    transform: translateY(0) scale(0.99);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* =================================================================
   SINGLE STAGE CENTERED VIEWPORT (100% Symmetrical Box Swap)
   ================================================================= */
.main-centered-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px !important;
    min-height: calc(100vh - 56px);
    box-sizing: border-box;
    animation: fadeInPure 0.25s ease;
}

@keyframes fadeInPure {
    from { opacity: 0; }
    to { opacity: 1; }
}

.single-stage-wrapper {
    width: 100%;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: auto 0;
    transition: none !important;
}

.single-stage-wrapper.expanded-stage-wrapper {
    max-width: 100% !important;
}

/* Symmetrical Stepper Bar Directly Above Stage Card */
.hero-stepper-bar-exact {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 15, 29, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 3px 4px;
    border-radius: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.step-tab {
    flex: 1;
    height: 34px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.step-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.step-tab.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.step-tab.active .step-num {
    background: #10b981;
    color: #ffffff;
}

/* Stage Card Container - Fixed Dimensions Identical Across All Views */
.stage-card,
.spatial-stage-card {
    width: 100% !important;
    height: 780px !important;
    min-height: 780px !important;
    max-height: 780px !important;
    background: rgba(11, 16, 30, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 16px !important;
    padding: 12px 18px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.stage-content-pane {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    box-sizing: border-box;
}

/* STEP 1 STYLES */
.hero-header {
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    margin-top: 0;
}

.hero-header h2 {
    font-size: 2.3rem;
    font-weight: 800;
    text-align: center !important;
    background: linear-gradient(135deg, #ffffff 0%, #34d399 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 8px 0;
    letter-spacing: -0.03em;
    width: 100%;
}

.hero-header p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    text-align: center !important;
    line-height: 1.5;
}

.hero-badge-wrap { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    width: 100%;
}

.hero-badge { 
    font-size: 0.76rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
    padding: 6px 20px; 
    border-radius: 24px; 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.18)); 
    color: #34d399; 
    border: 1px solid rgba(16, 185, 129, 0.45); 
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   SPATIAL 3D STUDIO WORKSTATION & PODIUMS (2026 EDITION)
   ========================================================================== */

/* Spacious Luxury Prompt-to-3D Terminal Console */
#view-create {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.spatial-prompt-terminal {
    background: rgba(13, 18, 32, 0.80);
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 350px;
    min-height: 350px;
    max-height: 350px;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.spatial-prompt-terminal:focus-within {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(16, 185, 129, 0.18);
}

.creation-mode-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.prompt-terminal-main-box {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 2px 0;
    box-sizing: border-box;
}

.spatial-prompt-textarea {
    width: 100%;
    flex: 1;
    min-height: 0;
    height: 100%;
    background: transparent;
    border: none;
    color: #f8fafc;
    font-size: 0.96rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.55;
    resize: none;
    outline: none;
    padding: 4px 0;
    box-sizing: border-box;
}

.spatial-prompt-textarea::placeholder {
    color: #64748b;
    font-size: 0.88rem;
}

.prompt-terminal-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 8px;
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
}

.prompt-terminal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.upload-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-upload-spatial {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.btn-upload-spatial:hover {
    border-color: #10b981;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.btn-upload-spatial svg {
    width: 18px !important;
    height: 18px !important;
}

.upload-options-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 250px;
    background: rgba(13, 19, 36, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: popoverFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.upload-popover-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    width: 100%;
    color: #f8fafc;
}

.upload-popover-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.upload-popover-item .upi-icon {
    font-size: 1.25rem;
}

.upload-popover-item .upi-text {
    display: flex;
    flex-direction: column;
}

.upload-popover-item .upi-text strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

.upload-popover-item .upi-text small {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 1px;
}

.btn-spatial-generate {
    height: 38px;
    padding: 0 16px;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(4, 120, 87, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-spatial-generate:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 18px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-credit-tag {
    font-size: 0.70rem;
    opacity: 0.95;
    font-weight: 700;
}

.prompt-terminal-chips-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: nowrap;
    overflow: visible;
    min-width: 0;
}

.spatial-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.spatial-chip:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.spatial-chip.active-chip {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* =================================================================
   3D ART & SHADER STYLE SELECTOR (AAA ENGINE)
   ================================================================= */
.art-style-section {
    margin-top: 2px;
    margin-bottom: 2px;
    width: 100%;
}

.art-style-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    padding: 0 2px;
}

.ash-spark {
    font-size: 0.90rem;
    color: #c084fc;
}

.ash-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.ash-hint {
    font-size: 0.68rem;
    font-weight: 500;
    color: #64748b;
}

.art-style-capsules {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    width: 100%;
}

@media (max-width: 900px) {
    .art-style-capsules {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .art-style-capsules {
        grid-template-columns: repeat(2, 1fr);
    }
}

.art-style-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 9px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    user-select: none;
    height: 42px;
    box-sizing: border-box;
}

.art-style-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.art-style-pill.active {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(99, 102, 241, 0.2));
    border-color: #c084fc;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.35);
}

.asp-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.style-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.art-style-pill:hover .style-icon-img {
    transform: scale(1.18) rotate(3deg);
}

.art-style-pill.active .style-icon-img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.8));
}

.asp-icon {
    font-size: 1.05rem;
}

.asp-info {
    display: flex;
    flex-direction: column;
}

.asp-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.asp-sub {
    font-size: 0.62rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 1px;
}

.art-style-pill.active .asp-sub {
    color: #e9d5ff;
}

/* Shading Mode Viewport Enhancements */
#modelViewer.viewer-clay-mode {
    filter: grayscale(100%) brightness(1.08) contrast(1.15) !important;
}

#modelViewer.viewer-wireframe-mode {
    filter: invert(15%) sepia(80%) saturate(300%) hue-rotate(130deg) contrast(1.3) !important;
}

/* =================================================================
   UNIFIED MINIMALIST FLOATING STUDIO BAR & POPOVERS (MAX FPS)
   ================================================================= */
.studio-cinematic-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 20;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 19, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 4px 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    margin-bottom: 4px;
    gap: 6px;
    box-sizing: border-box;
    transform: translateZ(0);
    overflow: visible;
}

.scb-nav-group,
.scb-action-group {
    display: contents !important;
}

.scb-item-col,
.scb-dropdown-item {
    position: relative;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
}

.scb-item-col > button,
.scb-dropdown-item > button,
.scb-dropdown-item .scb-pill-btn,
.scb-pill-btn,
.scb-action-btn {
    width: 100% !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.70rem;
    font-weight: 700;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scb-zen-btn {
    width: 32px !important;
    flex: 0 0 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
}

.scb-pill-btn:hover,
.scb-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.scb-pill-btn.active-popover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #38bdf8;
}

.scb-btn-bone {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #c7d2fe !important;
}

.scb-btn-bone:hover {
    background: rgba(99, 102, 241, 0.25) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
}

.scb-btn-bone.active {
    background: rgba(99, 102, 241, 0.35) !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4) !important;
}

.spb-icon {
    font-size: 0.80rem;
    line-height: 1;
}

.spb-label {
    font-size: 0.70rem;
    font-weight: 700;
    color: inherit;
}

.spb-caret {
    font-size: 0.60rem;
    opacity: 0.65;
    margin-left: 1px;
}

/* Floating Popover Menus */
.scb-popover-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: #090e1a;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
    z-index: 100;
    display: none;
    box-sizing: border-box;
}

.scb-popover-right {
    left: auto !important;
    right: 0 !important;
}

.scb-popover-wide {
    min-width: 360px !important;
    width: 360px !important;
}

.scb-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spm-title {
    font-size: 0.64rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 6px 5px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 3px;
}

.spm-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 0.70rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.spm-option:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.spm-option.active {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.spm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* Action Button Variants */
.scb-action-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
}

.scb-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.scb-retexture-btn {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #d8b4fe !important;
}

.scb-retexture-btn:hover {
    background: rgba(168, 85, 247, 0.25) !important;
    border-color: #a855f7 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.scb-render-btn {
    background: rgba(6, 182, 212, 0.12) !important;
    border-color: rgba(6, 182, 212, 0.35) !important;
    color: #38bdf8 !important;
}

.scb-render-btn:hover {
    background: rgba(6, 182, 212, 0.25) !important;
    border-color: #06b6d4 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.scb-export-btn {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    width: 100% !important;
}

.scb-export-btn:hover {
    background: rgba(16, 185, 129, 0.25) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.scb-zen-btn {
    font-size: 0.82rem !important;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
}

/* Backdrop Styles */
#modelViewer.backdrop-grid {
    background-color: #0b0f19 !important;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.15) 1px, transparent 1px) !important;
    background-size: 30px 30px !important;
    background-position: center bottom !important;
}

#modelViewer.backdrop-transparent {
    background-color: transparent !important;
    background-image: 
        linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.04) 75%) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px !important;
}

/* Zen Mode Fullscreen Expanding */
body.zen-mode-active .stage-card,
body.zen-mode-active .spatial-stage-card,
body.zen-mode-active .single-stage-wrapper,
body.zen-mode-active .main-centered-stage,
body.zen-mode-active .studio-stage-flex,
body:has(.zen-fullscreen) .stage-card,
body:has(.zen-fullscreen) .spatial-stage-card,
body:has(.zen-fullscreen) .single-stage-wrapper,
body:has(.zen-fullscreen) .main-centered-stage,
body:has(.zen-fullscreen) .studio-stage-flex {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    perspective: none !important;
    contain: none !important;
}

.studio-viewport-col.zen-fullscreen,
.viewport-card.zen-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 14px 18px !important;
    background: #080c14 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.95) !important;
}

.studio-viewport-col.zen-fullscreen #btnZenFullscreen {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    font-weight: bold !important;
    cursor: pointer !important;
    font-size: 1.15rem !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3) !important;
}

.studio-viewport-col.zen-fullscreen #btnZenFullscreen:hover {
    background: rgba(239, 68, 68, 0.4) !important;
    transform: scale(1.08) !important;
}

.studio-viewport-col.zen-fullscreen .preview-viewport,
.studio-viewport-col.zen-fullscreen .giant-studio-viewport {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: calc(100% - 90px) !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.studio-viewport-col.zen-fullscreen #viewport-model-content,
.studio-viewport-col.zen-fullscreen #viewport-image-content {
    width: 100% !important;
    height: 100% !important;
}

.studio-viewport-col.zen-fullscreen #modelViewer {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
}

.studio-viewport-col.zen-fullscreen .studio-cinematic-bar {
    position: relative !important;
    z-index: 100000 !important;
    margin-bottom: 6px !important;
    background: rgba(11, 16, 27, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

.studio-viewport-col.zen-fullscreen .unified-bottom-dock {
    position: relative !important;
    z-index: 100000 !important;
    margin-top: 6px !important;
    background: rgba(11, 16, 27, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
}

#modelViewer {
    width: 100%;
    height: 100%;
    display: block;
    contain: strict;
    will-change: transform;
    transform: translateZ(0);
    outline: none;
}

/* =================================================================
   FLOATING 3D RULER & SCALE TRANSFORMER WIDGET (BOTTOM-LEFT - MAX FPS)
   ================================================================= */
.model-ruler-scale-bar {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 3px 8px;
    height: 36px;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.scb-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    margin-right: 2px;
}

.scb-env-btn, .scb-mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scb-env-btn:hover, .scb-mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.scb-env-btn.active {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.scb-mode-btn.active {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: #c084fc;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.scb-tool-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.scb-tool-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.scb-btn-record {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(239, 68, 68, 0.35));
    border-color: #f43f5e;
    color: #ffe4e6;
}

.scb-btn-record:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.4), rgba(239, 68, 68, 0.5));
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

/* =================================================================
   FLOATING 3D RULER & SCALE TRANSFORMER WIDGET
   ================================================================= */
.model-ruler-scale-bar {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(13, 20, 38, 0.88) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 10px !important;
    padding: 3px 8px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    pointer-events: auto !important;
}

.mrsb-dim-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 2px 7px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mrsb-dim-box:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
    transform: translateY(-1px) !important;
}

.btn-preset-dim:hover {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px) !important;
}

.btn-preset-dim:active {
    transform: translateY(0) !important;
}

.export-dim-summary:hover {
    background: rgba(56, 189, 248, 0.14) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

/* ===================================================
   EXACT DIMENSIONS & 3D PRINTING MODAL (PREMIUM & SYMMETRICAL)
   =================================================== */

/* Hide Spin Buttons for all inputs in modal */
#modalExactDimensions input[type="number"]::-webkit-outer-spin-button,
#modalExactDimensions input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
#modalExactDimensions input[type="number"] {
    -moz-appearance: textfield !important;
}

/* Modal Card */
#modalExactDimensions .vip-modal-card {
    max-width: 580px !important;
    width: 95% !important;
    background: #0b101b !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(56, 189, 248, 0.1) !important;
    backdrop-filter: blur(12px) !important;
}

/* Top Toolbar: Unit Selector & Aspect Lock */
.dim-top-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
}

.dim-unit-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.dim-tb-label {
    font-size: 0.74rem !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.dim-unit-pill-selector {
    display: inline-flex !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
}

.dim-unit-btn {
    background: transparent !important;
    color: #94a3b8 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.dim-unit-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4) !important;
}

.dim-aspect-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #cbd5e1 !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
}

.dim-aspect-pill:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.dim-aspect-pill.active {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}

.dim-aspect-pill .dap-badge {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    font-weight: 800 !important;
}

.dim-aspect-pill:not(.active) .dap-badge {
    background: rgba(148, 163, 184, 0.15) !important;
    color: #94a3b8 !important;
}

/* 3D Axis Input Grid */
.dim-axis-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.dim-axis-card {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.dim-axis-card.card-x {
    border-color: rgba(56, 189, 248, 0.25) !important;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, rgba(56, 189, 248, 0.01) 100%) !important;
}

.dim-axis-card.card-y {
    border-color: rgba(168, 85, 247, 0.25) !important;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0%, rgba(168, 85, 247, 0.01) 100%) !important;
}

.dim-axis-card.card-z {
    border-color: rgba(16, 185, 129, 0.25) !important;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, rgba(16, 185, 129, 0.01) 100%) !important;
}

.dim-axis-card:focus-within {
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.dim-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
    white-space: nowrap !important;
}

.dim-axis-name {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.dim-axis-name.axis-x { color: #38bdf8 !important; }
.dim-axis-name.axis-y { color: #a855f7 !important; }
.dim-axis-name.axis-z { color: #10b981 !important; }

.dim-axis-sub {
    font-size: 0.65rem !important;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
}

.dim-input-capsule {
    display: flex !important;
    align-items: center !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    padding: 0 8px 0 10px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.dim-input-capsule:focus-within {
    border-color: #38bdf8 !important;
    background: rgba(0, 0, 0, 0.75) !important;
}

.dim-field-input {
    width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dim-field-unit {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-left: 6px !important;
    user-select: none !important;
    text-transform: lowercase !important;
}

/* Symmetrical Presets */
.dim-presets-section {
    margin-bottom: 16px !important;
}

.dim-presets-title {
    font-size: 0.70rem !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px !important;
}

.dim-presets-grid-row1 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
}

.dim-presets-grid-row2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

.dim-preset-card-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    color: #e2e8f0 !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    padding: 8px 10px !important;
    height: 36px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.dim-preset-card-btn:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    transform: translateY(-1px) !important;
}

.dim-preset-card-btn:active {
    transform: translateY(0) !important;
}

/* Info Summary Box */
.dim-info-summary-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.07) 0%, rgba(99, 102, 241, 0.07) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin-bottom: 18px !important;
}

.dim-isb-metrics {
    display: grid !important;
    grid-template-columns: 1fr 1.6fr !important;
    gap: 12px !important;
    align-items: center !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 8px !important;
}

.dim-isb-metric-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.dim-isb-m-label {
    font-size: 0.65rem !important;
    color: #94a3b8 !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.dim-isb-m-val {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif !important;
}

.dim-isb-m-val.highlight-cyan {
    color: #38bdf8 !important;
}

.dim-isb-desc {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    line-height: 1.45 !important;
}

.dim-isb-desc strong {
    color: #e2e8f0 !important;
}

/* Modal Footer */
.dim-modal-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.dim-btn-cancel {
    height: 42px !important;
    padding: 0 22px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

.dim-btn-apply {
    height: 42px !important;
    padding: 0 26px !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.dim-btn-apply:hover {
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5) !important;
    transform: translateY(-1px) !important;
}

.mrsb-icon {
    font-size: 0.80rem !important;
    line-height: 1 !important;
}

.mrsb-text {
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif !important;
    letter-spacing: -0.2px !important;
    white-space: nowrap !important;
}

.mrsb-scale-controls {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 24px !important;
}

.mrsb-scale-btn, .mrsb-reset-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    font-size: 0.68rem !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mrsb-scale-btn:hover, .mrsb-reset-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.mrsb-slider-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 0 6px !important;
    height: 22px !important;
    border-radius: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.mrsb-range {
    -webkit-appearance: none;
    appearance: none;
    width: 55px !important;
    height: 4px !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    cursor: pointer !important;
}

.mrsb-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8) !important;
    cursor: pointer !important;
}

.mrsb-scale-label {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    min-width: 28px !important;
    text-align: right !important;
    font-family: monospace !important;
}

/* Animation Speed & Playback Bar */
.anim-playback-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    padding: 3px 6px;
    margin-bottom: 7px;
    height: 36px;
    box-sizing: border-box;
    width: 100%;
}

.btn-anim-playpause {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    height: 26px;
    line-height: 26px;
    padding: 0 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-sizing: border-box;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.btn-anim-playpause:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff;
}

.anim-speed-group {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0 !important;
}

.asg-label {
    display: none !important;
}

.btn-anim-speed {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.69rem;
    font-weight: 700;
    height: 26px;
    line-height: 26px;
    padding: 0 5px;
    min-width: 28px;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
}

.btn-anim-speed:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.btn-anim-speed.active {
    background: #6366f1;
    border-color: #818cf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

/* =================================================================
   UNIVERSAL MULTI-FORMAT EXPORTER DROPDOWN & MESH STATS
   ================================================================= */
.export-dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-caret {
    font-size: 0.65rem;
    margin-left: 6px;
    opacity: 0.8;
}

.export-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 275px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    z-index: 100;
    animation: fadeInDrop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.export-lod-section {
    padding: 4px 6px 8px 6px;
}

.els-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}

.els-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.lod-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 5px 4px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.lod-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.lod-btn.active {
    background: #0ea5e9;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.5);
}

.export-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

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

/* Drag & Drop Visual Cue */
.spatial-prompt-terminal.drag-over {
    border-color: #10b981 !important;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.45) !important;
    background: rgba(16, 185, 129, 0.06) !important;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.export-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.ei-icon {
    font-size: 1.2rem;
}

.ei-text {
    display: flex;
    flex-direction: column;
}

.ei-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ei-badge {
    font-size: 0.62rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.ei-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: 1px;
}

.modal-format-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    text-align: left;
    outline: none;
    box-sizing: border-box;
    width: 100%;
}

.modal-format-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.2);
}

.mfc-icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.mfc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.mfc-title {
    font-size: 0.80rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.mfc-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    white-space: nowrap;
}

.mesh-stats-pill {
    display: none;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px !important;
    padding: 0 8px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 34px !important;
    font-size: 0.70rem !important;
    color: #cbd5e1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    user-select: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Bulletproof Tab Scoping for Studio Toolbar Actions (Maintains Pristine Symmetry) */
#view-studio[data-active-tab="image"] #btnAutoRig,
#view-studio[data-active-tab="image"] #btnRefresh3D,
#view-studio[data-active-tab="image"] #meshStatsPill,
#view-studio[data-active-tab="image"] #exportDropdownContainer {
    display: none !important;
    visibility: hidden !important;
}

#view-studio[data-active-tab="image"] #btnDownloadImage {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Only show btnConvertTo3D if this image does NOT have a 3D model yet */
#view-studio[data-active-tab="image"]:not(.has-3d-model) #btnConvertTo3D:not(.has-model-hidden) {
    display: inline-flex !important;
    visibility: visible !important;
}

/* Show btnViewExisting3D if this reference image ALREADY has a 3D model */
#view-studio[data-active-tab="image"].has-3d-model #btnViewExisting3D {
    display: inline-flex !important;
    visibility: visible !important;
}

#view-studio[data-active-tab="image"]:not(.has-3d-model) #btnViewExisting3D,
#view-studio[data-active-tab="model"] #btnViewExisting3D,
#view-studio[data-active-tab="image"].has-3d-model #btnConvertTo3D,
#view-studio #btnConvertTo3D.has-model-hidden,
#view-studio[data-active-tab="model"] #btnConvertTo3D,
#view-studio[data-active-tab="model"] #btnDownloadImage {
    display: none !important;
    visibility: hidden !important;
}

#view-studio.has-3d-model[data-active-tab="model"] #btnRefresh3D,
#view-studio.has-3d-model[data-active-tab="model"] #btnAutoRig,
#view-studio.has-3d-model[data-active-tab="model"] #meshStatsPill,
#view-studio.has-3d-model[data-active-tab="model"] #exportDropdownContainer {
    display: inline-flex !important;
    visibility: visible !important;
}

.mesh-stats-pill:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: none !important;
}

.msp-dot {
    color: rgba(255, 255, 255, 0.3) !important;
    margin: 0 !important;
    line-height: 1 !important;
    user-select: none !important;
}

.msp-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.msp-item b {
    color: #ffffff !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.msp-item.status-ok {
    color: #34d399 !important;
    font-weight: 700 !important;
}

.msp-item.status-warning {
    color: #f59e0b !important;
    font-weight: 700 !important;
}

/* =================================================================
   MESHY-GRADE 3D POP-OUT CATEGORY WORKSTATION (PERFECT SYMMETRY)
   ================================================================= */
.category-workstation-section {
    margin-top: 4px;
    margin-bottom: 0px;
    width: 100%;
}

.category-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding: 0 2px;
}

.csh-spark {
    font-size: 0.95rem;
    color: #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

.csh-title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    text-transform: uppercase;
}

.csh-hint {
    font-size: 0.70rem;
    font-weight: 500;
    color: #64748b;
}

/* Category Pills Row - Symmetrical Harmonious 12-Item Compact Grid */
.category-workstation-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.category-pills-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin: 0 auto;
}

@media (max-width: 1366px) {
    .category-pills-wrap {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
}

@media (max-width: 900px) {
    .category-pills-wrap {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .category-pills-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* The Category Pill Card - Compact Symmetrical Pedestal Base */
.category-pill-card {
    position: relative;
    height: 100%;
    min-height: 100px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--pill-base, rgba(255, 255, 255, 0.07)) 100%);
    border: 1.2px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    box-sizing: border-box;
}

/* Symmetrical Hero Image Container (Strictly Boxed & Centered) */
.category-hero-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
}

/* 3D Hero Image (100% Transparent PNG, Perfectly contained) */
.category-hero-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
}

/* Pill Info & Labels */
.category-pill-info {
    text-align: center;
    z-index: 3;
    padding: 0 2px;
    width: 100%;
}

.category-pill-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.category-pill-sub {
    font-size: 0.60rem;
    font-weight: 600;
    color: var(--pill-accent, #94a3b8);
    margin-top: 1px;
    white-space: nowrap;
    opacity: 0.95;
    letter-spacing: 0.1px;
}

/* Active Highlight Dot Indicator */
.pill-active-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pill-accent, #10b981);
    box-shadow: 0 0 8px var(--pill-accent, #10b981);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
    z-index: 4;
}

/* Hover Interaction: Smooth lift & Gentle Zoom (No overflow) */
.category-pill-card:hover {
    transform: translateY(-2px);
    border-color: var(--pill-accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, var(--pill-active-base, var(--pill-base)) 100%);
    box-shadow: 0 6px 18px var(--pill-glow), 0 0 0 1px var(--pill-accent);
}

.category-pill-card:hover .category-hero-img {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 6px var(--pill-glow));
}

/* Active Selected State: High-voltage theme glow */
.category-pill-card.active {
    border-color: var(--pill-accent);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, var(--pill-active-base) 100%);
    box-shadow: 0 6px 18px var(--pill-glow), 0 0 0 1.5px var(--pill-accent);
}

.category-pill-card.active .category-hero-img {
    transform: scale(1.06);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px var(--pill-glow));
}

.category-pill-card.active .pill-active-indicator {
    opacity: 1;
    transform: scale(1);
}

.btn-hero-generate { margin-top: 14px !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.25s ease; }

.btn-gallery-create-new {
    width: 100% !important;
    margin-top: 6px !important;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%) !important;
    color: #ffffff !important;
    font-size: 0.90rem !important;
    font-weight: 800 !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    letter-spacing: 0.3px !important;
}

.btn-gallery-create-new:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: #ffffff !important;
}

.btn-glowing {
    width: 100% !important;
    height: 50px !important;
    background: linear-gradient(135deg, #10b981, #06b6d4, #6366f1) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
    animation: gradientShift 4s ease infinite !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
    border: none !important;
}

.btn-hero-generate {
    margin-top: 16px !important;
    width: 100% !important;
    height: 54px !important;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 45%, #6366f1 100%) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    border-radius: 16px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45), 0 0 15px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: gradientShift 4s ease infinite !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 24px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-hero-generate:hover {
    transform: translateY(-3px) scale(1.008) !important;
    box-shadow: 0 12px 38px rgba(6, 182, 212, 0.65), 0 0 25px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-color: #ffffff !important;
}

.btn-hero-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-hero-left svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    stroke-width: 2.5px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.btn-hero-credit-badge {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* STEP 2 & STEP 3 STYLES (SIDE-BY-SIDE RIG STUDIO & REF HISTORY) */
.vip-studio-segmented-bar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    background: rgba(8, 12, 24, 0.85);
    padding: 4px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
}

.vip-segment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.80rem;
    color: #94a3b8;
    background: transparent;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vip-segment-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.vip-segment-btn.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vip-segment-btn .segment-icon {
    font-size: 1rem;
}

/* Reference Category Filter Menu */
.ref-cat-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0 4px 0;
}

.ref-cat-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Reference Category Filter Menu - Handcrafted Ultra-Luxury & Precision Grid */
.ref-cat-tab {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    padding: 0 3px 0 4px !important;
    height: 25px !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: grid !important;
    grid-template-columns: 18px 1fr !important;
    align-items: center !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    position: relative !important;
}

.ref-cat-tab.tab-all {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.9) 50%, rgba(16, 185, 129, 0.15) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
    padding: 0 8px !important;
}

.ref-cat-tab.tab-all:hover,
.ref-cat-tab.tab-all.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.2) 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

.ref-cat-icon-box {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ref-cat-mini-img {
    width: 15px !important;
    height: 15px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
    pointer-events: none !important;
    display: block !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)) !important;
}

.ref-cat-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-size: 0.63rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    text-align: left !important;
    letter-spacing: -0.15px !important;
    color: inherit !important;
    display: flex !important;
    align-items: center !important;
}

/* Category Specific Signature Colors on Hover & Active */
.ref-cat-tab:hover {
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.8) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.ref-cat-tab[data-cat="weapon"].active, .ref-cat-tab[data-cat="weapon"]:hover { border-color: #f59e0b !important; color: #fbbf24 !important; background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(20, 15, 10, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="props"].active, .ref-cat-tab[data-cat="props"]:hover { border-color: #fbbf24 !important; color: #fef08a !important; background: linear-gradient(180deg, rgba(251, 191, 36, 0.25) 0%, rgba(20, 18, 10, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(251, 191, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="character"].active, .ref-cat-tab[data-cat="character"]:hover { border-color: #c084fc !important; color: #f3e8ff !important; background: linear-gradient(180deg, rgba(192, 132, 252, 0.25) 0%, rgba(20, 12, 30, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(192, 132, 252, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="creature"].active, .ref-cat-tab[data-cat="creature"]:hover { border-color: #f43f5e !important; color: #ffe4e6 !important; background: linear-gradient(180deg, rgba(244, 63, 94, 0.25) 0%, rgba(30, 10, 15, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="vehicle"].active, .ref-cat-tab[data-cat="vehicle"]:hover { border-color: #00d2ff !important; color: #cffafe !important; background: linear-gradient(180deg, rgba(0, 210, 255, 0.25) 0%, rgba(8, 20, 35, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(0, 210, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="nature"].active, .ref-cat-tab[data-cat="nature"]:hover { border-color: #10b981 !important; color: #d1fae5 !important; background: linear-gradient(180deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 25, 18, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="furniture"].active, .ref-cat-tab[data-cat="furniture"]:hover { border-color: #fb7185 !important; color: #ffe4e6 !important; background: linear-gradient(180deg, rgba(251, 113, 133, 0.25) 0%, rgba(30, 12, 18, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(251, 113, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="architecture"].active, .ref-cat-tab[data-cat="architecture"]:hover { border-color: #34d399 !important; color: #ccfbf1 !important; background: linear-gradient(180deg, rgba(52, 211, 153, 0.25) 0%, rgba(8, 25, 20, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(52, 211, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="printing"].active, .ref-cat-tab[data-cat="printing"]:hover { border-color: #a3e635 !important; color: #ecfccb !important; background: linear-gradient(180deg, rgba(163, 230, 53, 0.25) 0%, rgba(18, 25, 8, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(163, 230, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="food"].active, .ref-cat-tab[data-cat="food"]:hover { border-color: #f97316 !important; color: #ffedd5 !important; background: linear-gradient(180deg, rgba(249, 115, 22, 0.25) 0%, rgba(28, 14, 8, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="fashion"].active, .ref-cat-tab[data-cat="fashion"]:hover { border-color: #ec4899 !important; color: #fce7f3 !important; background: linear-gradient(180deg, rgba(236, 72, 153, 0.25) 0%, rgba(28, 10, 22, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }
.ref-cat-tab[data-cat="gadget"].active, .ref-cat-tab[data-cat="gadget"]:hover { border-color: #38bdf8 !important; color: #e0f2fe !important; background: linear-gradient(180deg, rgba(56, 189, 248, 0.25) 0%, rgba(8, 20, 32, 0.9) 100%) !important; box-shadow: 0 0 10px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; }

.studio-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; align-items: center; width: 100%; }
.tab-btn { background: none; border: none; color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; padding: 4px 10px; cursor: pointer; border-radius: 8px; }
.tab-btn.active { color: #38bdf8; background: rgba(56, 189, 248, 0.08); }

#view-studio {
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.vip-studio-segmented-bar {
    flex-shrink: 0 !important;
}

/* Side-by-Side Flex Layout in Step 2 */
.studio-stage-flex {
    display: flex !important;
    gap: 14px !important;
    align-items: stretch !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: calc(100% - 50px) !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.studio-viewport-col {
    flex: 1 1 0% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 6px !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: calc(100% - 354px) !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.studio-rig-col {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    flex: 0 0 340px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
}

.preview-viewport, .fixed-viewport-constrained, .giant-studio-viewport {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100% !important;
    background: radial-gradient(circle at 50% 40%, rgba(15, 23, 42, 0.95) 0%, rgba(5, 7, 14, 0.98) 100%) !important;
    border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.btn-viewport-fullscreen {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 50 !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: rgba(10, 14, 26, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.btn-viewport-fullscreen:hover {
    background: rgba(16, 185, 129, 0.9) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.55) !important;
}

/* =================================================================
   PURE AAA FULLSCREEN MODE (100vw x 100vh True Edge-to-Edge)
   ================================================================= */
:fullscreen,
:-webkit-full-screen {
    background: #05070e !important;
}

#previewViewportMain:fullscreen,
#previewViewportMain:-webkit-full-screen,
#previewViewportMain:-moz-full-screen,
#previewViewportMain:-ms-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    background: #05070e !important;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Remove all borders, shadows, and top dark lines in fullscreen */
#previewViewportMain:fullscreen *,
#previewViewportMain:-webkit-full-screen * {
    border-top: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Force all inner wrappers to fill 100vh x 100vw without 510px constraint */
#previewViewportMain:fullscreen .viewport-content-pane,
#previewViewportMain:-webkit-full-screen .viewport-content-pane,
#previewViewportMain:fullscreen #viewport-model-content,
#previewViewportMain:-webkit-full-screen #viewport-model-content,
#previewViewportMain:fullscreen #viewport-image-content,
#previewViewportMain:-webkit-full-screen #viewport-image-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #05070e !important;
    overflow: hidden !important;
}

#previewViewportMain:fullscreen #modelViewer,
#previewViewportMain:-webkit-full-screen #modelViewer,
#previewViewportMain:fullscreen #activePreviewImage,
#previewViewportMain:-webkit-full-screen #activePreviewImage,
#previewViewportMain:fullscreen model-viewer::part(canvas),
#previewViewportMain:-webkit-full-screen model-viewer::part(canvas) {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #05070e !important;
}

#previewViewportMain:fullscreen .btn-viewport-fullscreen,
#previewViewportMain:-webkit-full-screen .btn-viewport-fullscreen {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(10, 14, 26, 0.85) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

/* Strict Tab Separation for Viewport Panes */
.viewport-content-pane {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Premium Dark Studio Stage Background when in 1. Referans Görseli Tab */
#view-studio[data-active-tab="image"] .preview-viewport {
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.7) 0%, rgba(10, 15, 29, 0.98) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
}

#viewport-image-content {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border-radius: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px;
    box-sizing: border-box;
}

#viewport-model-content {
    width: 100%;
    height: 100%;
}

#activePreviewImage {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
}

#modelViewer {
    width: 100% !important;
    height: 100% !important;
    display: block;
    contain: strict;
    will-change: transform;
    transform: translateZ(0);
}

/* =================================================================
   COMPLETE DESTRUCTION OF TOP LOADING PROGRESS LINES
   ================================================================= */
model-viewer::part(progress-bar),
#modelViewer::part(progress-bar),
model-viewer::part(default-progress-bar),
#modelViewer::part(default-progress-bar),
.model-viewer-progress-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

.unified-progress-container { 
    background: rgba(8, 12, 24, 0.92); 
    border: 1px solid rgba(16, 185, 129, 0.3); 
    padding: 14px 18px; 
    border-radius: 14px; 
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}
.unified-progress-title { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.84rem; 
    font-weight: 700; 
    margin-bottom: 9px; 
}
#unifiedProgressStatusText { 
    color: #e2e8f0; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}
#unifiedProgressPercentText { 
    color: #10b981; 
    font-family: 'JetBrains Mono', 'Courier New', monospace; 
    font-size: 0.88rem; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
}
.unified-progress-bar-bg { 
    background: rgba(255, 255, 255, 0.08); 
    height: 9px; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    margin-bottom: 0; 
}
.unified-progress-bar { 
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #6366f1 100%); 
    width: 0%; 
    height: 100%; 
    transition: width 0.35s ease; 
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

#conceptApprovalBar,
.concept-approval-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.viewport-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    margin-bottom: 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
}

#btnConvertTo3D {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1.5px solid #34d399 !important;
    color: #ffffff !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 34px !important;
    border-radius: 10px !important;
    padding: 0 12px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
#btnConvertTo3D:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #6ee7b7 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.7) !important;
}

.toolbar-left-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
}

.toolbar-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.viewport-toolbar .btn {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    line-height: 34px !important;
    padding: 0 9px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    vertical-align: middle !important;
    transform: none !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.15)) !important;
    border: 1.5px solid rgba(6, 182, 212, 0.5) !important;
    color: #38bdf8 !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-cyan:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(16, 185, 129, 0.25)) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-purple {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15)) !important;
    border: 1.5px solid rgba(99, 102, 241, 0.5) !important;
    color: #c084fc !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-purple:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.25)) !important;
    border-color: #c084fc !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-emerald {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: 1.5px solid rgba(52, 211, 153, 0.7) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    filter: none !important;
}

.btn-vip-emerald:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* Right Panel: Reference History Panel */
.ref-history-panel {
    padding: 10px 12px !important;
    background: rgba(10, 14, 26, 0.88) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

.panel-header { display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-bottom: 8px; flex-shrink: 0; }
.panel-header h4 { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.panel-sub-label { font-size: 0.66rem; color: var(--text-muted); }

.ref-history-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    flex: 0 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px !important;
    align-content: start;
    scroll-snap-type: y mandatory !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    box-sizing: border-box !important;
}

.ref-history-card {
    width: 100%;
    height: var(--ref-card-h, 120px);
    min-height: var(--ref-card-h, 120px);
    max-height: var(--ref-card-h, 120px);
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.85) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    box-sizing: border-box !important;
}

.ref-history-card:hover { 
    border-color: #10b981; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); 
}
.ref-history-card.active { 
    border-color: #10b981 !important; 
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.6) !important;
    background: rgba(16, 185, 129, 0.15) !important;
}
.ref-history-card img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block; 
    border-radius: 6px; 
    background: transparent !important; 
}
.ref-card-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.1;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.ref-card-badge.badge-3d {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.ref-card-badge.badge-2d {
    background: rgba(15, 23, 42, 0.85);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}
.ref-card-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(15, 23, 42, 0.88);
    color: #fca5a5;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.16s ease;
    z-index: 4;
    padding: 0;
}
.ref-history-card:hover .ref-card-delete-btn {
    opacity: 1;
    transform: scale(1);
}
.ref-card-delete-btn:hover {
    background: rgba(239, 68, 68, 0.92);
    color: #ffffff;
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

.history-empty { color: var(--text-muted); font-size: 0.72rem; text-align: center; padding: 24px 0; grid-column: 1 / -1; }

/* Raw Model Panel (Right column in Ham Model Tab) */
.raw-model-panel {
    padding: 14px;
    background: rgba(10, 14, 26, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    backdrop-filter: blur(16px);
}

.raw-model-details-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.raw-specs-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.raw-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.raw-spec-name {
    color: var(--text-secondary);
    font-weight: 600;
}

.raw-spec-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.raw-spec-tag.tag-cyan {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.raw-spec-tag.tag-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.raw-spec-tag.tag-blue {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.raw-spec-tag.tag-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.raw-rig-callout {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.raw-rig-callout .callout-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.raw-rig-callout .callout-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #ffffff;
}

.raw-rig-callout .callout-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.btn-callout-rig {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
    margin-top: 4px;
}

.btn-callout-rig:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.55);
}

.raw-tools-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-raw-tool {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-raw-tool:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    transform: translateY(-1px);
}

/* Animation Library Panel Side-by-Side */
.rig-animation-studio {
    padding: 10px 12px !important;
    background: rgba(10, 14, 26, 0.88) !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    box-sizing: border-box !important;
}

.studio-header { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-bottom: 8px; flex-shrink: 0; }
.studio-header h4 { font-size: 0.80rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }

#animStudioPanel {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

.anim-panel-sub {
    font-size: 0.70rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    flex-shrink: 0;
}

.anim-cards-grid {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: y proximity !important;
    scroll-padding-top: 4px !important;
    scroll-padding-bottom: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 4px 4px 8px 4px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(15, 23, 42, 0.4) !important;
}

.anim-cards-grid::-webkit-scrollbar,
#animCardsContainer::-webkit-scrollbar {
    display: block !important;
    width: 5px !important;
}
.anim-cards-grid::-webkit-scrollbar-track,
#animCardsContainer::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5) !important;
    border-radius: 4px !important;
}
.anim-cards-grid::-webkit-scrollbar-thumb,
#animCardsContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #06b6d4) !important;
    border-radius: 4px !important;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.4) !important;
}
.anim-cards-grid::-webkit-scrollbar-thumb:hover,
#animCardsContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #22d3ee) !important;
}

/* Hide Vertical Scrollbar for Reference History Grid Completely */
.ref-history-cards-grid::-webkit-scrollbar,
#refHistoryCardsContainer::-webkit-scrollbar {
    display: none !important;
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

/* Category Pills Bar with Slide Arrow Buttons & Smooth Fade Mask */
.anim-category-bar,
.ref-cat-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-shrink: 0;
    width: 100%;
    position: relative;
}

.anim-category-tabs,
.ref-cat-bar {
    display: flex;
    gap: 6px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE 10+ */
    padding: 4px 6px 4px 4px !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x proximity !important;
    scroll-padding-left: 4px !important;
    scroll-padding-right: 6px !important;
    box-sizing: border-box;
}

.ref-cat-tab,
.anim-cat-tab {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
}

.anim-scroll-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    border-radius: 9px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    line-height: 1 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.anim-scroll-btn:hover {
    background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6) !important;
    transform: scale(1.08) !important;
}

.anim-cat-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.anim-cat-tab:hover,
.anim-cat-tab.active {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* Mode Switcher Tabs (Sahip Olduklarım vs Mağaza) */
.anim-mode-switcher-wrap {
    width: 100%;
}

.anim-mode-tabs {
    display: flex;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 10px;
}

.anim-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.anim-mode-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.anim-mode-tab.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2));
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

.anim-count-badge {
    background: #10b981;
    color: #060a17;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    line-height: 1.2;
}

.anim-count-badge-sub {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Dynamic Info Callout Banner */
.anim-inventory-info-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 7px;
    font-size: 0.72rem;
    color: #e2e8f0;
    line-height: 1.3;
}

.anim-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.anim-banner-text strong {
    color: #34d399;
}

/* Search Row */
.anim-search-row {
    display: flex;
    gap: 6px;
    margin-bottom: 7px;
}

.anim-search-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    color: #ffffff;
    font-size: 0.78rem;
    padding: 7px 11px;
    outline: none;
    transition: all 0.2s ease;
}

.anim-search-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.anim-search-input::placeholder {
    color: #64748b;
}

.btn-clear-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 9px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.80rem;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.4);
}

/* Full Height Dynamic Animation Container & Snap Rules */
#animCardsContainer {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    scroll-behavior: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(15, 23, 42, 0.4) !important;
}

.anim-library-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: rgba(30, 41, 59, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    height: var(--anim-card-h, 79px) !important;
    min-height: var(--anim-card-h, 79px) !important;
    max-height: var(--anim-card-h, 79px) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.anim-library-card:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    border-color: #6366f1 !important;
}

.anim-library-card.active {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: #6366f1 !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3) !important;
}

/* Gallery Section */
.gallery-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    gap: 8px;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

/* 3D Model vs 2D Resim Segmented Toggle Switch */
.gallery-view-mode-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.gallery-mode-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
}

.gallery-mode-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-mode-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}

/* 12 Category Filter Tabs (Tek Sıra / Single Row) */
.gallery-tabs-row {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    padding: 2px 0;
}

.gallery-tabs-row::-webkit-scrollbar {
    display: none;
}

.gallery-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 4px 6px;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    min-width: max-content;
    user-select: none;
}

.gallery-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.gallery-tab.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.gallery-tab .gtab-icon {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-tab .gtab-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#view-gallery {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dino-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 207px !important;
    gap: 10px 14px !important;
    height: 647px !important;
    max-height: 647px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 3px 2px !important;
    margin-top: 6px;
    margin-bottom: 0;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.dino-gallery-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.gallery-empty { color: var(--text-secondary); font-size: 0.85rem; text-align: center; padding: 36px 0; grid-column: 1 / -1; border: 1.5px dashed var(--border-color); border-radius: 14px; }

.dino-gallery-item-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    height: 207px !important;
    max-height: 207px !important;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.dino-card-title-above {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 25px !important;
    max-height: 25px !important;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #e2e8f0;
    text-align: center;
    padding: 3px 6px !important;
    line-height: 17px !important;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.dino-gallery-item-wrapper:hover .dino-card-title-above {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

.dino-card-title-above .cube-icon {
    font-size: 0.72rem;
}

.dino-card-title-above .title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.gallery-rig-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    letter-spacing: 0.3px;
    margin-left: 4px;
}

.dino-gallery-item-wrapper:hover .dino-gallery-card {
    border-color: #38bdf8;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.35);
}

.dino-gallery-item-wrapper.active .dino-gallery-card {
    border-color: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
}

.dino-gallery-card {
    background: rgba(10, 14, 26, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    width: 100% !important;
    height: 178px !important;
    max-height: 178px !important;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    box-sizing: border-box !important;
    padding: 6px;
    flex-shrink: 0 !important;
}

.dino-card-3d-viewer {
    width: 100% !important;
    height: 100% !important;
    max-height: 166px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(8, 12, 24, 0.95) 100%) !important;
    --poster-color: transparent;
}

/* Gallery Bottom Scroll Controls (Enlarged & Locked to Bottom) */
.gallery-bottom-scroll-bar {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.btn-gallery-bottom-scroll {
    flex: 1;
    height: 44px !important;
    padding: 0 20px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    letter-spacing: 0.5px !important;
    user-select: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

.btn-gallery-bottom-scroll:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.55), rgba(6, 182, 212, 0.55)) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.5) !important;
}

.btn-gallery-bottom-scroll:active {
    transform: translateY(0) !important;
}

.dino-card-top-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(8, 12, 24, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #f1f5f9;
    pointer-events: none;
    z-index: 5;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dino-card-hover-bar {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dino-gallery-card:hover .dino-card-hover-bar {
    opacity: 1;
    transform: translateY(0);
}

.dino-icon-btn {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
}

.dino-icon-btn.view-btn {
    flex: 1;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3));
    border-color: #38bdf8;
    color: #ffffff;
}

.dino-icon-btn.view-btn:hover {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.dino-icon-btn.delete-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.dino-icon-btn.delete-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 5, 10, 0.88); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-card { background: rgba(10, 14, 26, 0.96); border: 1px solid rgba(255, 255, 255, 0.1); width: 90%; max-width: 680px; border-radius: 24px; padding: 32px; position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); color: var(--text-secondary); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.credit-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.package-item { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 16px; padding: 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.package-item.selected { background: rgba(16, 185, 129, 0.08); border-color: #10b981; }
.checkout-area { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 18px; }

/* Keyframe Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Ref Category Bar Wrap with Scroll Arrows */
.ref-cat-bar-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 6px;
}

.ref-cat-bar-wrap .anim-scroll-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* VIP Custom Button Classes */
.btn-vip-cyan {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(6, 182, 212, 0.2)) !important;
    color: #38bdf8 !important;
    border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
    box-shadow: none !important;
    filter: none !important;
    font-weight: 700 !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-vip-cyan:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(6, 182, 212, 0.35)) !important;
    border-color: #38bdf8 !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(-2px) !important;
}

.btn-vip-emerald {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(52, 211, 153, 0.6) !important;
    box-shadow: none !important;
    filter: none !important;
    font-weight: 800 !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-vip-emerald:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(-2px) !important;
}

.btn-vip-purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.2)) !important;
    color: #c084fc !important;
    border: 1.5px solid rgba(192, 132, 252, 0.5) !important;
    box-shadow: none !important;
    filter: none !important;
    font-weight: 700 !important;
    height: 44px !important;
    padding: 0 20px !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-vip-purple:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(147, 51, 234, 0.35)) !important;
    border-color: #c084fc !important;
    box-shadow: none !important;
    filter: none !important;
    transform: translateY(-2px) !important;
}

/* VIP Interactive Modals */
.vip-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
}

.vip-modal-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 12, 24, 0.99));
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    width: 90%;
    max-width: 900px;
    padding: 32px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.vip-modal-card.modal-medium {
    max-width: 680px;
}

.vip-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    font-size: 1.6rem;
}

.vip-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* VIP Credit Packages */
.vip-credit-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.credit-package-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.credit-package-card.active-popular {
    border-color: #10b981;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.9));
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
    transform: translateY(-4px);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.package-badge.badge-pop {
    background: #10b981;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

.package-badge.badge-pro {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
}

.package-credits {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-top: 10px;
}

.package-credits span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

.package-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8;
    margin: 6px 0 16px 0;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #cbd5e1;
    flex-grow: 1;
}

/* Profile & Registration Modal Redesign */
.vip-modal-card.modal-profile-wide {
    max-width: 820px !important;
    width: 95% !important;
    padding: 24px 28px !important;
}

.profile-summary-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 28, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.profile-banner-avatar-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle-frame {
    width: 72px;
    height: 72px;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2.5px solid #10b981;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
    background: #080c14;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.profile-banner-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    box-shadow: none !important;
}

.profile-online-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #10b981;
    border: 2.5px solid #080c14;
    box-shadow: 0 0 8px #10b981;
    z-index: 3;
}

.profile-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-banner-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-handle-tag {
    font-size: 0.72rem;
    color: #38bdf8;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.profile-vip-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
}

.profile-seller-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: 6px;
}

.profile-banner-meta {
    display: flex;
    gap: 14px;
    font-size: 0.72rem;
    color: #94a3b8;
    flex-wrap: wrap;
    margin-top: 3px;
}

.profile-banner-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.btn-avatar-select {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(16, 185, 129, 0.18));
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-avatar-select:hover {
    background: linear-gradient(135deg, #06b6d4, #10b981);
    color: #0b0f19;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-avatar-dice {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-avatar-dice:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Avatar Palette */
.profile-avatar-palette {
    background: rgba(8, 12, 22, 0.96);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    animation: fadeIn 0.2s ease;
}

.palette-grid {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.avatar-option {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #080c14;
    padding: 0 !important;
    position: relative;
}

.avatar-option img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

.avatar-option:hover {
    border-color: #38bdf8;
    transform: scale(1.12);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}

.avatar-option.selected {
    border-color: #10b981;
    border-width: 2.5px;
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
}

/* Tabs */
.profile-tabs-row {
    display: flex;
    gap: 8px;
    margin: 8px 0 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.profile-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.profile-tab-btn.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Tab Panes */
.profile-tab-pane {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}

/* Fields Grid */
.profile-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    width: 100%;
}

.input-with-addon {
    display: flex;
    align-items: center;
    background: rgba(5, 8, 16, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.input-with-addon:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.input-addon-text {
    padding: 0 12px;
    font-weight: 800;
    color: #38bdf8;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    user-select: none;
}

.input-has-addon {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    flex: 1;
    padding: 10px 10px !important;
}

.input-has-addon:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Phone & Country/City Combos */
.phone-input-combo {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.phone-code-select {
    width: 148px !important;
    flex-shrink: 0 !important;
}

.phone-number-input {
    flex: 1 !important;
    min-width: 0 !important;
}

.country-city-combo {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.country-city-combo select {
    flex: 1;
    min-width: 0;
}

.vip-select {
    background: rgba(5, 8, 16, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    padding: 10px 12px !important;
    font-size: 0.80rem !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
    width: 100%;
}

.vip-select option {
    background: #0b0f19;
    color: #f1f5f9;
    padding: 8px;
}

.vip-select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Full Width Biography Field (No scrollbar) */
.profile-bio-group {
    width: 100% !important;
    margin-top: 4px;
}

.profile-bio-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.profile-bio-hint {
    font-size: 0.70rem;
    color: #64748b;
}

.profile-bio-textarea {
    width: 100% !important;
    min-height: 76px !important;
    height: 78px !important;
    resize: none !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    line-height: 1.45 !important;
    font-size: 0.82rem !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    background: rgba(5, 8, 16, 0.85) !important;
    color: #f1f5f9 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box !important;
}

.profile-bio-textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Security Box & Meters */
.security-info-box, .terms-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.password-meter-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.password-meter-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.password-meter-text {
    font-size: 0.70rem;
    color: #94a3b8;
    white-space: nowrap;
}

.security-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.security-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(10, 15, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
}

/* Toggle Switch */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider-round {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    transition: 0.25s;
    border-radius: 24px;
}

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

.switch-toggle input:checked + .slider-round {
    background: #10b981;
}

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

.last-session-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 10px;
}

/* Terms Cards */
.profile-terms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-term-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(10, 15, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

.profile-term-card.approved {
    border-left: 3.5px solid #10b981;
}

.term-check-col {
    padding-top: 2px;
}

.term-check-col input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #10b981;
    cursor: pointer;
}

.term-content-col {
    flex: 1;
}

.term-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.term-title-row strong {
    font-size: 0.80rem;
    color: #f1f5f9;
}

.term-content-col p {
    margin: 0;
    font-size: 0.71rem;
    color: #94a3b8;
    line-height: 1.35;
}

.badge-approved {
    font-size: 0.65rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 6px;
    border-radius: 5px;
}

.badge-optional {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 5px;
}

/* Footer Actions */
.profile-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-footer-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-profile-logout {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-profile-logout:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4) !important;
}

.btn-profile-cancel {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-profile-cancel:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

.btn-profile-save {
    padding: 9px 22px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
}

.vip-input {
    background: rgba(5, 8, 16, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    color: #ffffff;
    font-size: 0.9rem;
}

.vip-input.input-gold {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
    font-weight: 700;
}

.credit-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8;
}

.stat-lbl {
    font-size: 0.72rem;
    color: #94a3b8;
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.vip-table th {
    text-align: left;
    padding: 10px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.txt-red { color: #f87171; font-weight: 700; }
.txt-green { color: #34d399; font-weight: 700; }

/* Responsive */
@media (max-width: 900px) { .studio-stage-flex { flex-direction: column; } .studio-rig-col { width: 100%; min-width: 100%; } }
@media (max-width: 768px) { .top-vip-navbar { padding: 14px 20px; } .hero-stepper-bar-exact { flex-direction: column; } .category-cards-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   DINO STORE - Marketplace Nav & Modal Styles
   ========================================================================== */
.nav-center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-dino-store-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.12) 50%, rgba(139, 92, 246, 0.12) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    padding: 0 18px 0 14px;
    border-radius: 30px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    height: 42px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.btn-dino-store-nav:hover {
    transform: scale(1.04) translateY(-1px);
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.20) 50%, rgba(139, 92, 246, 0.20) 100%);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.store-icon {
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
    animation: cartWiggle 3s ease-in-out infinite;
}

@keyframes cartWiggle {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-8deg); }
    90% { transform: rotate(8deg); }
    95% { transform: rotate(-4deg); }
}

.store-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.86rem;
    letter-spacing: 0.9px;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.store-tag {
    font-size: 0.62rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Store Modal Large Customization */
.vip-modal-card.modal-large {
    max-width: 960px !important;
    width: 90vw !important;
}

.store-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.10), rgba(139, 92, 246, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 18px;
    padding: 16px 24px;
    margin-bottom: 20px;
}

.banner-info h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

/* ==========================================================================
   DINO STORE: PREMIUM 3D ASSET MARKETPLACE
   ========================================================================== */

#view-store {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ==========================================================================
   DINO STORE: CLEAN & LUXURIOUS 3D MARKETPLACE (MINIMALIST STOREFRONT)
   ========================================================================== */

/* 1. Sleek Marketplace Header */
.store-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(10, 15, 29, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.store-view-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-brand-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 7px;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.store-brand-text {
    font-size: 0.68rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 0.4px;
}

.store-brand-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.store-brand-info h2 {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.store-live-ticker {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

.btn-store-sell-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
    padding: 4px 12px !important;
    font-size: 0.69rem !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    height: auto !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    transition: all 0.2s ease !important;
}

.btn-store-sell-hero:hover {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important;
    color: #0b0f19 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1px);
}

/* 2. Spacious Category & Search Bar */
.store-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
}

.store-cat-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1px 0;
}

.store-cat-tabs::-webkit-scrollbar {
    display: none;
}

.store-cat-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex: 1 1 auto;
    min-width: max-content;
    justify-content: center;
    user-select: none;
}

.store-cat-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.store-cat-tab.active {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.store-cat-tab .scat-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-cat-tab .scat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-search-wrap {
    min-width: 140px;
    max-width: 175px;
    flex-shrink: 0;
}

.store-search-input {
    width: 100%;
    height: 28px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 10px;
    color: #f8fafc;
    font-size: 0.68rem;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.store-search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

/* 3. Clean Products Grid */
.store-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 198px !important;
    gap: 10px 14px !important;
    height: 610px !important;
    max-height: 610px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 2px 2px !important;
    margin-top: 4px;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.store-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* 4. Minimalist Luxury 3D Model Card */
.store-card {
    background: rgba(11, 16, 30, 0.96);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 198px !important;
    max-height: 198px !important;
    box-sizing: border-box !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    transform: none !important;
}

.store-card:hover {
    transform: none !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3) !important;
}

/* Subtle discreet badge (only if rigged) */
.store-subtle-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    z-index: 2;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* 5. 3D Model Viewport (100% Clean, Unobstructed) */
.store-card-preview-3d {
    width: 100% !important;
    height: 142px !important;
    overflow: hidden;
    position: relative;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(8, 12, 22, 0.98) 85%);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
}

.store-card-3d-viewer {
    width: 100% !important;
    height: 100% !important;
    outline: none !important;
}

.store-preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 18, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: 2;
}

.store-card:hover .store-preview-overlay {
    opacity: 1;
}

.store-btn-inspect {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    letter-spacing: 0.2px;
}

/* 6. Clean Card Info Body */
.store-card-info {
    padding: 5px 8px 4px !important;
    height: 56px !important;
    max-height: 56px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(11, 16, 30, 0.98);
    flex: 1;
    box-sizing: border-box !important;
}

.store-card-title-row h5 {
    font-size: 0.72rem !important;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.seller-avatar {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.seller-name {
    font-size: 0.64rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85px;
}

.store-card-right-action {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-card-price {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #38bdf8;
}

.store-card-price .price-gem-icon {
    font-size: 0.70rem;
}

.store-card-price .price-amount {
    font-weight: 800;
    font-size: 0.76rem;
}

/* Elegant Buy Button */
.btn-store-buy {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(6, 182, 212, 0.22) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    color: #34d399 !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.btn-store-buy:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45) !important;
    transform: translateY(-1px);
}

/* 7. Store Bottom Scroll Navigation Bar (Identical to Galerim 2. SS) */
.store-bottom-scroll-bar {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.btn-store-bottom-scroll {
    flex: 1;
    height: 44px !important;
    padding: 0 20px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 182, 212, 0.16) 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    letter-spacing: 0.5px !important;
    user-select: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

.btn-store-bottom-scroll:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.55), rgba(6, 182, 212, 0.55)) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.5) !important;
}

.btn-store-bottom-scroll:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   CARTOON 3D DINO MASCOT LOGO
   ========================================================================== */
.logo-icon.dino-logo.cartoon-3d-logo {
    position: relative;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon.dino-logo.cartoon-3d-logo svg {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    filter: drop-shadow(0 4px 18px rgba(16, 185, 129, 0.65)) drop-shadow(0 0 14px rgba(6, 182, 212, 0.5)) !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.nav-brand-area:hover .logo-icon.dino-logo.cartoon-3d-logo svg {
    transform: scale(1.1) rotate(-4deg);
    filter: drop-shadow(0 6px 28px rgba(16, 185, 129, 0.85)) drop-shadow(0 0 22px rgba(6, 182, 212, 0.7)) !important;
}

/* Symmetrical 4-Column Grid Category Bar */
.anim-category-tabs-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 3px !important;
    margin-bottom: 6px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    padding: 3px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.anim-cat-tab {
    padding: 0 2px !important;
    font-size: 0.70rem !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    letter-spacing: -0.2px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.anim-cat-tab:hover {
    background: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

.anim-cat-tab.active {
    background: rgba(56, 189, 248, 0.2) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    font-weight: 800 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

/* Custom Scrollbar for Animation Cards Container */
#animCardsContainer,
.anim-cards-grid {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(15, 23, 42, 0.4) !important;
}

#animCardsContainer::-webkit-scrollbar,
.anim-cards-grid::-webkit-scrollbar {
    display: block !important;
    width: 5px !important;
}

/* Bottom Full-Width Navigation Scroll Buttons for Animation Studio & Reference History */
.anim-bottom-scroll-bar,
.ref-bottom-scroll-bar {
    display: flex !important;
    gap: 6px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 6px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.btn-anim-bottom-scroll {
    flex: 1;
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    letter-spacing: 0.4px !important;
    user-select: none !important;
}

.btn-anim-bottom-scroll:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(6, 182, 212, 0.45)) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 16px rgba(52, 211, 153, 0.4) !important;
}

.btn-anim-bottom-scroll:active {
    transform: translateY(0);
}

/* ==========================================================================
   RIG PACKAGE SELECTION MODAL & LIVE PROGRESS STYLES
   ========================================================================== */

.rig-package-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 19, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: rpmFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rpmFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.rig-package-modal-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(10, 15, 29, 0.98));
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(99, 102, 241, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.rpm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.rpm-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rpm-icon {
    font-size: 2rem;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 14px;
    padding: 8px 12px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.rpm-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0 0 4px 0;
}

.rpm-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.btn-close-rpm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-close-rpm:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
}

/* 6 Package Cards Grid (3x2) */
.rpm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.rpm-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    padding: 18px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
}

.rpm-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45), 0 0 20px rgba(99, 102, 241, 0.2);
}

.rpm-card.active {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.15));
    border-color: #6366f1;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.45), inset 0 0 15px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.rpm-card-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.63rem;
    font-weight: 800;
    background: #0b1329;
    border: 1.5px solid #10b981;
    color: #34d399;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7), 0 0 10px rgba(16, 185, 129, 0.35);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
    white-space: nowrap;
}

.rpm-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rpm-card-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.rpm-card-cost {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.rpm-card-name {
    font-size: 0.86rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.rpm-card-desc {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
    flex: 1;
}

.rpm-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.rpm-card-select-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.rpm-card.active .rpm-card-select-pill {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #04101e;
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Master 60-Pack Special Highlight */
.rpm-card-master {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(30, 41, 59, 0.7));
    border-color: rgba(245, 158, 11, 0.4);
}

.rpm-card-master:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(251, 191, 36, 0.3);
}

.rpm-card-master.active {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.25), rgba(99, 102, 241, 0.2));
    border-color: #fbbf24;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.2);
}

.vip-badge {
    background: #1c1404 !important;
    border: 1.5px solid #fbbf24 !important;
    color: #fef08a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.75), 0 0 15px rgba(251, 191, 36, 0.45) !important;
}

.vip-cost {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.45) !important;
    color: #fef08a !important;
}

/* Modal Footer */
.rpm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.btn-rpm-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-rpm-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-confirm-rpm {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
    border: 1px solid #c084fc;
    color: #ffffff;
    padding: 11px 26px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.45);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.3px;
}

.btn-confirm-rpm:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
}

.btn-confirm-rpm:active {
    transform: translateY(0);
}

/* ==========================================================================
   LIVE IN-VIEWPORT RIGGING PROGRESS OVERLAY
   ========================================================================== */

.rig-live-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    animation: rpmFadeIn 0.3s ease;
}

.rlp-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    max-width: 380px;
    width: 90%;
}

.rlp-spinner {
    width: 46px;
    height: 46px;
    border: 3.5px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-right-color: #38bdf8;
    border-radius: 50%;
    animation: rlpSpin 0.9s linear infinite;
}

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

.rlp-title {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.rlp-sub {
    font-size: 0.74rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}

.rlp-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 4px;
}

.rlp-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #38bdf8, #10b981);
    border-radius: 8px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.rlp-percent {
    font-size: 0.75rem;
    font-weight: 800;
    color: #38bdf8;
}

/* ==========================================================================
   SLEEK FLOATING BACKGROUND RIGGING PROGRESS WIDGET
   ========================================================================== */

.rig-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    pointer-events: auto;
    animation: rfwSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.rfw-card {
    width: 370px;
    max-width: calc(100vw - 32px);
    background: rgba(13, 17, 28, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(99, 102, 241, 0.25);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rfw-card.success-state {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.35);
}

.rfw-card.error-state {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(239, 68, 68, 0.35);
}

.rfw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rfw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #a5b4fc;
    text-transform: uppercase;
}

.rfw-card.success-state .rfw-badge {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.rfw-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
    animation: rfwDotPulse 1.5s ease-in-out infinite;
}

.rfw-card.success-state .rfw-pulse-dot {
    background: #10b981;
    animation: none;
}

@keyframes rfwDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.4); }
}

.rfw-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rfw-btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rfw-btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.rfw-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rfw-icon-container {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfw-icon-spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-right-color: #38bdf8;
    animation: rlpSpin 1s linear infinite;
}

.rfw-card.success-state .rfw-icon-spinner {
    animation: none;
    border-color: #10b981;
}

.rfw-icon-emoji {
    font-size: 1.3rem;
    z-index: 1;
}

.rfw-text-group {
    flex: 1;
    min-width: 0;
}

.rfw-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.rfw-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfw-percent {
    font-size: 0.85rem;
    font-weight: 800;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.rfw-card.success-state .rfw-percent {
    color: #10b981;
}

.rfw-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfw-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rfw-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #38bdf8 60%, #10b981 100%);
    border-radius: 6px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.rfw-progress-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(3px);
}

.rfw-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.rfw-btn-action {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rfw-btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

/* Minimized Floating Pill */
.rfw-pill {
    background: rgba(13, 17, 28, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rfw-pill:hover {
    transform: scale(1.04);
    border-color: #a855f7;
}

.rfw-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    animation: rfwDotPulse 1.2s ease infinite;
}

.rfw-pill-icon {
    font-size: 1rem;
}

.rfw-pill-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #f1f5f9;
}

.rfw-pill-percent {
    font-size: 0.78rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 7px;
    border-radius: 12px;
}

/* ==========================================================================
   ADVANCED 3D SUITE EXTENSIONS: MULTI-VIEW, RE-TEXTURE, AR, LICENSE, CARD VCC
   ========================================================================== */

/* 1. Mode Switcher (Single vs Multi-View) - Compact & Sleek */
.model-generation-mode-bar {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 2px;
    width: auto;
}

.gen-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    background: rgba(13, 19, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.gen-mode-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.gen-mode-tab.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.2);
}

.gen-mode-badge {
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    color: #fff;
    font-size: 0.60rem;
    padding: 1px 6px;
    border-radius: 12px;
    font-weight: 800;
}

/* 2. Multi-View Terminal Grid */
.multiview-prompt-terminal {
    background: rgba(13, 18, 32, 0.75);
    border: 1.2px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mvt-header h4 {
    color: #38bdf8;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 3px;
}

.mvt-header p {
    color: #94a3b8;
    font-size: 0.76rem;
    margin-bottom: 12px;
}

.mvt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.mvt-slot {
    height: 90px;
    background: rgba(18, 26, 46, 0.6);
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mvt-slot:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.mvt-slot-preview {
    text-align: center;
    padding: 8px;
}

.mvt-slot-icon {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.mvt-slot-label {
    color: #e2e8f0;
    font-size: 0.74rem;
    font-weight: 700;
}

.mvt-slot-sub {
    color: #64748b;
    font-size: 0.62rem;
}

.mvt-action-bar {
    text-align: right;
}

.btn-mvt-submit {
    padding: 8px 16px;
    font-size: 0.80rem;
    font-weight: 800;
    height: 38px !important;
}

/* 3. Studio Cinematic Bar Quick Buttons */
.scb-retexture-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%) !important;
    border-color: rgba(236, 72, 153, 0.5) !important;
    color: #f472b6 !important;
}
.scb-retexture-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%) !important;
    color: #fff !important;
}

.scb-license-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
}
.scb-license-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4) 0%, rgba(217, 119, 6, 0.4) 100%) !important;
    color: #fff !important;
}

.scb-btn-bone.active {
    background: rgba(56, 189, 248, 0.3) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}

/* 4. Decal Popover & Color Palette */
.scb-popover-wide {
    min-width: 260px !important;
    padding: 12px !important;
}

.decal-menu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.decal-color-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dc-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    font-weight: 600;
}

.dc-input-color {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
}

.swatch-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.swatch-btn:hover { transform: scale(1.25); }

.btn-dc-reset {
    font-size: 0.7rem;
    padding: 3px 8px;
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-upload-decal-pill {
    display: block;
    margin-top: 4px;
    padding: 8px 12px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px dashed #38bdf8;
    border-radius: 8px;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-upload-decal-pill:hover {
    background: rgba(56, 189, 248, 0.3);
    color: #fff;
}

/* 5. In-Place Toggle & Custom Anim Dropzone */
.btn-anim-inplace {
    height: 26px;
    line-height: 26px;
    padding: 0 7px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-sizing: border-box;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.btn-anim-inplace.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
}

.custom-anim-dropzone {
    margin: 6px 0 8px 0;
    padding: 0 10px;
    height: 34px;
    background: rgba(30, 41, 59, 0.4);
    border: 1.5px dashed rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #c084fc;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.custom-anim-dropzone:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #fff;
}

/* 6. AR & QR Code Modal */
.ar-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.ar-qr-box {
    padding: 12px;
    background: #090d1a;
    border: 2px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
    display: flex;
    justify-content: center;
}

.ar-instructions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 380px;
}

.ar-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.ar-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38bdf8;
    color: #060a14;
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ar-modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* 7. Gold Commercial License Certificate */
.certificate-gold-frame {
    background: linear-gradient(135deg, #101626 0%, #080c16 100%);
    border: 3px double #d97706;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: inset 0 0 30px rgba(217, 119, 6, 0.15), 0 10px 30px rgba(0,0,0,0.6);
    color: #f1f5f9;
}

.cert-gold-seal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
    letter-spacing: 0.5px;
}

.cert-header h2 {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif;
    font-size: 1.3rem;
    color: #fbbf24;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
}

.cert-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 1px;
}

.cert-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d97706, transparent);
    margin: 14px 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.cert-field.full-width {
    grid-column: 1 / -1;
}

.cf-label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 2px;
}

.cf-value {
    font-size: 0.86rem;
    color: #f8fafc;
    font-weight: 700;
}

.cf-value.mono {
    font-family: 'Courier New', monospace;
    color: #38bdf8;
}

.hash-text {
    word-break: break-all;
    font-size: 0.74rem;
}

.cert-rights-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 12px;
}

.cert-rights-box h4 {
    color: #fbbf24;
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.cert-rights-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-rights-box li {
    font-size: 0.78rem;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.cert-footer-signature {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.cert-sig-box {
    text-align: center;
    border-top: 1px solid #d97706;
    padding-top: 6px;
    min-width: 140px;
}

.sig-seal {
    color: #fbbf24;
    font-weight: 800;
    font-size: 0.85rem;
}

.cert-sig-box span {
    font-size: 0.68rem;
    color: #64748b;
}

.cert-action-bar {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 8. Virtual Credit Card & Checkout Layout */
.checkout-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    margin-top: 16px;
}

.virtual-credit-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border: 1.5px solid rgba(129, 140, 248, 0.5);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(49, 46, 129, 0.5);
    position: relative;
    margin-bottom: 16px;
    color: #fff;
}

.vcc-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 4px;
    margin-bottom: 14px;
}

.vcc-type {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 0.8rem;
    font-weight: 900;
    color: #a5b4fc;
    letter-spacing: 1px;
}

.vcc-number {
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.vcc-bottom {
    display: flex;
    justify-content: space-between;
}

.vcc-lbl {
    display: block;
    font-size: 0.62rem;
    color: #a5b4fc;
}

.vcc-val {
    font-size: 0.78rem;
    font-weight: 700;
}

.payment-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkout-action-wrap {
    margin-top: 14px;
}

.selected-package-summary {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.btn-checkout-submit {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 800;
}

/* ==========================================================================
   2026 LUXURY UPGRADES: Live Engine, Multi-Modal Workstation, Showcase Vitrin
   ========================================================================== */

/* 1. Header Live AI Engine Capsule */
.engine-live-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
}
.engine-live-capsule:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}
.engine-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: enginePulse 2s infinite ease-in-out;
}
@keyframes enginePulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px #10b981; }
    50% { opacity: 0.4; transform: scale(0.85); box-shadow: 0 0 4px #10b981; }
}
.engine-live-title {
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #e2e8f0;
}
.engine-live-tag {
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    letter-spacing: 0.04em;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

/* 2. Creation Mode Switcher Tabs */
.creation-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}
.mode-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.mode-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}
.mode-tab-btn.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border-color: rgba(16, 185, 129, 0.55);
    color: #fff;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}
.mode-tab-btn#mode-tab-image.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(2, 132, 199, 0.18) 100%);
    border-color: rgba(6, 182, 212, 0.65);
    color: #fff;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}
.mode-tab-btn#mode-tab-multiview.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(99, 102, 241, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.65);
    color: #fff;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.32);
}
.mt-icon-wrap {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.mode-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.mode-tab-btn:hover .mode-icon-img {
    transform: scale(1.18) rotate(-3deg);
}
.mode-tab-btn.active .mode-icon-img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8));
}
.mt-text {
    white-space: nowrap;
}
.mt-icon {
    font-size: 0.95rem;
}
.mt-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.mt-badge-accent {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    font-weight: 800;
    border: 1px solid rgba(6, 182, 212, 0.4);
    white-space: nowrap;
    flex-shrink: 0;
}
.mt-badge-pro {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 3. Active Category Feedback Pill */
.active-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(245, 158, 11, 0.45);
    margin-bottom: 10px;
    font-size: 0.78rem;
    transition: all 0.35s ease;
}
.acp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}
.acp-text {
    color: #f8fafc;
    font-weight: 700;
}
.acp-hint {
    color: #94a3b8;
    font-size: 0.72rem;
}
.category-glow-pulse {
    animation: catGlowAnim 1.2s ease;
}
@keyframes catGlowAnim {
    0% { transform: scale(1); }
    30% { transform: scale(1.006); }
    100% { transform: scale(1); }
}

/* 4. Dice Randomizer Button */
.btn-dice-random {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-dice-random:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}
.dice-flash {
    animation: diceFlashAnim 0.6s ease;
}
@keyframes diceFlashAnim {
    0% { background-color: rgba(245, 158, 11, 0.25); }
    100% { background-color: transparent; }
}

/* 5. Image-to-3D Dropzone */
.image-dropzone-box {
    border: 2px dashed rgba(6, 182, 212, 0.4);
    background: rgba(12, 18, 32, 0.6);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.image-dropzone-box:hover, .image-dropzone-box.dragover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.2);
}
.idb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.idb-icon-glow {
    font-size: 2rem;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}
.idb-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}
.idb-sub {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.btn-idb-browse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: none;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-idb-browse:hover {
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
    transform: translateY(-1px);
}
.idb-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
}
#idbPreviewImg {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.idb-preview-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.idb-ready-badge {
    display: inline-block;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 800;
}
.btn-idb-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 4px;
    width: fit-content;
}
.btn-idb-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}
.image-prompt-refine-row {
    display: flex;
    gap: 10px;
    height: 42px;
    flex-shrink: 0;
    margin-top: 10px;
    box-sizing: border-box;
}
.image-refine-input {
    flex: 1;
    height: 42px;
    background: rgba(12, 16, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.image-refine-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}
.btn-generate-from-img {
    height: 42px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4) !important;
    box-sizing: border-box !important;
}

/* 5.1 Multi-View Turnaround Dropzone Console */
.multiview-dropzone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
}

.mv-slot-box {
    border: 2px dashed rgba(168, 85, 247, 0.4);
    background: rgba(12, 18, 32, 0.65);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.mv-slot-box:hover, .mv-slot-box.dragover {
    border-color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.mv-slot-box.has-image {
    border-style: solid;
    border-color: rgba(52, 211, 153, 0.6);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.mv-slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mv-slot-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transition: transform 0.25s ease;
}

.mv-slot-box:hover .mv-slot-icon {
    transform: scale(1.15);
}

.mv-slot-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.mv-slot-sub {
    font-size: 0.70rem;
    color: #94a3b8;
    margin-bottom: 6px;
}

.btn-mv-browse {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mv-browse:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(99, 102, 241, 0.45));
    color: #fff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.mv-slot-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mv-preview-img {
    max-height: 75px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 4px;
}

.mv-preview-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mv-slot-ready {
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
}

.btn-mv-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.70rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-mv-remove:hover {
    background: rgba(239, 68, 68, 0.35);
}

.btn-generate-from-multiview {
    height: 42px !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #06b6d4 100%) !important;
    border-color: #a855f7 !important;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.45) !important;
    white-space: nowrap;
    box-sizing: border-box !important;
}

.btn-generate-from-multiview:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.65) !important;
    transform: translateY(-1px);
}

/* 6. Community Showcase & Featured Models Vitrin */
.showcase-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.showcase-header-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.showcase-spark {
    font-size: 1.3rem;
}
.showcase-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}
.showcase-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.showcase-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.showcase-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.showcase-filter-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.showcase-filter-btn.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.showcase-card {
    background: rgba(15, 21, 37, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.showcase-card:hover {
    border-color: rgba(16, 185, 129, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.2);
}
.showcase-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    font-size: 0.64rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.showcase-viewer-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(10, 14, 26, 0.8) 100%);
    cursor: grab;
}
.showcase-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    cursor: pointer;
}
.showcase-card:hover .showcase-hover-overlay {
    opacity: 1;
}
.sho-btn {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease;
}
.sho-btn:hover {
    transform: scale(1.05);
}
.showcase-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.showcase-item-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.showcase-author-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.showcase-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
.showcase-author-name {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.showcase-prompt-preview {
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
    margin-bottom: 12px;
    flex: 1;
}
.showcase-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.btn-showcase-remix {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-showcase-remix:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.25));
    border-color: #10b981;
    color: #fff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.btn-showcase-view {
    flex: 0.8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-showcase-view:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ==========================================================================
   FLANK 3D GUARDIANS (Disabled for Instant 60FPS Performance)
   ========================================================================== */
.flank-guardian-wing {
    display: none !important;
}

.flank-3d-stage {
    position: relative;
    width: 100%;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    user-select: none !important;
}

.flank-model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
    pointer-events: none !important;
    cursor: default !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2;
    opacity: 1;
}

.flank-model-viewer:focus,
.flank-model-viewer:focus-visible,
.flank-model-viewer:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ==========================================================================
   AAA ULTRA-LUXURY 3D SHOWCASE VITRIN PODIUM
   Unreal Engine 5 / High-End 3D Studio Showroom Architecture
   ========================================================================== */
.flank-vitrin-podium {
    position: absolute;
    top: calc(50% + 155px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 284px;
    height: 284px;
    pointer-events: none;
    z-index: 1;
}

/* 1. Deep Contact Floor Shadow (Ground Ambient Occlusion) */
.vitrin-ground-shadow {
    position: absolute;
    top: calc(50% + 16px);
    left: 50%;
    transform: translate(-50%, -50%) rotateX(71deg);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}
.vitrin-gold .vitrin-ground-shadow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.96) 0%, rgba(26, 18, 6, 0.8) 40%, rgba(245, 158, 11, 0.2) 65%, transparent 76%);
}
.vitrin-emerald .vitrin-ground-shadow {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.96) 0%, rgba(6, 26, 18, 0.8) 40%, rgba(16, 185, 129, 0.2) 65%, transparent 76%);
}

/* 2. 3D Beveled Metallic Cylinder Rim (Physical 12px Stage Depth) */
.vitrin-cylinder {
    position: absolute;
    top: calc(50% + 9px);
    left: 50%;
    transform: translate(-50%, -50%) rotateX(71deg);
    width: 284px;
    height: 284px;
    border-radius: 50%;
    z-index: 1;
}
.vitrin-gold .vitrin-cylinder {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.6) 0%, #22180c 25%, #0f0c07 65%, #050403 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.98), 0 0 25px rgba(245, 158, 11, 0.25);
}
.vitrin-emerald .vitrin-cylinder {
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.6) 0%, #0c2218 25%, #070f0c 65%, #020504 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.98), 0 0 25px rgba(16, 185, 129, 0.25);
}

/* 3. Top Obsidian Glass Stage Disc */
.vitrin-surface-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(71deg);
    width: 284px;
    height: 284px;
    border-radius: 50%;
    z-index: 2;
}
.vitrin-gold .vitrin-surface-disc {
    background: radial-gradient(circle, rgba(46, 34, 16, 0.92) 0%, rgba(20, 15, 8, 0.98) 52%, #080604 100%);
    box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.35);
}
.vitrin-emerald .vitrin-surface-disc {
    background: radial-gradient(circle, rgba(16, 46, 34, 0.92) 0%, rgba(8, 20, 15, 0.98) 52%, #040806 100%);
    box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.35);
}

/* 4. Crisp Multi-Tier Neon Laser Rims (Zero Aliasing, Zero Dashes) */
.vitrin-laser-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.vitrin-gold .vitrin-laser-ring {
    border: 2px solid #fbbf24;
    box-shadow: 
        0 0 10px rgba(251, 191, 36, 0.95),
        0 0 26px rgba(245, 158, 11, 0.75),
        0 0 55px rgba(245, 158, 11, 0.4),
        inset 0 0 18px rgba(245, 158, 11, 0.45);
}
.vitrin-emerald .vitrin-laser-ring {
    border: 2px solid #34d399;
    box-shadow: 
        0 0 10px rgba(52, 211, 153, 0.95),
        0 0 26px rgba(16, 185, 129, 0.75),
        0 0 55px rgba(16, 185, 129, 0.4),
        inset 0 0 18px rgba(16, 185, 129, 0.45);
}

/* 5. Precision Concentric Inner Track */
.vitrin-inner-track {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    pointer-events: none;
}
.vitrin-gold .vitrin-inner-track {
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    box-shadow: inset 0 0 14px rgba(245, 158, 11, 0.3), 0 0 10px rgba(245, 158, 11, 0.25);
}
.vitrin-emerald .vitrin-inner-track {
    border: 1.5px solid rgba(52, 211, 153, 0.55);
    box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.3), 0 0 10px rgba(16, 185, 129, 0.25);
}

/* 6. High-Tech Rotating Energy Pulse Sweep */
.vitrin-energy-sweep {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    animation: vitrinPulseSweep 6s linear infinite;
    pointer-events: none;
}
.vitrin-gold .vitrin-energy-sweep {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 260deg, rgba(251, 191, 36, 0.45) 310deg, #ffffff 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 2px));
}
.vitrin-emerald .vitrin-energy-sweep {
    background: conic-gradient(from 0deg, transparent 0deg, transparent 260deg, rgba(52, 211, 153, 0.45) 310deg, #ffffff 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #fff calc(100% - 2px));
}
@keyframes vitrinPulseSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 7. Precision 4-Point Crystal Caliber Nodes */
.vitrin-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.vnode {
    position: absolute;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 1px;
}
.vnode-n { top: 0; left: 50%; }
.vnode-s { top: 100%; left: 50%; }
.vnode-w { top: 50%; left: 0; }
.vnode-e { top: 50%; left: 100%; }

.vitrin-gold .vnode {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #fbbf24, 0 0 28px #f59e0b;
}
.vitrin-emerald .vnode {
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff, 0 0 16px #34d399, 0 0 28px #10b981;
}

/* 8. Volumetric Upward Spotlight Column */
.vitrin-uplight-beam {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 200px;
    clip-path: polygon(18% 0%, 82% 0%, 98% 100%, 2% 100%);
    filter: blur(16px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.vitrin-gold .vitrin-uplight-beam {
    background: linear-gradient(0deg, rgba(245, 158, 11, 0.4) 0%, rgba(245, 158, 11, 0.1) 55%, transparent 100%);
}
.vitrin-emerald .vitrin-uplight-beam {
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0.1) 55%, transparent 100%);
}

/* Legacy support fallback */
.flank-pedestal-base {
    display: none !important;
}

/* Atmospheric Glow Behind Guardian */
.flank-pedestal-aura {
    position: absolute;
    width: 290px;
    height: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(55px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
}

.aura-amber {
    background: radial-gradient(circle, #f59e0b, #b45309);
}

.aura-emerald {
    background: radial-gradient(circle, #10b981, #047857);
}

/* Floating Title Badges - Hidden per user request */
.flank-badge {
    display: none !important;
}

/* Responsive clearance: hide guardians if viewport width < 1650px to never crowd middle menu */
@media (max-width: 1650px) {
    .flank-guardian-wing {
        display: none !important;
    }
}

/* Navbar Integrated Stepper Bar - Seamless Single-Background Layout */
.navbar-stepper-center {
    width: auto !important;
    max-width: 680px !important;
    height: 40px;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.navbar-stepper-center .step-tab {
    flex: initial !important;
    height: 36px;
    padding: 0 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-stepper-center .step-tab:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-stepper-center .step-tab.active {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.22) !important;
    font-weight: 700;
}

.navbar-stepper-center .step-num {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.navbar-stepper-center .step-tab:hover .step-num {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-stepper-center .step-tab.active .step-num {
    background: #10b981;
    color: #0b0f19;
    font-weight: 800;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* =================================================================
   OFFICIAL COMMERCIAL LICENSE CERTIFICATE PRINT STYLING
   ================================================================= */
@media print {
    body * {
        visibility: hidden !important;
    }
    #modalLicense,
    #modalLicense .vip-modal-card,
    #modalLicense .vip-modal-body,
    #certificatePrintArea,
    #certificatePrintArea * {
        visibility: visible !important;
    }
    #modalLicense {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 999999 !important;
    }
    #modalLicense .vip-modal-card {
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #certificatePrintArea {
        position: relative !important;
        margin: 20px auto !important;
        max-width: 800px !important;
        background: #ffffff !important;
        color: #111827 !important;
        border: 4px double #d97706 !important;
        padding: 36px !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }
    #certificatePrintArea .cert-header h2 {
        color: #b45309 !important;
    }
    #certificatePrintArea .cf-value {
        color: #111827 !important;
    }
    #certificatePrintArea .cf-label {
        color: #6b7280 !important;
    }
    #certificatePrintArea .cert-gold-seal {
        background: #fef3c7 !important;
        color: #b45309 !important;
        border-color: #f59e0b !important;
    }
    #certificatePrintArea .cert-rights-box {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        color: #374151 !important;
    }
    #certificatePrintArea .cert-rights-box li {
        color: #166534 !important;
    }
    .modal-close-btn,
    .cert-action-bar,
    .vip-modal-header {
        display: none !important;
    }
}

/* ==========================================================================
   VIP 3D EMBED STUDIO & CUSTOMIZER STYLES
   ========================================================================== */
.vip-modal-card.modal-embed-wide {
    max-width: 980px;
    width: 94%;
    padding: 24px 28px;
}

.embed-studio-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 860px) {
    .embed-studio-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.embed-settings-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(15, 23, 42, 0.6);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.embed-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.embed-group-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.theme-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 9px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.theme-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.theme-card.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: #38bdf8;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.2);
}

.theme-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    color: #f8fafc;
}

.theme-card.active .theme-card-head {
    color: #38bdf8;
}

.theme-card-tag {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.theme-card.active .theme-card-tag {
    background: #38bdf8;
    color: #060a14;
}

.theme-card-sub {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
}

.bg-chips-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.bg-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.bg-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(56, 189, 248, 0.3);
}

.bg-chip.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.embed-toggles-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.embed-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: all 0.15s ease;
    user-select: none;
}

.embed-toggle-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.embed-toggle-pill {
    width: 34px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    position: relative;
    transition: all 0.2s ease;
}

.embed-toggle-pill::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.embed-toggle-item.active .embed-toggle-pill {
    background: #10b981;
}

.embed-toggle-item.active .embed-toggle-pill::after {
    transform: translateX(16px);
}

.size-chips-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.size-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.18s ease;
}

.size-chip:hover {
    background: rgba(255, 255, 255, 0.06);
}

.size-chip.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.embed-preview-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.browser-mockup {
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: #060a14;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
}

.browser-mockup-header {
    height: 36px;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.b-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.b-dot-red { background: #ef4444; }
.b-dot-yellow { background: #f59e0b; }
.b-dot-green { background: #10b981; }

.browser-address {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 3px 14px;
    font-size: 0.68rem;
    font-family: monospace;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
}

.browser-content {
    position: relative;
    width: 100%;
    height: 360px;
    background: #060a14;
    transition: background 0.3s ease;
}

.browser-content.is-light {
    background: #f1f5f9;
}

.browser-content.is-transparent {
    background-color: #0b1120;
    background-image: 
        linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.embed-code-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.embed-code-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.embed-code-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #cbd5e1;
}

.embed-code-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   DİNO 3D - CLOUD AUTH MODAL STYLES
   ========================================== */
.auth-modal-premium {
    max-width: 440px !important;
    background: rgba(13, 18, 30, 0.98) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(16, 185, 129, 0.12) !important;
    border-radius: 24px !important;
    padding: 30px !important;
    backdrop-filter: blur(24px) !important;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 9999px;
    margin-bottom: 6px;
}

.auth-brand-icon {
    font-size: 1.1rem;
}

.auth-brand-title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #10b981;
}

.auth-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.auth-tab-btn:hover {
    color: #f8fafc;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.auth-alert-banner {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.auth-alert-banner.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.auth-alert-banner.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.signup-reward-notice {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 10px 12px;
    color: #6ee7b7;
    font-size: 0.82rem;
    margin-bottom: 16px;
    text-align: center;
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 1px solid #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55) !important;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 20px 0 16px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: #0d121e;
    padding: 0 12px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-login-btn-modern {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f1f5f9 !important;
    padding: 11px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-login-btn-modern:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   PREMIUM SYMMETRICAL GALLERY AUTH-LOCKED HERO
   ========================================================================== */
.gallery-auth-locked-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 580px;
    height: 100%;
    box-sizing: border-box;
    padding: 30px 20px;
}

.gal-locked-card {
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.16) 0%, rgba(15, 23, 42, 0.94) 80%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.2) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    max-width: 580px;
    width: 100%;
    padding: 44px 36px !important;
    text-align: center;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
}

.gal-locked-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.gal-locked-icon-halo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.gal-locked-title {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #f8fafc !important;
    margin: 0 0 12px 0 !important;
    letter-spacing: -0.4px;
    font-family: inherit;
}

.gal-locked-desc {
    font-size: 0.94rem !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin: 0 0 24px 0 !important;
    max-width: 460px;
}

.gal-locked-features-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.gal-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 30px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
}

.gal-locked-actions {
    display: flex;
    gap: 14px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gal-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(14, 165, 233, 0.45);
    transition: all 0.22s ease;
}

.btn-gal-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.6);
}

.btn-gal-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.08);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.btn-gal-signup:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   STUDIO 3D VIEWPORT AUTH-LOCKED OVERLAY
   ========================================================================== */
.studio-auth-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 12, 24, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 20px;
    box-sizing: border-box;
}

.studio-locked-card {
    background: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.9) 80%);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(14, 165, 233, 0.15);
    max-width: 480px;
    width: 100%;
    padding: 36px 28px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.studio-locked-icon-halo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(15, 23, 42, 0.6) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
}

.studio-locked-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 10px 0;
}

.studio-locked-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.55;
    margin: 0 0 22px 0;
    max-width: 380px;
}

.studio-locked-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   STUDIO 3D NO-MODEL FOR REFERENCE OVERLAY
   ========================================================================== */
.no-model-ref-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.88) 0%, rgba(2, 6, 23, 0.96) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 35;
    padding: 20px;
    box-sizing: border-box;
}

.no-model-ref-card {
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.94) 80%);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.15);
    max-width: 440px;
    width: 100%;
    padding: 30px 24px 26px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: nmrFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nmrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.nmr-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.nmr-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: nmrPulse 2s infinite ease-in-out;
}

@keyframes nmrPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.nmr-thumb-wrap {
    position: relative;
    width: 124px;
    height: 124px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.2);
    background: #090e1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmr-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 14px;
}

.nmr-thumb-glass-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.15);
}

.nmr-info-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.nmr-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}

.nmr-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    max-width: 350px;
}

.nmr-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.nmr-btn-convert {
    width: 100%;
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45) !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nmr-btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.7) !important;
}

.nmr-btn-back {
    width: 100%;
    padding: 9px 16px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nmr-btn-back:hover {
    background: rgba(51, 65, 85, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* ==========================================================================
   MIXAMO-STYLE ANIMATION PREVIEW SYSTEM (Hover Tooltip + Live Mannequin HUD)
   ========================================================================== */

/* Floating Glassmorphic Hover Preview Card */
.anim-hover-tooltip {
    position: fixed;
    z-index: 999999;
    width: 310px;
    background: rgba(13, 20, 36, 0.96) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(99, 102, 241, 0.3) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    pointer-events: auto !important;
    font-family: inherit;
    color: #f1f5f9;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateX(8px) scale(0.97);
    box-sizing: border-box;
}

.anim-hover-tooltip.active {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

.aht-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.aht-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px;
    border-radius: 10px;
}

.aht-title-wrap {
    flex: 1;
    min-width: 0;
}

.aht-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 4px;
    word-break: break-word;
}

.aht-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.aht-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1.2;
}

.aht-badge-cat {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.aht-badge-dur {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.aht-desc {
    font-size: 0.74rem;
    line-height: 1.45;
    color: #cbd5e1;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #6366f1;
}

.aht-actions {
    display: flex;
    gap: 7px;
}

.btn-aht-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 7px 10px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.35) !important;
    transition: all 0.2s ease;
}

.btn-aht-preview:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.6) !important;
}

.btn-aht-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Eye / Info button on the card */
.btn-card-preview-eye {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #94a3b8 !important;
    font-size: 0.70rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.btn-card-preview-eye:hover {
    background: rgba(6, 182, 212, 0.25) !important;
    border-color: #06b6d4 !important;
    color: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4) !important;
    transform: scale(1.1) !important;
}

/* Mannequin Preview HUD (Floating Top Banner in 3D Viewport) */
.mannequin-preview-hud {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.35) !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    width: calc(100% - 28px);
    max-width: 660px;
    box-sizing: border-box;
    animation: mphSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mphSlideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mph-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.mph-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4;
    animation: mphPulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes mphPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.mph-tag {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(6, 182, 212, 0.4);
    padding: 2px 7px;
    border-radius: 5px;
    flex-shrink: 0;
}

.mph-title {
    font-size: 0.80rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.mph-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-mph-apply {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    color: #04101e !important;
    font-weight: 800 !important;
    font-size: 0.74rem !important;
    padding: 6px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.2s ease;
}

.btn-mph-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.6) !important;
}

.btn-mph-exit {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    font-weight: 800 !important;
    font-size: 0.74rem !important;
    padding: 6px 11px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.btn-mph-exit:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* ==========================================================================
   FLOATING MINI 3D ANIMATION PREVIEW WINDOW (Right of the Animation Card)
   ========================================================================== */

.anim-mini-preview-window {
    position: fixed;
    z-index: 9999999;
    width: 310px;
    background: rgba(13, 20, 36, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85), 0 0 16px rgba(6, 182, 212, 0.22) !important;
    border-radius: 14px !important;
    padding: 12px !important;
    color: #f1f5f9;
    font-family: inherit;
    box-sizing: border-box;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.96);
    pointer-events: auto;
}

.anim-mini-preview-window.active {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.amp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.amp-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.amp-icon {
    font-size: 1.4rem;
    line-height: 1;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.amp-title-col {
    min-width: 0;
    flex: 1;
}

.amp-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-meta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.amp-badge {
    font-size: 0.60rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.amp-badge-cat {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.amp-badge-dur {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-amp-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 0.70rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-amp-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.5);
}

.amp-viewport-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.amp-badge-overlay {
    display: none !important;
}

.amp-desc-text {
    font-size: 0.72rem;
    line-height: 1.4;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    border-radius: 8px;
    border-left: 3px solid #06b6d4;
    margin-bottom: 10px;
}

.amp-actions-row {
    display: flex;
    gap: 6px;
}

.btn-amp-apply {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    color: #04101e !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-amp-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.65) !important;
}

/* ==========================================================================
   ANIMATION LIBRARY CARD ACTIONS (Symmetrical 3-Slot Grid)
   ========================================================================== */

.anim-action-group {
    display: grid !important;
    grid-template-columns: 28px 48px 64px !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.btn-card-preview-eye {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
}

.btn-card-preview-eye:hover {
    background: rgba(6, 182, 212, 0.22) !important;
    border-color: rgba(6, 182, 212, 0.55) !important;
    color: #38bdf8 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
}

.anim-status-pill {
    width: 48px !important;
    height: 25px !important;
    border-radius: 6px !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.anim-status-pill.badge-ready {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.anim-status-pill.badge-cloud {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.anim-status-pill.badge-price {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.btn-action-cta {
    width: 64px !important;
    height: 27px !important;
    border-radius: 7px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.18s ease !important;
}

.btn-action-cta:hover {
    transform: translateY(-1px) scale(1.02) !important;
}

.btn-action-cta.cta-play {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
    color: #04101e !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.32) !important;
}

.btn-action-cta.cta-play:hover {
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.55) !important;
}

.btn-action-cta.cta-cloud {
    background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3) !important;
}

.btn-action-cta.cta-cloud:hover {
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.55) !important;
}

.btn-action-cta.cta-unlock {
    background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3) !important;
}

.btn-action-cta.cta-unlock:hover {
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.55) !important;
}






