* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Soft UI Shadow Effects */
.shadow-soft {
    box-shadow: 8px 8px 20px rgba(163, 177, 198, 0.15),
        -8px -8px 20px rgba(255, 255, 255, 0.7);
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item svg {
    margin-right: 12px;
}

.nav-item:hover {
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    color: #9333ea;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

/* ===== SVG ISOMETRIC SCENE ===== */

.svg-scene-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(180deg, #e0e7ff 0%, #f3f4f6 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

#svg-room-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#svg-room-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.room-svg {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Hotspot Overlay */
#hotspot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#hotspot-overlay .hotspot {
    pointer-events: auto;
}

/* ===== SIMS-STYLE HOTSPOTS ===== */

.hotspot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    color: #4a4a4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    z-index: 100;
    transform: translate(-50%, -50%);
}

.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.15) translateY(-4px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15);
    animation: none;
}

.hotspot:active {
    transform: translate(-50%, -50%) scale(0.95);
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }
}

/* ===== ROOM NAVIGATION ===== */

.room-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.room-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.room-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #9333ea;
    color: #9333ea;
}

.room-nav-btn.active {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: white;
    border-color: #9333ea;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.room-icon {
    font-size: 20px;
}

.room-label {
    font-size: 14px;
    font-weight: 600;
}

/* ===== MODAL STYLES WITH GLASSMORPHISM ===== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    display: none;
    animation: modalSlideIn 0.3s ease-out;
}

.modal.active {
    display: block;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(243, 244, 246, 0.8);
    backdrop-filter: blur(10px);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.modal-close:hover {
    background: rgba(229, 231, 235, 0.9);
    transform: rotate(90deg);
    color: #ef4444;
}

/* Subscription Cards */
.subscription-card {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 4px 4px 12px rgba(163, 177, 198, 0.1),
        -4px -4px 12px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 18px rgba(163, 177, 198, 0.15),
        -6px -6px 18px rgba(255, 255, 255, 0.8);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    color: #6b7280;
    border: 2px solid #e5e7eb;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 12px rgba(163, 177, 198, 0.1),
        -4px -4px 12px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: #9333ea;
    color: #9333ea;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .svg-scene-container {
        height: 400px;
    }

    #svg-room-wrapper svg {
        max-width: 90%;
        max-height: 90%;
    }

    .hotspot {
        width: 40px;
        height: 40px;
    }

    .modal-content {
        padding: 24px;
        margin: 0 16px;
    }

    .room-navigation {
        flex-wrap: wrap;
        gap: 8px;
    }

    .room-nav-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .room-icon {
        font-size: 16px;
    }

    .room-label {
        font-size: 12px;
    }
}