#qamar-graph-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: #020205;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 242, 254, 0.15);
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), inset 0 0 25px rgba(0, 242, 254, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    direction: rtl;
    transition: border-radius 0.3s ease;
}

#qamar-graph-container:fullscreen {
    border-radius: 0;
    border: none;
}

#qamar-graph-container:-webkit-full-screen {
    border-radius: 0;
    border: none;
}

#3d-graph {
    width: 100%;
    height: 100%;
}

.qamar-glass-panel {
    position: absolute;
    background: rgba(8, 8, 16, 0.7);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e2e2ee;
    padding: 15px;
    z-index: 100;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
}

#qamar-fullscreen-btn {
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: rgba(8, 8, 16, 0.5);
    color: #00F2FE;
    transition: all 0.3s ease;
}

#qamar-fullscreen-btn:hover {
    background: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
    transform: scale(1.1);
}

#qamar-tooltip {
    top: 20px;
    right: 20px;
    width: 290px;
    opacity: 0;
    pointer-events: none;
    border-right: 4px solid #00F2FE;
    transform: translateY(-10px);
}

#qamar-tooltip .tooltip-title {
    font-weight: bold;
    color: #00F2FE;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

#qamar-tooltip .tooltip-body {
    font-size: 12.5px;
    line-height: 1.6;
    color: #c4c4d5;
}

#qamar-modal {
    bottom: 20px;
    left: 20px;
    width: 320px;
    max-height: 280px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    overflow-y: auto;
    border-left: 4px solid #9D4EDD;
}

#qamar-modal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qamar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.qamar-modal-header h3 {
    margin: 0;
    font-size: 15px;
    color: #9D4EDD;
    text-shadow: 0 0 8px rgba(157, 78, 221, 0.4);
}

#qamar-modal-close {
    background: none;
    border: none;
    color: #ff3b30;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#qamar-modal-content {
    font-size: 13px;
    line-height: 1.6;
}

#qamar-modal-content .articles-list ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
}

#qamar-modal-content .articles-list li {
    margin-bottom: 8px;
}

#qamar-modal-content .articles-list a {
    color: #00e5ff;
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 6px;
    transition: all 0.25s ease;
    text-align: center;
    font-size: 12px;
}

#qamar-modal-content .articles-list a:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    border-color: rgba(0, 229, 255, 0.5);
}

@media screen and (max-width: 600px) {
    #qamar-graph-container {
        height: 80vh;
    }
    #qamar-tooltip {
        top: 80px;
        right: 10px;
        width: calc(100% - 20px);
    }
    #qamar-fullscreen-btn {
        top: 10px;
        left: 10px;
    }
    #qamar-modal {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-height: 180px;
    }
}