:root {
    --primary-color: #6C63FF;
    --secondary-color: #2A2A2A;
    --text-color: #FFFFFF;
    --bg-color: #0f0f13;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.03) 0%, rgba(15, 15, 19, 0) 50%);
}

.sidebar {
    width: 280px;
    background: rgba(15, 15, 19, 0.6);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar .logo {
    margin-bottom: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
}

.dot {
    color: var(--primary-color);
    font-size: 2.5rem;
    line-height: 0;
}

.sidebar-links {
    list-style: none;
    flex: 1;
}

.sidebar-links li {
    margin-bottom: 1rem;
}

.sidebar-links a {
    text-decoration: none;
    color: #888;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.sidebar-links a:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-links a.active {
    color: white;
    background: var(--primary-color);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.2);
    font-weight: 500;
}

.sidebar-links a.active i {
    color: white;
}

.dashboard-content {
    flex: 1;
    padding: 3rem 5%;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.user-profile:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Form Styles */
.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: #aaa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.4);
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(108, 99, 255, 0.05);
    transform: scale(1.01);
}

.upload-area i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: 0.3s;
}

.upload-area:hover i {
    transform: translateY(-5px);
    opacity: 1;
}

.upload-area h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-text {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.preview-item {
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    cursor: pointer;
}

.preview-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

/* Sidebar hamburger toggle for mobile */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Media Queries */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar .logo {
        margin-bottom: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 19, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 0.5rem 1.5rem 1.5rem;
        z-index: 100;
    }

    .sidebar-links.open {
        display: block;
    }

    .dashboard-content {
        padding: 1.5rem 1rem;
    }

    .form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .dashboard-header h2 {
        font-size: 1.5rem;
    }

    .user-profile {
        width: 100%;
        justify-content: space-between;
    }

    /* Upload area mobile */
    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-area i {
        font-size: 2.5rem;
    }

    .upload-area h3 {
        font-size: 1rem;
    }

    /* Tour cards mobile */
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Editor header mobile */
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .editor-header div:last-child {
        width: 100%;
        flex-wrap: wrap;
    }

    .editor-header .cta-button,
    .editor-header .action-btn,
    #share-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .editor-header div[style*="display: flex"] {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .photo-card img {
        height: 110px;
    }

    /* Modal mobile */
    .modal-content {
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .close-modal {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }

    .target-modal-content {
        width: 95%;
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .target-list {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .target-modal-content div[style*="display: flex"] {
        flex-direction: column;
        gap: 10px;
    }

    /* Viewer controls mobile */
    .viewer-controls {
        padding: 10px;
        bottom: 10px;
    }

    .viewer-controls .action-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    /* Tour info overlay mobile */
    .tour-info-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 10px 15px;
    }

    .tour-title {
        font-size: 1rem;
    }

    .custom-hotspot {
        width: 50px !important;
        height: 50px !important;
    }

    .hotspot-portal {
        display: none !important;
    }

    .custom-hotspot:hover .hotspot-arrow {
        transform: none;
        opacity: 1;
    }

    /* Options menu mobile */
    .options-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        min-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 10px;
        margin-bottom: 0;
        z-index: 2000;
    }

    .option-item {
        padding: 14px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 1rem 0.75rem;
    }

    .form-container {
        padding: 1rem;
        border-radius: 12px;
    }

    .photos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .photo-card img {
        height: 90px;
    }

    .photo-actions {
        padding: 6px;
    }

    .photo-name {
        font-size: 0.8rem;
    }

    .tour-card .tour-thumbnail {
        height: 140px;
    }

    .tour-info {
        padding: 1rem;
    }

    .tour-title {
        font-size: 1.1rem;
    }
}

/* Tour Cards Styles */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tour-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(108, 99, 255, 0.3);
}

