/* Addons Hub CSS */
#main_input_extra {
    display: none !important;
}

#addons_hub_icon {
    cursor: pointer;
    transition: transform 0.2s;
    display: inline-block;
}
#addons_hub_icon:hover {
    transform: scale(1.1);
}
#addons_hub_icon img {
    width: 24px;
    height: 24px;
}

/* Hub Overlay */
.addons-hub-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: hubFadeIn 0.3s;
}
.addons-hub-overlay.active {
    display: flex;
}
@keyframes hubFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hub Popup */
.addons-hub-popup {
    background: linear-gradient(135deg, #1e1e2d 0%, #151521 100%);
    border-radius: 20px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    position: relative;
}

.addons-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.addons-hub-title {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
.addons-hub-close {
    cursor: pointer;
    font-size: 24px;
    opacity: 0.6;
    transition: 0.2s;
}
.addons-hub-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Addons List */
.addons-hub-list {
    overflow-y: auto;
    padding-right: 5px;
}
.addons-hub-list::-webkit-scrollbar {
    width: 6px;
}
.addons-hub-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}

.addon-card {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: 0.2s;
    border: 1px solid transparent;
}
.addon-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.addon-icon {
    width: 40px;
    height: 40px;
    margin-left: 15px; /* RTL */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.addon-icon img {
    max-width: 24px;
    max-height: 24px;
}

.addon-info {
    flex: 1;
}
.addon-name {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}
.addon-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.addon-action {
    margin-right: 15px; /* RTL */
}
.addon-btn {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 176, 155, 0.3);
}
.addon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 176, 155, 0.4);
}

.addons-hub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}
.addons-hub-item:hover {
    background: rgba(255,255,255,0.1);
}
.addons-hub-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.addons-hub-icon img {
    max-width: 28px;
    max-height: 28px;
}
.addons-hub-info {
    flex: 1;
    min-width: 0;
}
.addons-hub-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}
.addons-hub-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}
.addons-hub-empty {
    text-align: center;
    color: rgba(255,255,255,0.7);
    padding: 24px;
}
