/* ============================================================
   LINKS MANAGER PANEL STYLES — J2ST.ICU VOID
   ============================================================ */

.links-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.panel-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.add-link-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-snappy);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
}

.add-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255,255,255,0.1);
}

.add-link-btn i {
    font-size: 18px;
    font-weight: 900;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-border);
    border-radius: 24px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-snappy);
}

.link-card:hover {
    background: var(--accent-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.drag-handle {
    width: 20px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: grab;
    opacity: 0.3;
}

.drag-handle span {
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

.link-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon-box i img {
    width: 26px;
    height: 26px;
    filter: invert(1);
    opacity: 0.8;
}

.link-details {
    flex: 1;
}

.link-name {
    font-size: 16px;
    font-weight: 850;
    margin-bottom: 4px;
}

.link-url {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.link-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn-small {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.action-btn-small:hover {
    background: var(--accent-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.action-btn-small i img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    opacity: 0.5;
}

.action-btn-small:hover i img {
    opacity: 1;
}

.action-btn-small.danger:hover {
    background: rgba(255, 77, 77, 0.15);
    border-color: var(--danger);
}

.action-btn-small.danger:hover i img {
    filter: invert(30%) sepia(80%) saturate(5000%) hue-rotate(345deg);
}

/* Modal for Add/Edit Link */
.link-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 50px 100px rgba(0,0,0,1);
    animation: modalPop 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 20px;
    font-weight: 900;
}

.close-modal {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
}