.tour-thumbnail {
    width: 100%;
    height: 180px;
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.tour-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-card:hover .tour-thumbnail img {
    transform: scale(1.1);
}

.tour-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tour-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.tour-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.action-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-btn.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.action-btn.primary:hover {
    background: #5a52d5;
}

.action-btn.icon-only {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Options Menu */
.options-container {
    position: relative;
}

.options-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 5px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.options-menu.show {
    display: flex;
}

.option-item {
    background: none;
    border: none;
    color: white;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    width: 100%;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-item.danger {
    color: #ff4c4c;
}

.option-item.danger:hover {
    background: rgba(255, 76, 76, 0.1);
}

.action-btn.danger {
    background: rgba(255, 76, 76, 0.1);
    border-color: rgba(255, 76, 76, 0.3);
    color: #ff4c4c;
    flex: 0 0 auto;
    width: 42px;
}

.action-btn.danger:hover {
    background: rgba(255, 76, 76, 0.2);
    border-color: #ff4c4c;
}

/* Viewer Controls */
.viewer-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Target Modal */
.target-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.target-modal-content {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
}

.target-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.target-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.target-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.target-item span {
    display: block;
    font-size: 0.8rem;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Portal Hotspot Styles --- */
.custom-hotspot {
    width: 70px;
    height: 70px;
    /* IMPORTANT: No transition on transform to avoid jitter */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

/* 1. The Arrow (Default State - Modern Redesign) */
.hotspot-arrow {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

/* The actual arrow icon inside the circle */
.hotspot-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid white;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* 2. The Portal (Hidden by default, shows on hover) */
.hotspot-portal {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 30px rgba(108, 99, 255, 0.9),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hotspot-portal span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover Effects */
.custom-hotspot:hover .hotspot-arrow {
    transform: scale(0);
    opacity: 0;
}

.custom-hotspot:hover .hotspot-portal {
    width: 160px;
    height: 160px;
    opacity: 1;
}

.custom-hotspot:hover .hotspot-portal span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Portal Hotspot Styles (Continued - Particles) --- */

/* 3. Partículas (Random Absorption Effect) */
.hotspot-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
    /* Initial state hidden */
    transform: translate(-50%, -50%);
}

.custom-hotspot:hover .hotspot-particle {
    animation: particle-absorb var(--duration) infinite cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* Accelerate in */
    animation-delay: var(--delay);
}

@keyframes particle-absorb {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(120px) scale(1);
    }

    20% {
        opacity: 1;
        transform: rotate(var(--angle)) translateX(100px) scale(1);
    }

    100% {
        opacity: 0;
        /* Move to center and stretch slightly to look like a streak */
        transform: rotate(var(--angle)) translateX(0px) scaleX(3);
    }
}

/* Remove old manual classes */
.custom-hotspot:hover .p1,
.custom-hotspot:hover .p2,
.custom-hotspot:hover .p3,
.custom-hotspot:hover .p4,
.custom-hotspot:hover .p5,
.custom-hotspot:hover .p6 {
    animation: none;
}

/* Large Preview Tooltip (Legacy - kept for compatibility if needed, but Portal replaces it) */
.hotspot-tooltip {
    display: none;
}

/* --- Scene Transition Effects --- */

/* Hide default Pannellum loader */
.pnlm-load-box {
    display: none !important;
}

/* Transition Overlay */
#transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: radial-gradient(circle, transparent 0%, #000 100%);
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#transition-overlay.active {
    opacity: 1;
    background: radial-gradient(circle, transparent 0%, #000 20%);
    animation: warp-tunnel 0.8s forwards ease-in;
}

@keyframes warp-tunnel {
    0% {
        background: radial-gradient(circle, transparent 20%, #000 40%);
        transform: scale(1);
    }

    100% {
        background: radial-gradient(circle, transparent 0%, #000 0%);
        transform: scale(3);
        background-color: #000;
    }
}

/* Panorama Zoom Effect */
.panorama-container {
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Default Pannellum Hotspot Override */
.pnlm-hotspot {
    width: 40px !important;
    height: 40px !important;
}

.custom-hotspot {
    width: 70px;
    height: 70px;
    /* IMPORTANT: No transition on transform to avoid jitter */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
}

/* 1. The Arrow (Default State - Modern Redesign) */
.hotspot-arrow {
    width: 55px;
    height: 55px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
}

/* The actual arrow icon inside the circle */
.hotspot-arrow::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid white;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* 2. The Portal (Hidden by default, shows on hover) */
.hotspot-portal {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: #000;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 0 30px rgba(108, 99, 255, 0.9),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hotspot-portal span {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s 0.2s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hover Effects */
.custom-hotspot:hover .hotspot-arrow {
    transform: scale(0);
    opacity: 0;
}

.custom-hotspot:hover .hotspot-portal {
    width: 160px;
    height: 160px;
    opacity: 1;
}

.custom-hotspot:hover .hotspot-portal span {
    opacity: 1;
    transform: translateY(0);
}

/* --- Portal Hotspot Styles (Continued - Particles) --- */

/* 3. Partículas (Random Absorption Effect) */
.hotspot-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.9);
    /* Initial state hidden */
    transform: translate(-50%, -50%);
}

.custom-hotspot:hover .hotspot-particle {
    animation: particle-absorb var(--duration) infinite cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* Accelerate in */
    animation-delay: var(--delay);
}

@keyframes particle-absorb {
    0% {
        opacity: 0;
        transform: rotate(var(--angle)) translateX(120px) scale(1);
    }

    20% {
        opacity: 1;
        transform: rotate(var(--angle)) translateX(100px) scale(1);
    }

    100% {
        opacity: 0;
        /* Move to center and stretch slightly to look like a streak */
        transform: rotate(var(--angle)) translateX(0px) scaleX(3);
    }
}

/* Remove old manual classes */
.custom-hotspot:hover .p1,
.custom-hotspot:hover .p2,
.custom-hotspot:hover .p3,
.custom-hotspot:hover .p4,
.custom-hotspot:hover .p5,
.custom-hotspot:hover .p6 {
    animation: none;
}

/* Large Preview Tooltip (Legacy - kept for compatibility if needed, but Portal replaces it) */
.hotspot-tooltip {
    display: none;
}

/* --- Scene Transition Effects --- */

/* Hide default Pannellum loader */
.pnlm-load-box {
    display: none !important;
}

/* Transition Overlay */
#transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: radial-gradient(circle, transparent 0%, #000 100%);
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#transition-overlay.active {
    opacity: 1;
    background: radial-gradient(circle, transparent 0%, #000 20%);
    animation: warp-tunnel 0.8s forwards ease-in;
}

@keyframes warp-tunnel {
    0% {
        background: radial-gradient(circle, transparent 20%, #000 40%);
        transform: scale(1);
    }

    100% {
        background: radial-gradient(circle, transparent 0%, #000 0%);
        transform: scale(3);
        background-color: #000;
    }
}

/* Panorama Zoom Effect */
.panorama-container {
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.panorama-zoom-out {
    transform: scale(3);
    opacity: 0;
}

/* Trash Zone for Deletion */
#trash-zone {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 76, 76, 0.2);
    border: 2px dashed #ff4c4c;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ff4c4c;
    font-size: 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

#trash-zone.drag-over {
    background: rgba(255, 76, 76, 0.5);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px rgba(255, 76, 76, 0.6);
}

/* Hotspot Delete Button (Visible in Edit Mode) */
.hotspot-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #ff4c4c;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    border: 2px solid white;
}

.hotspot-delete-btn:hover {
    background: #ff0000;
    transform: scale(1.1);
}

/* Show delete button when parent has editing-mode class */
.panorama-container.editing-mode .hotspot-delete-btn {
    display: flex;
}

/* Visual cue for editable hotspots */
.panorama-container.editing-mode .custom-hotspot {
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* Visitor Table Styles */
#visits-tbody tr {
    transition: background 0.2s;
}
#visits-tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}
#visits-tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}
#visits-tbody tr:last-child td {
    border-bottom: none;
}